tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4356] New: - The JNDI namming is not working under apache webapp-module
Date Tue, 23 Oct 2001 03:59:34 GMT
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=4356>.
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=4356

The JNDI namming is not working under apache webapp-module

           Summary: The JNDI namming is not working under apache webapp-
                    module
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Sun
               URL: http://207.249.0.102:8080/examples/servlet/JndiServlet
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: serch@acme.com


Runing the example from tomcat it works:

http://207.249.0.102:8080/examples/servlet/JndiServlet
Simple lookup test : 
Max exemptions value : 15
list() on /comp/env Context : 
Binding : mail: org.apache.naming.NamingContext
Binding : maxExemptions: java.lang.Integer
Binding : minExemptions: java.lang.Integer
Binding : jdbc: org.apache.naming.NamingContext
Binding : ejb: org.apache.naming.NamingContext
Binding : name3: java.lang.Integer
Binding : foo: org.apache.naming.NamingContext
listBindings() on /comp/env Context : 
Binding : mail: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@45f743
Binding : maxExemptions: java.lang.Integer:15
Binding : minExemptions: java.lang.Integer:1
Binding : jdbc: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@18c56d
Binding : ejb: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@497934
Binding : name3: java.lang.Integer:1
Binding : foo: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@348197


But when I try it from the Appache webserver I get:

http://207.249.0.102/examples/servlet/JndiServlet

JNDI lookup failed : javax.naming.NameNotFoundException: Name maxExemptions is 
not bound in this Context
list() on /comp/env Context : 
Binding : mail: org.apache.naming.NamingContext
Binding : minExemptions: java.lang.Integer
Binding : jdbc: org.apache.naming.NamingContext
Binding : ejb: org.apache.naming.NamingContext
Binding : name3: java.lang.Integer
Binding : foo: org.apache.naming.NamingContext
listBindings() on /comp/env Context : 
Binding : mail: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@41b571
Binding : minExemptions: java.lang.Integer:1
Binding : jdbc: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@6f137d
Binding : ejb: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@687719
Binding : name3: java.lang.Integer:1
Binding : foo: 
org.apache.naming.NamingContext:org.apache.naming.NamingContext@632802

aren't they sharing the same context's
Y tried to find what's up
and what I've got is that from Apache I get only what is in the WEB-INF/web.xml 
but not what was stated in the server.xml

Mime
View raw message