[jboss-user] [JBoss Web Services] - Re: Resteasy + Seam = 403 Forbidden, any idea why?

Grzegorz Gwoźdź do-not-reply at jboss.com
Mon Jan 3 14:19:53 EST 2011


Grzegorz Gwoźdź [http://community.jboss.org/people/gwozdziu] created the discussion

"Re: Resteasy + Seam = 403 Forbidden, any idea why?"

To view the discussion, visit: http://community.jboss.org/message/578454#578454

--------------------------------------------------------------
Please try putting all your code in the method into try -catch clause:

@Path("/myPath")
@Produces("application/xml")
public MyClass myFunction(){
     try{
          //your code
     }catch(Exception e){
          e.printstackTrace();
     }
}

RESTEasy swollows lot of exceptions and creates response with various HTTP error headers. Using method described above you will now what might have gone wrong.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/578454#578454]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110103/e3285fbb/attachment.html 


More information about the jboss-user mailing list