File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 503 - Servlet action is currently unavailable

 
Raghu Chandra
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please post your full struts-config.xml and web.xml, it seems there is no servlet action mapped.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try changing this
<data-source type="org.apache.commons.dbcp.BasicDataSource">

to
<data-source type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic