camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-3435) Bad import-package reference added in project (org.apache.camel.core.osgi instead of org.apache.camel.osgi)
Date Fri, 17 Dec 2010 08:52:01 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972395#action_12972395
] 

Willem Jiang commented on CAMEL-3435:
-------------------------------------

Hi Charles,

This issue is caused by you put the ServletActivator into the "org.apache.camel.osgi", and
camel-spring bundle has that package to.
Bnd is trying to merge these package's import information of these two bundle together, and
you got the weird import of "org.apache.camel.core.osgi".

The solution is simple, you just need to move the ServletActivator into other package or remove
the camel-spring dependency from the pom.xml.

Willem

> Bad import-package reference added in project (org.apache.camel.core.osgi instead of
org.apache.camel.osgi)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3435
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3435
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>         Attachments: CAMEL_SERVLET.zip
>
>
> Hi,
> I have created a Camel OSGI Servlet as a Servlet activator and when the osgi dependencies
are calculated then, a  bad package is added in the header of the bundle :  org.apache.camel.core.osgi
instead of org.apache.camel.osgi
> {code}
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
>                         <Bundle-Activator>org.apache.camel.osgi.ServletActivator</Bundle-Activator>
>                         <Import-Package>*
>                         </Import-Package>
>                         <Private-Package>org.apache.camel.osgi</Private-Package>
>                     </instructions>
>                 </configuration>
> {code}
> GENERATED
> {code}
> CAMEL :: OSGI :: Servlet (96)
> -----------------------------
> Manifest-Version = 1.0
> Bnd-LastModified = 1292482613881
> Tool = Bnd-0.0.357
> Built-By = charlesmoulliard
> Build-Jdk = 1.6.0_22
> Created-By = Apache Maven Bundle Plugin
> Bundle-Activator = org.apache.camel.osgi.ServletActivator
> Bundle-Name = CAMEL :: OSGI :: Servlet
> Bundle-SymbolicName = osgi-servlet
> Bundle-Version = 1.0.0
> Bundle-ManifestVersion = 2
> Import-Package = 
> 	javax.servlet,
> 	javax.xml.bind.annotation,
> 	org.apache.camel;version=2.5,
> 	org.apache.camel.component.servlet;version=2.5,
> 	org.apache.camel.core.osgi,
> 	org.apache.camel.impl;version=2.5,
> 	org.apache.camel.model;version=2.5,
> 	org.apache.camel.model.config;version=2.5,
> 	org.apache.camel.model.dataformat;version=2.5,
> 	org.apache.camel.model.language;version=2.5,
> 	org.apache.camel.model.loadbalancer;version=2.5,
> 	org.apache.camel.osgi;version=2.5,
> 	org.apache.camel.spi;version=2.5,
> 	org.apache.camel.spring;version=2.5,
> 	org.apache.camel.spring.handler;version=2.5,
> 	org.apache.commons.logging,
> 	org.osgi.framework;version=1.3,
> 	org.osgi.service.http;version=1.2,
> 	org.springframework.beans.factory.xml;version=3.0,
> 	org.springframework.context;version=3.0,
> 	org.springframework.osgi.context;version=1.2
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message