File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Forward - Servlet Action unavailable" Watch "Forward - Servlet Action unavailable" New topic

Forward - Servlet Action unavailable

hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30

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.




I think this is the import code.

In the Logfile exists the following message

I am using Tomcat 5.0.27

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"
<forward name="success" path="/employeelist.jsp"/>

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

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

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

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

Chad Shryock

Joined: Sep 08, 2004
Posts: 2
I found the answer at:
I agree. Here's the link:
subject: Forward - Servlet Action unavailable
It's not a secret anymore!