Solved

Websphere jaxp.propertis file

Posted on 2009-05-13
4
1,371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
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…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

690 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