 
					
				
		
08-23-2014 02:50 PM
java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/runtime/objecttype/SecondaryTypeImpl
… 
  <dependency>
                <groupId>org.apache.chemistry.opencmis</groupId>
                <artifactId>chemistry-opencmis-client-impl</artifactId>
                <version>0.8.0</version>
        </dependency>
         <dependency>
                <groupId>org.alfresco.cmis.client</groupId>
                <artifactId>alfresco-opencmis-extension</artifactId>
                <version>0.8</version>
               
        </dependency>
…  
SessionFactory factory = SessionFactoryImpl.newInstance();
Map<String, String> parameter = new HashMap<String, String>();
        // connection settings. Alfresco 3.4a supports only cmis 1.0 
//ATOMPUB_URL = ALFRESCO_API_URL + alfresco/api/-default-/public/cmis/versions/1.0/atom
//I have also tried the following for ATOMPUT_URL
//ATOMPUB_URL = ALFRESCO_API_URL + "alfresco/service/cmis";
        log.info("getCmisSession.Atopub_Url: " + ATOMPUB_URL);
        parameter.put(SessionParameter.ATOMPUB_URL, ATOMPUB_URL);
        parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
        // We're using the Alfresco extensions
        parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
        // User Credentials
        parameter.put(SessionParameter.USER, USER_NAME);
       parameter.put(SessionParameter.PASSWORD, PASSWORD);
List<Repository> repositories = factory.getRepositories(parameter);  //This line leads to NoClassDefFoundError Error
                Repository repo1 = repositories.get(0);
                log.warn("Got the first repository available.");
                session = repo1.createSession();
08-24-2014 10:24 PM
 
					
				
		
08-25-2014 10:49 AM
java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/commons/enums/CmisVersion
   at org.apache.chemistry.opencmis.commons.impl.CmisEnumHelper.fromValue(CmisEnumHelper.java:68)
   at org.apache.chemistry.opencmis.commons.impl.XMLWalker.readEnum(XMLWalker.java:248)
   at org.apache.chemistry.opencmis.commons.impl.XMLConverter$2.read(XMLConverter.java:1239)
   at org.apache.chemistry.opencmis.commons.impl.XMLConverter$2.read(XMLConverter.java:1227)
   at org.apache.chemistry.opencmis.commons.impl.XMLWalker.walk(XMLWalker.java:55)
   at org.apache.chemistry.opencmis.commons.impl.XMLConverter$1.read(XMLConverter.java:1177)
   at org.apache.chemistry.opencmis.commons.impl.XMLConverter$1.read(XMLConverter.java:1126)
   at org.apache.chemistry.opencmis.commons.impl.XMLWalker.walk(XMLWalker.java:55)
  <dependency>
                <groupId>org.apache.chemistry.opencmis</groupId>
                <artifactId>chemistry-opencmis-client-impl</artifactId>
                <version>0.11.0</version>
        </dependency>
08-25-2014 09:20 PM
 
					
				
		
08-27-2014 11:44 AM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.