aspose file tools
The moose likes JBoss and the fly likes Have a problem migrating Jersey Webservice from JBOSS 5.1.0 to JBOSS 7.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Have a problem migrating Jersey Webservice from JBOSS 5.1.0 to JBOSS 7.1.1" Watch "Have a problem migrating Jersey Webservice from JBOSS 5.1.0 to JBOSS 7.1.1" New topic
Author

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

Pongsakorn Semsuwan
Ranch Hand

Joined: May 15, 2011
Posts: 34

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.


A web application developer wannabe from Thailand
My StartUp : http://www.dreamlog.co
Blog : http://pongsakornsemsuwan.wordpress.com
Pongsakorn Semsuwan
Ranch Hand

Joined: May 15, 2011
Posts: 34

This is how my web.xml looks like


MyServices

santhosh srinivasan
Greenhorn

Joined: Sep 29, 2010
Posts: 1
Hi Pongsakorn,

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

Regards
Santhosh


Cheers
Santhosh
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Have a problem migrating Jersey Webservice from JBOSS 5.1.0 to JBOSS 7.1.1
 
Similar Threads
Jersey Hibernate Problem
Overloading a REST Service throws exception
Tomcat and Axis2
Netbeans 6.8M1 and JAX-RS using Jersey problems
Error when trying to upload a file using Jersey