This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » 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: 2212

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".
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with classloader with jaxb, spring, websphere
 
Similar Threads
Problem with classloader with jaxb, spring, websphere
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