| Author |
JAX-RS in JBoss 6 Final
|
Justin Chi
Greenhorn
Joined: Sep 09, 2009
Posts: 25
|
|
Hi all,
https://issues.jboss.org/browse/JBWS-2670 is telling that Apache CXF implemented JAX-RS will not be included in JBossWS and it is suggested to use RestEasy.
http://docs.jboss.org/resteasy/2.0.0.GA/userguide/pdf/RESTEasy_Reference_Guide.pdf Chapter 3 : Installation/Configuration is saying that for JBoss AS 6-M4 or higher , RestEasy is already bundled and integrated completely.
I am using JBoss AS 6 Final, but I can not find jars for RestEasy in JBoss installed folder, should I manully download and add to JBoss?
Or there is something I missed out ?
And what implementation you guys are using for RESTful web service in JBoss AS 6 Final?
Thanks for your comments in advance.
Regards,
Justin Chi
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8143
|
|
I am using JBoss AS 6 Final, but I can not find jars for RestEasy in JBoss installed folder
It's in JBOSS_HOME/server/<servername>/deployers/resteasy.deployer folder.
|
[My Blog] [JavaRanch Journal]
|
 |
Justin Chi
Greenhorn
Joined: Sep 09, 2009
Posts: 25
|
|
Jaikiran Pai wrote:
I am using JBoss AS 6 Final, but I can not find jars for RestEasy in JBoss installed folder
It's in JBOSS_HOME/server/<servername>/deployers/resteasy.deployer folder.
Thank you J. P , do not realize that it is distributed as in deployer.
|
 |
Garry Dias
Greenhorn
Joined: Dec 03, 2009
Posts: 2
|
|
Hey Justin
did you ran the RESTEasy sample explained in http://docs.jboss.org/resteasy/docs/2.2.1.GA/userguide/html_single/index.html?
The RESTEasy version in JBoss 6.1.0.Final is 2.2.1.
I created this POJO:
and provided a basic web.xml as follows:
and compiled my .war application using maven.
But when starting jboss my application does not deploy. This exception is thrown:
11:03:11,023 ERROR [StandardContext] Context [/myroot] startup failed due to previous errors: java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>
any ideas
tanks for your help
|
 |
Justin Chi
Greenhorn
Joined: Sep 09, 2009
Posts: 25
|
|
Hi Garry,
Please post your web.xml then we will know why your deployment failed, your error has nothing to do with JAX-RS.
BTW I have something here http://solecjj.blogspot.com/2011/04/jax-ws-with-jboss-6-day-8-restful.html for you as a ref.
Thanks,
Justin
|
 |
Garry Dias
Greenhorn
Joined: Dec 03, 2009
Posts: 2
|
|
My web.xml is already posted. Is based on http://docs.jboss.org/resteasy/docs/2.2.1.GA/userguide/html_single/index.html example.
Here it go again:
Thanks for your reply.
I'll check your link now.
|
 |
 |
|
|
subject: JAX-RS in JBoss 6 Final
|
|
|