You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by toomanyedwards <to...@gmail.com> on 2015/10/23 10:22:26 UTC
how to get jetty logging to debug cxfrs servce 500
Hi all,
I am attempting to define a rest service using camel DSL. When I start my
camel context with my route and attempt an HTTP GET to my endpoint I am
getting a 500 and it's not making it to any of my processors so I think the
issue may be happening internal to Jetty. Maybe I'm missing a dependency,
etc.? How to turn on logging for the embedded Jetty used by camel to I can
get an idea of what's going on here? Any other suggestions on how to debug
are appreciated. Thanks!
Here's the start of my service route:
from(
"cxfrs:http://localhost:8090/hello?resourceClasses=" +
MyCxfRsResourceClass.class.getName() +
"&bindingStyle=SimpleConsumer"
)....
and here's my resource class:
public class MyCxfRsResourceClass
{
/**
* No-op. Annotations and parameters used for service configuration only
*
* @param request
* @return
*/
@GET
public static String get(String request){return null;}
}
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-get-jetty-logging-to-debug-cxfrs-servce-500-tp5772993.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to get jetty logging to debug cxfrs servce 500
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
> public static String get(String request){return null;}
Remove 'static', that might help. Besides, you can use an interface only
(with this from option, and with cxfrs:endpoint with the latest Camel),
and actually invoke on your bean, though for this case it is not needed...
HTH,
Sergey
On 23/10/15 09:22, toomanyedwards wrote:
> Hi all,
> I am attempting to define a rest service using camel DSL. When I start my
> camel context with my route and attempt an HTTP GET to my endpoint I am
> getting a 500 and it's not making it to any of my processors so I think the
> issue may be happening internal to Jetty. Maybe I'm missing a dependency,
> etc.? How to turn on logging for the embedded Jetty used by camel to I can
> get an idea of what's going on here? Any other suggestions on how to debug
> are appreciated. Thanks!
>
> Here's the start of my service route:
>
> from(
> "cxfrs:http://localhost:8090/hello?resourceClasses=" +
> MyCxfRsResourceClass.class.getName() +
> "&bindingStyle=SimpleConsumer"
> )....
>
> and here's my resource class:
>
> public class MyCxfRsResourceClass
> {
> /**
> * No-op. Annotations and parameters used for service configuration only
> *
> * @param request
> * @return
> */
> @GET
> public static String get(String request){return null;}
> }
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-get-jetty-logging-to-debug-cxfrs-servce-500-tp5772993.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/