Posted By:
Sreevasan_K
Posted On:
Tuesday, August 23, 2005 02:12 PM
Hi Everybody I'm using Eclipse with Myeclipse plugin and running one web-proj(Employee list Application)....using Tomcat5 and i'm getting the error: 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.0.28 After that i tried with jboss...still i'm getting the same error. i checked web.xml and struts-config.xml files... Actually this a text book example... I'm giving the code for web
More>>
Hi Everybody
I'm using Eclipse with Myeclipse plugin and
running one web-proj(Employee list Application)....using Tomcat5 and i'm getting the error:
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.0.28
After that i tried with jboss...still i'm getting
the same error.
i checked web.xml and struts-config.xml files...
Actually this a text book example...
I'm giving the code for web.xml and
struts-config.xml,
if anybody can suggest me , what is wrong with the
code...
--------------------------
struts-config.xml:
---------------------------------
<?xml version="1.0" encoding="UTF-8"?>
Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
type="org.apache.commons.dbcp.BasicDataSource">
value="com.mysql.jdbc.Driver" />
value="jdbc:mysql://localhost/employees" />
value="root"/>
value="iiit123"/>
type="com.wrox.EmployeeForm" />
path="/EmployeeList"/>
type="com.wrox.EmployeeListAction"
scope="request" >
path="/employeelist.jsp"/>
type="com.wrox.AddEmployeeAction"
name="employeeForm"
scope="request"
input="/addemployee.jsp"
validate="true" >
path="/EmployeeList.do"/>
type="com.wrox.GetEmployeeAction"
name="employeeForm"
scope="request"
validate="false" >
path="/editemployee.jsp"/>
type="com.wrox.EditEmployeeAction"
name="employeeForm"
scope="request"
input="/editemployee.jsp"
validate="true" >
path="/EmployeeList.do"/>
type="com.wrox.DeleteEmployeeAction"
scope="request"
validate="false" >
path="/EmployeeList.do"/>
parameter="com.yourcompany.struts.ApplicationResources"
/>
-----------------------------
web.xml
---------------------------
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
action
org.apache.struts.action.ActionServlet
debug
5
config
/WEB-INF/struts-config.xml
detail
3
1
action
*.do
/index.jsp
------------------------------------
Thanks and regards
K Sreenivas
<<Less