Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7522045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:24:29+00:00 2026-05-30T02:24:29+00:00

I am trying to deploy a Jersey servlet in FuseESB (based on apache serviceMix)

  • 0

I am trying to deploy a Jersey servlet in FuseESB (based on apache serviceMix) but I get the following error:

Error executing command: Unable to resolve module com.temp.myappserver [248.4] because it is exposed to package 'javax.ws.rs' from org.apache.servicemix.specs.jsr311-api-1.1 [139.0] and com.sun.jersey.jersey-core [274.0] via two dependency chains.

Chain 1:
  com.temp.myappserver [248.4]
    import: (&(package=javax.ws.rs)(version>=1.1.0)(!(version>=2.0.0)))
     |
    export: package=javax.ws.rs
  org.apache.servicemix.specs.jsr311-api-1.1 [139.0]

Chain 2:
  com.temp.myappserver [248.4]
    import: (package=com.sun.jersey.spi.container.servlet)
     |
    export: package=com.sun.jersey.spi.container.servlet; uses:=com.sun.jersey.server.impl.application
  com.sun.jersey.jersey-servlet [267.0]
    import: (package=com.sun.jersey.server.impl.application)
     |
    export: package=com.sun.jersey.server.impl.application; uses:=javax.ws.rs
  com.sun.jersey.jersey-server [265.0]
    import: (package=javax.ws.rs)
     |
    export: package=javax.ws.rs
  com.sun.jersey.jersey-core [274.0]

I know why I get this error – indeed the jersey-core jar manifest exports javax.ws.rs and serviceMix depends on its own implementation.Is there a way to resolve it or do I need to convert my services to CXF?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:24:31+00:00Added an answer on May 30, 2026 at 2:24 am

    You have analyzed the problem correctly: Felix cannot resolve this situation, since there are two bundles providing a package, com.sun.jersey.jersey-core doesn’t import it (it should), and the your own bundles wants to import a specific version, that is different from the one that com.sun.jersey.jersey-core provides (since that bundle does not provide a version statement, it defaults to 0.0.0, so it doesn’t match your requirement).

    So, what can you do?

    • The best solution would be for the jersey-core bundle to provide the correct imports, in stead of imposing its own version on the rest of the framework.
    • Since that might take a while, you can drop the version statement in your own import, giving the framework a chance to wire you up to the jersey-core bundle, in stead of the servicemix one. I know that is not an ideal situation, but it seems to be the best we can do.

    As a general note on uses constraints, see Neil Bartlett’s post on ‘uses’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to deploy my spring app on tomcat 6 I get an error
I'm trying to deploy elmah . For inexplicable reasons, I'm getting an error: .axd
I'm trying to deploy an application on Azure but I'm facing some problems. on
I'm trying to deploy a Sinatra app to Dreamhost and it says the following:
Am trying to deploy my CLR Trigger built on .Net 4.0 but changed the
Im trying to deploy my django and I always get one of these erros:
So I'm trying to deploy my app to heroku but it keeps giving me
I'm trying to deploy two or more independent Play! (1.2.4) based projects to the
When trying to deploy a VS2010 database project using the VSDBCMD tool, I get
I am trying to deploy the sample-app war file that comes with PushSDK.But was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.