The moose likes Spring and the fly likes Problem with classloader with jaxb, spring, websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Problem with classloader with jaxb, spring, websphere" Watch "Problem with classloader with jaxb, spring, websphere" New topic
Author

Problem with classloader with jaxb, spring, websphere

Iii Aaa
Greenhorn

Joined: Aug 17, 2011
Posts: 3
Hi,

I'm having some troubles. Maybe someone can give me a hint how to solve these problems.
I'm using the spring framework with in which the jaxb2marshaller is used. I added another project that uses jaxb. Because of some issues I had to change the classloader policy to prefer the local classloader. Now I'm getting exceptions. How can I approach this?


Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2147

Hey, champ!

How are you defining this "jaxb2marshaller" bean in your spring-config.xml file?


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Iii Aaa
Greenhorn

Joined: Aug 17, 2011
Posts: 3
hey roberto,

the bean is defined like this:



it worked just fine, but after adding this other project I started having problems. this project is also in need of jaxb and comes with its own "jaxb-impl.jar".
 
 
subject: Problem with classloader with jaxb, spring, websphere
 
Threads others viewed
java.lang.VerifyError,runtime exception,can anyone explain when or why get this runtime exception
A problem apear on weblogic 10.3,but tomcat is worked
A problem apear on weblogic 10.3,but tomcat is worked
Linkage error in Jboss 4 & 3.2.7 when using Jaxb2
Problem with classloader with jaxb, spring, websphere
IntelliJ Java IDE