struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <r...@cruzio.com>
Subject Re: (newbie) Error when installed Struts 1.2
Date Sun, 02 Jan 2005 16:25:24 GMT
Sudheer,
Check your web.xml file. It appears that you are missing the servlet and 
servlet-mapping entries
for the ActionServlet.

   <servlet>
     <servlet-name>action</servlet-name>
     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
       <param-name>config</param-name>
       <param-value>/WEB-INF/struts-config.xml</param-value>
     </init-param>
     <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
     <servlet-name>action</servlet-name>
     <url-pattern>*.do</url-pattern>
   </servlet-mapping>

Regards,

Richard


At 12:24 AM 1/2/2005, you wrote:
>Hi,
>
>   My struts application shows the following two erros when I
>upgraded Struts 1.1 to 1.2. This was working fine under
>Struts 1.1. Also attached struts-config.xml and web.xml
>
>   Please help.
>
>   Thank you.
>
>Sudheer
>
>
>Error 1
>-------
>type : Status report
>
>message : Servlet action is not available
>
>description : The requested resource (Servlet action is not available) is 
>not available.
>
>
>Error 2
>-------
>
>javax.servlet.ServletException: Cannot find message resources under key 
>org.apache.struts.action.MESSAGE
> 
>org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
> 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
>  org.apache.jsp.general.users.login_jsp._jspService(login_jsp.java:114)
>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message