[jboss-user] [JBossCache] - Re: ClassCastException/instanceof fails when getting object

dode do-not-reply at jboss.com
Wed Oct 10 16:02:31 EDT 2007


You were absolutely right, that was an issue of different classloaders.
Since I have my webservice and the model classes in a WAR file, I just set UseJBossWebLoader to true in jbossweb-tomcat55.sar/META-INF/jboss-service.xml - and see there, it works!

But I wonder if setting UseJBossWebLoader to true is such a good idea, and I like your approach of putting the model classes in an EAR and the webapp in a WAR. But how would I create an EAR that contains nothing but my few class files? I tried to put both my classes as JAR and the WAR in an EAR and it deployed fine, but then I got an "...No ClassLoaders found for..." error when the cache unmarshalled my model class.

Anyway - Thanks, you already helped me a lot! Whenever you happen to be in the south of Sweden let me know, and I'll buy you a beer ;-)

Torsten

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093703#4093703

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093703



More information about the jboss-user mailing list