Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.DOMP
884272Aug 24 2011 — edited Aug 25 2011I am trying to put our application client on Java Web Start.
A lot of third party jar should be imported and the first jar is xerces.jar.
hope someone can help me out of this problem.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
at pc000.MapXML.<clinit>(MapXML.java:25)
at pc000.EnvironmentPC.setConfigInformation(EnvironmentPC.java:172)
at pc000.EnvironmentPC.initialize(EnvironmentPC.java:139)
at pc000.GCSPC.initializeProgram(GCSPC.java:17)
at pc000.GCSPC.main(GCSPC.java:11)
... 9 more
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.DOMParser
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
C:\GCS_JAVA\JavaWebStart\WebModule2\JavaWebStart.jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8083/WebModule2" href="JavaWebStart.jnlp">
<information>
<title>PC000</title>
<vendor>GCS</vendor>
<homepage href="JavaWebStart.html"/>
</information>
<security>
<all-permissions/>
</security>
<extension name="xerces.jar" href="xerces.jnlp"/>
<extension name="xerces.jar" href="xercesImpl.jnlp"/>
<resources>
<j2se version="1.5+"/>
<jar href="file:///c:/GCS_JAVA/JAVA/PC000/PC000.jar"/>
</resources>
<application-desc main-class="pc000.GCSPC"/>
</jnlp>
C:\GCS_JAVA\JavaWebStart\WebModule2\xerces.jnlp
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for activation.jar third party extension -->
<jnlp spec="1.0+" codebase="http://localhost:8083/WebModule2" href="xerces.jnlp">
<information>
<title>PC000</title>
<vendor>GCS</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="file:///c:/GCS_IMPORT/xerces.jar" />
</resources>
<component-desc/>
</jnlp>
C:\GCS_JAVA\JavaWebStart\WebModule2\xercesImpl.jnlp
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for activation.jar third party extension -->
<jnlp spec="1.0+" codebase="http://localhost:8083/WebModule2" href="xercesImpl.jnlp">
<information>
<title>PC000</title>
<vendor>GCS</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="file:///c:/GCS_IMPORT/xercesImpl.jar" />
</resources>
<component-desc/>
</jnlp>