File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes HTTP Status 503 - Servlet action is currently unavailable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTTP Status 503 - Servlet action is currently unavailable" Watch "HTTP Status 503 - Servlet action is currently unavailable" New topic
Author

HTTP Status 503 - Servlet action is currently unavailable

sonia selvam
Greenhorn

Joined: Mar 18, 2008
Posts: 8
HTTP Status 503 - Servlet action is currently unavailable

--------------------------------------------------------------------------------

type Status report

message Servlet action is currently unavailable

description The requested service (Servlet action is currently unavailable) is not currently available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9


here is my struts config code:


<?xml version="1.0" encoding="ISO-8859-1" ?>

<!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>
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="com.mysql.jdbc.Driver"/>
<set-property property="url" value="jdbc:mysql://localhost/employees"/>
<set-property property="username" value="root"/>
<set-property property="password" value="root"></set-property>
</data-source>
</data-sources>

<form-beans>
<form-bean name="employeeForm" type="com.wrox.EmployeeForm" />
</form-beans>

<global-forwards>
<forward name="employeelist" path="/EmployeeList"/>
</global-forwards>


<action-mappings>

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

<action path="/Add"
type="com.wrox.AddEmployeeAction"
name="employeeForm"
scope="request"
input="/AddEmployee.jsp"
validate="true">
<forward name="sucess" path="/EmployeeList.do"/>
<forward name="error" path="/AddEmployee.jsp" />
</action>
</action-mappings>

<plug-in className="com.strutsrecipes.hibernate.plugin.HibernatePlugin">
<set-property property="path" value="/hibernate.cfg.xml"/>
</plug-in>

</struts-config>
----------------------------------------------------------------------

any help would be highly appreciated

thankyou in advance
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Your struts-config seems to be fine by me.
It would be more helpful to identify the problem if you could post the URL you try to access and the exception stack trace that comes up on the Tomcat console.
[ March 27, 2008: Message edited by: Anirvan Majumdar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 503 - Servlet action is currently unavailable