cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leos Literak <liter...@centrum.cz>
Subject Re: servlet transport question
Date Thu, 24 Apr 2008 17:43:32 GMT
I fixed endpoint url (port was missing), but no change, it still does 
not work.

24.4.2008 19:30:56 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be 
http://localhost:8080/services/users
2008-04-24 19:31:06.843::INFO:  Started SocketConnector@127.0.0.1:8080
24.4.2008 19:31:15 org.apache.cxf.transport.servlet.ServletController invoke
WARNING: Can't find the the request for 
http://localhost:8080/services/users's Observer

Leos


> Ok,
> 
> I made some progress today:
> <servlet>
> <servlet-name>CXFServlet</servlet-name>
> <display-name>CXF Web services Servlet</display-name>
> <servlet-class>cz.abclinuxu.servlets.ws.AbcCxfServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>CXFServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
> 
> public class AbcCxfServlet extends CXFNonSpringServlet {
> public void init(ServletConfig servletConfig) throws ServletException {
> super.init(servletConfig);
> Bus bus = this.getBus();
> BusFactory.setDefaultBus(bus);
> }
> }
> 
> some other servlet loaded later:
> 
> String endpointUrl = "http://"+getHostname()+"/services/users";
> Endpoint.publish(endpointUrl, new UserAccountServiceImpl());
> 
> @WebService(endpointInterface = "cz.abclinuxu.servlets.ws.UserAccountService", serviceName
= "Users")
> public class UserAccountServiceImpl implements UserAccountService {
> 
> saaj-impl-1.3.jar wsdl4j-1.6.1.jar wstx-asl-3.2.4.jar xml-resolver-1.2.jar
> cxf-2.0.5-incubator.jar jaxb-api-2.0.jar saaj-api-1.3.jar xml-resolver-1.2.jar
> geronimo-annotation_1.0_spec-1.1.1.jar jaxb-impl-2.0.5.jar saaj-impl-1.3.jar XmlSchema-1.3.2.jar
> geronimo-stax-api_1.0_spec-1.0.1.jar jaxws-api-2.0.jar wsdl4j-1.6.1.jar
> geronimo-ws-metadata_2.0_spec-1.1.2.jar neethi-2.0.2.jar wstx-asl-3.2.4.jar
> 
> When I start jetty:
> 
> 24.4.2008 19:04:27 org.apache.cxf.transport.servlet.CXFNonSpringServlet loadBusNoConfig
> INFO: Load the bus without application context
> 24.4.2008 19:04:28 org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory
> INFO: Replaced the http destionFactory with servlet transport factory
> 24.4.2008 19:04:28 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
> INFO: Creating Service {http://ws.servlets.abclinuxu.cz/}Users from class cz.abclinuxu.servlets.ws.UserAccountServiceImpl
> 24.4.2008 19:04:30 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
> INFO: {http://ws.servlets.abclinuxu.cz/}arg0 part element name {http://ws.servlets.abclinuxu.cz/}arg0
references element {http://ws.servlets.abclinuxu.cz/}arg0
> {http://ws.servlets.abclinuxu.cz/}arg1 part element name {http://ws.servlets.abclinuxu.cz/}arg1
references element {http://ws.servlets.abclinuxu.cz/}arg1
> 24.4.2008 19:04:30 org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be http://localhost/services/users
> 2008-04-24 19:04:42.618::INFO: Started SocketConnector@127.0.0.1:8080
> 
> 24.4.2008 19:04:51 org.apache.cxf.transport.servlet.ServletController invoke
> WARNING: Can't find the the request for http://localhost:8080/services/users's Observer
> 
> What's wrong?
> 
> Leos

Mime
View raw message