This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.xml in struts 2.1" Watch "struts.xml in struts 2.1" New topic
Author

struts.xml in struts 2.1

asif rafique
Greenhorn

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
Author
Rancher

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).
 
 
subject: struts.xml in struts 2.1
 
Similar Threads
ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet
Jboss Server
Problem returning input result type with struts 2 validations with tiles 2(anotations)
Starting JBoss
suddenly getting error: Exception starting filter struts2