Solved

Websphere jaxp.propertis file

Posted on 2009-05-13
4
1,345 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
The viewer will learn how to implement Singleton Design Pattern in Java.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now