?
Solved

Websphere jaxp.propertis file

Posted on 2009-05-13
4
Medium Priority
?
1,388 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 2000 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses
Course of the Month15 days, 13 hours left to enroll

850 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