I recently downloaded JBoss-2.2.2 w/bundled
Tomcat-3.2.1. I am running it on Win98.

When I try to run the Tomcat sample jsp called
"security" (this sample performs some basic user
authentication) I get the following message in my
JBoss server window:

[EmbeddedTomcatSX] Error during authenticate
[EmbeddedTomcatSX] javax.naming.NameNotFoundException:
env not bound
[EmbeddedTomcatSX]      at
org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
[EmbeddedTomcatSX]      at
org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
[EmbeddedTomcatSX]      at
org.jnp.server.NamingServer.getObject(NamingServer.java:487)
[EmbeddedTomcatSX]      at
org.jnp.server.NamingServer.lookup(NamingServer.java:253)
[EmbeddedTomcatSX]      at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
[EmbeddedTomcatSX]      at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457)
[EmbeddedTomcatSX]      at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
[EmbeddedTomcatSX]      at
javax.naming.InitialContext.lookup(InitialContext.java:350)
[EmbeddedTomcatSX]      at
org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:102)
[EmbeddedTomcatSX]      at
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
[EmbeddedTomcatSX]      at
org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
[EmbeddedTomcatSX]      at
org.jboss.tomcat.security.JBossSecurityMgrRealm.authorize(JBossSecurityMgrRealm.java:148)
[EmbeddedTomcatSX]      at
org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855)
[EmbeddedTomcatSX]      at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:789)
[EmbeddedTomcatSX]      at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
[EmbeddedTomcatSX]      at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
[EmbeddedTomcatSX]      at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
[EmbeddedTomcatSX]      at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
[EmbeddedTomcatSX]      at
java.lang.Thread.run(Thread.java:484)

Tracing this down, we find the following code at line
102 of JBossSecurityMgrRealm:

EJBSecurityManager securityMgr = (EJBSecurityManager)
iniCtx.lookup("java:comp/env/security/securityMgr");

Apparently, the JBossSecurityMgrRealm is looking for a
SecurityManager bound to the JNDI name
java:comp/env/security/securityMgr. However, I can't
find any configuration files which perform such a
binding.

Can anyone shed some light on this situation? (I'm
pretty new to both JBoss and Tomcat, so forgive me if
I'm overlooking something obvious.) Also, has anyone
else successfully run this example in their
environment, or used any other of Tomcat's builtin
authentication mechanisms while bundled with JBoss?

Thanks,
-Greg Merrill


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to