aspose file tools*
The moose likes Struts and the fly likes Error while running login.jsp  in Struts 2 .The Struts dispatcher cannot be found.  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error while running login.jsp  in Struts 2 .The Struts dispatcher cannot be found.  " Watch "Error while running login.jsp  in Struts 2 .The Struts dispatcher cannot be found.  " New topic
Author

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

Barnabas Jeremiah
Greenhorn

Joined: Jul 05, 2012
Posts: 26

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...


Thanks with warm regards,
Barnabas Jeremiah
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Struts tags don't work unless you put the request through Struts first.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Barnabas Jeremiah
Greenhorn

Joined: Jul 05, 2012
Posts: 26

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

Joined: Oct 29, 2001
Posts: 8927
    
    9

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

Joined: Apr 27, 2013
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while running login.jsp in Struts 2 .The Struts dispatcher cannot be found.