Posts

Showing posts with the label Struts

Solved - HTTP Status 500 - No action instance for path /Login could be created

Solution :- Don't  use the pakage name as java or sun. use something else. Due to security issues, don't start your package name with java and/or sun word. PFB. Actual Problem :-  I am running the tomacat server its perfectly working and welcome file is displayed. But on submitting login form with user name & password ,  following error is given in browser. " HTTP Status 500 - No action instance for path /login could be created " Code of Struts-config.xml :-  <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts-config PUBLIC           "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"           "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> <struts-config>     <form-beans>         <form-bean name="LoginForm" type="org.apache.struts.validator.DynaValidatorForm">       ...

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">             ...