You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anita Raeppel <an...@yahoo.com> on 2004/01/20 01:10:13 UTC

PLEASE HELP!!!!

I am developing a new Struts Application.  I have
successfully been able to run the StrutsBlank example
following the instructions from a tutorial on the web.
  However when I try to execute my own project  I am
getting the following error message in the browser:



javax.servlet.ServletException: Cannot find message
resources under key org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)

org.apache.jsp.Login_jsp._jspService(Login_jsp.java:166)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Inside my JSP there are two lines of code which seem
to be causing this problem they are:

<%@ taglib uri="/WEB-INF/lib/struts-bean.tld"
prefix="bean" %>

<%@ taglib uri="/WEB-INF/lib/struts-html.tld"
prefix="html" %>

I am running Eclipse version 3.0
with a Tomcat Plugin version 5.0.16
and I using Struts version 1.1



My struts-config.xml is setup as the following:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software
Foundation//DTD Struts Configuration 1.1//EN"
                              
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>

	<!-- Data Sources -->
	<data-sources>
	</data-sources>

	<!-- Form Beans -->
	<form-beans>
	<form-bean name="LoginForm"
type="com.struts.rs.LoginActionForm"/>
	<form-bean name="DataActionForm"
type="com.struts.rs.DataActionForm"/>
	</form-beans>
	
	<!-- Global Forwards -->
	<global-forwards>
	<forward name="RSLogin" path="/Login.jsp"  />	
	<forward name="OppLog" path="/RSframe.jsp"  />	
    <forward name="EntryForm" path="/entryForm.jsp" 
/>	
	</global-forwards>
	
	
	<!-- Action Mappings -->
	<action-mappings>
    <action    path      = "/RSLogin"
               type      = "com.struts.rs.LoginAction"
               name      = "LoginForm"
               scope     = "request"
               validate  = "true"
               input     = "/Login.jsp"
     >
    <forward name="RSLogin" path="/Login.jsp"  />
    </action>

	
	<!-- Action Mappings -->

    <action    path      = "/RSframe"
               type      = "com.struts.rs.DataAction"
               name      = "DataActionForm"
               scope     = "request"
               validate  = "false"
               input     = "/RSframe.jsp"
     >
    <forward name="RSframe" path="/RSframe.jsp"  />
    </action>
    
    
    
     <action   path      = "/entryForm"
               type      = "com.struts.rs.EntryAction"
               name      = "DataActionForm"
               scope     = "session"
               validate  = "false"
               input     = "/entryForm.jsp"
     >
    <forward name="entryForm" path="/entryForm.jsp" 
/>
    </action>
   
	</action-mappings>

</struts-config>

and my web-xml file looks like :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
	<display-name>RS</display-name>
	<servlet>
		<servlet-name>action</servlet-name>
	
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    	<init-param>
            <param-name>application</param-name>
           
<param-value>com.struts.rs.resources.ApplicationResources</param-value>
        </init-param>
		<init-param>
			<param-name>config</param-name>
		
<param-value>WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
    	<welcome-file>Login.jsp</welcome-file>
	</welcome-file-list>
	<taglib>
		<taglib-uri>struts-bean.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-html.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-logic.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-template.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-template.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-nested.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-nested.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-tiles.tld</taglib-uri>
	
<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
	</taglib>
</web-app>

If anyone could help it would be greatly appreciated
:-)



__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: PLEASE HELP!!!!

Posted by Andrew Hill <an...@gridnode.com>.
If you want a proper answer give your message a proper subject. SHOUTING
like that without even indicating what area you are having problems in is
pretty much gauranteed to make most (not all luckily for you!) experienced
list members ignore your mail.

Please read:
http://www.catb.org/~esr/faqs/smart-questions.html
or to be specific about being specific...
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific


-----Original Message-----
From: Anita Raeppel [mailto:anitamarie77@yahoo.com]
Sent: Tuesday, 20 January 2004 08:10
To: struts-user@jakarta.apache.org
Subject: PLEASE HELP!!!!



I am developing a new Struts Application.  I have
successfully been able to run the StrutsBlank example
following the instructions from a tutorial on the web.
  However when I try to execute my own project  I am
getting the following error message in the browser:



javax.servlet.ServletException: Cannot find message
resources under key org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)

org.apache.jsp.Login_jsp._jspService(Login_jsp.java:166)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Inside my JSP there are two lines of code which seem
to be causing this problem they are:

<%@ taglib uri="/WEB-INF/lib/struts-bean.tld"
prefix="bean" %>

<%@ taglib uri="/WEB-INF/lib/struts-html.tld"
prefix="html" %>

I am running Eclipse version 3.0
with a Tomcat Plugin version 5.0.16
and I using Struts version 1.1



My struts-config.xml is setup as the following:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software
Foundation//DTD Struts Configuration 1.1//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>

	<!-- Data Sources -->
	<data-sources>
	</data-sources>

	<!-- Form Beans -->
	<form-beans>
	<form-bean name="LoginForm"
type="com.struts.rs.LoginActionForm"/>
	<form-bean name="DataActionForm"
type="com.struts.rs.DataActionForm"/>
	</form-beans>

	<!-- Global Forwards -->
	<global-forwards>
	<forward name="RSLogin" path="/Login.jsp"  />
	<forward name="OppLog" path="/RSframe.jsp"  />
    <forward name="EntryForm" path="/entryForm.jsp"
/>
	</global-forwards>


	<!-- Action Mappings -->
	<action-mappings>
    <action    path      = "/RSLogin"
               type      = "com.struts.rs.LoginAction"
               name      = "LoginForm"
               scope     = "request"
               validate  = "true"
               input     = "/Login.jsp"
     >
    <forward name="RSLogin" path="/Login.jsp"  />
    </action>


	<!-- Action Mappings -->

    <action    path      = "/RSframe"
               type      = "com.struts.rs.DataAction"
               name      = "DataActionForm"
               scope     = "request"
               validate  = "false"
               input     = "/RSframe.jsp"
     >
    <forward name="RSframe" path="/RSframe.jsp"  />
    </action>



     <action   path      = "/entryForm"
               type      = "com.struts.rs.EntryAction"
               name      = "DataActionForm"
               scope     = "session"
               validate  = "false"
               input     = "/entryForm.jsp"
     >
    <forward name="entryForm" path="/entryForm.jsp"
/>
    </action>

	</action-mappings>

</struts-config>

and my web-xml file looks like :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
	<display-name>RS</display-name>
	<servlet>
		<servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    	<init-param>
            <param-name>application</param-name>

<param-value>com.struts.rs.resources.ApplicationResources</param-value>
        </init-param>
		<init-param>
			<param-name>config</param-name>

<param-value>WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
    	<welcome-file>Login.jsp</welcome-file>
	</welcome-file-list>
	<taglib>
		<taglib-uri>struts-bean.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-html.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-logic.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-template.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-template.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-nested.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-nested.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>struts-tiles.tld</taglib-uri>

<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
	</taglib>
</web-app>

If anyone could help it would be greatly appreciated
:-)



__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org