Link to home
Start Free TrialLog in
Avatar of sunilramu
sunilramu

asked on

Websphere jaxp.propertis file

Hi All,
When I have deployed my application in Websphere 6.1 in linux environment it stops working.
The struts modules was giving following error.

org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
      at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)
      at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)
      at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)
      at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:73)
      at org.apache.commons.digester.Digester.getParser(Digester.java:682)
      at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
      at org.apache.commons.digester.Digester.parse(Digester.java:1572)

Than I applied below solution
Rename the jaxp.properties.sample (located in a folder similar to /opt/WebSphere/AppServer/java/jre/lib) file to jaxp.properties and uncomment the following properties.

javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

And it works fine.

Now the question is how will this affect the other applications running in this environment?

Thanks in advance!

--Sunil
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunilramu
sunilramu

ASKER

I am using struts which is bundle in my application. I don't know about the class loader policy because this issue is at client side.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the grade & points.

Good luck & have a great day.