aspose 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
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

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="jdbcdbc: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: 61768
    
  67

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 587
    
    3

can you please post your full struts-config.xml and web.xml, it seems there is no servlet action mapped.
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 587
    
    3

try changing this
<data-source type="org.apache.commons.dbcp.BasicDataSource">

to
<data-source type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 503 - Servlet action is currently unavailable