Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Mark Thomas
On 23/09/2011 05:37, Tim Watts wrote: > Wonderful. Thank You! > > You're right about / but I'm not sure all > standards conforming servlet containers are guaranteed to provide an > 'external override' behaviour. If the resource entry in web.xml is insufficient to fully configure the resource, the

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
Wonderful. Thank You! You're right about / but I'm not sure all standards conforming servlet containers are guaranteed to provide an 'external override' behaviour. On Fri, 2011-09-23 at 07:07 +0400, Konstantin Kolinko wrote: > 2011/9/22 Tim Watts : > > 6.0.33 > > > >name

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Konstantin Kolinko
2011/9/22 Tim Watts : > 6.0.33 >                        name="configName" >                value="${catalina.base}/local/xbasic/config/master.properties" >                description="Full path name of the config file." >                type="java.lang.String"/> > I got it to work by removing the

Re: RE:[OT][tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
On Thu, 2011-09-22 at 13:48 -0700, Leo Donahue - PLANDEVX wrote: > So what is the difference between having a or > in web.xml vs. a or elements > in META-INF/context.xml? Well for starters, the web.xml entries will work in all web containers whereas context.xml is Tomcat-specific. But the mai

RE:[OT][tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Leo Donahue - PLANDEVX
>-Original Message- >From: Tim Watts [mailto:t...@cliftonfarm.org] >Subject: RE: [tomcat-6.0.33] META-INF/context.xml Environment not >working > >I got it to work by removing the from web.xml. I believe >this is a regression because it works correctly under 5.5.17. U

RE: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
-09-22 at 09:10 -0700, Leo Donahue - PLANDEVX wrote: > >-Original Message- > >From: Tim Watts [mailto:t...@cliftonfarm.org] > >Subject: [tomcat-6.0.33] META-INF/context.xml Environment not working > > > >=== context.xml ===

RE: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Leo Donahue - PLANDEVX
>-Original Message- >From: Tim Watts [mailto:t...@cliftonfarm.org] >Subject: [tomcat-6.0.33] META-INF/context.xml Environment not working > >=== context.xml >antiResourceLocking="false" antiJARLocking="fa

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
Thank you. Good point but basically the same result: === EXCEPTION javax.servlet.ServletException: Failed initialization org.cliftonfarm.xbasic.Controller.init(Controller.java:32) javax.servlet.GenericServlet.init(GenericServlet.java

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Pid *
Why not do your initialisation in the Servlet.init() method? p On 22 Sep 2011, at 16:42, Tim Watts wrote: > Hello, > > My very basic servlet fails to initialize when trying to read its JNDI > environment entry. The app context name is xbasic. The context.xml is in > xbasic.war's META-INF direc

[tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
Hello, My very basic servlet fails to initialize when trying to read its JNDI environment entry. The app context name is xbasic. The context.xml is in xbasic.war's META-INF directory and TomCat (6.0.33) correctly copies it to ${tomcat.home}/conf/Catalina/localhost/xbasic.xml on first deploy. Below