Hi Cgrifith
Sorry to trouble u once again
I have encountered some problem with the login in struts
I had made necessary changes to include <transport-guarantee>
and login-config to include the user properties
but the <form-login-config>
  <form-login-page>/display.jsp</form-login-page> 
  <form-error-page>/error.jsp</form-error-page> 
  </form-login-config>
  </login-config>
is forcing it to go to the pages which i give in form-login-page
 instead it should go
to NameAction which extends Action and based on the logic there
i should go to the required success or error page
and iam not understanding the importance if <form-login-config>
like if i remove the lines
 <form-login-config>
  <form-login-page>/display.jsp</form-login-page> 
  <form-error-page>/error.jsp</form-error-page> 
  </form-login-config>
  </login-config>

i get  the exceptions


18:59:15,687 WARN  [FormAuthenticator] Unexpected error forwarding to login page
java.lang.NullPointerException
        at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
        at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)


Could you please help me resolve this

Regards
Bhanu

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954017#3954017

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954017

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to