grprakash / cypal-studio

Automatically exported from code.google.com/p/cypal-studio
0 stars 0 forks source link

Building error with GWT 1.5 #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a simple gwt module (also a simple Window.alert onModuleLoad)
2. try to build it launching a server or saving while the server is running

What is the expected output? What do you see instead?
With GWT 1.4 everything works fine; if i select gwt 1.5 in the Cypal 
Studio preferences window, this exception is thrown in the first phase of 
building:
....
....
     Searching for resources within file:/C:/Program%
20Files/Java/jre1.5.0_14/lib/ext/sunpkcs11.jar
     Indexing zip file: C:\Program Files\Java\jre1.5.0_14
\lib\ext\sunpkcs11.jar
     Exception in thread "main" java.lang.NoSuchMethodError: 
org.eclipse.jdt.internal.compiler.Compiler.<init>
(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/i
nternal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/im
pl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lo
rg/eclipse/jdt/internal/compiler/IProblemFactory;)V
    at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>
(JdtCompiler.java:93)
    at com.google.gwt.dev.javac.JdtCompiler.<init>
(JdtCompiler.java:233)
    at com.google.gwt.dev.javac.JdtCompiler.compile
(JdtCompiler.java:194)
    at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:72)
    at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)

What version of the product are you using? On what operating system?
This error occours with Cypal Studio RC5 & RC6 (i didn't tested the 
others), GWT 1.5, Eclipse 3.3.1, Tomcat 5.5, jre 1.5.0_14, Windows.

