Jahia Dev Forum > Apache CXF library...

0 (0 Good)
0 (0 Bad)

Apache CXF library causing "Unresolved constraint in bundle ........"

by  andrewnz »  2014/11/23 20:31

Hi,

I have implemented a soap web service client and deployed to Jahia 7.0.x server (Digital Factory). I use the Administrator to upload and deploy the bundle generated by command "mvn install" from the project folder.

After a few trial adding/removing artifacts, the artifact "cxf-rt-frontend-jaxws" (version 2.7 and 3.0) causes Jahia to throw module upload failure.

Module upload failed: Unresolved constraint in bundle jahia-one [94]: Unable to resolve 94.0: missing requirement [94.0] osgi.wiring.package; (osgi.wiring.package=com.sun.msv.grammar)

After removing the artifact, the deployment to Jahia seems fine.

What am I missing here? In the META-INF/MANIFEST.MF, the "com.sun.msv.grammar" name is included under "Import-Package".

Thanks in advanced. 

Andrew

 

 

  (andrewnz)

Number of messages  1
Registration date
0 (0 Good)
0 (0 Bad)

Re: Apache CXF library causing "Unresolved constraint in bundle ........"

by  shuber »  2014/11/24 13:25

Hello,

The best way to help you would be if you could share your pom.xml file ? 

Best regards,

  Serge Huber

Serge Huber (shuber)

Number of messages  271
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: Apache CXF library causing "Unresolved constraint in bundle ........"

by  andrewnz »  2014/11/24 19:07

Hi Serge,

Thanks for replying. Here is the pom.

<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>jahia-modules</artifactId>
        <groupId>org.jahia.modules</groupId>
        <version>7.0.0.2</version>
    </parent>
    <groupId>org.jahia.modules</groupId>
    <artifactId>jahia-one</artifactId>
    <name>Jahia One</name>
    <version>1.0-SNAPSHOT</version>    
    <packaging>bundle</packaging>
    <description>This is the custom module (Jahia One) for running on a Digital Factory server.</description>
    <properties>
        <cxf.version>3.0.0</cxf.version>
    </properties>
    <scm>
        <connection>scm:dummy:uri</connection>
        <developerConnection>scm:dummy:uri</developerConnection>
    </scm>

    <dependencies>
        <dependency>
            <groupId>org.jahia.modules</groupId>
            <artifactId>external-provider</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-common-schemas</artifactId>
            <version>2.3.11</version>
        </dependency>
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>2.7.0</version>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>jahia-public</id>
            <name>Jahia Public Repository</name>
            <url>https://devtools.jahia.com/nexus/content/groups/public</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Jahia-Depends>default</Jahia-Depends>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

 

andrewnz
Number of messages  1
Not registered
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page