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 2011/11/10 02:03:19 UTC

DO NOT REPLY [Bug 52165] New: javax.naming.NameNotFoundException: Name is not bound in this Context

https://issues.apache.org/bugzilla/show_bug.cgi?id=52165

             Bug #: 52165
           Summary: javax.naming.NameNotFoundException: Name  <name> is
                    not bound in this Context
           Product: Tomcat 6
           Version: 6.0.33
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: maksim.likharev@thomson.com
    Classification: Unclassified


note: names are obfuscated

<Context path="/my-web"  reloadable="true" useNaming="true">
  <ResourceLink global="jdbc/ttt" 
                name="jdbc/ttt"   
                type="javax.sql.DataSource" />

conf/server.xml

<Resource
  name="jdbc/ttt"
  type="javax.sql.DataSource"
....

name lookup:
Caused by: javax.naming.NameNotFoundException: Name ttt is not bound in this
Context
        at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)


works on tomcat 6.0.32 and all versions bellow

this is NOT something that you expect upgrading to new minor release.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 52165] javax.naming.NameNotFoundException: Name is not bound in this Context

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52165

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Mark Thomas <ma...@apache.org> 2011-11-30 20:58:27 UTC ---
No further information provided. Looks like a configuration issue. The users
list is the place to continue this until such time as there is a confirmed
Tomcat bug.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 52165] javax.naming.NameNotFoundException: Name is not bound in this Context

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52165

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> 2011-11-10 01:20:06 UTC ---
If you are able to reproduce this with a simple example on a clean Tomcat
installation, then attach configuration file + code + source code here.

<ResourceLink> is used a lot. The only unusual thing in your report is that you
define <Context> element inside server.xml, instead of using a separate XML
file like most people do.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 52165] javax.naming.NameNotFoundException: Name is not bound in this Context

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52165

--- Comment #2 from maxie <ma...@thomson.com> 2011-11-10 04:09:26 UTC ---
plain vanila simple example works, real app consistently doesn't, I wonder if
spring context somehow affecting this. I'll try to comeup with the example.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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