You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2010/12/16 08:33:01 UTC

[jira] Commented: (CAMEL-3435) Bad import-package reference added in project (org.apache.camel.core.osgi instead of org.apache.camel.osgi)

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

Charles Moulliard commented on CAMEL-3435:
------------------------------------------

BTW, we see also that no version is added to the wrong package imported compare to the other. Obviously, when deployed, it generates the following error -->
Error executing command: Unresolved constraint in bundle osgi-servlet [96]: Unable to resolve 96.3: missing requirement [96.3] package; (package=org.apache.camel.core.osgi)


> 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
>
> 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.