You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sohil Rupani <so...@gslab.com> on 2008/01/09 04:59:02 UTC
Servlet /struts threw load() exception
hi , i m getting the following error
of which i understand there might be a problem with my struts-config file
but i checked it and couldn fine any
i m using struct 1.3.8
below i have pasted my structs-config file
SEVERE:
javax.servlet.UnavailableException: Parsing error processing resource
path jndi:
/localhost/struts/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionSe
rvlet.java:774)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<form-beans>
<form-bean name="registerForm" type="RegisterForm"/>
</form-beans>
<action-mappings>
<action path="/struts" type="RegisterAction" name="registerForm">
<forward name="success" path="/success.vm"/>
<forward name="failure" path="/failure.vm"/>
</action>
</action-mappings>
</struts-config>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Servlet /struts threw load() exception
Posted by Laurie Harper <la...@holoweb.net>.
Sohil Rupani wrote:
> hi , i m getting the following error
> of which i understand there might be a problem with my struts-config file
> but i checked it and couldn fine any
>
> i m using struct 1.3.8
> below i have pasted my structs-config file
>
> SEVERE: javax.servlet.UnavailableException: Parsing error
> processing resource path jndi:
> /localhost/struts/WEB-INF/struts-config.xml
> at
> org.apache.struts.action.ActionServlet.handleConfigException(ActionSe
> rvlet.java:774)
>
>
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
> "http://struts.apache.org/dtds/struts-config_1_3.dtd">
> <struts-config>
>
> <form-beans>
> <form-bean name="registerForm" type="RegisterForm"/>
> </form-beans>
>
>
> <action-mappings>
> <action path="/struts" type="RegisterAction" name="registerForm">
> <forward name="success" path="/success.vm"/>
> <forward name="failure" path="/failure.vm"/>
> </action>
>
> </action-mappings>
> </struts-config>
What you pasted here looks OK after a quick visual scan. Try using an
XML validation tool to check it against the DTD, though. And check your
logs to see if there's any additional information; there should be
something in there describing what the parsing error was.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org