Per,

Can you provide more specific information on what is not working? If
it helps, in general JAX endpoints are not servlet instances, and
require some magic to make servlet containers work with them. Most JAX
frameworks provide a special servlet that handles all inbound requests
and routes to the specific endpoint.

cheers
Jan

On 27 August 2013 17:13, Per Jørgen Vigdal <[email protected]> wrote:
> Hi.
>
> I am not able to set up a filter to work with my JAX-WS Endpoint when running 
> Jetty Embedded.
> Something like this do not work :
>
>         Server server = new Server(8080);
>         ServletContextHandler context = new 
> ServletContextHandler(ServletContextHandler.SESSIONS);
>         context.setContextPath("/");
>         server.setHandler(context);
>         context.addServlet(new ServletHolder(new HelloServlet()),"/*");
>         FilterHolder f = new FilterHolder(SOAPServletFilter.class);
>         context.addFilter(f, "/*", null);
>        Endpoint utl_endpoint = Endpoint.create(new MyWebService());
>        utl_endpoint.publish(" 
> http://localhost:8080/no/MyWebServiceSoapHttpPort";, new MyWebService());
>         server.start();
>         server.join();
>
> Please help me
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users



-- 
Jan Bartel <[email protected]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to