aspose file tools
The moose likes Struts and the fly likes 500 error in struts 2.0 login application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "500 error in struts 2.0 login application" Watch "500 error in struts 2.0 login application" New topic
Author

500 error in struts 2.0 login application

Vishwas Tyagi
Greenhorn

Joined: May 08, 2011
Posts: 4
hi to all, i am making a simple login application
when i run my simple login application i get error
my simple login application takes username and password from user on login.jsp page ,validate it in Action class and open, the adminhome.jsp page on sucess and invalid.jsp page on failure using struts.xml.
i used titles(2.0.1) in adminhome.jsp by the help of tiles.xml
when i make request of login.jsp page from browser it shows this error.

Error 500--Internal Server Error
java.lang.NullPointerException
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:54)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
at jsp_servlet.__login._jsp__tag0(__login.java:116)
at jsp_servlet.__login._jspService(__login.java:87)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)








i have also cheked FAQ but that did not assist me.
Please help if anyone know answer.
Immediate help required.


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: 500 error in struts 2.0 login application
 
Similar Threads
java.net.SocketException: Broken pipe
struts2 error
Error in mapping
java.lang.ClassCastException: Model.Employee cannot be cast to Model.Employee
Error creating bean