• 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 2 Jars when put in EAR/lib gives error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In a Struts2 application, I moved all the struts2 jars - backport, commons*, retrotranslator, struts2, tiles*, freemarker, ognl, xstream, xwork jars (the specific version omitted here) from WEB-INF/lib to EAR/lib. My action classes are in the WEB. The action mapping is in WEB too. When I hit the home page, I get this error -
[7/30/10 14:27:58:620 EDT] 00000045 Dispatcher E org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
There is no Action mapped for action name home. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)

Is there any requirement that the Struts2 jars should be in WEB-INF/lib? I want the Jars in EAR/lib so that a utility jar can have access to freemarker.jar.. Does anyone else have issue when they put jars in EAR/lib? I am using RAD6 for this project.

Thanks.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*Is* there an action mapped for action name "home"? Telling us it's there is different from *showing* us it's there.

Personally, I'd deploy the web app libraries with the web app, not with the EAR, though.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic