RE: tomcat deployment issues
Please ignore this and previous versions thereof. I've just discovered the cause of this, which is the lack of modern tomcat support in the so-called tomcat plugin for Eclipse. I wish that wst didn't crash so that I could use it. > -Original Message- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 21, 2007 4:02 PM > To: cxf-user@incubator.apache.org > Subject: tomcat deployment issues > > I found a bt-spring.log file in my tomcat directory. I don't know what > picked the name bt-spring: it's not a string that occurs anywhere in my > bean definitions. The ClassCastException looks pretty mysterious to me. > > > 0[main] INFO > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spring_w > eb_services] - Marking servlet CXFServlet as unavailable > 0[main] ERROR > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spring_w > eb_services] - Servlet /spring_web_services threw load() exception > java.lang.ClassCastException: > org.apache.cxf.transport.servlet.CXFServlet > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav > a:1089) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j > ava:3956) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 > ) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja > va:760) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java: > 626) > at > org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java > :553) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 > 1) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu > pport.java:120) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at > org.apache.catalina.core.StandardService.start(StandardService.java:448) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > at org.apache.catalina.startup.Catalina.start(Catalina.java:552) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
RE: tomcat deployment issues
Hi I have some problems trying to develop a WS application startign from a WDSL file. I generate all the classes and stubs with: wsdl2java -all . and everything gets generated. Then I have packaged everything in a web application with this web.xml file: http://java.sun.com/dtd/web-app_2_3.dtd";> cxf cxf contextConfigLocation WEB-INF/services.xml org.springframework.web.context.ContextLoaderListener cxf cxf Apache CXF Endpoint org.apache.cxf.transport.servlet.CXFServlet 1 cxf /cxfprova/* 60 index.jsp then I have created the services.xml file, and here it is: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";> When I deploy and run tomcat everything semms to work...but when I try to invoke the service with the client(provided by wsdl2java) I get this exception Invoking creditReportOperation... 26-lug-2007 17.29.31 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) at $Proxy24.creditReportOperation(Unknown Source) at org.netbeans.j2ee.wsdl.creditreport.CreditReportPortTypeClient.main(CreditReportPortTypeClient.java:54) Caused by: java.io.IOException: /cxfprova/service1 at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:168) at $Proxy24.creditReportOperation(Unknown Source) at org.netbeans.j2ee.wsdl.creditreport.CreditReportPortTypeClient.main(CreditReportPortTypeClient.java:54) Caused by: org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) ... 2 more Caused by: java.io.IOException: /cxfprova/service1 at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more Some Idea!??!?? Many thanks Davide -- View this message in context: http://www.nabble.com/tomcat-deployment-issues-tf4122987.html#a11813377 Sent from the cxf-user mailing list archive at Nabble.com.
Re: tomcat deployment issues
Hi Davide, I just test your web.xml and services.xml, they all work well. I also write client which can work with the service deploy into servlet container well. Could you tell me how you launch your client side? Key point is that how you pass in wsdl to client side. In your case, it should be http://localhost:port/cxfprova/service1?wsdl but not the local wsdl you use to generate code stub. Best Regards Freeman Davide Gesino wrote: Hi I have some problems trying to develop a WS application startign from a WDSL file. I generate all the classes and stubs with: wsdl2java -all . and everything gets generated. Then I have packaged everything in a web application with this web.xml file: http://java.sun.com/dtd/web-app_2_3.dtd";> cxf cxf contextConfigLocation WEB-INF/services.xml org.springframework.web.context.ContextLoaderListener cxf cxf Apache CXF Endpoint org.apache.cxf.transport.servlet.CXFServlet 1 cxf /cxfprova/* 60 index.jsp then I have created the services.xml file, and here it is: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";> id="creditReportType" implementor="org.netbeans.j2ee.wsdl.creditreport.CreditReportPortTypeImpl" address="/service1" /> When I deploy and run tomcat everything semms to work...but when I try to invoke the service with the client(provided by wsdl2java) I get this exception Invoking creditReportOperation... 26-lug-2007 17.29.31 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) at $Proxy24.creditReportOperation(Unknown Source) at org.netbeans.j2ee.wsdl.creditreport.CreditReportPortTypeClient.main(CreditReportPortTypeClient.java:54) Caused by: java.io.IOException: /cxfprova/service1 at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:168) at $Proxy24.creditReportOperation(Unknown Source) at org.netbeans.j2ee.wsdl.creditreport.CreditReportPortTypeClient.main(CreditReportPortTypeClient.java:54) Caused by: org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) ... 2 more Caused by: java.io.IOException: /cxfprova/service1 at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more Some Idea!??!?? Many thanks Davide