You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonathan Eric Miller <je...@uchicago.edu> on 2002/06/04 19:49:38 UTC

GlobalNamingResources element required in Tomcat 4.1.2?

I noticed that you will receive the following error if you do not have a
GlobalNamingResources element in your server.xml file for Tomcat 4.1.2.
IMHO, this tag shouldn't be required because sometimes you might not having
anything to put in that section. i.e. I want to use JNDIRealm, not the
UserDatabaseRealm, therefore, I don't really have anything that I need to
put in that section.

java.lang.NullPointerException
        at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingC
ontextListener.java:269)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:698
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Jon



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>