aspose file tools*
The moose likes Struts and the fly likes Forward - Servlet Action unavailable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Forward - Servlet Action unavailable" Watch "Forward - Servlet Action unavailable" New topic
Author

Forward - Servlet Action unavailable

hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
Hi,

I am working with the book "Professional Jakarta Struts" but I have an Exception at one example and can't find the bug.

This is the Exception that occur:
The requested service (Servlet action is currently unavailable) is not currently available.

web.xml


struts-config.xml


index.jsp


EmployeeForm.java


EmployeeListAction.java


I think this is the import code.

In the Logfile exists the following message
log.txt


I am using Tomcat 5.0.27
j2sdk1.4.2_04

Maybe someone of you can help me.
thx Hal
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327

<action path="/EmployeeList" type="com.wrox.EmployeeListAction"
scope="request">
<forward name="success" path="/employeelist.jsp"/>
</action>


I don't know if this will fix your problem, but you should take out the 'scope="request"' attribute from your action. The scope attribute refers to the scope that an ActionForm should be placed into. Your action does not use a form as you defined it, so the scope attribute is probably causing a problem.


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
The scope attribute doesn't fix it.
I have no idea where the problem comes from.
Is it possible, that the parser throws just an exception but doesn't know where the real problem is. Maybe it is just a randomise parser exception?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Try <forward name="employeelist" path="/EmployeeList.do"/>


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chad Shryock
Greenhorn

Joined: Sep 08, 2004
Posts: 2
I am having the same problem. Did anybody find a solution?

Thanks,
Chad.
Chad Shryock
Greenhorn

Joined: Sep 08, 2004
Posts: 2
I found the answer at:
http://www.junlu.com/msg/88402.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forward - Servlet Action unavailable
 
Similar Threads
Tomcat Error after moving from struts 1.1 to struts 1.3.10
HTTP Status 503 - Servlet action is currently unavailable
Struts Configuration problem
Struts validation problem..
resource problem when deploying on weblogic