File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "AS6 Final - resteasy-deployer" Watch "AS6 Final - resteasy-deployer" New topic

AS6 Final - resteasy-deployer

Reginold Smith

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

I am trying to setup resteasy within JBoss AS6 and I am hitting a big brick seems that the resteasy-deployer is not deploying as none of the classes are present in my .ear and therefore none of the 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?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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

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

Joined: Jul 20, 2005
Posts: 10441

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

[My Blog] [JavaRanch Journal]
Reginold Smith

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:
subject: AS6 Final - resteasy-deployer
It's not a secret anymore!