chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: Jarhell
Date Sat, 14 Nov 2015 13:33:01 GMT
 Hi Grant,

I have seen such things when OpenCMIS runs inside an application server.
Can you reconfigure the classloaders to load from the child classloader
first?
If not, remove Woodstox from the OpenCMIS dependencies. OpenCMIS works
well with Woodstox 4.4.1. (In fact, OpenCMIS 0.14.0 will reference
Woodstox 4.4.1.)

- Florian


> I know I must have some conflicting libraries somewhere on my classpath,
> but I'm wondering if anyone else has seen the exception below.  As you can
> see by the message, it is rather perplexing.  My classpath has 2 versions
> of woodstox on it: 4.4.0 (from CMIS) and 4.4.1 from somewhere else.  I am
> suspecting I have some classloader isolation issues (e.g. parent is loading
> one lib, child is loading a diff. one), but I thought I would ask to see if
> anyone else has seen it.
> 
> Thanks,
> Grant
> 
> 2015-11-14T07:51:26,440 - WARN  [qtp1496724653-21:XMLUtils@74] -
> {collectionId=alf, datasourceId=alf} - Unsupported StAX parser:
> com.ctc.wstx.stax.WstxInputFactory (Exception:
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be
> cast to com.ctc.wstx.stax.WstxInputFactory)
> 
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be
> cast to com.ctc.wstx.stax.WstxInputFactory
> 
> at
> org.apache.chemistry.opencmis.commons.impl.XMLUtils.<clinit>(XMLUtils.java:58)
> [chemistry-opencmis-commons-impl-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:98)
> [chemistry-opencmis-client-bindings-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:620)
> [chemistry-opencmis-client-bindings-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:809)
> [chemistry-opencmis-client-bindings-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:65)
> [chemistry-opencmis-client-bindings-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:90)
> [chemistry-opencmis-client-bindings-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:135)
> [chemistry-opencmis-client-impl-0.13.0.jar:0.13.0]
> 
> at
> org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:112)
> [chemistry-opencmis-client-impl-0.13.0.jar:0.13.0]
> 

Mime
View raw message