I'm sending files

Willem Jiang pisze:
Hi Pawel

Did you use CXFServlet transport which delegate the http transport to a CXFServlet ?
If so , could you show me your Web.xml  and Beans.xml?

In you case I think you still start a new Jetty engine for listening the port.

Willem.
Pawel Janusz wrote:
Hello
How to setup CXF not to use Jetty when defining "adress" in "jaxws:endpoint". When I try to pass such: address="/service" i got error. Only when I give full address port (port has to be different from Tomcat's).

eg. (this one works fine)

<jaxws:endpoint id="MyServiceService"
 implementor="#MyServiceServiceImpl"
       address="http://localhost:8081/MyService
"/>


I want to use this one but not working :(

<jaxws:endpoint id="MyServiceService"
 implementor="#MyServiceServiceImpl"
       address="/MyService"/>




<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xmlns:simple="http://cxf.apache.org/simple";
      xmlns:soap="http://cxf.apache.org/bindings/soap";
      xmlns:jaxws="http://cxf.apache.org/jaxws";
      xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>

<bean class="org.apache.cxf.transport.local.LocalTransportFactory" lazy-init="false">
      <property name="transportIds">
          <list>
              <value>http://cxf.apache.org/transports/local</value>
              <value>http://schemas.xmlsoap.org/soap/http</value>
              <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
          </list>
      </property>
  </bean>
 
  <jaxws:endpoint id="SD_Users"
                  implementor="SD.services.Users"
                  address="/SD_Users"/>
                  
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
	<display-name>SD</display-name>
	    
 <context-param>
	<param-name>contextConfigLocation</param-name>
	<param-value>
		WEB-INF/cxf-servlet.xml
	</param-value>
  </context-param>

  <listener>
	<listener-class>
		org.springframework.web.context.ContextLoaderListener
	</listener-class>
  </listener>
  
  <servlet>
    <servlet-name>CXFServlet</servlet-name>
    <display-name>CXF Servlet</display-name>
    <servlet-class>
        org.apache.cxf.transport.servlet.CXFServlet
    </servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
    
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>

Reply via email to