This content has been marked as final.
Show 2 replies
-
1. Re: JNDI bindings under java:comp not available when UseJBos
lev0207 Mar 27, 2006 2:19 PM (in response to matth3w)Was there any resolution to this problem. I'm seeing the same thing in my JBoss server!!
-
2. Re: JNDI bindings under java:comp not available when UseJBos
matth3w Mar 27, 2006 5:07 PM (in response to matth3w)"lev0207" wrote:
Was there any resolution to this problem. I'm seeing the same thing in my JBoss server!!
Resolution? No. But I will share some more info about my experience, and maybe it can help.
Things were going fine and dandy with UseJBossWebLoader=true, until I attempted to deploy Jetspeed2 alongside my app, and everything went bonkers. ClassNotFoundExceptions, IncompatibleClassChangeErrors, etc. I experimented with different combinations of UseJBossWebLoader, Java2ClassLoadingCompliance, and also using custom loader-repositories in jboss-app.xml and jboss-web.xml for my ears/wars, respectively.
I was never able to get Jetspeed2 working, but my app now works, and I actually have UseJBossWebLoader set to *false*. This somehow happened without me really noticing the significance. Now, the configuration seems to be the same as the original state, but now my app (and java:comp/env in JNDI) works, when before it didn't.
The only difference that I notice is the value for FilteredPackages (in deploy/jbossweb/META-INF/jboss-service.xml). I believe that originally it was "javax.servlet,org.apache.commons.logging", but I have only "javax" instead of "javax.servlet". I did this while experimenting, and maybe it did the trick -- give it a try.