• 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

Problem with struts-config.xml

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