aspose file tools*
The moose likes Struts and the fly likes problem while starting the tomcat at struts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem while starting the tomcat at struts-config" Watch "problem while starting the tomcat at struts-config" New topic
Author

problem while starting the tomcat at struts-config

Raveendra Mutyala
Greenhorn

Joined: Sep 10, 2005
Posts: 13
hi friends,
i had done an application related to struts in WSAD5.1.2 and wanted to run the same application on tomcat. so i had created a war file and deployed on tomcat. then it is raising and exception as follows:

Feb 3, 2006 2:22:51 PM org.apache.struts.action.ActionServlet handleConfigException
SEVERE: Parsing error processing resource path
java.net.MalformedURLException: Path WEB-INF/struts-config.xml does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:522)
at org.apache.catalina.core.ApplicationContextFacade.getResource(ApplicationContextFacade.java:233)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1002)
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:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1033)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3814)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:868)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:852)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:319)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:589)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:954)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:792)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)


i had tried to solve it, but could not get the solution.

Awaiting for your valuable replies..
Thanking you,
From ur true friend..
Lalitha Vydyula
Ranch Hand

Joined: Jul 20, 2005
Posts: 69
In web.xml you path for struts-config.xm should start with a "/"(front slash)

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

Joined: Sep 10, 2005
Posts: 13
Thank You Very much .. for ur reply........
Lalitha Vydyula
Ranch Hand

Joined: Jul 20, 2005
Posts: 69
Did it work though
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while starting the tomcat at struts-config
 
Similar Threads
problem with auto reconnect
Struts 1.1 - Tomcat 4.1.30 deployment problem
strange error with respect to web.xml file
ClassNotFoundException while running jdbc program
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource