soap - CXF-based create service failure -
we started having error related creation of cxf-based soap service. problematic code deployed on both staging , production environment, on 2 nodes on each environments. on each environment, nodes load balanced , independent each other. problem active on staging environment. staging deployed 10 days before problem has first appeared last friday.
production environment runs same code , works fine.
below code produces error. may see, problem happens while trying read wsdl packaged in same war, before setting endpoint or making call. rest of system, including other cxf based web services, work fine.
url wsdl = getclass().getresource("/wsdl/globalplatform/v2.0.0/wsdl/selifecyclenotification.wsdl"); selifecyclenotificationservice service = new selifecyclenotificationservice(wsdl, new qname("http://globalplatform.org/selifecyclenotification", "selifecyclenotificationservice"));
the stacktrace below. use cxf version 2.2.9 jboss 5.0.1 , jdk 1.6. obvious reasons, upgrading of cxf, jboss or jdk not option. changing timeout settings on global level not seem option either, affect elese, , not it.
can point out may cause problem ? problem manifest on booth nodes of same environment, caused common 2 nodes affected, network settings. however, wsdl reading operation should local, both machines have plenty of available disk space , ram allocated jvms, , rest of system works fine.
any appreciated.
javax.xml.ws.webserviceexception: org.apache.cxf.service.factory.serviceconstructionexception: failed create service. @ org.apache.cxf.jaxws.serviceimpl.<init>(serviceimpl.java:152) @ org.apache.cxf.jaxws.spi.providerimpl.createservicedelegate(providerimpl.java:63) @ javax.xml.ws.service.<init>(service.java:36) @ org.globalplatform.selifecyclenotification.selifecyclenotificationservice.<init>(selifecyclenotificationservice.java:42) @ com.somecompany.services.tsm.queue.devicechangequeuedmessagesender.sendmessage(devicechangequeuedmessagesender.java:38) caused by: org.apache.cxf.service.factory.serviceconstructionexception: failed create service. @ org.apache.cxf.wsdl11.wsdlservicefactory.<init>(wsdlservicefactory.java:93) @ org.apache.cxf.jaxws.serviceimpl.initializeports(serviceimpl.java:207) @ org.apache.cxf.jaxws.serviceimpl.<init>(serviceimpl.java:150) ... 30 more caused by: javax.wsdl.wsdlexception: wsdlexception (at /wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultcode=parser_error: problem parsing 'vfszip:/opt/path/jboss-5.0.1.ga/server/default/deploy/somecompany-tsm-services.war/web-inf/lib/somecompany-gp-soap-messages-1.0-branch.jar/wsdl/globalplatform/v2.0.0/xsd/xmldsig-core-schema.xsd'.: java.net.connectexception: connection timed out @ com.ibm.wsdl.xml.wsdlreaderimpl.getdocument(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.parseschema(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.parseschema(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.parseschema(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.parsetypes(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.parsedefinitions(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.readwsdl(unknown source) @ com.ibm.wsdl.xml.wsdlreaderimpl.readwsdl(unknown source) @ org.apache.cxf.wsdl11.wsdlmanagerimpl.loaddefinition(wsdlmanagerimpl.java:230) @ org.apache.cxf.wsdl11.wsdlmanagerimpl.getdefinition(wsdlmanagerimpl.java:179) @ org.apache.cxf.wsdl11.wsdlservicefactory.<init>(wsdlservicefactory.java:91) ... 32 more caused by: java.net.connectexception: connection timed out @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.plainsocketimpl.doconnect(plainsocketimpl.java:333) @ java.net.plainsocketimpl.connecttoaddress(plainsocketimpl.java:195) @ java.net.plainsocketimpl.connect(plainsocketimpl.java:182) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:366) @ java.net.socket.connect(socket.java:529) @ java.net.socket.connect(socket.java:478) @ sun.net.networkclient.doconnect(networkclient.java:163) @ sun.net.www.http.httpclient.openserver(httpclient.java:394) @ sun.net.www.http.httpclient.openserver(httpclient.java:529) @ sun.net.www.http.httpclient.<init>(httpclient.java:233) @ sun.net.www.http.httpclient.new(httpclient.java:306) @ sun.net.www.http.httpclient.new(httpclient.java:323) @ sun.net.www.protocol.http.httpurlconnection.getnewhttpclient(httpurlconnection.java:975) @ sun.net.www.protocol.http.httpurlconnection.plainconnect(httpurlconnection.java:916) @ sun.net.www.protocol.http.httpurlconnection.connect(httpurlconnection.java:841) @ sun.net.www.protocol.http.httpurlconnection.getinputstream(httpurlconnection.java:1177) @ org.apache.xerces.impl.xmlentitymanager.setupcurrententity(unknown source) @ org.apache.xerces.impl.xmlentitymanager.startentity(unknown source) @ org.apache.xerces.impl.xmlentitymanager.startdtdentity(unknown source) @ org.apache.xerces.impl.xmldtdscannerimpl.setinputsource(unknown source) @ org.apache.xerces.impl.xmldocumentscannerimpl$dtddispatcher.dispatch(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) ... 43 more
Comments
Post a Comment