my dog learned polymorphism
The moose likes Struts and the fly likes struts.xml in struts 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.xml in struts 2.1" Watch "struts.xml in struts 2.1" New topic

struts.xml in struts 2.1

asif rafique

Joined: Mar 25, 2007
Posts: 8
Hi everyone

i m using Struts 2.1.6 and jboss 5.0.GA in my application every thing is working fine but when i switched to new version of jboss which is 5.1.GA what i found is that server cannot find the struts.xml.
i placed struts.xml in WEB-INF folder
server logged on its console
Cannot locate configuration file struts.xml skipping

Any idea
David Newton

Joined: Sep 29, 2008
Posts: 12617

struts.xml should be on the classpath unless you explicitly configure it to be in a non-default location (personally, I'd just leave it on the classpath).

If that's not it I vaguely recall there being an issue that may have been resolved in XW/S2; searching the struts-user mailing list might turn it up. Or the JIRA (issue tracker).
I agree. Here's the link:
subject: struts.xml in struts 2.1
It's not a secret anymore!