Hi Group:
Here is my system:
Windows NT4, JBoss-2.2.2_Tomcat-3.2.2, JDK1.3, Oracle 8i.
Here is my problem:
I am trying to set up simple or form based authentication in JBoss+Tomcat.
We have a custom module based on the petstore example which checks for user
Principle. Its value is returned null and an exception is thrown. I am
fairly clueless as to where to start setting the user/password. Can anyone
please point me to the right direction or documentation with an example of
setting this basic security?
I thank you in advance for your help.
Regards,
Jamal.
P.S. Here is the error which I get when I am trying to access an CMP Entity
bean which basically checks username and a password in the database.
[jamalcontroller] EJBControllerTemplate: setSessionContext()*
[jamalcontroller] JamalControllerBean: ejbCreate()
[EmbeddedTomcatSX] MainServletTemplate: checkForLogin()
[EmbeddedTomcatSX] User: null is authenticated
2001-08-02 02:56:29 - Ctx( /jamal ): Exception in: R( /jamal + /control +
/proce
ssAction) - java.lang.NullPointerException at
org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSec
urityMgrRealm.java:113) at
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.j
ava:837) at
org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341
) at
org.apache.tomcat.core.RequestImpl.getUserPrincipal(RequestImpl.java:359)
at org.apache.tomcat.facade.HttpServletRequestFacade.getUserPrincipal(Ht
tpServletRequestFacade.java:376)
at
com.infosphere.rage.framework.web.MainServletTemplate.checkForLogin(M
ainServletTemplate.java:89)
at
com.infosphere.rage.framework.web.MainServletTemplate.processPreproce
ss(MainServletTemplate.java:80)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:154
8)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Thread.java:484)
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user