Hi,

I am trying to get soap request form wsdl and passing that request to the
output folder. But i am getting this error.When i deploy the jar into
servicemix it gives SocketException Here are my camel-context file and
StockRouteBuilder class.

##Camel-context file.
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xmlns:cxf="http://camel.apache.org/schema/cxf";
       xsi:schemaLocation="
           http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
           http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
           http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd";>

                           
                           
  <import resource="classpath:META-INF/cxf/cxf.xml" /> 
  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> 
  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /> 
  
  
         <bean id="myroutebuilder" class="com.camel.StockRouteBuilder"/>
         
         <cxf:cxfEndpoint id="pleaseRoute" 
          
address="http://localhost:8080/3.34/services/CustomerIncidentServiceSoap";
                
serviceClass="com.camel.StockEndPointService"></cxf:cxfEndpoint>   
         
       <camel:camelContext>
                <camel:routeBuilder ref="myroutebuilder"/>
       </camel:camelContext> 
         
</beans>


## StockRouteBuilder Class
@Override
public void configure() throws Exception {              
      System.out.println("Inside Configure");           
      
            
      from("cxf:bean:pleaseRoute")
      .convertBodyTo(StockBean.class)
      .wireTap("file://target/inbox/")      
      .to("file://outbox/");
        }
}

##Error

java.net.SocketException: Network is unreachable: connect
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
        at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown 
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.XMLSchemaValidator.getGlobalElementDecl(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.SubstitutionGroupHandler.getMatchingElemDecl(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.models.XSDFACM.oneTransition(Unknown
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)[:]
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)[:]
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)[:]
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)[:]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
        at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[69:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[69:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[78:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[78:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[78:org.springframework.osgi.extender:1.2.1]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]
14:55:28,281 | WARN  | ExtenderThread-8 | XmlBeanDefinitionReader          |
67 - org.springframework.beans - 3.0.5.RELEASE | Ignored XML validation
warning
java.net.ConnectException: Connection timed out: connect
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
        at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
Source)[:]
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown 
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)[:]
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)[:]
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)[:]
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)[:]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
        at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[67:org.springframework.beans:3.0.5.RELEASE]
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[69:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[69:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[78:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[78:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[75:org.springframework.osgi.core:1.2.1]
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[78:org.springframework.osgi.extender:1.2.1]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]



--
View this message in context: 
http://camel.465427.n5.nabble.com/Network-is-unreachable-tp5003782p5003782.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to