Announcement Announcement Module
Collapse
No announcement yet.
apache cxf and generating code from wsdl. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • apache cxf and generating code from wsdl.

    Hi.
    I've created a maven project with apache cxf 2.4.2 and spring 3.0.5. I've also created a simple web service with plenty of web methods. I run it on tomcat6 or tomcat7 with intellij 10.5. The thing is when there is more that 17 methods I got a warning when I try Generate Java code from WSDL.
    web.xml:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5">
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:application-Context.xml</param-value>
        </context-param>
       <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
        <servlet>
            <servlet-name>CXFServlet</servlet-name>
            <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>CXFServlet</servlet-name>
            <url-pattern>/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>60</session-timeout>
        </session-config>
    </web-app>
    application-Context.xml:
    Code:
    <?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"
           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">
        <bean id="hello" class="com.phoenix.bart.WebServiceServer.HelloWorldImpl"/>
        <jaxws:endpoint id="helloWorld" implementor="#hello" address="/HelloWorld"/>
    </beans>
    If you could help me that would be great. If you need any other information let me know.
    Bellow is the whole warning that I'm getting:
    Code:
    2011-09-16 11:02:54 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
    WARNING: Interceptor for {http://WebServiceServer.bart.phoenix.com/}HelloWorldImplService has thrown exception, unwinding now
    org.apache.cxf.interceptor.Fault
    	at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:130)
    	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206)
    	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)
    	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:200)
    	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:112)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: ClientAbortException:  java.net.SocketException: Broken pipe
    	at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319)
    	at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
    	at org.apache.catalina.connector.Response.flushBuffer(Response.java:549)
    	at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
    	at org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.close(AbstractHTTPDestination.java:610)
    	at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:127)
    	... 22 more
    Caused by: java.net.SocketException: Broken pipe
    	at java.net.SocketOutputStream.socketWrite0(Native Method)
    	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    	at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:760)
    	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
    	at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:318)
    	at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:985)
    	at org.apache.coyote.Response.action(Response.java:183)
    	at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
    	... 27 more
    2011-09-16 11:02:54 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
    WARNING: Interceptor for {http://WebServiceServer.bart.phoenix.com/}HelloWorldImplService 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:263)
    	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:105)
    	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:323)
    	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206)
    	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)
    	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:200)
    	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:112)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: ClientAbortException:  java.net.SocketException: Broken pipe
    	at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319)
    	at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
    	at org.apache.catalina.connector.Response.flushBuffer(Response.java:549)
    	at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
    	at org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStream.close(AbstractHTTPDestination.java:610)
    	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    	at org.apache.cxf.transport.http.AbstractHTTPDestination$BackChannelConduit.close(AbstractHTTPDestination.java:552)
    	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    	... 24 more

  • #2
    rest of error:
    Code:
    Caused by: java.net.SocketException: Broken pipe
    	at java.net.SocketOutputStream.socketWrite0(Native Method)
    	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    	at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:760)
    	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
    	at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:318)
    	at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:985)
    	at org.apache.coyote.Response.action(Response.java:183)
    	at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
    	... 31 more

    Comment

    Working...
    X