Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

struts error: HTTP Status 404 - Servlet action is not available

843841Jan 12 2005 — edited Apr 27 2008
Hi,
I am new to struts. I was hoping that someone could help me with an
error I get when trying to call an action (/searchAnnotation.do) from my
browser. When I make the call, this is the error I get:

HTTP Status 404 - Servlet action is not available
type: Status report
message: Servlet action is not available
description: The requested resource (Servlet action is not available) is
not available

I am using Apache Tomcat 5.5.4, Suse 9.0, Jakarta Struts 1.2.4

Here is the directory structure for my application:

/opt/tomcat/webapps/pseudomonas/WEB-INF/

classes/search/

SearchAnnotationAction.class
SearchAnnotationForm.class


lib/

catalina-root.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jstl.jar
standard.jar
struts.jar

The pertinent information from my web.xml file directly under WEB-INF:


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

<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

My struts-config.xml file in the same directory as web.xml:

<form-beans>
<form-bean
name="SearchAnnotationForm"
type="search.SearchAnnotationForm">
</form-bean>
</form-beans>

<action-mappings>
<action path="/searchAnnotation"
type="search.SearchAnnotationAction"
name="SearchAnnotationForm"
scope="request"
validate="false"
input="/search.jsp" />
<forward name="success" path="/searchResults.jsp"/>
</action>
</action-mappings>

Finally, a few points to note:
- I removed the validator and tiles plugins to rule out any chance
problems is caused by them.

- struts-examples and struts-blank applications work fine
- jsp pages in the pseudomonas application work fine
- no other info in logs/Catalina file other than "INFO: Servlet action
is currently unavailable"
Could any other unforseen problems associated with the ActionForm or
ActionClass classes I use contribute to this problem??
I appreciate any help you can provide.
Cheers,
Geoff
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2008
Added on Jan 12 2005
17 comments
4,169 views