Home  >  Forum  >  Spring
Post New Query

ClassNotFoundException: org.exolab.castor.xml.XMLClassDescriptorResolver


joined on
March 22,2015
Asked on March 25,2015
Hi Friends, I am learning Spring OXM and trying to resolve my dependency. 

MY build file is 

compile 'org.springframework.boot:spring-boot-starter:1.2.2.RELEASE'
compile 'org.springframework.ws:spring-oxm:1.5.10'
compile 'org.codehaus.castor:castor:1.3.3'

There is no compile time error but getting run time exception.


Caused by: java.lang.ClassNotFoundException: org.exolab.castor.xml.XMLClassDescriptorResolver
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)
... 40 more

joined on
November 09,2013
Replied on March 25,2015

You need castor-xml JAR.
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









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us