google-code-export / cypal-studio

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

Unable to run GWT with Ganymede 3.4.2 / Cypal 1.0.0.200808282244 #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Dynamic Web project with Cypal Facet
2. Import a sample as described in the documentation
3. Right-click on the *.gwt.xml, Run as..., Run on server

What is the expected output? What do you see instead?

1st case: run as server
Expected output: 
 - compilation success in the console,
 - apache starts
 - I can see my sample GWT app in the browser window
Observed output:
 - error in compilation (window closes too fast to see what happens)
 - server starts, but no GWT app deployed
 - doing a dummy change to republish, I get the stack trace below:

Exception in thread "main" java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType()L
org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
    at
com.google.gwt.dev.jdt.TypeRefVisitor.maybeDispatch(TypeRefVisitor.java:178)
    at com.google.gwt.dev.jdt.TypeRefVisitor.endVisit(TypeRefVisitor.java:96)
    at
org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.traverse(
ParameterizedSingleTypeReference.java:222)
    at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclarati
on.java:210)
    at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.j
ava:1149)
    at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(Compil
ationUnitDeclaration.java:487)
    at
com.google.gwt.dev.javac.BinaryTypeReferenceRestrictionsChecker.findAllBinaryTyp
eReferenceSites(BinaryTypeReferenceRestrictionsChecker.java:144)
    at
com.google.gwt.dev.javac.BinaryTypeReferenceRestrictionsChecker.check(BinaryType
ReferenceRestrictionsChecker.java:114)
    at
com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits(Com
pilationUnitInvalidator.java:139)
    at
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:123)
    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)

2nd case: Gwt Hosted Mode application
 - right-click on module file, run-as, hosted application
 - I get the following stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/juli/logging/LogFactory
    at org.apache.catalina.core.StandardService.<clinit>(StandardService.java:56)
    at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.<init>(EmbeddedTomcatServer
.java:196)
    at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start(EmbeddedTomcatServer.
java:69)
    at com.google.gwt.dev.GWTShell.startUp(GWTShell.java:778)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:582)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 6 more

What version of the product are you using? On what operating system?
- Ganymede 3.4.2 Build id: M20090211-1700
- Cypal 1.0.0.200808282244
- Jboss Tools *-R200901280154
- Apache 6.0.14
- Windows XP SP2

Please provide any additional information below.

Original issue reported on code.google.com by vincent.girardreydet@gmail.com on 16 Mar 2009 at 4:56

GoogleCodeExporter commented 9 years ago
Issue similar to defect 113 (just seen it after posting, sorry).

I use the JDK 1.6.0_12.

Original comment by vincent.girardreydet@gmail.com on 16 Mar 2009 at 4:58

GoogleCodeExporter commented 9 years ago
I noticed that this problem might occur if you use a target runtime (I used 
Tomcat
6.0). So, try to remove from your .classpath file the following line:
    <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtim
eTarget/Apache
Tomcat v6.0"/>

The .classpath file must look like:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="output" path="build/classes"/>
</classpath>

Original comment by s0c...@gmail.com on 4 Apr 2009 at 1:48