Please provide any additional information below.
I also noted that, in Cypal Studio RC6, saving the project while the 
Tomcat server is running doesn't cause the refresh and the rebuild of the 
project in the server (this doesn't happen with Cypal Studio RC5).

Original issue reported on code.google.com by fabrit...@gmail.com on 9 Jun 2008 at 4:56

GoogleCodeExporter commented 9 years ago
I can't reproduce this one. It compiles fine for me.

Reg the auto publishing thing, its been disabled to avoid publishing in a 
continuous
loop (issue# 72)

Original comment by grprakash on 10 Jun 2008 at 4:57

GoogleCodeExporter commented 9 years ago
Hi, 

I had this error to.

The problem is tomcat, you must delete 'jasper-compiler-jdt.jar' to your tomcat
installation path (in common/lib/ directory)

Refresh your project and relaunch it

normaly, it's ok

Original comment by sebastie...@gmail.com on 12 Jun 2008 at 9:44

GoogleCodeExporter commented 9 years ago
Hi, 
thank you all for the reply.
I followed Sebastien's instructions, but:
1) Tomcat can't now compile jsp pages.. :-|  how can i use this solution if i 
have 
other jsp pages in the application?
2) There is still a problem in the gwt compilation (with gwt 1.5.. all works 
fine 
with gwt 1.4): while pubblishing my gwt test application (prova.TestModule), 
Eclipse 
gives me these errors (and the gwt application obviously doesn't start):

Publishing failed with multiple errors
  Resource '/bg-
gwt/build/gwt/prova.TestModule/334D0B4A46FADB9F7D8738C654A85F64.cache.js' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/334D0B4A46FADB9F7D8738C654A85F64.cache.xml' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/391192C1D8DCA1A5675AFEF0AF26E311.cache.js' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/391192C1D8DCA1A5675AFEF0AF26E311.cache.xml' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/501691446BE2E26EEBA0400DCBEB4A00.cache.js' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/501691446BE2E26EEBA0400DCBEB4A00.cache.xml' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/7E564F63A450DF5FD8BC315A9166A97A.cache.html' 
does not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/7E564F63A450DF5FD8BC315A9166A97A.cache.js' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/7E564F63A450DF5FD8BC315A9166A97A.cache.xml' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/DE5D8E843D2601672E151EEABA769587.gwt.rpc' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/FF2E9B8421170D982C0BD7517493BA35.cache.html' 
does not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/FF2E9B8421170D982C0BD7517493BA35.cache.js' does 
not 
exist.
  Resource '/bg-
gwt/build/gwt/prova.TestModule/FF2E9B8421170D982C0BD7517493BA35.cache.xml' does 
not 
exist.
  Resource '/bg-gwt/build/gwt/prova.TestModule/gwt.js' does not exist.
  Resource '/bg-gwt/build/gwt/prova.TestModule/prova.TestModule-xs.nocache.js' does 
not exist.
  Resource '/bg-gwt/build/gwt/prova.TestModule/prova.TestModule.nocache.js' does not 
exist.

Original comment by fabrit...@gmail.com on 13 Jun 2008 at 9:57

GoogleCodeExporter commented 9 years ago
fabrition,

>  Resource '/bg-gwt/build/gwt/prova.TestModule/gwt.js' does not exist.

AFAIK, gwt.js is available only in GWT 1.4. It should not be present in 1.5. 
You say
it works fine with 1.4. Can you verify this?

Original comment by grprakash on 22 Jun 2008 at 2:37

GoogleCodeExporter commented 9 years ago
>AFAIK, gwt.js is available only in GWT 1.4. It should not be present in 1.5. 
You say
>it works fine with 1.4. Can you verify this?

What have i to verify? I don't understand..
Where have i to search for that file? 

Original comment by fabrit...@gmail.com on 23 Jun 2008 at 8:58

GoogleCodeExporter commented 9 years ago
Hi

I have the same problem with 
"org.eclipse.jdt.internal.compiler.Compiler.<init>"

It appears with GWT 1.5 and cypal studio RC7
When i follow the Sebastien's indications, it's ok but like Fabrition :
    Tomcat can't now compile jsp pages
When I used the GWT 1.4 I didn't have this problem

Original comment by erwan.daubert on 27 Jun 2008 at 11:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

I have the same problem. I guest it is caused by the build path order?

As we also use JasperReport in our projects, I hope it could be fixed as soon 
as possible.

Original comment by zf1...@gmail.com on 21 Jul 2008 at 1:51

GoogleCodeExporter commented 9 years ago
I think you can fix this by simply moving the GWT jars above the Web App 
libraries in
the "Order and Export" menu in project build path properties.

Original comment by clive%pl...@gtempaccount.com on 8 Aug 2008 at 11:29

GoogleCodeExporter commented 9 years ago
I, too, see this.
env:  windows xp, eclipse 3.4, jdk 1.5.0_15, cypal-studio-for-gwt-RC9, tomcat 
5.5.25,
gwt 1.5 RC2.
steps: make new dynamic web project.  Choose "Cypal Studio for GWT" 
configuration. 
import "hello" gwt sample.  Clean project to trigger a gwt build. get the build 
error
mentioned.
If I use tomcat 5.5.26 instead, everything's ok.

Original comment by raphael....@gmail.com on 22 Aug 2008 at 9:20

GoogleCodeExporter commented 9 years ago
I tried today with several combinations of tomcat (5.5.20, 5.5.25, 5.5.26, 
6.0), 
trying to put the GWT jars up in the "Order And Export" tab, using the last 
release 
of Cypal Studio (released 4 days ago) and GWT (1.5.2). 
The problem remains and i can't still use GWT 1.5!

Original comment by fabrit...@gmail.com on 2 Sep 2008 at 10:23

GoogleCodeExporter commented 9 years ago
Yes,really, when change your Tomcat from 5.5.25 to 5.5.26, it will work pretty 
well.

Thanks to the comments from raphael.berbain

Original comment by seu040...@gmail.com on 7 Sep 2008 at 1:15

GoogleCodeExporter commented 9 years ago
Excuse me for the previous post: i only tried to change the server and build 
the same 
project on that server (and this doesn't succeed), while i had to re-create the 
project with the new settings (and so it succeeds :-)).
That's all right with Tomcat 5.5.26, really thanks to raphael.berbain...
Thank you all,
Fabrition.

Original comment by fabrit...@gmail.com on 11 Sep 2008 at 8:42

GoogleCodeExporter commented 9 years ago
I create new Dinamic Project, with Cypal facelets, and copy the files create by 
the
gwt/ApplicationCreator into project directory.
When i clean project, i receive this message:

         Searching for resources within
file:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/ext/sunjce_provider.jar
            Indexing zip file:
/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/ext/sunjce_provider.jar
Exception in thread "main" java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/comp
iler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolic
y;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/inter
nal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFacto
ry;)V
    at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>(JdtCompiler.java:93)
    at com.google.gwt.dev.javac.JdtCompiler.<init>(JdtCompiler.java:231)
    at com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:193)
    at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:115)
    at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
    at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
    at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)

And the project dont publish.
But, if i compile the project using the file generated by gtw, this works fine.

Original comment by eduardoj.moreira on 19 Jan 2009 at 3:44