Home  >  Forum  >  Spring
Post New Query

ClassNotFoundException: org.exolab.castor.xml.XMLException



Asked on March 25, 2015
While running my Spring OXM application,  I am getting error. Need help.

Caused by: java.lang.ClassNotFoundException: org.exolab.castor.xml.XMLException
at java.net.URLClassLoader$1.run(Unknown Source)
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)
... 46 more



Replied on March 26, 2015
Check the dependency for castor-xml API.
Use maven as 

<dependency>
<groupId>org.codehaus.castor</groupId>
<artifactId>castor-xml</artifactId>
<version>1.3.1</version>
</dependency>

Or Gradle as 

compile 'org.codehaus.castor:castor-xml:1.3.1'



Write Answer







©2019 concretepage.com | Privacy Policy | Contact Us