Hi,
I'm using JBoss-2.2.1 w/ the embedded Tomcat that comes with the release
(3.2.1) on Win2000, and MySQL.
I'm using Basic Authentication but to a DB instead of the prop files.
My app uses frames with each frame calling a servlet which attaches to
action classes which call stateless session beans. The start page has a
tree navigation tool on one side, and an entry page on the other with some
info based on who the user is.
Everything works fine when my initial page has only one frame calling the
servlet, so I'm pretty sure I have everything configured correctly. I get
very odd behavior when both frames are hitting different session beans at
the same time (which really only happens on the initial login).
After login, depending on which frame gets 'there' first, a Security
Exception is thrown, and the other frame builds correctly. What I mean by
'get there first', is that the next time I recreate, the other frame fails
(with the same exception) while the original frame that failed builds
correctly. All subsequent logins work fine until I restart JBoss.
I'm not sure what info to include, so I'll start with the stack trace.
Any help would be appreciated.
Alex
[ERROR] Mon May 21 09:18:23 EDT 2001--
java.rmi.ServerException: Container exception. Notify the container
developers :-); nested exception is:
java.lang.SecurityException: Configuration Error:
Line 55: expected '=', found 'null'
java.lang.SecurityException: Configuration Error:
Line 55: expected '=', found 'null'
at
com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.j
ava:221)
at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:266)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:380)
at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityMana
ger.java:331)
at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityMana
ger.java:301)
at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.j
ava:193)
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:209)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:144)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
.java:253)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:436)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
at $Proxy10.create(Unknown Source)
at com.rubicon.quaestor.action.Command.getCustomerManager(Command.java:144)
at com.rubicon.quaestor.action.EntryCommand.build(EntryCommand.java:84)
at com.rubicon.quaestor.action.EntryCommand.exec(EntryCommand.java:62)
at
com.rubicon.quaestor.QuaestorServlet.processRequest(QuaestorServlet.java:107
)
at
com.rubicon.quaestor.QuaestorServlet.handleRequest(QuaestorServlet.java:42)
at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
24)
at
org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:285)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)
[ERROR] Mon May 21 09:18:23 EDT 2001--Received remote exception from server:
[ERROR] Mon May 21 09:18:23 EDT 2001--
java.rmi.ServerException: Container exception. Notify the container
developers :-); nested exception is:
java.lang.SecurityException: Configuration Error:
Line 55: expected 'module class name', found 'null'
java.lang.SecurityException: Configuration Error:
Line 55: expected 'module class name', found 'null'
at
com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.j
ava:221)
at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:266)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:380)
at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityMana
ger.java:331)
at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityMana
ger.java:301)
at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.j
ava:193)
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:209)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:144)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
.java:253)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:436)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
at $Proxy11.create(Unknown Source)
at com.rubicon.quaestor.action.Command.getSettingsManager(Command.java:68)
at
com.rubicon.quaestor.action.TreeCommand.getLocations(TreeCommand.java:154)
at com.rubicon.quaestor.action.TreeCommand.build(TreeCommand.java:137)
at com.rubicon.quaestor.action.TreeCommand.exec(TreeCommand.java:71)
at
com.rubicon.quaestor.QuaestorServlet.processRequest(QuaestorServlet.java:77)
at
com.rubicon.quaestor.QuaestorServlet.handleRequest(QuaestorServlet.java:42)
at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
24)
at
org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:285)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)
Server.xml
<RequestInterceptor
className="org.apache.tomcat.request.JDBCRealm"
debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/customer?user=aradka"
connectionPassword="atog8r"
userTable="User"
userNameCol="username"
userCredCol="password"
userRoleTable="roles"
roleNameCol="role" />
<!-- JBoss, Map the current web user to the SecurityAssociation
principal.
This needs to be after the tomcat Realm interceptor that is used
to
authenticate web users.
-->
<RequestInterceptor className="org.jboss.tomcat.security.JbossRealm"
/>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user