File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problem with struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with struts-config.xml" Watch "Problem with struts-config.xml" New topic
Author

Problem with struts-config.xml

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Hello All,

My application works fine on one PC and giving below mentioned error on another PC. I have struts.jar file in folder "WEB-INF\lib" in the EAR file. I copied struts.jar to JBoss\lib as well as JBoss\server\default\lib folder. But still getting same error.

Really appreciate any suggestions.

Error :
Input/output error reading configuration from resource path /WEB-INF/struts-config.xml

Thanks much.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Dilip kumar:
I copied struts.jar to JBoss\lib as well as JBoss\server\default\lib folder. But still getting same error.

This could very well be the problem. The struts jar file should be in your WEB-INF/lib directory only and nowhere else in the classpath. This can cause some of the Struts classes to be loaded with one ClassLoader and some with another, which can cause some strange errors.


Merrill
Consultant, Sima Solutions
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Merrill, Thank you very much for your suggestion. Issue is resolved !
[ December 28, 2006: Message edited by: Dilip kumar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with struts-config.xml
 
Similar Threads
Struts Application is not running
Failed to load servlet (WAS - Struts)
Getting errors while deploying the webapplication into tomcat
Struts and weblogic 6.1, help please!
Struts Problem in the March Article