Solved

Issue with SAXParserFactory

Posted on 2013-12-14
4
289 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
thymeleaf natural templating vs JSP 2 95
varialbe initialization 11 32
MySqlDump not dumping triggers 1 30
Facing this issue for maven proxy setting 2 9
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

813 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

10 Experts available now in Live!

Get 1:1 Help Now