Solved

Websphere jaxp.propertis file

Posted on 2009-05-13
4
1,359 Views
Last Modified: 2013-12-11
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
0
Comment
Question by:sunilramu
  • 3
4 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 24380551
Are you using the struts that comes with WebSphere, or is there one bundled in your application?

If you have one in your application, what is the classloader policy?

Parent_First?

or

Parent_Last?
0
 

Author Comment

by:sunilramu
ID: 24387965
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.
0
 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 500 total points
ID: 24389668
no, the classloader policy is part of the deployed application.

On the Administration console,
- Select/expand the "Applications" section (left frame)
- Select the "Enterprise Applications" link (same left frame)
- Select the link for the specific application
- Select the link for "classloading and update detection"

? Which "Classloader order" radio button is selected?

? Which "WAR Classloader policy" radio button is selected?
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 25360573
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question