chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriele Columbro <colum...@gmail.com>
Subject Re: [jira] [Commented] (CMIS-597) NoClassDefFoundError after upgrading to OpenCMIS 0.8.0
Date Fri, 16 Nov 2012 17:01:35 GMT
The POM looks ok. Did you try already to remove the
chemistry-opencmis-client-bindings from your local Maven repo?

Sounds like it might be corrupt since the dependency is there and should be
resolved.

On Fri, Nov 16, 2012 at 8:57 AM, Sebastian Danninger <
sebastian.danninger@googlemail.com> wrote:

> <?xml version="1.0" encoding="UTF-8"?>
>
>     <!--
>         Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance
>         with the License. You may obtain a copy of the License at
> http://www.apache.org/licenses/LICENSE-2.0 Unless
>         required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an
>         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
> either express or implied. See the License for the
>         specific language governing permissions and limitations under the
> License.
>     -->
>
> <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/maven-v4_0_0.xsd
> ">
>
>     <modelVersion>4.0.0</modelVersion>
>
>     <parent>
>         <groupId>org.apache.chemistry.opencmis</groupId>
>         <artifactId>chemistry-opencmis</artifactId>
>         <version>0.8.0</version>
>         <relativePath>../../pom.xml</relativePath>
>     </parent>
>
>     <artifactId>chemistry-opencmis-client-impl</artifactId>
>     <name>OpenCMIS Client Implementation</name>
>     <packaging>jar</packaging>
>
>     <properties>
>         <parentBasedir>../../</parentBasedir>
>     </properties>
>
>     <build>
>         <plugins>
>             <plugin>
>                 <artifactId>maven-jar-plugin</artifactId>
>                 <configuration>
>                     <archive>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>                     </archive>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <version>2.3.4</version>
>                 <extensions>true</extensions>
>                 <executions>
>                     <execution>
>                         <id>bundle-manifest</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>manifest</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <configuration>
>                     <instructions>
>                         <Export-Package />
>                         <Import-Package>
>                           org.apache.commons.codec.*;version="[1.4,2.0)",
>                           org.apache.commons.logging.*;version="[1.1,2.0)",
>                           *
>                         </Import-Package>
>                         <Bundle-DocURL>${project.url}</Bundle-DocURL>
>
> <Bundle-Activator>org.apache.chemistry.opencmis.client.osgi.Activator</Bundle-Activator>
>                     </instructions>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <version>2.3</version>
>                 <executions>
>                     <execution>
>                        <id>pack-client-with-deps</id>
>                        <goals>
>                            <goal>single</goal>
>                        </goals>
>                        <phase>package</phase>
>                        <configuration>
>                            <attach>true</attach>
>                            <descriptors>
>                                <descriptor>
>
> src/main/assembly/client-with-dependencies-assembly.xml
>                                </descriptor>
>                            </descriptors>
>                        </configuration>
>                    </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>     </build>
>
>     <dependencies>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>chemistry-opencmis-client-api</artifactId>
>             <version>${project.version}</version>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>chemistry-opencmis-commons-api</artifactId>
>             <version>${project.version}</version>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>chemistry-opencmis-commons-impl</artifactId>
>             <version>${project.version}</version>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>chemistry-opencmis-client-bindings</artifactId>
>             <version>${project.version}</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.felix</groupId>
>             <artifactId>org.osgi.core</artifactId>
>             <version>1.0.0</version>
>         </dependency>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.16</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.6.6</version>
>             <scope>test</scope>
>         </dependency>
>     </dependencies>
>
>     <profiles>
>         <profile>
>             <!--
>                 call mvn test
> -Dorg.apache.chemistry.opencmis.client.runtime.suite.config.path=myServer.properties
> to
>                 run test using profile parameters
>             -->
>             <activation>
>                 <property>
>
> <name>org.apache.chemistry.opencmis.client.runtime.test.config.path</name>
>                 </property>
>             </activation>
>             <build>
>                 <pluginManagement>
>                     <plugins>
>                         <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>                             <artifactId>maven-surefire-plugin</artifactId>
>                             <configuration>
>
> <argLine>-Dorg.apache.chemistry.opencmis.client.runtime.test.config.path=${org.apache.chemistry.opencmis.client.runtime.test.config.path}</argLine>
>                             </configuration>
>                         </plugin>
>                     </plugins>
>                 </pluginManagement>
>             </build>
>         </profile>
>
>         <!--
>             Extending the default -Papache-release profile used *only*
>             during releases
>         -->
>         <profile>
>             <id>apache-release</id>
>             <activation>
>                 <activeByDefault>false</activeByDefault>
>             </activation>
>             <build>
>                 <plugins>
>                     <plugin>
>                         <artifactId>maven-assembly-plugin</artifactId>
>                         <inherited>false</inherited>
>                         <executions>
>                             <execution>
>                                 <id>pack-client-with-deps</id>
>                                 <goals>
>                                     <goal>single</goal>
>                                 </goals>
>                                 <phase>package</phase>
>                                 <configuration>
>                                     <attach>true</attach>
>                                     <descriptors>
>                                         <descriptor>
>
> src/main/assembly/client-with-dependencies-assembly.xml
>                                          </descriptor>
>                                     </descriptors>
>                                 </configuration>
>                             </execution>
>                         </executions>
>                     </plugin>
>                 </plugins>
>             </build>
>         </profile>
>     </profiles>
>
>
> </project>
>
>
> thats the pom, attached the output
>
>
> 2012/11/16 Gabriele Columbro (JIRA) <jira@apache.org>
>
>
>>     [
>> https://issues.apache.org/jira/browse/CMIS-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498912#comment-13498912]
>>
>> Gabriele Columbro commented on CMIS-597:
>> ----------------------------------------
>>
>> Can you post the pom.xml of chemistry-opencmis-client-impl that you have
>> in your local repo? Also can you post the output of
>>
>> mvn dependency:tree
>>
>> on your project?
>>
>> Artifacts are all there, so I imagine it might be a POM / transitive
>> dependency issue.
>>
>>
>> > 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
>>
>
>


-- 
Gabriele Columbro
Principal Architect, Consulting Services
Alfresco Software <http://www.alfresco.com>
twitter: @mindthegabz <http://twitter.com/#%21/mindthegabz>
blog: http://mindthegab.com
mobile: +31627565013

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message