title: ClassNotFoundException: ObjectServiceDescriptor in OSGi
body: <p>I am trying to develop a simple java program that calls DFS web services and I get this runtime error:</p>
  
  <pre><code>Caused by: com.emc.documentum.fs.rt.impl.servicemodel.ServiceModelException: Service descriptor class not found: "java.lang.ClassNotFoundException: com.emc.documentum.fs.services.core.client.ObjectServiceDescriptor".
  at com.emc.documentum.fs.rt.impl.servicemodel.JavaBeanTreeFactory.getDescriptor(JavaBeanTreeFactory.java:218)
  at com.emc.documentum.fs.rt.impl.servicemodel.JavaBeanTreeFactory.getModule(JavaBeanTreeFactory.java:41)
  at com.emc.documentum.fs.rt.context.ServiceFactory.makeServiceUrl(ServiceFactory.java:332)
  at com.emc.documentum.fs.rt.context.ServiceFactory.getRemoteService(ServiceFactory.java:143)
  at com.emc.documentum.fs.rt.context.ServiceFactory.getRemoteService(ServiceFactory.java:197)
  at info.hartmann.dfs.impl.Handler.init(Handler.java:112)
  </code></pre>
  
  <p>I'm using <strong>maven</strong> to build a project and to install it into the <strong>OSGi container of Adobe CQ5</strong>. I tried this same code in a usual Java application in Eclipse and it worked.</p>
  
  <p>The strange thing for me is that this class ObjectServiceDescriptor  <strong>is in</strong> one of the .jar libraries which I include through maven dependencies. The jar name is <strong>emc-dfs-services-remote-1.0.jar</strong>. If I open my .jar generated by maven, I can see the <strong>emc-dfs-services-remote-1.0.jar</strong> there.</p>
  
  <p>The project compilation goes without any problems, but during runtime I get the error on this line:</p>
  
  <pre><code>IObjectService objectService = serviceFactory.getRemoteService(com.emc.documentum.fs.services.core.client.IObjectService.class, serviceContext,  module, host);
  </code></pre>
  
  <p>My pom.xml is below. As you see, I declare some of the packages as optional in Imported-Packages. If I don't do this, my bundle can be compiled, but cannot be started. Could declaring these packages as optional be the problem?</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;CXF-example-ievgen&lt;/groupId&gt;
      &lt;artifactId&gt;CXF-example-ievgen&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;bundle&lt;/packaging&gt;
      &lt;name&gt;Ievgeng sample bundle&lt;/name&gt;
  
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.sling&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-sling-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;install-bundle&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;install&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;slingUrl&gt;http://192.168.56.101:4502/system/console&lt;/slingUrl&gt;
                      &lt;user&gt;user&lt;/user&gt;
                      &lt;password&gt;password&lt;/password&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-scr-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.7.2&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;generate-scr-scrdescriptor&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;scr&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.1.0&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;wrap-my-dependency&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;wrap&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;wrapImportPackage&gt;;&lt;/wrapImportPackage&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;instructions&gt;
                          &lt;Export-Package&gt;info.hartmann.dfs.api&lt;/Export-Package&gt;
                          &lt;Private-Package&gt;info.hartmann.dfs.impl
  
                          &lt;/Private-Package&gt;
                          &lt;!-- bundle supplied resource prefixes --&gt;
                          &lt;Include-Resource&gt;{maven-resources}&lt;/Include-Resource&gt;
  
                          &lt;!-- Do not inline jars, include as jar files --&gt;
                          &lt;Embed-Dependency&gt;*;scope=compile|runtime;inline=false&lt;/Embed-Dependency&gt;
                          &lt;Embed-Transitive&gt;true&lt;/Embed-Transitive&gt;
  
                          &lt;!-- use _exportcontents instead of Export-Package to avoid conflict with Embed-Dependency an inline=true --&gt;
                          &lt;!-- &lt;_exportcontents&gt; --&gt;
                          &lt;!-- org.apache.cxf.*;version=${project.version} --&gt;
                          &lt;!-- &lt;/_exportcontents&gt; --&gt;
  
                          &lt;!-- declare optional dependencies --&gt;
                          &lt;Import-Package&gt;
                           com.documentum.fc.client.search;resolution:=optional,
                           com.documentum.fc.client.impl.session;resolution:=optional,
                           com.documentum.fc.common;resolution:=optional,
                           com.documentum.fc.client;resolution:=optional,
                           com.documentum.com;resolution:=optional,
                           com.documentum.ci;resolution:=optional,
                           com.documentum.ucf.*;resolution:=optional,
                           com.documentum.operations.*;resolution:=optional,
                           com.documentum.registry;resolution:=optional,
                           com.documentum.xerces_2_8_0.xerces.impl.dv.util;resolution:=optional,
                           org.slf4j.*;resolution:=optional,
                           org.osgi.*;resolution:=optional,
                           com.emc.documentum.kerberos.*;resolution:=optional,
                           javax.xml.registry.*;resolution:=optional,
                           jp.co.swiftinc.relax.*;resolution:=optional,
                           junit.framework;resolution:=optional,
                           org.apache.xerces.*;resolution:=optional,
                           org.apache.xml.*;resolution:=optional,
                           sun.io;resolution:=optional,
                           sun.misc;resolution:=optional,
                           sun.nio.cs;resolution:=optional,
                           sun.security.action;resolution:=optional,
                           com.sun.tools.javadoc;resolution:=optional,
                           org.apache.regexp;resolution:=optional,
                           org.apache.tools.*;resolution:=optional,
                           org.apache.xerces.*;resolution:=optional,
                           org.apache.xml.*;resolution:=optional,
                           org.aspectj.bea.jvm;resolution:=optional,
                           org.eclipse.jface.text;resolution:=optional,
                           org.eclipse.osgi.framework.*;resolution:=optional,
                           org.eclipse.osgi.internal.profile;resolution:=optional,
                           org.eclipse.osgi.service.*;resolution:=optional,
                           org.eclipse.osgi.util;resolution:=optional,
                           org.eclipse.update.configurator;resolution:=optional, 
                           *
                          &lt;/Import-Package&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
  
  
  
          &lt;/plugins&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;
  org.apache.felix
                                          &lt;/groupId&gt;
                                          &lt;artifactId&gt;
  maven-scr-plugin
                                          &lt;/artifactId&gt;
                                          &lt;versionRange&gt;
  [1.7.2,)
                                          &lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;scr&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore/&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
  
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  
      &lt;/build&gt;
  
  
  
      &lt;dependencies&gt;
         &lt;dependency&gt;
              &lt;groupId&gt;activation&lt;/groupId&gt;
              &lt;artifactId&gt;activation&lt;/artifactId&gt;
              &lt;!-- actually it is version 1.1 but i didnt get how to resolve error --&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;      
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;aspectj&lt;/groupId&gt;
              &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
              &lt;version&gt;1.5.2a&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;  
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-collaboration&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-admin-services-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
              &lt;!--&lt;systemPath&gt;${project.basedir}/src/main/resources/emc-admin-services-remote.jar&lt;/systemPath&gt;--&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-bpm-services-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-ci-services-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-dfs-rt-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-dfs-services-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;emc-search-services-remote&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.fastinfoset&lt;/groupId&gt;
              &lt;artifactId&gt;FastInfoset&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
          &lt;/dependency&gt;      
          &lt;dependency&gt;
              &lt;groupId&gt;com.emc&lt;/groupId&gt;
              &lt;artifactId&gt;http&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb1-impl&lt;/artifactId&gt;
              &lt;version&gt;2.1.4&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;version&gt;2.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
              &lt;version&gt;2.1.11&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml&lt;/groupId&gt;
              &lt;artifactId&gt;jaxws-api&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
              &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
              &lt;version&gt;2.1.7&lt;/version&gt;
          &lt;/dependency&gt;        
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jsr173_api&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.jws&lt;/groupId&gt;
              &lt;artifactId&gt;jsr181-api&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;        
          &lt;dependency&gt;
              &lt;groupId&gt;javax.annotation&lt;/groupId&gt;
              &lt;artifactId&gt;jsr250-api&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jvnet&lt;/groupId&gt;
              &lt;artifactId&gt;mimepull&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.org.apache.xml.internal&lt;/groupId&gt;
              &lt;artifactId&gt;resolver&lt;/artifactId&gt;
              &lt;version&gt;20050927&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml&lt;/groupId&gt;
              &lt;artifactId&gt;saaj-api&lt;/artifactId&gt;
              &lt;version&gt;1.3&lt;/version&gt;
          &lt;/dependency&gt;         
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.messaging.saaj&lt;/groupId&gt;
              &lt;artifactId&gt;saaj-impl&lt;/artifactId&gt;
              &lt;version&gt;1.3.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.stream&lt;/groupId&gt;
              &lt;artifactId&gt;sjsxp&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jvnet.staxex&lt;/groupId&gt;
              &lt;artifactId&gt;stax-ex&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;!--&lt;systemPath&gt;${project.basedir}/src/main/resources/stax-ex.jar&lt;/systemPath&gt;--&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.stream.buffer&lt;/groupId&gt;
              &lt;artifactId&gt;streambuffer&lt;/artifactId&gt;
              &lt;version&gt;0.8&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;xerces&lt;/groupId&gt;
              &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
              &lt;version&gt;2.5.0&lt;/version&gt;
          &lt;/dependency&gt; 
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.scr.annotations&lt;/artifactId&gt;
              &lt;version&gt;1.6.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.osgi&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
              &lt;version&gt;4.0.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.sling&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.sling.commons.osgi&lt;/artifactId&gt;
              &lt;version&gt;2.0.2-incubator&lt;/version&gt;
              &lt;type&gt;bundle&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.compendium&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.sling&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.sling.commons.log&lt;/artifactId&gt;
              &lt;version&gt;2.0.6&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Bundle classpath after installing into OSGi console:</p>
  
  <pre><code>    Bundle Classpath    ., sjsxp-1.0.jar, emc-collaboration-1.0.jar, FastInfoset-1.2.jar, 
  aspectjrt-1.5.2a.jar,stax-api-1.0.jar,jsr250-api-1.0.jar,activation-1.0.jar, 
  resolver-20050927.jar,streambuffer-0.8.jar,jsr181-api-1.0.jar,
  jsr173_api-1.0.jar,jaxb1-impl-2.1.4.jar, emc-dfs-rt-remote-1.0.jar,
  commons-lang-2.4.jar,commons-io-1.2.jar,stax-ex-1.0.jar,saaj-impl-1.3.3.jar, 
  jaxws-rt-2.1.7.jar,xercesImpl-2.5.0.jar,jaxb-api-2.0.jar,mimepull-1.4.jar, 
  emc-bpm-services-remote-1.0.jar,emc-search-services-remote-1.0.jar,activation-1.1.jar,http-1.0.jar,
   jaxb-impl-2.1.11.jar,jaxws-api-2.1.jar,emc-ci-services-remote-1.0.jar,
  emc-admin-services-remote-1.0.jar, emc-dfs-services-remote-1.0.jar,servlet-api-1.0.jar,saaj-api-1.3.jar
  </code></pre>
  
  <p>My Java code:</p>
  
  <pre><code>public void init() throws Exception {
    ContextFactory contextFactory = ContextFactory.getInstance();
    serviceContext = contextFactory.newContext();
    RepositoryIdentity repositoryIdentity = new RepositoryIdentity();
  
    repositoryIdentity.setRepositoryName(repository);
    repositoryIdentity.setUserName(user);
    repositoryIdentity.setPassword(pass);
    serviceContext.addIdentity(repositoryIdentity);
  
    ServiceFactory serviceFactory = ServiceFactory.getInstance();
  //ERROR is thrown here:
    objectService = serviceFactory.getRemoteService(IObjectService.class, serviceContext,  module, host);
    queryService = serviceFactory.getRemoteService(IQueryService.class, serviceContext,  module, host);
    }
  </code></pre>
  
  <p>I've seen a similar problem here: <a href="https://community.emc.com/thread/82798" rel="nofollow">https://community.emc.com/thread/82798</a> but the solution provided there didn't help me. I tried</p>
  
  <ul>
  <li>Changing JRE version to higher than 1.5</li>
  <li>Making sure make sure that I am creating a class of type com.emc.documentum.fs.services.core.client.IObjectService (and not com.emc.documentum.fs.services.core.impl.IObjectService).</li>
  <li>Trying with the more fully parameterized version of getRemoteService which will remove any ambiguties with the call.</li>
  <li>And lots of other things, like installing all the external jars in a separate bundle and then importing them.</li>
  </ul>
  
  <p>It looks like a maven dependency problem, but I can't figure it out, as I included all the .jars in my project which I used in my Eclipse project, so it should work the same, shouldn't it?</p>
  
  <p>I appreciate any help.</p>
  
  <p>EDIT:
  I tried changing export-packages to:
  info.hartmann.dfs.api, com.emc.documentum.*
  In other words, I tried exporting all the documentum packages. The above listed error dissapeared, but I got a new one:</p>
  
  <pre><code>Caused by: com.emc.documentum.fs.rt.impl.servicemodel.ServiceModelException: Service descriptor file not found: "services-core-service-model.xml".
  at com.emc.documentum.fs.rt.impl.servicemodel.JavaBeanTreeFactory.getModuleByName(JavaBeanTreeFactory.java:65)
  at com.emc.documentum.fs.rt.impl.servicemodel.JavaBeanTreeFactory.getModule(JavaBeanTreeFactory.java:42)
  at com.emc.documentum.fs.rt.context.ServiceFactory.makeServiceUrl(ServiceFactory.java:332)
  at com.emc.documentum.fs.rt.context.ServiceFactory.getRemoteService(ServiceFactory.java:143)
  at com.emc.documentum.fs.rt.context.ServiceFactory.getRemoteService(ServiceFactory.java:197)
  at info.hartmann.dfs.impl.Handler.init(Handler.java:112)
  </code></pre>
  
  <p>Unfortunatelly, I don't even know if it moves me one step further or one step behind.</p>