Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

javax.servlet.UnavailableException?

Posted on 2006-04-26
8
Medium Priority
?
1,582 Views
Last Modified: 2008-01-09
Guys, I'm having problem deploying my application in jakarta-tomcat-4.1.30 and struts1.1.

when I access my apps its diplaying HTTP Status 503. here the stacktrace:

javax.servlet.UnavailableException: Parsing error processing resource path
      at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
      at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
      at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
      at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
      at org.apache.catalina.core.StandardService.start(StandardService.java:497)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Any idea?
0
Comment
Question by:rdy1437
6 Comments
 
LVL 11

Expert Comment

by:fargo
ID: 16543437
is the exception coming during the application startup OR when accessing some of the pages?
0
 

Author Comment

by:rdy1437
ID: 16549568
During application startup
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16552335
Try cleaning and re-building the whole application
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Expert Comment

by:fargo
ID: 16552419
check whether the struts-config file definition in web.xml under ActionServlet entry is correct or not? Like following is the entry for struts-config.xml

      <init-param>
         <param-name>config</param-name>
         <param-value>/WEB-INF/struts-config.xml</param-value>
      </init-param>

struts-config.xml should be there if u placed it under WEB-INF folder.
0
 

Author Comment

by:rdy1437
ID: 16559131
the web.xml is configured correctly, placed under WEB-INF. Quite weird because this application is running successfully on Resin. But when I moved it to tomcat, Im getting this error.
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 1000 total points
ID: 16560067
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question