I am deploying a GWT based web application. When I compile, I get no errors, but at runtime I get this (not full stack trace):
java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
at org.gvsig.remoteClient.sos.SOSClient.<init>(SOSClient.java:47)
at com.uji.project.server.ConnectServiceImpl.makeConnection(ConnectServiceImpl.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by:
Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
I read on this website that this is probably due to the fact that one or more classes are not available at runtime, but apparently the error is caused by some problem with the XML parser, but I have an XML parser included in my folder lib. In detail, in the lib project folder you can find 3 JAR files: gwt-maps.jar , gwt-servlet.jar and kxml2. jar * .
"kxml2.jar", org, xmlpull, v1 XmlPullParserException.class.
... , lib?