PDA

View Full Version : ClassNotFoundException SimpleRemoteSSPFB... ?



netcam
Mar 11th, 2005, 12:42 PM
Can someone please describe exactly what the workaround is with Jboss concerning Spring/EJB and classloader issues?

No matter what I do I get this:

java.lang.ClassNotFoundException: org.springframework.ejb.access.SimpleRemoteStatele ssSessionProxyFactoryBean

Simple test, I've got a good spring setup, and was just ready to roll in some EJBs and voila! Now i've hit the dreaded Spring classloader issues.

Lets wrap this issue up and solve it right here, right now. Anyone?

robh
Mar 14th, 2005, 09:22 AM
Is it definitely that class that is missing and not some dependency?

You class name seems to be correct and as long as you have included it in your application I can see no reason why it wouldn't be picked up.


Rob

turtleD
Apr 12th, 2005, 04:04 AM
Any news on this topic?

I have exactly the same problem, but with the org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean class... :(

dejanp
Apr 12th, 2005, 06:25 AM
Any news on this topic?

I have exactly the same problem, but with the org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean class... :(

I don't think that's a Spring problem. JBoss classloading "strategy" is a collection of the wors.. errr... finest ideas ever that as a whole manage to create unexpected but highly exciting, often amusing and never boring end result that actually works. Sometimes. Often even without hours of voodoo invocations. Great if you want your server to keep you on your toes everytime you deploy something.

Try to put your spring.jar in the server/xyz/lib and do not pack it in wars/ears.

Andreas Senft
Apr 13th, 2005, 01:19 AM
I had a similar problem with SimpleRemoteStatelessSessionProxyFactoryBean (using JBoss 4.0.1). Scenario:
The ear contains the application's ejb.jar and all dependency jars (including spring).

Solution: I just added the dependency libs to the Class-Path in my application jar's manifest. After that everything was fine.

I just entered something like

Class-Path: spring.jar aopalliance.jar (etc.)

Regards,
Andreas