• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 1.2.9 No such accessible

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Vinicius Carvalho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I don't even know how to spell CIA. But this tiny ad does:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic