Solved

Issue with SAXParserFactory

Posted on 2013-12-14
4
295 Views
Last Modified: 2013-12-24
Hi,

I have an web application.

when I deploy my web application in JBoss 6  in linux box  I  get  deployment error.  ....

it seems some issue with SAXParserFactory as per the log .



I am attaching the boot log file which has detailed error stack trace .

I am  also attaching the list of  JAR files from my web application's WEB-INF\ lib folder


Could you please tell  what has gone wrong and how do I fix it ?
error.txt
lib-list.txt
0
Comment
Question by:cofactor
[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
 

Author Comment

by:cofactor
ID: 39718864
comments please
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 300 total points
ID: 39720824
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory

there is conflict of jars between apache SAXParser classes vs sun related jars.try removing apache related jars  which is having this class.
0
 

Assisted Solution

by:cofactor
cofactor earned 0 total points
ID: 39728955
I removed javax related classes and this worked fine.
0
 

Author Closing Comment

by:cofactor
ID: 39737603
I had javax classes which were causing issues.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

752 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