• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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

 
Greenhorn
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 global.properties 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.
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!