This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
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: 2258
    
    3

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".
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with classloader with jaxb, spring, websphere
 
Similar Threads
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
Problem with classloader with jaxb, spring, websphere
A problem apear on weblogic 10.3,but tomcat is worked
Linkage error in Jboss 4 & 3.2.7 when using Jaxb2