You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by John Dubchak <jo...@johndubchak.com> on 2014/06/24 00:41:58 UTC
Missing Requirement javax.servlet.http
Hi,
I've upgraded from SMX 5.0.0 to 5.1.0 and after changing the version of
Camel that my bundle uses, to 2.13.1, and deploying my bundles, I am
getting this error:
Error executing command: Error installing bundles:
Unable to start bundle
file:/home/jdubchak/deploy/my-domain-services-1.0.0.jar: Unresolved
constraint in bundle my-domain-services [228]: Unable to resolve 228.0:
missing requirement [228.0] osgi.wiring.package;
(&(osgi.wiring.package=javax.servlet.http)(version>=2.6.0)(!(version>=3.0.0)))
On these dependencies (where camel.version is 2.13.1):
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>${camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jackson</artifactId>
<version>${camel.version}</version>
</dependency>
Here is the configuration from my pom.xml:
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Export-Package>
com.example.services.automation*;version=${project.version}
</Export-Package>
<Import-Package>*</Import-Package>
</instructions>
</configuration>
I have installed the same bundles, from Camel, CXF etc. that was
installed on SMX 5.0.0 and wonder if anyone can help me with what I am
missing?
Thanks,
John
Re: Missing Requirement javax.servlet.http
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You need install servlet 3.0 api bundle like
osgi:install -s mvn:org.apache.geronimo.specs/geronimo-servlet_3.0_spec/1.0
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
On 2014-6-24, at 上午6:41, John Dubchak wrote:
> Hi,
>
> I've upgraded from SMX 5.0.0 to 5.1.0 and after changing the version of Camel that my bundle uses, to 2.13.1, and deploying my bundles, I am getting this error:
>
> Error executing command: Error installing bundles:
> Unable to start bundle file:/home/jdubchak/deploy/my-domain-services-1.0.0.jar: Unresolved constraint in bundle my-domain-services [228]: Unable to resolve 228.0: missing requirement [228.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet.http)(version>=2.6.0)(!(version>=3.0.0)))
>
> On these dependencies (where camel.version is 2.13.1):
>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-core</artifactId>
> <version>${camel.version}</version>
> </dependency>
>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-cxf</artifactId>
> <version>${camel.version}</version>
> </dependency>
>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jackson</artifactId>
> <version>${camel.version}</version>
> </dependency>
>
> Here is the configuration from my pom.xml:
>
> <configuration>
> <instructions>
> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
> <Bundle-Version>${project.version}</Bundle-Version>
> <Export-Package>
> com.example.services.automation*;version=${project.version}
> </Export-Package>
> <Import-Package>*</Import-Package>
> </instructions>
> </configuration>
>
> I have installed the same bundles, from Camel, CXF etc. that was installed on SMX 5.0.0 and wonder if anyone can help me with what I am missing?
>
>
> Thanks,
> John