Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with struts-config.xml

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merrill, Thank you very much for your suggestion. Issue is resolved !
[ December 28, 2006: Message edited by: Dilip kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic