Not sure what mess up the QueryHandlerRegistry of the bus, may be you need to make these servlets are started on by on.

On 11/12/10 9:26 AM, Conficio wrote:

Hi there,
I want to use two CXFServlets in my web.xml, one for public and one for
private services.

I tried to define


   <servlet>
     <servlet-name>CXFPrivateServlet</servlet-name>
     <servlet-class>
         org.apache.cxf.transport.servlet.CXFServlet
     </servlet-class>
     <init-param>
       <param-name>config-location</param-name>
       <param-value>/WEB-INF/private.xml</param-value>
     </init-param>
     <load-on-startup>1</load-on-startup>
   </servlet>

   <servlet-mapping>
     <servlet-name>CXFPrivateServlet</servlet-name>
     <url-pattern>/services/private/*</url-pattern>
   </servlet-mapping>
<servlet>
     <servlet-name>CXFPubicServlet</servlet-name>
     <servlet-class>
         org.apache.cxf.transport.servlet.CXFServlet
     </servlet-class>
     <init-param>
       <param-name>config-location</param-name>
       <param-value>/WEB-INF/public.xml</param-value>
     </init-param>
     <load-on-startup>1</load-on-startup>
   </servlet>

   <servlet-mapping>
     <servlet-name>CXFPublicServlet</servlet-name>
     <url-pattern>/services/public/*</url-pattern>
   </servlet-mapping>


This does not seem to work. If I have two servlets like this it loops in the
service endpoint publishing.

If I only define a single config-location and servler-mapping, then the
servlet endpoints are published in the startup, but the servlet does not
serve the WSDL or overview page.

Is there a better way to achieve that?

K<o>
P.S.: This is all part of a spring configured container. When I define a
global include of the endpoint beans and a CXFServlet w/o any
config-location, then the services are deployed, but all under a single URI.


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to