• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Have a problem migrating Jersey Webservice from JBOSS 5.1.0 to JBOSS 7.1.1

 
Ranch Hand
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have to migrate my REST webservice built by Jersey from JBOSS 5.1.0 to JBOSS 7.1.1

The webservice works fine on 5.1 but when I try deploying it on 7.1.1 I run into some problem as follows

1. There's this error about JAX-RS

This is because jboss 7 comes with RESTEASY and don't want me to use Jersey. I found solution commenting out two lines in standalone.xml and it's working fine.

2. Then I got linkage error

Google said that I have to bundle jackson-all-1.8.5.jar to my lib and now this error disappear.

3. At this point, the webservice is deployable but when I try to call it, it spits this error


This is normally the case that either my web.xml does not state com.sun.jersey.config.property.packages (which it does) or the package I state does not have Jersey compatible class (which it has, because it works on JBOSS 5.1)

I cannot find the solution for this. Please help. Thank you in advance.
 
Pongsakorn Semsuwan
Ranch Hand
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is how my web.xml looks like


MyServices

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pongsakorn,

I'm facing a similar exception. Did you find a solution for your problem

Regards
Santhosh
 
Greenhorn
Posts: 4
VI Editor Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also met those errors with Jersey & JBoss7. I have solved by following the answers in JBoss forum:

https://community.jboss.org/message/626705#626705
https://community.jboss.org/message/808749#808749

Hope this helps,
 
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic