Hi GV,
What ServiceMix version are you use?
I suppose you are using 3.2.3, so would you please post
/webapps/apache-servicemix-web-3.2.3/WEB-INF/web.xml
and the xbean.xml for your cxf bc consumer?
And do you install component and SA from the web console?
I post the necessary step again, just for your reference

You need add
<servlet>
      <servlet-name>cxf</servlet-name>
      <display-name>cxf</display-name>
      <description>Apache CXF Endpoint</description>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
      <servlet-name>cxf</servlet-name>
      <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
to the /webapps/apache-servicemix-web-3.2.3/WEB-INF/web.xml
this servlet just replace http transport with servlet transport, so that you can avoid starting jetty server when start cxf bc consumer, just reuse the http server provided by your servlet container(tomcat in your case),
Also, you need add
locationURI="/whateveryouwant"
for your cxf bc consumer configuration
You need install cxf bc component and SA from the WEB console
then you can access the wsdl by
http://localhost:8080/apache-servicemix-web-3.2.2/services/whateveryouwant?wsdl

Freeman

GV wrote:
Hi

  I am launching ServiceMix as a Web Application (Tomcat as the container) -
it however kicks off an instance of Jetty. I want to use Tomcat as the
container for ServiceMix and would like to not use Jetty.

  I referred to a few posts to use Servlet Transport instead of HTTP
transport by using CXFServlet as the destination of incoming requests. While
this prompts the destination factory being replaced by the ServletTransport
Factory, it still does not stop Jetty from getting spawned. Also, i am
unable to access the web service endpoint (which is a CXF BC in my case).
Basically, when my application (deployed as a Service Assembly) starts up,
while starting up the cxf bc service unit in my application, it kicks off
jetty.

  Again all posts i referred to with reference to this mentioned making
changes to web.xml which i did.

  Can somebody list if i am missing anything here?

GV

Reply via email to