[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
JBoss problem with libs apache-poi  XML
Forum Index -> Development
Author Message
ddammann

Power User

Joined: 13/09/2010 09:41:07
Messages: 66
Location: München
Offline

Our Captain Casa application works with JBoss 6.1

This application needs the libs of apache-poi.
• org.apache.poi.poi.jar (3.7)
• org.apache.poi.poi-ooxml-schemas.jar (3.7)
• org.apache.poi.poi-scratchpad.jar (3.7)
• org.apache.poi.poi-ooxml.jar (3.7)

But JBoss couldn’t deploy this application. I get following exception
17:06:38,104 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/anafee]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory

I learned that this exception indicate that 2 same libs will be deployed, one from JBoss-lib itself and one from dependencies of my application. But there are no poi libs in JBoss-lib directory.

If I delete org.apache.poi.poi-ooxml.jar from my dependencies JBoss will start up correct. But a part of my application didn’t work. I need this lib.
What can I do? What is the problem?

regards
Dörte
dstrigel

Power User

Joined: 09/12/2010 09:23:42
Messages: 69
Offline

we have a similar problem with WEB-INF\lib\xercesImpl-2.8.1.jar and Glassfish. I think we got the same error message. If we remove this jar it works fine.

Kind Regards
Daniel
ddammann

Power User

Joined: 13/09/2010 09:41:07
Messages: 66
Location: München
Offline

I got a tip from GiS - Gesellschaft fuer integrierte Systemplanung mbH
and I want make it public.

in webcontent/WEB-INF/lib dir following jar has to be exists
- poi-3.7-20101029.jar
- poi-ooxml-3.7-20101029.jar
- poi-ooxml-schemas-3.7-20101029.jar
- dom4j-1.6.1.jar
- xmlbeans-2.3.0.jar
But xmlbeans-2.3.0.jar has to be modified. All classes in package org.w3c.dom has to be deleted.

That's all.

regards
Dörte
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team