I'm using the EmbeddedTomcat service. Here's the ouput :
[EmbeddedTomcat] AdaptiveClassLoader( )
[EmbeddedTomcat] null
When I put jndi.properties into the conf dir I get :
[EmbeddedTomcat] AdaptiveClassLoader( )
[EmbeddedTomcat]
file:/home/rbackhouse/dev/jboss/dist/conf/jndi.properties
Additional Information :
I'm using apache struts for a jsp mvc framework. If you are familiar
with the architecture then
telling you that the InitalContext creation is in an Action class might
help.
Richard Backhouse
Oak Grove Software
Rickard Oberg wrote:
>
> Hi!
>
> > I have a class in a war file that does an Context ctx = new
> InitalContext() call
> > and it fails to pick up the jndi implementation details from the
> properties file
> > unless I move it to the conf directory. Use to work fine until the move of
> config
> > files to the default directory
>
> Are you using the EmbeddedTomcat service?
> Can you do (in your servlet):
> System.out.println(Thread.currentThread().getContextClassLoader());
> System.out.println(Thread.currentThread().getContextClassLoader().getResourc
> e("jndi.properties"));
>
> What is the result of the above?
>
> I have personally deployed an .ear file with servlets, and they have no
> trouble picking up jndi.properties properly with the new config.
>
> /Rickard