| Author |
HTTP Status 503 - Servlet action is currently unavailable
|
Raghu Chandra
Greenhorn
Joined: Apr 25, 2010
Posts: 1
|
|
Hi
I am seeing the following error when I tried to deploy a Struts application in Apache-Tomcat:-
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/6.0.18
Following is one of the Message that was shown in logs(C:\apache-tomcat-6.0.18\logs)
Apr 25, 2010 7:52:49 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Apr 25, 2010 7:52:49 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /p2pms threw load() exception
javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812) ........
The following the data source that is being used as defined in the struts-config.xml
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="sun.jdbc.odbc.JdbcOdbcDriver"/>
<set-property property="url" value="jdbc dbc:MISSERVER"/>
<set-property property="username" value="Admin"/>
<set-property property="password" value="123"/>
</data-source>
I tried to connect to the MySql database but found no Luck.
Any suggestions will be appreciated..
Thanks & Regards,
Raghu.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
|
can you please post your full struts-config.xml and web.xml, it seems there is no servlet action mapped.
|
Regards, Prasad
SCJP 5 (93%)
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
try changing this
<data-source type="org.apache.commons.dbcp.BasicDataSource">
to
<data-source type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
|
 |
 |
|
|
subject: HTTP Status 503 - Servlet action is currently unavailable
|
|
|