| Author |
Struts 1.2.9 No such accessible
|
Vinicius Carvalho
Ranch Hand
Joined: Dec 07, 2004
Posts: 61
|
|
Hello there! I'm having a strange problem with my struts app (1.2.9), it's been a long time since the last time I've used struts (being in the Swing world for a while now). The application launches an error on startup: Well, I've checked the Action class and it really does not have an addForwardConfig method. Here's my struts-config.xml: All the files (validation, validator and tiles) are placed under the WEB-INF in the war file. My AcmeAction extends ActionSupport from Spring's helper classes. First I thought was this, but then I've changed it to a regular action, and the problem persists. As it throws an Severe message, I'm guessing this is the cause that I can't access my application (when I try to access the index.jsp) I get an 500 Error complaining about not having a principal ActionForward defined on my global-forwards. BTW here's index.jsp: Any ideas please? Regards
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
Check your WEB-INF/lib directory and make sure that you have all the required jar files from the Struts download, and that both the struts.jar file and all commons-xxx jar files came from the same download package. Also, check to make sure that the neither the struts.jar file nor any commons jar files are being loaded by another class loader (i.e. from a common area in your application server).
|
Merrill
Consultant, Sima Solutions
|
 |
Vinicius Carvalho
Ranch Hand
Joined: Dec 07, 2004
Posts: 61
|
|
Yep, I have all the jars needed, just copied them from the struts/lib distribution. nope, none of the libs are being loaded by another area of my classloader. Any ideas?
|
 |
Greg Knox
Greenhorn
Joined: Jul 29, 2006
Posts: 1
|
|
I had a similar problem, need to change the 'className' property to 'type' in the action element, e.g. <action path="/votar" scope="request" validate="true" className="com.acme.AcmeAction" name="votarForm"> becomes <action path="/votar" scope="request" validate="true" type="com.acme.AcmeAction" name="votarForm">
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
Did you read Greg's post? I believe his answer is the correct one. When you specify className="" in an action path, Struts thinks you're specifying a custom ActionMapping class for that action path. Change className="com.acme.AcmeAction" to type="com.acme.AcmeAction" in your <action> tag.
|
 |
 |
|
|
subject: Struts 1.2.9 No such accessible
|
|
|