JBoss Community

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

created by Grzegorz Gwoźdź in JBoss Web Services - View the full discussion

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

Start a new discussion in JBoss Web Services at Community