• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while running login.jsp in Struts 2 .The Struts dispatcher cannot be found.

 
Barnabas Jeremiah
Greenhorn
Posts: 26
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error while running my login.jsp I have put all the struts jars in WEB-INF/lib as well in WEB-INF/classes and also have set the path in startWeblogic.sh... I am using weblogic 12.0 versioned server....

The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:44)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:48)
at jsp_servlet._corebank._relation._osro.__login._jsp__tag0(__login.java:127)
at jsp_servlet._corebank._relation._osro.__login._jspService(__login.java:97)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3392)
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:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)



My struts.xml is



My Filter mapping in web.xml is

---------------------------------------





My login.jsp is




please someone help me...
Thanks in Advance...
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts tags don't work unless you put the request through Struts first.
 
Barnabas Jeremiah
Greenhorn
Posts: 26
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I think that I am so weak in Struts since I am a newbee to it.. please give a solution that how can i run a jsp to test the struts in a web logic server...
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like your application is set up right, but that you are trying to access login.jsp instead of login.action when you enter the URL in the web browser.
 
Lorenzo Kou
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, are you fixed it?

i touch the point 2~

I use Struts2 + Spring + ibatis +Weblogic12c
i try delete weblogic.xml,the issue are be fixed.
so you can try it.

but i don't know why!

so~~sorry.

if you have other solution,can mail to me?
kdxu11@gmail.com.
thank you so much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic