File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts error" Watch "struts error" New topic

struts error

jone wiilum
Ranch Hand

Joined: Mar 24, 2007
Posts: 49
i develope a simple login form in struts.
when i run from weblogic i get error

<Error> <HTTP> <BEA-101017> <[ServletContext(id=12055248,name=MyProject,context-path=/MyProject)] Root cause of ServletException.
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /login
at org.apache.struts.taglib.html.FormTag.lookup(
at org.apache.struts.taglib.html.FormTag.doStartTag(
at jsp_servlet.__login._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl$
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(

where my struts-config.xml file is
<data-sources />

<form-bean name="loginForm" type="my.LoginForm"></form-bean>

<global-exceptions />
<global-forwards />

path ="/userLoginAction"
<forward name="logSuccess" path="/login.jsp"/>
<forward name="home1" path="/home.jsp"/>

<message-resources parameter="my.ApplicationResources" />


how i can solve this problem?

Joined: Nov 08, 2004
Posts: 2
If error says that mapping "/login " could not found it means it is not declared in your xml file.
Your action tag should say something like this.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Please take the time to choose the correct forum for your posts. This forum is for questions on HTML and Javascript.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852


There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff
I agree. Here's the link:
subject: struts error
It's not a secret anymore!