error: No action instance for path - struts
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andi_Schmid
Posted On:   Monday, August 18, 2003 02:01 AM

hello peole, I make an example for a login but it doesn't work. Everybody say: "look at your struts-config.xml" but i it is right. I got the error: type: Status report message: No action instance for path /logon could be created description: The server encountered an internal error (No action instance for path /logon could be created) that prevented it from fulfilling this request. down under my files, can someone help me? Andi struts-config.xml: ------------------------------------ <?xml version="1.0" encoding="ISO-8859-1" ?> "-//Apache Software Foundation//DTD Struts Configuration 1.0   More>>

hello peole,

I make an example for a login but it doesn't work.
Everybody say: "look at your struts-config.xml" but i it is right.
I got the error:
type: Status report

message: No action instance for path /logon could be created

description: The server encountered an internal error (No action instance for path /logon could be created) that prevented it from fulfilling this request.

down under my files, can someone help me?

Andi

struts-config.xml:
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>



"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">








type="logon.LogonAction"
name="logonForm"
input="/index.jsp"
scope="request"
validate="true"
>










-----------------------------


web.xml:
---------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>


PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



action
org.apache.struts.action.ActionServlet


application
logon.LogonResources



config
/WEB-INF/struts-config.xml


validate
true


1




action
*.do





index.jsp







/WEB-INF/app.tld
/WEB-INF/app.tld


/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld



   <<Less

Re: error: No action instance for path - struts

Posted By:   r_lin  
Posted On:   Sunday, August 24, 2003 07:53 PM

I had the same error and my problem was in my action class. In my case, I had extended off ValidatorAction (was creating from memory and since I was using the validator, thought I need this class) instead of Action.

Re: error: No action instance for path - struts

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, August 18, 2003 08:30 AM

You DO have the classes in the place where you are declaring them to be, in your struts-config.xml, e.g. "yourapp/WEB-INF/classes/logon/LogonForm.class", and "LogonAction.class" in that same directory? (and you do also have the "LogonResources.properties" file in that same "yourapp/WEB-INF/classes/logon/" directory, where you are declaring it to be, in your web.xml?)

Re: error: No action instance for path - struts

Posted By:   Richard_Leo  
Posted On:   Monday, August 18, 2003 08:11 AM

maybe try to check your action class to confirm that it is in the correct package and conform to the bean standard

Re: error: No action instance for path - struts

Posted By:   Richard_Leo  
Posted On:   Monday, August 18, 2003 08:11 AM

maybe try to check your action class to confirm that it is in the correct package and conform to the bean standard
About | Sitemap | Contact