SEVERE: No action instance for path /Lookup could be created error
53442Mar 5 2004 — edited Mar 5 2004I am learning Struts via WROX Professional Jakarta Struts book and JDeveloper 10G Preview edition.
I have created the necessary classes and jsp pages for the Chapter 3 example but am getting the following error:
SEVERE: No action instance for path /Lookup ...
From searching google I see this can be because Struts can't find the class files. In a JDeveloper configuration, where would the class files reside in the standard project directories. The book references CATALINA directory entries.
My struts-config.xml file contains:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!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>
<form-beans>
<form-bean name="lookupForm" type="ch03.LookupForm"/>
</form-beans>
<action-mappings>
<action name="lookupForm" path="/Lookup" scope="request">
<forward name="success" path="/quote.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>
</struts-config>
My directory structure looks like:
StrutsBook01
--Chapter03
----classes
------ch03
--------LookupAction.class
--------LookupForm.class
----public_html
------WEB-INF
--------index.jsp
--------quote.jsp
My web.xml file looks like:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!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>
<description>WROX Struts Demo</description>
<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>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
<welcome-file>/quote.jsp</welcome-file>
<welcome-file>/index.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</web-app>
Any ideas are greatly appreciated!!!!
Regards,
Jeff