You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Sherman <ad...@teachandtravel.com> on 2002/10/25 16:41:45 UTC
Strange Parsing Error
I'm getting:
Oct 25, 2002 10:36:38 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 490 column 81: The string "--" is not
permitted within comments.
Then I get:
Oct 25, 2002 10:36:38 AM org.apache.struts.action.ActionServlet
initApplicationConfig
SEVERE: Parsing error processing resource path /WEB-INF/struts-config.xml
On startup of my struts app.
Thing is I dont' have 490 lines in my struts config.
Any ideas which file is causing the problem?
Thanks,
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Adam Sherman <ad...@teachandtravel.com>.
I rebuilt my lib directory, and the problem went away.
Weird.
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Adam Sherman <ad...@teachandtravel.com>.
Adam Sherman wrote:
> Oct 25, 2002 10:36:38 AM org.apache.struts.action.ActionServlet
> initApplicationConfig
> SEVERE: Parsing error processing resource path /WEB-INF/struts-config.xml
I'm using a validating parser on my config files, and it is happy. Could
this be an unrelated issue?
Thanks for anyones help,
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Adam Sherman <ad...@teachandtravel.com>.
Craig R. McClanahan wrote:
> The message is telling you exactly what's wrong. One way to cause this is
> to try a comment like this:
I have *no* comments in my config. Is it possible that another file is
the problem? Also, I do not have 490 lines.
Here's my struts-config.xml, verbatim:
<?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-beans>
<form-bean name="viewScheduleForm"
type="org.apache.struts.validator.DynaValidatorForm"
dynamic="true">
<form-property name="type" type="java.lang.String"/>
<form-property name="country" type="java.lang.String"/>
</form-bean>
<form-bean name="createUserForm"
type="org.apache.struts.validator.DynaValidatorForm"
dynamic="true">
<form-property name="emailAddress" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
</form-beans>
<global-exceptions>
</global-exceptions>
<global-forwards>
<forward
name="error"
path="main.error"/>
</global-forwards>
<action-mappings>
<action path="/view/schedule"
input="viewSchedule"
name="viewScheduleForm"
scope="request"
type="com.teachandtravel.presentation.actions.ViewScheduleAction"
validate="true">
<forward name="viewSchedule" path="/schedule/schedule.jsp"/>
<forward name="success" path="main.actions.forms.schedule"/>
</action>
<action path="/user/create"
input="createUser"
name="createUserForm"
scope="request"
type="com.teachandtravel.presentation.actions.CreateUserAction">
<forward name="createUser" path="main.actions.forms.user.create"/>
<forward name="success" path="createUser"/>
</action>
</action-mappings>
<controller>
<set-property property="inputForward" value="true"/>
</controller>
<message-resources parameter="resources.application"/>
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-debug" value="2" />
<set-property property="definitions-parser-details" value="0" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Adam Sherman <ad...@teachandtravel.com>.
Craig R. McClanahan wrote:
> The message is telling you exactly what's wrong. One way to cause this is
> to try a comment like this:
Still trying to track this down. Does anybody have some ideas?
Thanks,
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 25 Oct 2002, Adam Sherman wrote:
> Date: Fri, 25 Oct 2002 10:41:45 -0400
> From: Adam Sherman <ad...@teachandtravel.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Strange Parsing Error
>
> I'm getting:
>
> Oct 25, 2002 10:36:38 AM org.apache.commons.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 490 column 81: The string "--" is not
> permitted within comments.
>
The message is telling you exactly what's wrong. One way to cause this is
to try a comment like this:
<!-- ------------------------------------------- -->
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Adam Sherman <ad...@teachandtravel.com>.
Vikas Malla wrote:
> I had this error. I just got rid of the nested comments. try this on your struts-config.xml. see if this works in your case.
I removed *all* comments, still get the error. I think it's referring to
a different file...
Thanks,
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Strange Parsing Error
Posted by Vikas Malla <ma...@yahoo.co.in>.
I had this error. I just got rid of the nested comments. try this on your struts-config.xml. see if this works in your case.
Adam Sherman <ad...@teachandtravel.com> wrote:I'm getting:
Oct 25, 2002 10:36:38 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 490 column 81: The string "--" is not
permitted within comments.
Then I get:
Oct 25, 2002 10:36:38 AM org.apache.struts.action.ActionServlet
initApplicationConfig
SEVERE: Parsing error processing resource path /WEB-INF/struts-config.xml
On startup of my struts app.
Thing is I dont' have 490 lines in my struts config.
Any ideas which file is causing the problem?
Thanks,
A.
--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103
--
To unsubscribe, e-mail:
For additional commands, e-mail:
Post your ad on Yahoo! India Autos.Check out the used Maruti, Fiat and Ford models on sale now.