• 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

Websphere/Struts

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm running a Struts application from within WSAD, but when i deploy it to Websphere 4, I get XML parsing errors when it tries to parse any of the Struts xml files. Is there a different version of the XMLParser that I need to use when I migrate the application. I replaced the xerces.jar file with 2.2 version, but Websphere complains on startup that it can not find "org.apache.xerces.framework.XMLParser" - in the new version of Xerces, this class is actually in the org.apache.xerces.parsers package. I'm sure I have a configuration and setup issue, I'm just not sure how to procede.
Thanks
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Repeat after me -- NEVER, EVER replace a JAR file that WebSphere uses. You will massively screw up the system.
Instead, just include the Xerces file inside the EAR file and make sure it's on the MANIFEST of the EJB-JAR or WAR file.
Kyle
 
Ken Pullin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok - I've added the xerces.jar file in the web-inf/lib folder and also added it to the mainfest file under the web application. I'm still receiving this error though. Any thoughts?
[ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml <java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader>
 
Ken Pullin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok - I've added the xerces.jar file in the web-inf/lib folder and also added it to the mainfest file under the web application. I'm still receiving this error though. Any thoughts?
[ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
 
reply
    Bookmark Topic Watch Topic
  • New Topic