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 5330] New: - JNDI ENC context problem.
Date Sun, 09 Dec 2001 04:53:46 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=5330>.
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=5330

JNDI ENC context problem.

           Summary: JNDI ENC context problem.
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: alexpavlov.geo@yahoo.com


I put some object into HttpSession. Object implements 
HttpSession listener, and should perform some 
operation on JNDI context. Everything work fine for 
method 'valueBound(HttpSessionBindingEvent event)', 
but if I try to work with with JNDI from  
method 'valueUnbound(HttpSessionBindingEvent event)', 
I've got NameNotFoundException: conext 'env' not bound.
This problem occusre when session expired. I didn't perform any action from 
custom thread, nor action during undeploing application.
here is log file:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
Bound into session: 04C46173A2F1381392C4C9A843D517F7
Is session new: true
Event name: TestSessionScopeJNDI
ClassLoader: WebappClassLoader
  available:
  delegate: false
  repositories:
    /WEB-INF/classes/
  required:
----------> Parent Classloader:
StandardClassLoader
  available:
  delegate: true
  repositories:
    file:F:\tools\catalina\classes\
    file:F:\tools\catalina\lib\jasper-compiler.jar
    file:F:\tools\catalina\lib\jasper-runtime.jar
    file:F:\tools\catalina\lib\naming-factory.jar
  required:
----------> Parent Classloader:
StandardClassLoader
  available:
    Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implement
ationVendorId=com.sun, implementationVersion=1.2, specificationVendor=Sun Micros
ystems, Inc., specificationVersion=1.2]
  delegate: true
  repositories:
    file:F:\tools\catalina\common\classes\
    file:F:\tools\catalina\common\lib\activation.jar
    file:F:\tools\catalina\common\lib\jdbc2_0-stdext.jar
    file:F:\tools\catalina\common\lib\jta.jar
    file:F:\tools\catalina\common\lib\mail.jar
    file:F:\tools\catalina\common\lib\naming-common.jar
    file:F:\tools\catalina\common\lib\naming-resources.jar
    file:F:\tools\catalina\common\lib\servlet.jar
    file:F:\tools\catalina\common\lib\tyrex-0.9.7.0.jar
    file:F:\tools\catalina\common\lib\xerces.jar
  required:
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@71732b




Unbound from session: 04C46173A2F1381392C4C9A843D517F7
Event name: TestSessionScopeJNDI
ClassLoader: StandardClassLoader
  available:
  delegate: true
  repositories:
    file:F:\tools\catalina\server\classes\
    file:F:\tools\catalina\server\lib\catalina.jar
    file:F:\tools\catalina\server\lib\jakarta-regexp-1.2.jar
    file:F:\tools\catalina\server\lib\servlets-common.jar
    file:F:\tools\catalina\server\lib\servlets-default.jar
    file:F:\tools\catalina\server\lib\servlets-invoker.jar
    file:F:\tools\catalina\server\lib\servlets-manager.jar
    file:F:\tools\catalina\server\lib\servlets-snoop.jar
    file:F:\tools\catalina\server\lib\servlets-webdav.jar
    file:F:\tools\catalina\server\lib\tomcat-ajp.jar
    file:F:\tools\catalina\server\lib\tomcat-util.jar
    file:F:\tools\catalina\server\lib\warp.jar
  required:
----------> Parent Classloader:
StandardClassLoader
  available:
    Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implement
ationVendorId=com.sun, implementationVersion=1.2, specificationVendor=Sun Micros
ystems, Inc., specificationVersion=1.2]
  delegate: true
  repositories:
    file:F:\tools\catalina\common\classes\
    file:F:\tools\catalina\common\lib\activation.jar
    file:F:\tools\catalina\common\lib\jdbc2_0-stdext.jar
    file:F:\tools\catalina\common\lib\jta.jar
    file:F:\tools\catalina\common\lib\mail.jar
    file:F:\tools\catalina\common\lib\naming-common.jar
    file:F:\tools\catalina\common\lib\naming-resources.jar
    file:F:\tools\catalina\common\lib\servlet.jar
    file:F:\tools\catalina\common\lib\tyrex-0.9.7.0.jar
    file:F:\tools\catalina\common\lib\xerces.jar
  required:
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@71732b


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:350)
        at JndiPrintBean.valueUnbound(JndiPrintBean.java:50)
        at org.apache.catalina.session.StandardSession.removeAttribute(StandardS
ession.java:1073)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.ja
va:596)
        at org.apache.catalina.session.StandardManager.processExpires(StandardMa
nager.java:755)
        at org.apache.catalina.session.StandardManager.run(StandardManager.java:
831)
        at java.lang.Thread.run(Thread.java:484)

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


Mime
View raw message