You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/11/10 03:56:08 UTC

DO NOT REPLY [Bug 24549] New: - JNDI lookup failuring during servlet init.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24549>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24549

JNDI lookup failuring during servlet init.

           Summary: JNDI lookup failuring during servlet init.
           Product: Tomcat 4
           Version: 4.1.29
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: daniels@pronto.com.au


I currently have an app which is running fine on my windows desktop running
Tomcat 4.1.24, but is falling over now that I'm moving it to Tomcat 4.1.29
running on AIX. It seems that I can no longer get to the java:comp context from
the servlet initialisation.

    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");

results in:

javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
	at javax.naming.InitialContext.lookup(InitialContext.java:359)
... lines removed here ...
        at com.pronto.presentation.EProntoController.init(EProntoController.java:32)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
... lines removed here ...

I will upgrade my tomcat 4.1.24 to 4.1.29 on my workstation to see if this is
platform or version specific (I'm guessing version...).

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org