Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Struts 1.1 and JRun 3.0: how to override the original XML parser?

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have deployed a struts application on JRun 3.0. Whenever I start the applicatoin server, I see error message in the error log saying something like "parsing error on resource file path WEB-INF/struts-config.xml" and "NoSuchMethodError getXMLReader()". I read some discussion on the web, and knew this is because the XML parser with JRun 3.0 is too old to read the struts 1.1 config file. So I followed the most common solution, explicitly force JRun to load a newer xerces.jar first by modifying the classpath defined in the file, and the error is gone.
However, the problem is, I can only do this on the testing server. I have no privilege to do such trick on the production server. So, is there any other workaround to do the same thing, that is, force JRun to use a newer xerces.jar, at least for my application, and the setting can be done at an applicatoin-wise level, so that I have enough privilege to do so? I don't mind even modifying my source code to load the classes in Runtime. I just want to avoid modifying the server-wise setting.
That new kid is a freak. Show him this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic