aspose file tools*
The moose likes Web Services and the fly likes AS6 Final - resteasy-deployer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AS6 Final - resteasy-deployer" Watch "AS6 Final - resteasy-deployer" New topic
Author

AS6 Final - resteasy-deployer

Reginold Smith
Greenhorn

Joined: Aug 18, 2012
Posts: 3
Howdy Folks,

I am trying to setup resteasy within JBoss AS6 and I am hitting a big brick wall....it seems that the resteasy-deployer is not deploying as none of the classes are present in my .ear and therefore none of the javax.ws imports are present

I can have tried adding the required .jar files to the .ear manually (jaxrs-api.jar, resteasy-jax-rs.jar and jboss-seam-resteasy.jar) but then run into a load of new problems as the bundled versions are clashing with the ones I added

Can someone explain, is there something I need to do to enable these 'bundled' libraries?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5776
    
    7

Not sure if this is a JBoss AS issue or a resteasy issue. I'll cross post your question to the web services forum, just in case it is a resteasy config issue.

I use Jersey rather than resteasy, but shouldn't your create a WAR, not an EAR? And also don't you have to have some declarations in your web.xml to tell resteasy where your web services are located.?


JBoss In Action
Reginold Smith
Greenhorn

Joined: Aug 18, 2012
Posts: 3
Hi Peter, thanks for the reply, I have a .ear with a .war within it, however I have since tried creating a new .war specifically for Resteasy but have had no luck with that either

The documentation clearly says that with JBoss AS6 (M4 and above) you dont need any web.xml configuration as JBoss should locate the JAX-RS service classes automatically, but I have also tried various web.xml configurations to no avail

I am considering giving up and trying Jersey, but it seems a shame as JBoss AS6 is supposedly setup for resteasy, and I have also seen other forum posts of problems with Jersey & Resteasy conflicting with each other
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9318
    
109

Have you tried this against AS 7.1.1.Final? JBoss AS6 is no longer under active development.

[My Blog] [JavaRanch Journal]
Reginold Smith
Greenhorn

Joined: Aug 18, 2012
Posts: 3
No I havent, unfortunately I dont have time to consider migrating the SEAM 2/JSF 1.2 app to JBoss 7, up until now JBoss 6 has been good for my needs!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AS6 Final - resteasy-deployer
 
Similar Threads
Resteasy and Spring - howto register javax.xml.bind.ValidationEventHandler
EAR Isolation in Jboss 4.0.2
EAR File in JBOSS
EAR Isolation in Jboss 4.0.2
JAX-RS in JBoss 6 Final