|
|
Is this Maven 1 or Maven 2?
$ mvn -version
Maven version: 2.0.10
Java version: 1.6.0_11
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
What steps will reproduce the problem?
1. Install IBM Rational Application Developer 7.5.3 to location C:\Program
Files\IBM\SDP75
1. set JAVA_HOME to C:\Program Files\IBM\SDP75\jdk\
2. add C:\Program Files\IBM\SDP75\jdk\bin to system path
3. create pom.xml, that executes gwt-maven-plugin (see attachment)
4. execute mvn clean install
5. GWT Compiler throws exception java.lang.ClassNotFoundException:
_j2se_j9=71168
Workaround:
1. Change JAVA_HOME to sun jdk path:
d:\java\jdk\jdk_1.6.0_11
2. Change path in system path to path of sun jdk bin directory:
d:\java\jdk\jdk_1.6.0_11\bin
3. execute mvn clean install
4. application compiles without exception
What is the expected output? What do you see instead?
I expect sucessful compile of simple gwt app. Instead I get exception:
[INFO] Unpack native libraries required to run GWT
[INFO] auto discovered modules [si.kis.GWTPilot]
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module si.kis.GWTPilot
[INFO] Compiling 15 permutations
[INFO] Process output
[INFO] [ERROR] xxx
"main"java.lang.NoClassDefFoundError:
_j2se_j9=71168
[INFO] [ERROR] Caused by: java.lang.ClassNotFoundException:
_j2se_j9=71168
[INFO] [ERROR] at
java.net.URLClassLoader.findClass(URLClassLoader.java
:419)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:643)
[INFO] [ERROR] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
ava:345)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:609)
[INFO] [ERROR] Could not find the main class: _j2se_j9=71168. Program
wil
l exit.
[INFO] Process output
[INFO] [ERROR] xxx
"main"java.lang.NoClassDefFoundError:
_j2se_j9=71168
[INFO] [ERROR] Caused by: java.lang.ClassNotFoundException:
_j2se_j9=71168
[INFO] [ERROR] at
java.net.URLClassLoader.findClass(URLClassLoader.java
:419)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:643)
[INFO] [ERROR] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
ava:345)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:609)
[INFO] [ERROR] Could not find the main class: _j2se_j9=71168. Program
wil
l exit.
[INFO] Process output
[INFO] [ERROR] xxx
"main"java.lang.NoClassDefFoundError:
_j2se_j9=71168
[INFO] [ERROR] Caused by: java.lang.ClassNotFoundException:
_j2se_j9=71168
[INFO] [ERROR] at
java.net.URLClassLoader.findClass(URLClassLoader.java
:419)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:643)
[INFO] [ERROR] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
ava:345)
[INFO] [ERROR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:609)
[INFO] [ERROR] Could not find the main class: _j2se_j9=71168. Program
wil
l exit.
What version of the product are you using? On what operating system?
groupId: org.codehaus.mojo
artifactId: gwt-maven-plugin
version: 1.1
Please provide any additional information below.
When I tried to check if problem is really in jdk provider, I changed only
system path to sun jdk, but JAVA_HOME pointed to IBM SDK directory. Such
configuration also reproduces bug.
Only when I change both JAVA_HOME and system path so that they point to sun
jdk version application compiles without problems.
Problem was already identified on the internet without solution:
- http://osdir.com/ml/GoogleWebToolkit/2009-06/msg01274.html
- http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg19633.html
I guess it is reproducible for every gwt application, but I didn't check
it. If it will not be reproducible on developers environment I can include
stripped version of our app.
|