• 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

JAX-RS in JBoss 6 Final

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Justin Chi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic