Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Issue with SAXParserFactory

Posted on 2013-12-14
4
Medium Priority
?
300 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 1200 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

Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

Question has a verified solution.

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

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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

670 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