This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes struts-config.xml parse error 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 » Java » EJB and other Java EE Technologies
Bookmark "struts-config.xml parse error" Watch "struts-config.xml parse error" New topic
Author

struts-config.xml parse error

Amit Gupt
Greenhorn

Joined: May 26, 2005
Posts: 4
Am getting this error in Tomcat logs :

servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3363)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3586)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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.main(Bootstrap.java:156)


I have been looking at my struts-config.xml for quite some time but cannot find any errors in the xml. My struts-config.xml looks like this :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ========== Form Bean Definitions ================================== -->
<form-beans>
<form-bean name="courseForm" type="blackboard.plugins.courseregistration.presentation.CourseForm" />
</form-beans>

<!-- ========== Action Mapping Definitions =============================== -->
<action-mappings>
<action
path="/course"
parameter="method"
type="blackboard.plugins.courseregistration.presentation.CourseAction"
name="courseForm"
scope="request"
input=""
validate="false">
<forward name="display" path="course_display.jsp" redirect="false"/>
<forward name="register" path="course_register.jsp" redirect="false"/>
</action>
</action-mappings>
</struts-config>

Can anyone tell me what the error is ? Any help is highly appretiated.


Amit
Gopi Kishore
Greenhorn

Joined: Sep 27, 2003
Posts: 15
Check xerces.jar is existing in ur lib directory
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts-config.xml parse error
 
Similar Threads
Struts-Config-xml Parsing error?
struts-config.xml parse error
Head First page 740 getting error in log file
Tomcat Error after moving from struts 1.1 to struts 1.3.10
getting error while loading action servlet for eg in the book Head First Servlet