Parsing error processing resource path /WEB-INF/struts-config.xml


I am using struts to develop an apps.
I get the following error while trying to load the application.


issue 1 : org.xml.sax.SAXParseException; systemId: jndi:/project/WEB-INF/struts-config.xml;  The end-tag for element type "action" must end with a '>' delimiter.

issue 2 :  javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml


SOLUTION :-  

One thing i know that parsing error means that Struts couldn't parse one or more of config xml files. From the message, it sounds like the problem is in the struts-config.xml;
After doing long R&D, I found that i have done small mistake while configuring struts-config.xml;

My struts-config.xml :-

 <action-mappings>
        <action
            path="/Welcome"
type="*****.Action"
scope="request"
validate="true">
            <forward name="success" path="/**.do?reqCode=**"/>
         </action>
          ...................
          ...................
          ...................
           <action
            path="/home"
type="*****.Action"
scope="request"
validate="true">
            <forward name="success" path="/**.do?reqCode=**"/>
          ...................
          ...................
          ...................
          ...................
             <action
            path="/main"
type="*****.Action"
scope="request"
validate="true">
            <forward name="success" path="/**.do?reqCode=**"/>
          </action>
          ...................
 </action-mappings>



so from above struts-config.xml; you also understand that at 
<action
            path="/home"
type="*****.Action"
scope="request"
validate="true">
            <forward name="success" path="/**.do?reqCode=**"/>
</action>  -- I forgot to close action tag.

And this works  for me...

Comments

Popular posts from this blog

SOLVED :- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Bresenham line drawing algorithm in java

dda line drawing algorithm in java