chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piergiorgio Lucidi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-597) NoClassDefFoundError after upgrading to OpenCMIS 0.8.0
Date Fri, 02 Nov 2012 15:33:16 GMT
Piergiorgio Lucidi created CMIS-597:
---------------------------------------

             Summary: NoClassDefFoundError after upgrading to OpenCMIS 0.8.0
                 Key: CMIS-597
                 URL: https://issues.apache.org/jira/browse/CMIS-597
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.8.0
         Environment: Mac OS X Snow Leopard upgrading a portlet for GateIn
            Reporter: Piergiorgio Lucidi


I tried to upgrade the OpenCMIS Client library from 0.7.0 to 0.8.0, but it returns the following
exception:
{code}
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.chemistry.opencmis.client.bindings.cache.impl.CacheImpl
	at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryInfoCache.<init>(RepositoryInfoCache.java:54)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:215)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.<init>(CmisBindingImpl.java:129)
	at org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisAtomPubBinding(CmisBindingFactory.java:132)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createAtomPubBinding(CmisBindingHelper.java:97)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:55)
	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:107)
	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
	at org.alfresco.training.portals.cmis.portlets.CmisUtils.getCmisSession(CmisUtils.java:79)
	... 115 more
{code}

It seems that including only the usual opencmis-client-impl dependency in the pom.xml is not
enough for getting all the needed resources.
{code}
<dependency>
   <groupId>org.apache.chemistry.opencmis</groupId>
   <artifactId>chemistry-opencmis-client-impl</artifactId>
   <version>0.8.0</version>
</dependency>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message