This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Websphere/Struts

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the 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!