• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

HTTP Status 503 - Servlet action is currently unavailable

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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="jdbc:odbc: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.
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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">
 
reply
    Bookmark Topic Watch Topic
  • New Topic