Hi,

I trying to upgrade from an old CXF version to the latest release (3.1.4).

I'm using spring 3 and try to configure a stand alone HTTP transport
using jetty.

My application starts. However during startup there are warnings
indicating that the HTTP server is not correctly setup. Also jetty warns
that the contextPath is empty:

03 Dec 2015 12:11:23 | INFO  jetty-9.2.11.v20150529
(org.eclipse.jetty.server.Server) [Phoenix-Monitor]
03 Dec 2015 12:11:23 | WARN  No Server set for
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine$1@6edb6b87
(org.eclipse.jetty.server.handler.AbstractHandler) [Phoenix-Monitor]
03 Dec 2015 12:11:23 | INFO  Started
ServerConnector@4b307234{HTTP/1.1}{127.0.0.1:9009}
(org.eclipse.jetty.server.ServerConnector) [Phoenix-Monitor]
03 Dec 2015 12:11:23 | INFO  Started @7279ms
(org.eclipse.jetty.server.Server) [Phoenix-Monitor]
03 Dec 2015 12:11:23 | WARN  Empty contextPath
(org.eclipse.jetty.server.handler.ContextHandler) [Phoenix-Monitor]


My Spring SOAP configuration basically looks like this:

<?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:jaxws="http://cxf.apache.org/jaxws";

xmlns:http-conf="http://cxf.apache.org/transports/http/configuration";

xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
        xmlns:sec="http://cxf.apache.org/configuration/security";

    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
        http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd
        http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
        http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
        http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd
        ">

    <bean id="usersWSBean"
        class="mitm.application.djigzo.ws.impl.UsersWSImpl">
    </bean>

    <!-- SOAP interceptor used to check the SOAP authentication
credentials -->
    <bean id="passwordInterceptor"
        class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
        <constructor-arg>
            <map>
                <entry key="action" value="UsernameToken" />
                <entry key="passwordType" value="PasswordDigest" />
                <entry key="passwordTypeStrict" value="false" />
                <entry key="passwordCallbackRef">
                    <ref bean="passwordCallback"/>
                </entry>
            </map>
        </constructor-arg>
    </bean>

    <!--
        The username and password required for the soap connection.
    -->
    <bean id="passwordCallback"
        class="mitm.application.djigzo.ws.ServerPasswordHandler">
        <!-- username -->
        <constructor-arg index="0" value="test"/>
        <!-- password -->
        <constructor-arg index="1" value="test"/>
    </bean>

    <jaxws:endpoint id="usersWS"
        implementorClass="mitm.application.djigzo.ws.impl.UsersWSImpl"
        implementor="#usersWSBean"
        serviceName="s:Users"
        address="http://127.0.0.1:9009/usersws";
        xmlns:s="http://ws.djigzo.com";>

        <jaxws:inInterceptors>
            <ref bean="passwordInterceptor"/>
        </jaxws:inInterceptors>
    </jaxws:endpoint>


Any idea what might be wrong?

Kind regards,

Martijn Brinkers


Reply via email to