Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] servlet filter and JAX-WS Endpoint when running Jetty Embedded


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.


On 27 August 2013 17:13, Per Jørgen Vigdal <Per.Jorgen.Vigdal@xxxxxxxx> 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
> jetty-users@xxxxxxxxxxx

Jan Bartel <janb@xxxxxxxxxxx>
'Expert Jetty/CometD developer,production,operations advice'

Back to the top