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 16316] New: - DataSourceRealm can not find JNDI name in context
Date Wed, 22 Jan 2003 09:02:52 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=16316>.
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=16316

DataSourceRealm can not find JNDI name in context

           Summary: DataSourceRealm can not find JNDI name in context
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: 3ca28f66@mail.ru


Exception is

2003-01-22 11:12:54 DataSourceRealm[/esljsp]: Exception performing authentication
javax.naming.NameNotFoundException: Name java: 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 org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:463)
	at org.apache.catalina.realm.DataSourceRealm.start(DataSourceRealm.java:582)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3543)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

It is throwed _before_ <Resource ...> is processed, so it may be the issue, or
it might be different context/classloaders issue.
Various configurations tried -- DataSource resource declaration inside Context,
Host, Engine, GlobalNamingResource (with ResourceLink inside Context). It works
fine inside a test servlet -- javax.sql.DataSource is returned, but fails to be
found by Realm.

Realm declaration:
<Realm className="org.apache.catalina.realm.DataSourceRealm"
       dataSourceName="java:/comp/env/jdbc/esljsp"
       debug="99"
       userTable="T_USERS"
       userNameCol="NAME"
       userCredCol="PASSWORD"
       userRolesTable="T_USERROLES"
       roleNameCol="ROLENAME" />

Also, some stupid dataSourceName values tried:
* java:/comp/env/jdbc/esljsp
* /comp/env/jdbc/esljsp
* jdbc/esljsp

--
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