Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forward - Servlet Action unavailable

 
hal arres
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<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.
 
hal arres
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try <forward name="employeelist" path="/EmployeeList.do"/>
 
Chad Shryock
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the same problem. Did anybody find a solution?

Thanks,
Chad.
 
Chad Shryock
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer at:
http://www.junlu.com/msg/88402.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic