You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jaikishore <ja...@syntelinc.com> on 2011/06/02 11:39:31 UTC
cxf:bc provider with proxy configuration
Hi Freeman,
currently I am working on a cxfbc:provider component to
consume external web services.I am succeeded with that, but now I need to
consume a xternal web services which required proxy configuration.
Can u tell me how can I implement this one in cxfbc:provider. Please help me
in this regards.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
There’s no any whitespaces in front xml declaration
line in cxf.xml. Still it’s not working{getting same xception}.
Then I tried to give exact name space and port endpoint with “:” character
in cxf.xml{please check the below configurations}.
now I am not getting the below exception. At the same time messages are not
routing through this proxy{which we are defined in cxf.xml} getting
connection timed out xception.
can u please check the configuration http:conduit
name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit
given in cxf.xml is true or not. please help me in this regards…
cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
Xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450215.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
Thank u very much for your prompt response.
I added configuration as u said. But I am getting the below exception.
I am also sending my configuration files, could you please have a look into that.
I am using servicemix-cxf-bc-2010.01-installer binding component and apache-servicemix-3.3 version.
Please suggest in this regards…..
XBean.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Apache ServiceMix Archetype -->
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:prosabre="http://www.americanexpress.com/businesstravel/profilerouter"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
<classplath>
<location>.</location>
</classplath>
<cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
locationURI="http://148.173.122.2:8860/profilerouterservices/ProfileRouterMgmtService?wsdl"
endpoint="ProfileRouterMgmtServicePort" useJBIWrapper="false"
service="prosabre:ProfileRouterMgmtService" busCfg="cxf.xml">
</cxfbc:provider>
</beans>
Cxf.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:conf-sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http-conf:conduit name="*.http-conduit">
<http-conf:client ProxyServer="host"
ProxyServerPort="8080" />
<http-conf:proxyAuthorization>
<conf-sec:UserName></conf-sec:UserName>
<conf-sec:Password></conf-sec:Password>
</http-conf:proxyAuthorization>
</http-conf:conduit>
</beans>
Exception is ::
15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 367 | Failed to update Service Assembly: cxfbc-SA
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
15:38:09,753 | WARN | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 670 | Directory: hotdeploy: Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy\cxfbc-SA-1.0-SNAPSHOT.zip failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly: cxfbc-SA
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
... 6 more
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4447597-1551620203-147307@n5.nabble.com]
Sent: Thursday, June 02, 2011 3:20 PM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
You can configure http:conduit for this cxfbc:provider, some related
configuration like
<http:conduit name="*.http-conduit">
<http:proxyAuthorization>
<sec:UserName>proxy.user</sec:UserName>
<sec:Password>proxy.pass</sec:Password>
</http:proxyAuthorization>
<http:client
ProxyServerType="HTTP"
ProxyServer="proxy.host"
ProxyServerPort="proxy.port"
/>
</http:conduit>
You can get more details from[1]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
Freeman
On 2011-6-2, at 下午5:39, jaikishore wrote:
> Hi Freeman,
>
> currently I am working on a cxfbc:provider component
> to
> consume external web services.I am succeeded with that, but now I
> need to
> consume a xternal web services which required proxy configuration.
> Can u tell me how can I implement this one in cxfbc:provider. Please
> help me
> in this regards.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447661.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Freeman,
Could u pls respond to my earlier mail…..
Regards
Jai Kishore P,
From: Polepalli, JaiKishore
Sent: Thursday, June 02, 2011 3:44 PM
To: 'ml-node+4447597-1551620203-147307@n5.nabble.com'
Subject: FW: cxf:bc provider with proxy configuration
Hi Freeman,
Thank u very much for your prompt response.
I added configuration as u said. But I am getting the below exception.
I am also sending my configuration files, could you please have a look into that.
I am using servicemix-cxf-bc-2010.01-installer binding component and apache-servicemix-3.3 version.
Please suggest in this regards…..
XBean.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Apache ServiceMix Archetype -->
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:prosabre="http://www.jk.com/businesstravel/profilerouter"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
<classplath>
<location>.</location>
</classplath>
<cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
locationURI="http://host1:8860/profilerouterservices/ProfileRouterMgmtService?wsdl"
endpoint="ProfileRouterMgmtServicePort" useJBIWrapper="false"
service="prosabre:ProfileRouterMgmtService" busCfg="cxf.xml">
</cxfbc:provider>
</beans>
Cxf.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:conf-sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http-conf:conduit name="*.http-conduit">
<http-conf:client ProxyServer="host"
ProxyServerPort="8080" />
<http-conf:proxyAuthorization>
<conf-sec:UserName></conf-sec:UserName>
<conf-sec:Password></conf-sec:Password>
</http-conf:proxyAuthorization>
</http-conf:conduit>
</beans>
Exception is ::
15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 367 | Failed to update Service Assembly: cxfbc-SA
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
15:38:09,753 | WARN | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 670 | Directory: hotdeploy: Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy\cxfbc-SA-1.0-SNAPSHOT.zip failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly: cxfbc-SA
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
... 6 more
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4447597-1551620203-147307@n5.nabble.com]
Sent: Thursday, June 02, 2011 3:20 PM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
You can configure http:conduit for this cxfbc:provider, some related
configuration like
<http:conduit name="*.http-conduit">
<http:proxyAuthorization>
<sec:UserName>proxy.user</sec:UserName>
<sec:Password>proxy.pass</sec:Password>
</http:proxyAuthorization>
<http:client
ProxyServerType="HTTP"
ProxyServer="proxy.host"
ProxyServerPort="proxy.port"
/>
</http:conduit>
You can get more details from[1]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
Freeman
On 2011-6-2, at 下午5:39, jaikishore wrote:
> Hi Freeman,
>
> currently I am working on a cxfbc:provider component
> to
> consume external web services.I am succeeded with that, but now I
> need to
> consume a xternal web services which required proxy configuration.
> Can u tell me how can I implement this one in cxfbc:provider. Please
> help me
> in this regards.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447807.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Could u pls respond to my mail…..
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Polepalli, JaiKishore
Sent: Friday, June 03, 2011 10:02 AM
To: 'Freeman-2 [via ServiceMix]'
Subject: RE: cxf:bc provider with proxy configuration
Hi Freeman,
There’s no any whitespaces in front xml declaration line in cxf.xml. Still it’s not working{getting same xception}.
Then I tried to give exact name space and port endpoint with “:” character in cxf.xml{please check the below configurations}.
now I am not getting the below exception. At the same time messages are not routing through this proxy{which we are defined in cxf.xml} getting
connection timed out xception.
can u please check the configuration http:conduit name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit given in cxf.xml is true or not. please help me in this regards…
cxf.xml :: <?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:http="http://cxf.apache.org/transports/http/configuration"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:conf-sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:conduit
name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit">
<http-conf:client ProxyServerType="HTTP" ProxyServer="148.173.210.182"
ProxyServerPort="8080" />
<http-conf:proxyAuthorization>
<conf-sec:UserName></conf-sec:UserName>
<conf-sec:Password></conf-sec:Password>
</http-conf:proxyAuthorization>
</http:conduit>
</beans>
Xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:prosabre="http://www.jack.com/businesstravel/profilerouter"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<classplath>
<location>.</location>
</classplath>
<cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
locationURI="http://148.173.122.2:8860/profilerouterservices/ProfileRouterMgmtService?wsdl"
endpoint="ProfileRouterMgmtServicePort" useJBIWrapper="false"
service="prosabre:ProfileRouterMgmtService" busCfg="cxf_auth.xml">
</cxfbc:provider>
</beans>
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4449927-1598282816-147307@n5.nabble.com]
Sent: Friday, June 03, 2011 7:30 AM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
In your Cxf.xml
first line
<?xml version="1.0" encoding="UTF-8"?>
ensure there's no whitespace in front of this line.
Freeman
On 2011-6-2, at 下午6:14, jaikishore wrote:
> Hi Freeman,
>
>
>
> Thank u very much for your prompt response.
>
> I added configuration as u said. But I am getting the below exception.
>
> I am also sending my configuration files, could you please have a
> look into that.
>
> I am using servicemix-cxf-bc-2010.01-installer binding component and
> apache-servicemix-3.3 version.
>
> Please suggest in this regards…..
>
>
>
> XBean.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- Generated by Apache ServiceMix Archetype -->
>
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>
> xmlns:prosabre="http://www.jk.com/businesstravel/profilerouter"
>
> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>
> <classplath>
>
> <location>.</location>
>
> </classplath>
>
>
>
> <cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
>
> locationURI="http://host1:8860/profilerouterservices/
> ProfileRouterMgmtService?wsdl"
>
> endpoint="ProfileRouterMgmtServicePort"
> useJBIWrapper="false"
>
> service="prosabre:ProfileRouterMgmtService"
> busCfg="cxf.xml">
>
> </cxfbc:provider>
>
> </beans>
>
>
>
> Cxf.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
> xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
>
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
>
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
> "
>
> xmlns:conf-sec="http://cxf.apache.org/configuration/security"
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> ">
>
> <http-conf:conduit name="*.http-conduit">
>
> <http-conf:client ProxyServer="host"
>
> ProxyServerPort="8080" />
>
> <http-conf:proxyAuthorization>
>
> <conf-sec:UserName></conf-sec:UserName>
>
> <conf-sec:Password></conf-sec:Password>
>
> </http-conf:proxyAuthorization>
>
> </http-conf:conduit>
>
> </beans>
>
>
>
> Exception is ::
>
>
>
> 15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 367 | Failed to update Service
> Assembly: cxfbc-SA
>
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> 15:38:09,753 | WARN | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 670 | Directory: hotdeploy:
> Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy
> \cxfbc-SA-1.0-SNAPSHOT.zip failed
>
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly: cxfbc-SA
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:368)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> ... 6 more
>
>
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Freeman-2 [via ServiceMix] [mailto:[hidden email]
> ]
> Sent: Thursday, June 02, 2011 3:20 PM
> To: Polepalli, JaiKishore
> Subject: Re: cxf:bc provider with proxy configuration
>
>
>
> Hi,
>
> You can configure http:conduit for this cxfbc:provider, some related
> configuration like
>
> <http:conduit name="*.http-conduit">
> <http:proxyAuthorization>
> <sec:UserName>proxy.user</sec:UserName>
> <sec:Password>proxy.pass</sec:Password>
> </http:proxyAuthorization>
> <http:client
> ProxyServerType="HTTP"
> ProxyServer="proxy.host"
> ProxyServerPort="proxy.port"
> />
> </http:conduit>
>
> You can get more details from[1]
>
> [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
>
> Freeman
> On 2011-6-2, at 下午5:39, jaikishore wrote:
>
>
>> Hi Freeman,
>>
>> currently I am working on a cxfbc:provider component
>> to
>> consume external web services.I am succeeded with that, but now I
>> need to
>> consume a xternal web services which required proxy configuration.
>> Can u tell me how can I implement this one in cxfbc:provider. Please
>> help me
>> in this regards.
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:[hidden email]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> Connect at CamelOne May 24-26
> The Open Source Integration Conference
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the
> discussion below:
>
> http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
>
> To unsubscribe from cxf:bc provider with proxy configuration, click
> here <
> > .
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447667.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4449927.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450246.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
There’s no any whitespaces in front xml declaration line in cxf.xml. Still it’s not working{getting same xception}.
Then I tried to give exact name space and port endpoint with “:” character in cxf.xml{please check the below configurations}.
now I am not getting the below exception. At the same time messages are not routing through this proxy{which we are defined in cxf.xml} getting
connection timed out xception.
can u please check the configuration http:conduit name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit given in cxf.xml is true or not. please help me in this regards…
cxf.xml :: <?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:http="http://cxf.apache.org/transports/http/configuration"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:conf-sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:conduit
name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit">
<http-conf:client ProxyServerType="HTTP" ProxyServer="148.173.210.182"
ProxyServerPort="8080" />
<http-conf:proxyAuthorization>
<conf-sec:UserName></conf-sec:UserName>
<conf-sec:Password></conf-sec:Password>
</http-conf:proxyAuthorization>
</http:conduit>
</beans>
Xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:prosabre="http://www.jack.com/businesstravel/profilerouter"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<classplath>
<location>.</location>
</classplath>
<cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
locationURI="http://148.173.122.2:8860/profilerouterservices/ProfileRouterMgmtService?wsdl"
endpoint="ProfileRouterMgmtServicePort" useJBIWrapper="false"
service="prosabre:ProfileRouterMgmtService" busCfg="cxf_auth.xml">
</cxfbc:provider>
</beans>
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4449927-1598282816-147307@n5.nabble.com]
Sent: Friday, June 03, 2011 7:30 AM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
In your Cxf.xml
first line
<?xml version="1.0" encoding="UTF-8"?>
ensure there's no whitespace in front of this line.
Freeman
On 2011-6-2, at 下午6:14, jaikishore wrote:
> Hi Freeman,
>
>
>
> Thank u very much for your prompt response.
>
> I added configuration as u said. But I am getting the below exception.
>
> I am also sending my configuration files, could you please have a
> look into that.
>
> I am using servicemix-cxf-bc-2010.01-installer binding component and
> apache-servicemix-3.3 version.
>
> Please suggest in this regards…..
>
>
>
> XBean.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- Generated by Apache ServiceMix Archetype -->
>
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>
> xmlns:prosabre="http://www.jk.com/businesstravel/profilerouter"
>
> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>
> <classplath>
>
> <location>.</location>
>
> </classplath>
>
>
>
> <cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
>
> locationURI="http://host1:8860/profilerouterservices/
> ProfileRouterMgmtService?wsdl"
>
> endpoint="ProfileRouterMgmtServicePort"
> useJBIWrapper="false"
>
> service="prosabre:ProfileRouterMgmtService"
> busCfg="cxf.xml">
>
> </cxfbc:provider>
>
> </beans>
>
>
>
> Cxf.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
> xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
>
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
>
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
> "
>
> xmlns:conf-sec="http://cxf.apache.org/configuration/security"
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> ">
>
> <http-conf:conduit name="*.http-conduit">
>
> <http-conf:client ProxyServer="host"
>
> ProxyServerPort="8080" />
>
> <http-conf:proxyAuthorization>
>
> <conf-sec:UserName></conf-sec:UserName>
>
> <conf-sec:Password></conf-sec:Password>
>
> </http-conf:proxyAuthorization>
>
> </http-conf:conduit>
>
> </beans>
>
>
>
> Exception is ::
>
>
>
> 15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 367 | Failed to update Service
> Assembly: cxfbc-SA
>
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> 15:38:09,753 | WARN | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 670 | Directory: hotdeploy:
> Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy
> \cxfbc-SA-1.0-SNAPSHOT.zip failed
>
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly: cxfbc-SA
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:368)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> ... 6 more
>
>
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Freeman-2 [via ServiceMix] [mailto:[hidden email]
> ]
> Sent: Thursday, June 02, 2011 3:20 PM
> To: Polepalli, JaiKishore
> Subject: Re: cxf:bc provider with proxy configuration
>
>
>
> Hi,
>
> You can configure http:conduit for this cxfbc:provider, some related
> configuration like
>
> <http:conduit name="*.http-conduit">
> <http:proxyAuthorization>
> <sec:UserName>proxy.user</sec:UserName>
> <sec:Password>proxy.pass</sec:Password>
> </http:proxyAuthorization>
> <http:client
> ProxyServerType="HTTP"
> ProxyServer="proxy.host"
> ProxyServerPort="proxy.port"
> />
> </http:conduit>
>
> You can get more details from[1]
>
> [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
>
> Freeman
> On 2011-6-2, at 下午5:39, jaikishore wrote:
>
>
>> Hi Freeman,
>>
>> currently I am working on a cxfbc:provider component
>> to
>> consume external web services.I am succeeded with that, but now I
>> need to
>> consume a xternal web services which required proxy configuration.
>> Can u tell me how can I implement this one in cxfbc:provider. Please
>> help me
>> in this regards.
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:[hidden email]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> Connect at CamelOne May 24-26
> The Open Source Integration Conference
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the
> discussion below:
>
> http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
>
> To unsubscribe from cxf:bc provider with proxy configuration, click
> here <
> > .
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447667.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4449927.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450169.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf:bc provider with proxy configuration
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
In your Cxf.xml
first line
<?xml version="1.0" encoding="UTF-8"?>
ensure there's no whitespace in front of this line.
Freeman
On 2011-6-2, at 下午6:14, jaikishore wrote:
> Hi Freeman,
>
>
>
> Thank u very much for your prompt response.
>
> I added configuration as u said. But I am getting the below exception.
>
> I am also sending my configuration files, could you please have a
> look into that.
>
> I am using servicemix-cxf-bc-2010.01-installer binding component and
> apache-servicemix-3.3 version.
>
> Please suggest in this regards…..
>
>
>
> XBean.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- Generated by Apache ServiceMix Archetype -->
>
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>
> xmlns:prosabre="http://www.jk.com/businesstravel/profilerouter"
>
> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>
> <classplath>
>
> <location>.</location>
>
> </classplath>
>
>
>
> <cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
>
> locationURI="http://host1:8860/profilerouterservices/
> ProfileRouterMgmtService?wsdl"
>
> endpoint="ProfileRouterMgmtServicePort"
> useJBIWrapper="false"
>
> service="prosabre:ProfileRouterMgmtService"
> busCfg="cxf.xml">
>
> </cxfbc:provider>
>
> </beans>
>
>
>
> Cxf.xml ::
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
> xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
>
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
>
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration
> "
>
> xmlns:conf-sec="http://cxf.apache.org/configuration/security"
>
> xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> ">
>
> <http-conf:conduit name="*.http-conduit">
>
> <http-conf:client ProxyServer="host"
>
> ProxyServerPort="8080" />
>
> <http-conf:proxyAuthorization>
>
> <conf-sec:UserName></conf-sec:UserName>
>
> <conf-sec:Password></conf-sec:Password>
>
> </http-conf:proxyAuthorization>
>
> </http-conf:conduit>
>
> </beans>
>
>
>
> Exception is ::
>
>
>
> 15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 367 | Failed to update Service
> Assembly: cxfbc-SA
>
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> 15:38:09,753 | WARN | Timer-3 | AutoDeploymentService |
> ramework.AutoDeploymentService 670 | Directory: hotdeploy:
> Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy
> \cxfbc-SA-1.0-SNAPSHOT.zip failed
>
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly: cxfbc-SA
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:368)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
> at java.util.TimerThread.run(Timer.java:462)
>
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
>
> <jbi-task-result>
>
> <frmwk-task-result>
>
> <frmwk-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> </task-result-details>
>
> </frmwk-task-result-details>
>
> </frmwk-task-result>
>
> <component-task-result>
>
> <component-name>servicemix-cxf-bc</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>FAILED</task-result>
>
> <message-type>ERROR</message-type>
>
> <task-status-msg>
>
> <msg-loc-info>
>
> <loc-token/>
>
> <loc-message>Unable to parse result string</loc-message>
>
> </msg-loc-info>
>
> </task-status-msg>
>
> <exception-info>
>
> <nesting-level>1</nesting-level>
>
> <loc-token/>
>
> <loc-
> message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]</loc-message>
>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '*.http-conduit': Cannot create inner bean
> '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 500)
>
>
>
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>
>
>
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:
> 88)
>
>
>
> at
> org
> .apache
> .servicemix
> .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 667)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:62)
>
>
>
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:631)
>
>
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
>
>
>
> at java.util.TimerThread.run(Timer.java:462)
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '*.http-conduit': Cannot create inner
> bean '(inner bean)' of type
> [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting
> bean property 'client'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
>
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:230)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .configureBean(AbstractAutowireCapableBeanFactory.java:283)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .wiring
> .BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .configure(AbstractHTTPTransportFactory.java:229)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:166)
>
>
>
> at
> org
> .apache
> .cxf
> .transport
> .http
> .AbstractHTTPTransportFactory
> .getConduit(AbstractHTTPTransportFactory.java:145)
>
>
>
> at
> org
> .apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:
> 491)
>
>
>
> ... 13 more
>
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .instantiateUsingFactoryMethod
> (AbstractAutowireCapableBeanFactory.java:903)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>
>
>
> at
> org
> .springframework
> .beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>
>
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:380)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .BeanDefinitionValueResolver
> .resolveInnerBean(BeanDefinitionValueResolver.java:219)
>
>
>
> ... 26 more
>
>
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Factory method [public static java.lang.Object
> org
> .apache
> .cxf
> .configuration
> .spring
> .JAXBBeanFactory
> .createJAXBBean
> (javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw
> exception; nested exception is java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:127)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .ConstructorResolver
> .instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>
>
>
> ... 33 more
>
>
>
> Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
>
>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
>
>
> at
> org
> .springframework
> .beans
> .factory
> .support
> .SimpleInstantiationStrategy
> .instantiate(SimpleInstantiationStrategy.java:115)
>
>
>
> ... 34 more
>
>
>
> Caused by: javax.xml.bind.UnmarshalException
>
> - with linked exception:
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client]
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
>
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
>
>
> ... 39 more
>
>
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,255]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http-conf&http-conf:client
>
>
>
> at
> com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
>
>
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
>
>
>
> ... 41 more
>
>
>
> ]]></stack-trace>
>
> </exception-info>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-bean</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message
> ">
>
> <component-name>servicemix-file</component-name>
>
> <component-task-result-details>
>
> <task-result-details>
>
> <task-id>deploy</task-id>
>
> <task-result>SUCCESS</task-result>
>
> </task-result-details>
>
> </component-task-result-details>
>
> </component-task-result>
>
> </jbi-task-result>
>
> </jbi-task>
>
>
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>
> at
> org
> .apache
> .servicemix
> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:353)
>
> ... 6 more
>
>
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Freeman-2 [via ServiceMix] [mailto:ml-node+4447597-1551620203-147307@n5.nabble.com
> ]
> Sent: Thursday, June 02, 2011 3:20 PM
> To: Polepalli, JaiKishore
> Subject: Re: cxf:bc provider with proxy configuration
>
>
>
> Hi,
>
> You can configure http:conduit for this cxfbc:provider, some related
> configuration like
>
> <http:conduit name="*.http-conduit">
> <http:proxyAuthorization>
> <sec:UserName>proxy.user</sec:UserName>
> <sec:Password>proxy.pass</sec:Password>
> </http:proxyAuthorization>
> <http:client
> ProxyServerType="HTTP"
> ProxyServer="proxy.host"
> ProxyServerPort="proxy.port"
> />
> </http:conduit>
>
> You can get more details from[1]
>
> [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
>
> Freeman
> On 2011-6-2, at 下午5:39, jaikishore wrote:
>
>
>> Hi Freeman,
>>
>> currently I am working on a cxfbc:provider component
>> to
>> consume external web services.I am succeeded with that, but now I
>> need to
>> consume a xternal web services which required proxy configuration.
>> Can u tell me how can I implement this one in cxfbc:provider. Please
>> help me
>> in this regards.
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:[hidden email]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> Connect at CamelOne May 24-26
> The Open Source Integration Conference
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the
> discussion below:
>
> http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
>
> To unsubscribe from cxf:bc provider with proxy configuration, click
> here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=
> > .
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447667.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
FW: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
Thank u very much for your prompt response.
I added configuration as u said. But I am getting the below exception.
I am also sending my configuration files, could you please have a look into that.
I am using servicemix-cxf-bc-2010.01-installer binding component and apache-servicemix-3.3 version.
Please suggest in this regards…..
XBean.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Apache ServiceMix Archetype -->
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:prosabre="http://www.jk.com/businesstravel/profilerouter"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
<classplath>
<location>.</location>
</classplath>
<cxfbc:provider wsdl="classpath:ProfileRouterMgmtService.wsdl"
locationURI="http://host1:8860/profilerouterservices/ProfileRouterMgmtService?wsdl"
endpoint="ProfileRouterMgmtServicePort" useJBIWrapper="false"
service="prosabre:ProfileRouterMgmtService" busCfg="cxf.xml">
</cxfbc:provider>
</beans>
Cxf.xml ::
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:prosabre="https://sws-crt.test.sabre.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:conf-sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http-conf:conduit name="*.http-conduit">
<http-conf:client ProxyServer="host"
ProxyServerPort="8080" />
<http-conf:proxyAuthorization>
<conf-sec:UserName></conf-sec:UserName>
<conf-sec:Password></conf-sec:Password>
</http-conf:proxyAuthorization>
</http-conf:conduit>
</beans>
Exception is ::
15:38:09,466 | ERROR | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 367 | Failed to update Service Assembly: cxfbc-SA
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
15:38:09,753 | WARN | Timer-3 | AutoDeploymentService | ramework.AutoDeploymentService 670 | Directory: hotdeploy: Automatic install of C:\App_Softwares\apache-servicemix-3.3\hotdeploy\cxfbc-SA-1.0-SNAPSHOT.zip failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly: cxfbc-SA
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:500)
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '*.http-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:283)
at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:149)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:172)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:129)
at org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:113)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.configure(AbstractHTTPTransportFactory.java:229)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:166)
at org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:145)
at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:491)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 26 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
... 33 more
Caused by: java.lang.RuntimeException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
... 34 more
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 39 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,255]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http-conf&http-conf:client
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:126)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:333)
... 41 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-file</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
... 6 more
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4447597-1551620203-147307@n5.nabble.com]
Sent: Thursday, June 02, 2011 3:20 PM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
You can configure http:conduit for this cxfbc:provider, some related
configuration like
<http:conduit name="*.http-conduit">
<http:proxyAuthorization>
<sec:UserName>proxy.user</sec:UserName>
<sec:Password>proxy.pass</sec:Password>
</http:proxyAuthorization>
<http:client
ProxyServerType="HTTP"
ProxyServer="proxy.host"
ProxyServerPort="proxy.port"
/>
</http:conduit>
You can get more details from[1]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
Freeman
On 2011-6-2, at 下午5:39, jaikishore wrote:
> Hi Freeman,
>
> currently I am working on a cxfbc:provider component
> to
> consume external web services.I am succeeded with that, but now I
> need to
> consume a xternal web services which required proxy configuration.
> Can u tell me how can I implement this one in cxfbc:provider. Please
> help me
> in this regards.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447597.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447667.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Accessing Database from Apache Tomcat servicemix instance
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I'm not sure what's the problem is.
To be honest, use Servicemix inside web container isn't the way widely
used, as Servicemix itself is a container, so you deploy one container
into another container, you can easily encounter lib version conflict,
classloader conflict and whatnot.
Anyway, if you can elaborate what's your scenario, such as SMX version
you're use, how you package your artifacts.... probably you can get
more concrete feedback from here.
Freeman
On 2011-9-14, at 下午6:34, jaikishore wrote:
> Can u please respond to below mail…..
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Polepalli, JaiKishore
> Sent: Wednesday, September 14, 2011 10:26 AM
> To: 'Freeman-2 [via ServiceMix]'
> Subject: Accessing Database from Apache Tomcat servicemix instance
>
>
>
> Hi Freeman,
>
> We r currently running servicemix on apache tomcat
> instance.
> Everything is working fine. But we have a requirement to call
> hibernate dao for db transactions.
> I can able to load hibernate session {by defining database
> parameters} from servicemix-bean component. Problem is, when I changed
> Database parameters to data source ,it throwing exception “could
> not find data source”. But we can access the same data source from
> other
> Web Applications in same jvm. Please suggest us.
>
>
>
>
>
> I have posted this on user mailing list..can u help in this regards
>
>
>
> Regards
>
> P. JAI KISHORE
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4802276.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
FW: Accessing Database from Apache Tomcat servicemix instance
Posted by jaikishore <ja...@syntelinc.com>.
Can u please respond to below mail…..
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Polepalli, JaiKishore
Sent: Wednesday, September 14, 2011 10:26 AM
To: 'Freeman-2 [via ServiceMix]'
Subject: Accessing Database from Apache Tomcat servicemix instance
Hi Freeman,
We r currently running servicemix on apache tomcat instance.
Everything is working fine. But we have a requirement to call hibernate dao for db transactions.
I can able to load hibernate session {by defining database parameters} from servicemix-bean component. Problem is, when I changed
Database parameters to data source ,it throwing exception “could not find data source”. But we can access the same data source from other
Web Applications in same jvm. Please suggest us.
I have posted this on user mailing list..can u help in this regards
Regards
P. JAI KISHORE
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4802275.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Accessing Database from Apache Tomcat servicemix instance
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
We r currently running servicemix on apache tomcat instance.
Everything is working fine. But we have a requirement to call hibernate dao for db transactions.
I can able to load hibernate session {by defining database parameters} from servicemix-bean component. Problem is, when I changed
Database parameters to data source ,it throwing exception “could not find data source”. But we can access the same data source from other
Web Applications in same jvm. Please suggest us.
I have posted this on user mailing list..can u help in this regards
Regards
P. JAI KISHORE
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4801567.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
RE: Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
Hi,
I do use activator to publish the endpoint.
Thread
.currentThread
().setContextClassLoader(this.getClass().getClassLoader()); do help it get
rid of the exception. But I still can not see any soap messages in SMX logs.
Here is the bundle-context.xml
<?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:osgix="http://www.springframework.org/schema/osgi-compendium"
xmlns:ctx="http://www.springframework.org/schema/context"
xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://servicemix.apache.
org/http/1.0
http://servicemix.apache.
org/http/1.0/servicemix-http.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"
/>
<bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
<bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
<cxf:bus>
<cxf:inInterceptors>
<ref bean="logInbound"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="logOutbound"/>
</cxf:outInterceptors>
</cxf:bus>
</beans>
But in the SMX logs, I can see this error when the bundles start.
05:21:16,970 | INFO | xtenderThread-16 | ResourceInjector |
ommon.injection.ResourceInjector 170 | - - | RESOURCE_RESOLVE_FAILED
This is related to the injector. Any idea?
Thanks,
Hao
-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com]
Sent: Thursday, June 09, 2011 7:50 PM
To: users@servicemix.apache.org
Subject: Re: Soap messages in SMX log
Hi,
Seems you publish the endpoint in bundle activator, one potential
issue is that the TCCL(thread context classloader) in activator start
method isn't the expected one, which cause the resource inside bundle
couldn't be loaded, you could try to add
Thread
.currentThread
().setContextClassLoader(this.getClass().getClassLoader());
at beginning of your bundle activator method to see if it helps.
Why you need use code to publish endpoint?
The preferred way is use spring-dm configuration to publish the cxf
endpoint, just like we do in cxf-osgi example shipped with kit.
Freeman
On 2011-6-9, at 下午9:55, Hao Ding wrote:
> Same issue with exception:
>
> 06:50:48,500 | WARN | Thread-7 |
> BusApplicationContext |
> ache.cxf.common.logging.LogUtils 369 | - - | Failed to load
> configuration META-INF/spring/bundle-context.xml
> 06:50:48,500 | WARN | Thread-7 |
> SpringBusFactory |
> ache.cxf.common.logging.LogUtils 369 | - - | Failed to create
> application context.
> org.springframework.context.ApplicationContextException: Failed to
> load
> configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
> ationContext.java:152)
> at
> org
> .springframework
> .context.support.AbstractXmlApplicationContext.loadBeanDe
> finitions(AbstractXmlApplicationContext.java:120)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
> cationContext.java:262)
> at
> org
> .springframework
> .context.support.AbstractRefreshableApplicationContext.re
> freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.obtainFreshBe
> anFactory(AbstractApplicationContext.java:467)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.refresh(Abstr
> actApplicationContext.java:397)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
> .java:91)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
> sFactory.java:110)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 3)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
> 8)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
> 4)
> at
> com
> .ooma
> .vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
> ctivator.java:33)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl
> $1.run(BundleConte
> xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
> at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_0]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.start(BundleConte
> xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
> ava:370)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:284)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:276)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:350)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl
> $1.run(FeaturesService
> Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
> 06:50:48,500 | INFO | xtenderThread-13 |
> XmlBeanDefinitionReader |
> tory.xml.XmlBeanDefinitionReader 315 | 138 -
> org.springframework.beans - 3.
> 0.3.RELEASE | Loading XML bean definitions from OSGi
> resource[classpath:META-INF/cxf/cxf-extension-http-jetty.xml|
> bnd.id=165|bnd.
> sym=com.ooma.vm.provisioning-web-service]
> 06:50:48,507 | ERROR | Thread-7 |
> FeaturesServiceImpl |
> s.internal.FeaturesServiceImpl$1 767 | 8 -
> org.apache.karaf.features.core -
> 2.0.0.fuse-01-00 | Error installing boot features
> java.lang.Exception: Could not start bundle
> file:/opt/osgi/subscriber-web-service-1.0.jar in feature(s) :
> Exception in
> com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of
> bundle
> com.ooma.vm.subscriber-web-service.
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:311)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl
> $1.run(FeaturesService
> Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
> Caused by: org.osgi.framework.BundleException: Exception in
> com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of
> bundle
> com.ooma.vm.subscriber-web-service.
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:806)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.start(BundleConte
> xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
> ava:370)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:284)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:276)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:303)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> ... 1 more
> Caused by: java.lang.RuntimeException:
> org.springframework.context.ApplicationContextException: Failed to
> load
> configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 6)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
> 8)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
> 4)
> at
> com
> .ooma
> .vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
> ctivator.java:33)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl
> $1.run(BundleConte
> xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
> at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_0]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
> ... 6 more
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
> ationContext.java:152)
> at
> org
> .springframework
> .context.support.AbstractXmlApplicationContext.loadBeanDe
> finitions(AbstractXmlApplicationContext.java:120)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
> cationContext.java:262)
> at
> org
> .springframework
> .context.support.AbstractRefreshableApplicationContext.re
> freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.obtainFreshBe
> anFactory(AbstractApplicationContext.java:467)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.refresh(Abstr
> actApplicationContext.java:397)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
> .java:91)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
> sFactory.java:110)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 3)
> ... 12 more
>
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Thursday, June 09, 2011 9:46 AM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Try with "META-INF/spring/bundle-context.xml"
>
> Freeman
>
> On 2011-6-9, at 下午9:29, Hao Ding wrote:
>
>> Hi Freeman,
>>
>> My project is mvn eclipse project. "your_bus_configure.xml" is file
>> "src/main/resources/META-INF/spring/bundle-context.xml".
>>
>> I tried, it throw the exception. With full path and without path
>>
>> Without path exception:
>> Caused by: org.springframework.context.ApplicationContextException:
>> Failed
>> to load configuration bundle-context.xml
>>
>> With full path exception:
>> Caused by: org.springframework.context.ApplicationContextException:
>> Failed
>> to load configuration src/main/resources/META-INF/spring/bundle-
>> context.xml
>>
>>
>> How to specify it in
>> Bus bus = factory.createBus(
>> "your_bus_configure.xml"
>> );
>>
>>
>> Thanks,
>> Hao
>>
>> -----Original Message-----
>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>> Sent: Thursday, June 09, 2011 8:57 AM
>> To: users@servicemix.apache.org
>> Subject: Re: Soap messages in SMX log
>>
>> Hi,
>>
>> Before your code you need add
>> SpringBusFactory factory = new SpringBusFactory();
>> Bus bus = factory.createBus(
>> "your_bus_configure.xml"
>> );
>> BusFactory.setDefaultBus(bus);
>>
>> to pick up the cxf bus you configured.
>>
>> Freeman
>> On 2011-6-9, at 下午8:33, Hao Ding wrote:
>>
>>> Hi Freeman,
>>>
>>> I use java code to publish the cxf endpoint. In spring
>>> configuration, I only
>>> put the following in.
>>>
>>> <httpj:engine-factory bus="cxf">
>>> <httpj:engine port="8080">
>>> <httpj:sessionSupport>true</httpj:sessionSupport>
>>> </httpj:engine>
>>> </httpj:engine-factory>
>>>
>>>
>>> In java code, I publish the endpoint like this.
>>>
>>> MyServiceImpl implementor = new MyServiceImpl();
>>> endpt = Endpoint.create(implementor);
>>> endpt.publish("http://localhost:8080/axis/services/MyService");
>>>
>>> Thanks,
>>> Hao
>>>
>>> -----Original Message-----
>>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>>> Sent: Wednesday, June 08, 2011 8:42 PM
>>> To: users@servicemix.apache.org
>>> Subject: Re: Soap messages in SMX log
>>>
>>> Hi,
>>>
>>> Could you elaborate how you publish cxf endpoint with spring
>>> configuration logging way?
>>> You use java code or also use spring to publish the cxf endpoint?
>>>
>>> Freeman
>>>
>>> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>>>
>>>> By the way, I have the followings in the spring config file as
>>>> well.
>>>> Maybe
>>>> they have the effect on soap logging?
>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>> jetty.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>> binding.xml" />
>>>>
>>>> -----Original Message-----
>>>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>>>> Sent: Wednesday, June 08, 2011 2:49 PM
>>>> To: users@servicemix.apache.org
>>>> Subject: Soap messages in SMX log
>>>>
>>>> Hi SMX users,
>>>>
>>>> I'd like to see the soap messages in SMX logs. Based on the Apache
>>>> CXF docs,
>>>> I put the following in the spring config files.
>>>>
>>>> xmlns:cxf="http://cxf.apache.org/core"
>>>> xsi:schemaLocation="
>>>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>>>> http://www.springframework.org/schema/beans
>>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>>>
>>>> <bean id="logInbound"
>>>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>>>> <bean id="logOutbound"
>>>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>>>
>>>> <cxf:bus>
>>>> <cxf:inInterceptors>
>>>> <ref bean="logInbound"/>
>>>> </cxf:inInterceptors>
>>>> <cxf:outInterceptors>
>>>> <ref bean="logOutbound"/>
>>>> </cxf:outInterceptors>
>>>> </cxf:bus>
>>>>
>>>> Then I compiled and run SMX, do the curl test, I did not see the
>>>> soap
>>>> messages in the logs.
>>>>
>>>> If using java code to do the configuration, like
>>>>
>>>> import javax.xml.ws.Endpoint;
>>>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>>>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>>>> import org.apache.cxf.jaxws.EndpointImpl;
>>>>
>>>> Object implementor = new GreeterImpl();
>>>> EndpointImpl ep = (EndpointImpl)
>>>> Endpoint.publish("http://localhost/service", implementor);
>>>>
>>>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>>>> LoggingInInterceptor());
>>>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>>>> LoggingOutInterceptor());
>>>>
>>>> Then I can see the soap messages in the logs.
>>>>
>>>> I'd like to know what can cause the spring configuration not taking
>>>> effect.
>>>>
>>>>
>>>> Thanks,
>>>> Hao
>>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Soap messages in SMX log
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Seems you publish the endpoint in bundle activator, one potential
issue is that the TCCL(thread context classloader) in activator start
method isn't the expected one, which cause the resource inside bundle
couldn't be loaded, you could try to add
Thread
.currentThread
().setContextClassLoader(this.getClass().getClassLoader());
at beginning of your bundle activator method to see if it helps.
Why you need use code to publish endpoint?
The preferred way is use spring-dm configuration to publish the cxf
endpoint, just like we do in cxf-osgi example shipped with kit.
Freeman
On 2011-6-9, at 下午9:55, Hao Ding wrote:
> Same issue with exception:
>
> 06:50:48,500 | WARN | Thread-7 |
> BusApplicationContext |
> ache.cxf.common.logging.LogUtils 369 | - - | Failed to load
> configuration META-INF/spring/bundle-context.xml
> 06:50:48,500 | WARN | Thread-7 |
> SpringBusFactory |
> ache.cxf.common.logging.LogUtils 369 | - - | Failed to create
> application context.
> org.springframework.context.ApplicationContextException: Failed to
> load
> configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
> ationContext.java:152)
> at
> org
> .springframework
> .context.support.AbstractXmlApplicationContext.loadBeanDe
> finitions(AbstractXmlApplicationContext.java:120)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
> cationContext.java:262)
> at
> org
> .springframework
> .context.support.AbstractRefreshableApplicationContext.re
> freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.obtainFreshBe
> anFactory(AbstractApplicationContext.java:467)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.refresh(Abstr
> actApplicationContext.java:397)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
> .java:91)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
> sFactory.java:110)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 3)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
> 8)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
> 4)
> at
> com
> .ooma
> .vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
> ctivator.java:33)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl
> $1.run(BundleConte
> xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
> at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_0]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.start(BundleConte
> xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
> ava:370)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:284)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:276)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:350)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl
> $1.run(FeaturesService
> Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
> 06:50:48,500 | INFO | xtenderThread-13 |
> XmlBeanDefinitionReader |
> tory.xml.XmlBeanDefinitionReader 315 | 138 -
> org.springframework.beans - 3.
> 0.3.RELEASE | Loading XML bean definitions from OSGi
> resource[classpath:META-INF/cxf/cxf-extension-http-jetty.xml|
> bnd.id=165|bnd.
> sym=com.ooma.vm.provisioning-web-service]
> 06:50:48,507 | ERROR | Thread-7 |
> FeaturesServiceImpl |
> s.internal.FeaturesServiceImpl$1 767 | 8 -
> org.apache.karaf.features.core -
> 2.0.0.fuse-01-00 | Error installing boot features
> java.lang.Exception: Could not start bundle
> file:/opt/osgi/subscriber-web-service-1.0.jar in feature(s) :
> Exception in
> com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of
> bundle
> com.ooma.vm.subscriber-web-service.
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:311)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl
> $1.run(FeaturesService
> Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
> Caused by: org.osgi.framework.BundleException: Exception in
> com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of
> bundle
> com.ooma.vm.subscriber-web-service.
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:806)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.start(BundleConte
> xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
> ava:370)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:284)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .eclipse
> .osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
> .java:276)[osgi-3.6.0.v20100517.jar:]
> at
> org
> .apache
> .karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
> resServiceImpl.java:303)[8:org.apache.karaf.features.core:
> 2.0.0.fuse-01-00]
> ... 1 more
> Caused by: java.lang.RuntimeException:
> org.springframework.context.ApplicationContextException: Failed to
> load
> configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 6)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
> 8)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
> 4)
> at
> com
> .ooma
> .vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
> ctivator.java:33)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl
> $1.run(BundleConte
> xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
> at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_0]
> at
> org
> .eclipse
> .osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
> ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
> ... 6 more
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration META-INF/spring/bundle-context.xml
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
> ationContext.java:152)
> at
> org
> .springframework
> .context.support.AbstractXmlApplicationContext.loadBeanDe
> finitions(AbstractXmlApplicationContext.java:120)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
> cationContext.java:262)
> at
> org
> .springframework
> .context.support.AbstractRefreshableApplicationContext.re
> freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.obtainFreshBe
> anFactory(AbstractApplicationContext.java:467)
> at
> org
> .springframework
> .context.support.AbstractApplicationContext.refresh(Abstr
> actApplicationContext.java:397)
> at
> org
> .apache
> .cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
> .java:91)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
> sFactory.java:110)
> at
> org
> .apache
> .cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
> 3)
> ... 12 more
>
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Thursday, June 09, 2011 9:46 AM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Try with "META-INF/spring/bundle-context.xml"
>
> Freeman
>
> On 2011-6-9, at 下午9:29, Hao Ding wrote:
>
>> Hi Freeman,
>>
>> My project is mvn eclipse project. "your_bus_configure.xml" is file
>> "src/main/resources/META-INF/spring/bundle-context.xml".
>>
>> I tried, it throw the exception. With full path and without path
>>
>> Without path exception:
>> Caused by: org.springframework.context.ApplicationContextException:
>> Failed
>> to load configuration bundle-context.xml
>>
>> With full path exception:
>> Caused by: org.springframework.context.ApplicationContextException:
>> Failed
>> to load configuration src/main/resources/META-INF/spring/bundle-
>> context.xml
>>
>>
>> How to specify it in
>> Bus bus = factory.createBus(
>> "your_bus_configure.xml"
>> );
>>
>>
>> Thanks,
>> Hao
>>
>> -----Original Message-----
>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>> Sent: Thursday, June 09, 2011 8:57 AM
>> To: users@servicemix.apache.org
>> Subject: Re: Soap messages in SMX log
>>
>> Hi,
>>
>> Before your code you need add
>> SpringBusFactory factory = new SpringBusFactory();
>> Bus bus = factory.createBus(
>> "your_bus_configure.xml"
>> );
>> BusFactory.setDefaultBus(bus);
>>
>> to pick up the cxf bus you configured.
>>
>> Freeman
>> On 2011-6-9, at 下午8:33, Hao Ding wrote:
>>
>>> Hi Freeman,
>>>
>>> I use java code to publish the cxf endpoint. In spring
>>> configuration, I only
>>> put the following in.
>>>
>>> <httpj:engine-factory bus="cxf">
>>> <httpj:engine port="8080">
>>> <httpj:sessionSupport>true</httpj:sessionSupport>
>>> </httpj:engine>
>>> </httpj:engine-factory>
>>>
>>>
>>> In java code, I publish the endpoint like this.
>>>
>>> MyServiceImpl implementor = new MyServiceImpl();
>>> endpt = Endpoint.create(implementor);
>>> endpt.publish("http://localhost:8080/axis/services/MyService");
>>>
>>> Thanks,
>>> Hao
>>>
>>> -----Original Message-----
>>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>>> Sent: Wednesday, June 08, 2011 8:42 PM
>>> To: users@servicemix.apache.org
>>> Subject: Re: Soap messages in SMX log
>>>
>>> Hi,
>>>
>>> Could you elaborate how you publish cxf endpoint with spring
>>> configuration logging way?
>>> You use java code or also use spring to publish the cxf endpoint?
>>>
>>> Freeman
>>>
>>> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>>>
>>>> By the way, I have the followings in the spring config file as
>>>> well.
>>>> Maybe
>>>> they have the effect on soap logging?
>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>> jetty.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>> binding.xml" />
>>>>
>>>> -----Original Message-----
>>>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>>>> Sent: Wednesday, June 08, 2011 2:49 PM
>>>> To: users@servicemix.apache.org
>>>> Subject: Soap messages in SMX log
>>>>
>>>> Hi SMX users,
>>>>
>>>> I'd like to see the soap messages in SMX logs. Based on the Apache
>>>> CXF docs,
>>>> I put the following in the spring config files.
>>>>
>>>> xmlns:cxf="http://cxf.apache.org/core"
>>>> xsi:schemaLocation="
>>>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>>>> http://www.springframework.org/schema/beans
>>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>>>
>>>> <bean id="logInbound"
>>>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>>>> <bean id="logOutbound"
>>>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>>>
>>>> <cxf:bus>
>>>> <cxf:inInterceptors>
>>>> <ref bean="logInbound"/>
>>>> </cxf:inInterceptors>
>>>> <cxf:outInterceptors>
>>>> <ref bean="logOutbound"/>
>>>> </cxf:outInterceptors>
>>>> </cxf:bus>
>>>>
>>>> Then I compiled and run SMX, do the curl test, I did not see the
>>>> soap
>>>> messages in the logs.
>>>>
>>>> If using java code to do the configuration, like
>>>>
>>>> import javax.xml.ws.Endpoint;
>>>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>>>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>>>> import org.apache.cxf.jaxws.EndpointImpl;
>>>>
>>>> Object implementor = new GreeterImpl();
>>>> EndpointImpl ep = (EndpointImpl)
>>>> Endpoint.publish("http://localhost/service", implementor);
>>>>
>>>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>>>> LoggingInInterceptor());
>>>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>>>> LoggingOutInterceptor());
>>>>
>>>> Then I can see the soap messages in the logs.
>>>>
>>>> I'd like to know what can cause the spring configuration not taking
>>>> effect.
>>>>
>>>>
>>>> Thanks,
>>>> Hao
>>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
RE: Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
Same issue with exception:
06:50:48,500 | WARN | Thread-7 | BusApplicationContext |
ache.cxf.common.logging.LogUtils 369 | - - | Failed to load
configuration META-INF/spring/bundle-context.xml
06:50:48,500 | WARN | Thread-7 | SpringBusFactory |
ache.cxf.common.logging.LogUtils 369 | - - | Failed to create
application context.
org.springframework.context.ApplicationContextException: Failed to load
configuration META-INF/spring/bundle-context.xml
at
org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
ationContext.java:152)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDe
finitions(AbstractXmlApplicationContext.java:120)
at
org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
cationContext.java:262)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.re
freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBe
anFactory(AbstractApplicationContext.java:467)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:397)
at
org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
.java:91)
at
org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
sFactory.java:110)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
3)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
8)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
4)
at
com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
ctivator.java:33)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleConte
xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
at java.security.AccessController.doPrivileged(Native
Method)[:1.6.0_0]
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:370)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:284)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:276)[osgi-3.6.0.v20100517.jar:]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
resServiceImpl.java:350)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
at
org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesService
Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
06:50:48,500 | INFO | xtenderThread-13 | XmlBeanDefinitionReader |
tory.xml.XmlBeanDefinitionReader 315 | 138 - org.springframework.beans - 3.
0.3.RELEASE | Loading XML bean definitions from OSGi
resource[classpath:META-INF/cxf/cxf-extension-http-jetty.xml|bnd.id=165|bnd.
sym=com.ooma.vm.provisioning-web-service]
06:50:48,507 | ERROR | Thread-7 | FeaturesServiceImpl |
s.internal.FeaturesServiceImpl$1 767 | 8 - org.apache.karaf.features.core -
2.0.0.fuse-01-00 | Error installing boot features
java.lang.Exception: Could not start bundle
file:/opt/osgi/subscriber-web-service-1.0.jar in feature(s) : Exception in
com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of bundle
com.ooma.vm.subscriber-web-service.
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
resServiceImpl.java:311)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
at
org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesService
Impl.java:765)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
Caused by: org.osgi.framework.BundleException: Exception in
com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start() of bundle
com.ooma.vm.subscriber-web-service.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:806)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:755)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:370)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:284)[osgi-3.6.0.v20100517.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:276)[osgi-3.6.0.v20100517.jar:]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(Featu
resServiceImpl.java:303)[8:org.apache.karaf.features.core:2.0.0.fuse-01-00]
... 1 more
Caused by: java.lang.RuntimeException:
org.springframework.context.ApplicationContextException: Failed to load
configuration META-INF/spring/bundle-context.xml
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
6)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8
8)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6
4)
at
com.ooma.vm.subscriber_web_service.DCSubscriberActivator.start(DCSubscriberA
ctivator.java:33)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleConte
xtImpl.java:783)[osgi-3.6.0.v20100517.jar:]
at java.security.AccessController.doPrivileged(Native
Method)[:1.6.0_0]
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:774)[osgi-3.6.0.v20100517.jar:]
... 6 more
Caused by: org.springframework.context.ApplicationContextException: Failed
to load configuration META-INF/spring/bundle-context.xml
at
org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources(BusApplic
ationContext.java:152)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDe
finitions(AbstractXmlApplicationContext.java:120)
at
org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli
cationContext.java:262)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.re
freshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBe
anFactory(AbstractApplicationContext.java:467)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:397)
at
org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext
.java:91)
at
org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu
sFactory.java:110)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9
3)
... 12 more
-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com]
Sent: Thursday, June 09, 2011 9:46 AM
To: users@servicemix.apache.org
Subject: Re: Soap messages in SMX log
Hi,
Try with "META-INF/spring/bundle-context.xml"
Freeman
On 2011-6-9, at 下午9:29, Hao Ding wrote:
> Hi Freeman,
>
> My project is mvn eclipse project. "your_bus_configure.xml" is file
> "src/main/resources/META-INF/spring/bundle-context.xml".
>
> I tried, it throw the exception. With full path and without path
>
> Without path exception:
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration bundle-context.xml
>
> With full path exception:
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration src/main/resources/META-INF/spring/bundle-
> context.xml
>
>
> How to specify it in
> Bus bus = factory.createBus(
> "your_bus_configure.xml"
> );
>
>
> Thanks,
> Hao
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Thursday, June 09, 2011 8:57 AM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Before your code you need add
> SpringBusFactory factory = new SpringBusFactory();
> Bus bus = factory.createBus(
> "your_bus_configure.xml"
> );
> BusFactory.setDefaultBus(bus);
>
> to pick up the cxf bus you configured.
>
> Freeman
> On 2011-6-9, at 下午8:33, Hao Ding wrote:
>
>> Hi Freeman,
>>
>> I use java code to publish the cxf endpoint. In spring
>> configuration, I only
>> put the following in.
>>
>> <httpj:engine-factory bus="cxf">
>> <httpj:engine port="8080">
>> <httpj:sessionSupport>true</httpj:sessionSupport>
>> </httpj:engine>
>> </httpj:engine-factory>
>>
>>
>> In java code, I publish the endpoint like this.
>>
>> MyServiceImpl implementor = new MyServiceImpl();
>> endpt = Endpoint.create(implementor);
>> endpt.publish("http://localhost:8080/axis/services/MyService");
>>
>> Thanks,
>> Hao
>>
>> -----Original Message-----
>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>> Sent: Wednesday, June 08, 2011 8:42 PM
>> To: users@servicemix.apache.org
>> Subject: Re: Soap messages in SMX log
>>
>> Hi,
>>
>> Could you elaborate how you publish cxf endpoint with spring
>> configuration logging way?
>> You use java code or also use spring to publish the cxf endpoint?
>>
>> Freeman
>>
>> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>>
>>> By the way, I have the followings in the spring config file as well.
>>> Maybe
>>> they have the effect on soap logging?
>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>> jetty.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>> binding.xml" />
>>>
>>> -----Original Message-----
>>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>>> Sent: Wednesday, June 08, 2011 2:49 PM
>>> To: users@servicemix.apache.org
>>> Subject: Soap messages in SMX log
>>>
>>> Hi SMX users,
>>>
>>> I'd like to see the soap messages in SMX logs. Based on the Apache
>>> CXF docs,
>>> I put the following in the spring config files.
>>>
>>> xmlns:cxf="http://cxf.apache.org/core"
>>> xsi:schemaLocation="
>>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>>> http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>>
>>> <bean id="logInbound"
>>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>>> <bean id="logOutbound"
>>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>>
>>> <cxf:bus>
>>> <cxf:inInterceptors>
>>> <ref bean="logInbound"/>
>>> </cxf:inInterceptors>
>>> <cxf:outInterceptors>
>>> <ref bean="logOutbound"/>
>>> </cxf:outInterceptors>
>>> </cxf:bus>
>>>
>>> Then I compiled and run SMX, do the curl test, I did not see the
>>> soap
>>> messages in the logs.
>>>
>>> If using java code to do the configuration, like
>>>
>>> import javax.xml.ws.Endpoint;
>>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>>> import org.apache.cxf.jaxws.EndpointImpl;
>>>
>>> Object implementor = new GreeterImpl();
>>> EndpointImpl ep = (EndpointImpl)
>>> Endpoint.publish("http://localhost/service", implementor);
>>>
>>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>>> LoggingInInterceptor());
>>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>>> LoggingOutInterceptor());
>>>
>>> Then I can see the soap messages in the logs.
>>>
>>> I'd like to know what can cause the spring configuration not taking
>>> effect.
>>>
>>>
>>> Thanks,
>>> Hao
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Soap messages in SMX log
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Try with "META-INF/spring/bundle-context.xml"
Freeman
On 2011-6-9, at 下午9:29, Hao Ding wrote:
> Hi Freeman,
>
> My project is mvn eclipse project. "your_bus_configure.xml" is file
> "src/main/resources/META-INF/spring/bundle-context.xml".
>
> I tried, it throw the exception. With full path and without path
>
> Without path exception:
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration bundle-context.xml
>
> With full path exception:
> Caused by: org.springframework.context.ApplicationContextException:
> Failed
> to load configuration src/main/resources/META-INF/spring/bundle-
> context.xml
>
>
> How to specify it in
> Bus bus = factory.createBus(
> "your_bus_configure.xml"
> );
>
>
> Thanks,
> Hao
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Thursday, June 09, 2011 8:57 AM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Before your code you need add
> SpringBusFactory factory = new SpringBusFactory();
> Bus bus = factory.createBus(
> "your_bus_configure.xml"
> );
> BusFactory.setDefaultBus(bus);
>
> to pick up the cxf bus you configured.
>
> Freeman
> On 2011-6-9, at 下午8:33, Hao Ding wrote:
>
>> Hi Freeman,
>>
>> I use java code to publish the cxf endpoint. In spring
>> configuration, I only
>> put the following in.
>>
>> <httpj:engine-factory bus="cxf">
>> <httpj:engine port="8080">
>> <httpj:sessionSupport>true</httpj:sessionSupport>
>> </httpj:engine>
>> </httpj:engine-factory>
>>
>>
>> In java code, I publish the endpoint like this.
>>
>> MyServiceImpl implementor = new MyServiceImpl();
>> endpt = Endpoint.create(implementor);
>> endpt.publish("http://localhost:8080/axis/services/MyService");
>>
>> Thanks,
>> Hao
>>
>> -----Original Message-----
>> From: Freeman Fang [mailto:freeman.fang@gmail.com]
>> Sent: Wednesday, June 08, 2011 8:42 PM
>> To: users@servicemix.apache.org
>> Subject: Re: Soap messages in SMX log
>>
>> Hi,
>>
>> Could you elaborate how you publish cxf endpoint with spring
>> configuration logging way?
>> You use java code or also use spring to publish the cxf endpoint?
>>
>> Freeman
>>
>> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>>
>>> By the way, I have the followings in the spring config file as well.
>>> Maybe
>>> they have the effect on soap logging?
>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>> jetty.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>> binding.xml" />
>>>
>>> -----Original Message-----
>>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>>> Sent: Wednesday, June 08, 2011 2:49 PM
>>> To: users@servicemix.apache.org
>>> Subject: Soap messages in SMX log
>>>
>>> Hi SMX users,
>>>
>>> I'd like to see the soap messages in SMX logs. Based on the Apache
>>> CXF docs,
>>> I put the following in the spring config files.
>>>
>>> xmlns:cxf="http://cxf.apache.org/core"
>>> xsi:schemaLocation="
>>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>>> http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>>
>>> <bean id="logInbound"
>>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>>> <bean id="logOutbound"
>>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>>
>>> <cxf:bus>
>>> <cxf:inInterceptors>
>>> <ref bean="logInbound"/>
>>> </cxf:inInterceptors>
>>> <cxf:outInterceptors>
>>> <ref bean="logOutbound"/>
>>> </cxf:outInterceptors>
>>> </cxf:bus>
>>>
>>> Then I compiled and run SMX, do the curl test, I did not see the
>>> soap
>>> messages in the logs.
>>>
>>> If using java code to do the configuration, like
>>>
>>> import javax.xml.ws.Endpoint;
>>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>>> import org.apache.cxf.jaxws.EndpointImpl;
>>>
>>> Object implementor = new GreeterImpl();
>>> EndpointImpl ep = (EndpointImpl)
>>> Endpoint.publish("http://localhost/service", implementor);
>>>
>>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>>> LoggingInInterceptor());
>>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>>> LoggingOutInterceptor());
>>>
>>> Then I can see the soap messages in the logs.
>>>
>>> I'd like to know what can cause the spring configuration not taking
>>> effect.
>>>
>>>
>>> Thanks,
>>> Hao
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
RE: Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
Hi Freeman,
My project is mvn eclipse project. "your_bus_configure.xml" is file
"src/main/resources/META-INF/spring/bundle-context.xml".
I tried, it throw the exception. With full path and without path
Without path exception:
Caused by: org.springframework.context.ApplicationContextException: Failed
to load configuration bundle-context.xml
With full path exception:
Caused by: org.springframework.context.ApplicationContextException: Failed
to load configuration src/main/resources/META-INF/spring/bundle-context.xml
How to specify it in
Bus bus = factory.createBus(
"your_bus_configure.xml"
);
Thanks,
Hao
-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com]
Sent: Thursday, June 09, 2011 8:57 AM
To: users@servicemix.apache.org
Subject: Re: Soap messages in SMX log
Hi,
Before your code you need add
SpringBusFactory factory = new SpringBusFactory();
Bus bus = factory.createBus(
"your_bus_configure.xml"
);
BusFactory.setDefaultBus(bus);
to pick up the cxf bus you configured.
Freeman
On 2011-6-9, at 下午8:33, Hao Ding wrote:
> Hi Freeman,
>
> I use java code to publish the cxf endpoint. In spring
> configuration, I only
> put the following in.
>
> <httpj:engine-factory bus="cxf">
> <httpj:engine port="8080">
> <httpj:sessionSupport>true</httpj:sessionSupport>
> </httpj:engine>
> </httpj:engine-factory>
>
>
> In java code, I publish the endpoint like this.
>
> MyServiceImpl implementor = new MyServiceImpl();
> endpt = Endpoint.create(implementor);
> endpt.publish("http://localhost:8080/axis/services/MyService");
>
> Thanks,
> Hao
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Wednesday, June 08, 2011 8:42 PM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Could you elaborate how you publish cxf endpoint with spring
> configuration logging way?
> You use java code or also use spring to publish the cxf endpoint?
>
> Freeman
>
> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>
>> By the way, I have the followings in the spring config file as well.
>> Maybe
>> they have the effect on soap logging?
>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>> jetty.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>> binding.xml" />
>>
>> -----Original Message-----
>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>> Sent: Wednesday, June 08, 2011 2:49 PM
>> To: users@servicemix.apache.org
>> Subject: Soap messages in SMX log
>>
>> Hi SMX users,
>>
>> I'd like to see the soap messages in SMX logs. Based on the Apache
>> CXF docs,
>> I put the following in the spring config files.
>>
>> xmlns:cxf="http://cxf.apache.org/core"
>> xsi:schemaLocation="
>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>
>> <bean id="logInbound"
>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> <bean id="logOutbound"
>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>
>> <cxf:bus>
>> <cxf:inInterceptors>
>> <ref bean="logInbound"/>
>> </cxf:inInterceptors>
>> <cxf:outInterceptors>
>> <ref bean="logOutbound"/>
>> </cxf:outInterceptors>
>> </cxf:bus>
>>
>> Then I compiled and run SMX, do the curl test, I did not see the soap
>> messages in the logs.
>>
>> If using java code to do the configuration, like
>>
>> import javax.xml.ws.Endpoint;
>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>> import org.apache.cxf.jaxws.EndpointImpl;
>>
>> Object implementor = new GreeterImpl();
>> EndpointImpl ep = (EndpointImpl)
>> Endpoint.publish("http://localhost/service", implementor);
>>
>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>> LoggingInInterceptor());
>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>> LoggingOutInterceptor());
>>
>> Then I can see the soap messages in the logs.
>>
>> I'd like to know what can cause the spring configuration not taking
>> effect.
>>
>>
>> Thanks,
>> Hao
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Soap messages in SMX log
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Before your code you need add
SpringBusFactory factory = new SpringBusFactory();
Bus bus = factory.createBus(
"your_bus_configure.xml"
);
BusFactory.setDefaultBus(bus);
to pick up the cxf bus you configured.
Freeman
On 2011-6-9, at 下午8:33, Hao Ding wrote:
> Hi Freeman,
>
> I use java code to publish the cxf endpoint. In spring
> configuration, I only
> put the following in.
>
> <httpj:engine-factory bus="cxf">
> <httpj:engine port="8080">
> <httpj:sessionSupport>true</httpj:sessionSupport>
> </httpj:engine>
> </httpj:engine-factory>
>
>
> In java code, I publish the endpoint like this.
>
> MyServiceImpl implementor = new MyServiceImpl();
> endpt = Endpoint.create(implementor);
> endpt.publish("http://localhost:8080/axis/services/MyService");
>
> Thanks,
> Hao
>
> -----Original Message-----
> From: Freeman Fang [mailto:freeman.fang@gmail.com]
> Sent: Wednesday, June 08, 2011 8:42 PM
> To: users@servicemix.apache.org
> Subject: Re: Soap messages in SMX log
>
> Hi,
>
> Could you elaborate how you publish cxf endpoint with spring
> configuration logging way?
> You use java code or also use spring to publish the cxf endpoint?
>
> Freeman
>
> On 2011-6-9, at 上午3:01, Hao Ding wrote:
>
>> By the way, I have the followings in the spring config file as well.
>> Maybe
>> they have the effect on soap logging?
>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>> jetty.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>> binding.xml" />
>>
>> -----Original Message-----
>> From: Hao Ding [mailto:hao.ding@mapleworks.com]
>> Sent: Wednesday, June 08, 2011 2:49 PM
>> To: users@servicemix.apache.org
>> Subject: Soap messages in SMX log
>>
>> Hi SMX users,
>>
>> I'd like to see the soap messages in SMX logs. Based on the Apache
>> CXF docs,
>> I put the following in the spring config files.
>>
>> xmlns:cxf="http://cxf.apache.org/core"
>> xsi:schemaLocation="
>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>
>> <bean id="logInbound"
>> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> <bean id="logOutbound"
>> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>>
>> <cxf:bus>
>> <cxf:inInterceptors>
>> <ref bean="logInbound"/>
>> </cxf:inInterceptors>
>> <cxf:outInterceptors>
>> <ref bean="logOutbound"/>
>> </cxf:outInterceptors>
>> </cxf:bus>
>>
>> Then I compiled and run SMX, do the curl test, I did not see the soap
>> messages in the logs.
>>
>> If using java code to do the configuration, like
>>
>> import javax.xml.ws.Endpoint;
>> import org.apache.cxf.interceptor.LoggingInInterceptor;
>> import org.apache.cxf.interceptor.LoggingOutInterceptor;
>> import org.apache.cxf.jaxws.EndpointImpl;
>>
>> Object implementor = new GreeterImpl();
>> EndpointImpl ep = (EndpointImpl)
>> Endpoint.publish("http://localhost/service", implementor);
>>
>> ep.getServiceFactory().getBus().getInInterceptors().add(new
>> LoggingInInterceptor());
>> ep.getServiceFactory().getBus().getOutInterceptors().add(new
>> LoggingOutInterceptor());
>>
>> Then I can see the soap messages in the logs.
>>
>> I'd like to know what can cause the spring configuration not taking
>> effect.
>>
>>
>> Thanks,
>> Hao
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
RE: Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
Hi Freeman,
I use java code to publish the cxf endpoint. In spring configuration, I only
put the following in.
<httpj:engine-factory bus="cxf">
<httpj:engine port="8080">
<httpj:sessionSupport>true</httpj:sessionSupport>
</httpj:engine>
</httpj:engine-factory>
In java code, I publish the endpoint like this.
MyServiceImpl implementor = new MyServiceImpl();
endpt = Endpoint.create(implementor);
endpt.publish("http://localhost:8080/axis/services/MyService");
Thanks,
Hao
-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com]
Sent: Wednesday, June 08, 2011 8:42 PM
To: users@servicemix.apache.org
Subject: Re: Soap messages in SMX log
Hi,
Could you elaborate how you publish cxf endpoint with spring
configuration logging way?
You use java code or also use spring to publish the cxf endpoint?
Freeman
On 2011-6-9, at 上午3:01, Hao Ding wrote:
> By the way, I have the followings in the spring config file as well.
> Maybe
> they have the effect on soap logging?
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> jetty.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> binding.xml" />
>
> -----Original Message-----
> From: Hao Ding [mailto:hao.ding@mapleworks.com]
> Sent: Wednesday, June 08, 2011 2:49 PM
> To: users@servicemix.apache.org
> Subject: Soap messages in SMX log
>
> Hi SMX users,
>
> I'd like to see the soap messages in SMX logs. Based on the Apache
> CXF docs,
> I put the following in the spring config files.
>
> xmlns:cxf="http://cxf.apache.org/core"
> xsi:schemaLocation="
> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <bean id="logInbound"
> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> <bean id="logOutbound"
> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>
> <cxf:bus>
> <cxf:inInterceptors>
> <ref bean="logInbound"/>
> </cxf:inInterceptors>
> <cxf:outInterceptors>
> <ref bean="logOutbound"/>
> </cxf:outInterceptors>
> </cxf:bus>
>
> Then I compiled and run SMX, do the curl test, I did not see the soap
> messages in the logs.
>
> If using java code to do the configuration, like
>
> import javax.xml.ws.Endpoint;
> import org.apache.cxf.interceptor.LoggingInInterceptor;
> import org.apache.cxf.interceptor.LoggingOutInterceptor;
> import org.apache.cxf.jaxws.EndpointImpl;
>
> Object implementor = new GreeterImpl();
> EndpointImpl ep = (EndpointImpl)
> Endpoint.publish("http://localhost/service", implementor);
>
> ep.getServiceFactory().getBus().getInInterceptors().add(new
> LoggingInInterceptor());
> ep.getServiceFactory().getBus().getOutInterceptors().add(new
> LoggingOutInterceptor());
>
> Then I can see the soap messages in the logs.
>
> I'd like to know what can cause the spring configuration not taking
> effect.
>
>
> Thanks,
> Hao
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Soap messages in SMX log
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Could you elaborate how you publish cxf endpoint with spring
configuration logging way?
You use java code or also use spring to publish the cxf endpoint?
Freeman
On 2011-6-9, at 上午3:01, Hao Ding wrote:
> By the way, I have the followings in the spring config file as well.
> Maybe
> they have the effect on soap logging?
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> jetty.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> binding.xml" />
>
> -----Original Message-----
> From: Hao Ding [mailto:hao.ding@mapleworks.com]
> Sent: Wednesday, June 08, 2011 2:49 PM
> To: users@servicemix.apache.org
> Subject: Soap messages in SMX log
>
> Hi SMX users,
>
> I'd like to see the soap messages in SMX logs. Based on the Apache
> CXF docs,
> I put the following in the spring config files.
>
> xmlns:cxf="http://cxf.apache.org/core"
> xsi:schemaLocation="
> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <bean id="logInbound"
> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> <bean id="logOutbound"
> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>
> <cxf:bus>
> <cxf:inInterceptors>
> <ref bean="logInbound"/>
> </cxf:inInterceptors>
> <cxf:outInterceptors>
> <ref bean="logOutbound"/>
> </cxf:outInterceptors>
> </cxf:bus>
>
> Then I compiled and run SMX, do the curl test, I did not see the soap
> messages in the logs.
>
> If using java code to do the configuration, like
>
> import javax.xml.ws.Endpoint;
> import org.apache.cxf.interceptor.LoggingInInterceptor;
> import org.apache.cxf.interceptor.LoggingOutInterceptor;
> import org.apache.cxf.jaxws.EndpointImpl;
>
> Object implementor = new GreeterImpl();
> EndpointImpl ep = (EndpointImpl)
> Endpoint.publish("http://localhost/service", implementor);
>
> ep.getServiceFactory().getBus().getInInterceptors().add(new
> LoggingInInterceptor());
> ep.getServiceFactory().getBus().getOutInterceptors().add(new
> LoggingOutInterceptor());
>
> Then I can see the soap messages in the logs.
>
> I'd like to know what can cause the spring configuration not taking
> effect.
>
>
> Thanks,
> Hao
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
RE: Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
By the way, I have the followings in the spring config file as well. Maybe
they have the effect on soap logging?
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml" />
-----Original Message-----
From: Hao Ding [mailto:hao.ding@mapleworks.com]
Sent: Wednesday, June 08, 2011 2:49 PM
To: users@servicemix.apache.org
Subject: Soap messages in SMX log
Hi SMX users,
I'd like to see the soap messages in SMX logs. Based on the Apache CXF docs,
I put the following in the spring config files.
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
<bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
<cxf:bus>
<cxf:inInterceptors>
<ref bean="logInbound"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="logOutbound"/>
</cxf:outInterceptors>
</cxf:bus>
Then I compiled and run SMX, do the curl test, I did not see the soap
messages in the logs.
If using java code to do the configuration, like
import javax.xml.ws.Endpoint;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.EndpointImpl;
Object implementor = new GreeterImpl();
EndpointImpl ep = (EndpointImpl)
Endpoint.publish("http://localhost/service", implementor);
ep.getServiceFactory().getBus().getInInterceptors().add(new
LoggingInInterceptor());
ep.getServiceFactory().getBus().getOutInterceptors().add(new
LoggingOutInterceptor());
Then I can see the soap messages in the logs.
I'd like to know what can cause the spring configuration not taking effect.
Thanks,
Hao
Soap messages in SMX log
Posted by Hao Ding <ha...@mapleworks.com>.
Hi SMX users,
I'd like to see the soap messages in SMX logs. Based on the Apache CXF docs,
I put the following in the spring config files.
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
<bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
<cxf:bus>
<cxf:inInterceptors>
<ref bean="logInbound"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="logOutbound"/>
</cxf:outInterceptors>
</cxf:bus>
Then I compiled and run SMX, do the curl test, I did not see the soap
messages in the logs.
If using java code to do the configuration, like
import javax.xml.ws.Endpoint;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.EndpointImpl;
Object implementor = new GreeterImpl();
EndpointImpl ep = (EndpointImpl)
Endpoint.publish("http://localhost/service", implementor);
ep.getServiceFactory().getBus().getInInterceptors().add(new
LoggingInInterceptor());
ep.getServiceFactory().getBus().getOutInterceptors().add(new
LoggingOutInterceptor());
Then I can see the soap messages in the logs.
I'd like to know what can cause the spring configuration not taking effect.
Thanks,
Hao
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
I added a woodstax dependency and configurations , then it’s working fine.
Really thank u very very very very much.
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4450508-1175052103-147307@n5.nabble.com]
Sent: Friday, June 03, 2011 1:44 PM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
Ok, this should be caused by your env stax implementation, we already
have woodstox in $SMX_HOME/lib folder, so by default woodstox should
be pick up as stax implementation.
However somehow in your env use some other stax implementation.
Some questions
1. You platform?
2. You JDK vendor and version?
3. Do you endorse your JDK?
4. Do you specify javax.xml.stream.XMLInputFactory somewhere else but
you're not aware of that?
5. could add system properties like
-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -
Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory
in servicemix startup script to ensure always use woodstox stax
implementation.
Freeman
On 2011-6-3, at 下午3:23, jaikishore wrote:
> Hi Freeman,
>
>
>
> I changed name attribute like {WSDL Namespace}portName.http-conduit
> as u said.
>
> Still I am getting the same xception. Please help me to solve this.
>
>
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,196]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http&http:client]
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
> ... 37 more
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,196]
>
>
>
> Cxf.xml ::
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:sec="http://cxf.apache.org/configuration/security"
>
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
>
> xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
>
> xsi:schemaLocation="
>
> http://cxf.apache.org/configuration/security
>
> http://cxf.apache.org/schemas/configuration/security.xsd
>
> http://cxf.apache.org/transports/http/configuration
>
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-
> beans-2.0.xsd">
>
> <http:conduit
>
> name="{http://www.americanexpress.com/businesstravel/profilerouter
> }ProfileRouterMgmtServicePort.http-conduit">
>
> <http:client AutoRedirect="true" Connection="Keep-Alive" />
>
> </http:conduit>
>
> </beans>
>
>
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Freeman-2 [via ServiceMix] [mailto:[hidden email]
> ]
> Sent: Friday, June 03, 2011 12:37 PM
> To: Polepalli, JaiKishore
> Subject: Re: cxf:bc provider with proxy configuration
>
>
>
> Hi,
>
> About the http:conduit name, you should take a look about the link[1]
> which I've pointed to you, more importantly.
>
> The first thing to notice is the "name" attribute on <http:conduit>.
> This allows CXF to associate this HTTP Conduit configuration with a
> particular WSDL Port. The name includes the service's namespace, the
> WSDL port name (as found in the wsdl:service section of the WSDL), and
> ".http-conduit". It follows this template: "{WSDL
> Namespace}portName.http-conduit". Note: it's the PORT name, not the
> service name. Thus, it's likely something like "MyServicePort", not
> "MyService". If you are having trouble getting the template to work,
> another (temporary) option for the name value is simply "*.http-
> conduit".
>
> There's an obvious error in your configuration, you shouldn't have an
> ":" between the namespace and port name.
>
> Btw, please don't post same question several times on the list, we're
> glad to help but we can't guarantee the response time, so please don't
> post same question every half hour like this.
>
> Please be patient, if you really need some immediate response, I
> think you may need consider some commercial support[2]
>
> [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
> [2]http://servicemix.apache.org/support.html
>
> Freeman
>
>
> On 2011-6-3, at 下午2:32, jaikishore wrote:
>
>
>> Hi Freeman,
>>
>> There’s no any whitespaces in front xml
>> declaration
>> line in cxf.xml. Still it’s not working{getting same xception}.
>> Then I tried to give exact name space and port endpoint with “:”
>> character
>> in cxf.xml{please check the below configurations}.
>> now I am not getting the below exception. At the same time messages
>> are not
>> routing through this proxy{which we are defined in cxf.xml} getting
>> connection timed out xception.
>> can u please check the configuration http:conduit
>> name="{http://www.jack.com/businesstravel/
>> profilerouter}:ProfileRouterMgmtServicePort.http-conduit
>> given in cxf.xml is true or not. please help me in this regards…
>>
>> cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Xbean.xml:
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>> .
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450300.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:[hidden email]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> Connect at CamelOne May 24-26
> The Open Source Integration Conference
>
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the
> discussion below:
>
> http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450372.html
>
> To unsubscribe from cxf:bc provider with proxy configuration, click
> here <
> > .
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450401.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450508.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450989.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf:bc provider with proxy configuration
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Ok, this should be caused by your env stax implementation, we already
have woodstox in $SMX_HOME/lib folder, so by default woodstox should
be pick up as stax implementation.
However somehow in your env use some other stax implementation.
Some questions
1. You platform?
2. You JDK vendor and version?
3. Do you endorse your JDK?
4. Do you specify javax.xml.stream.XMLInputFactory somewhere else but
you're not aware of that?
5. could add system properties like
-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -
Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory
in servicemix startup script to ensure always use woodstox stax
implementation.
Freeman
On 2011-6-3, at 下午3:23, jaikishore wrote:
> Hi Freeman,
>
>
>
> I changed name attribute like {WSDL Namespace}portName.http-conduit
> as u said.
>
> Still I am getting the same xception. Please help me to solve this.
>
>
>
> [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,196]
>
> Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound
> ?http&http:client]
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller
> .UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
>
> at
> com
> .sun
> .xml
> .bind
> .v2
> .runtime
> .unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
>
> at
> org
> .apache
> .cxf
> .configuration
> .spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
>
> ... 37 more
>
> Caused by: javax.xml.stream.XMLStreamException: ParseError at
> [row,col]:[1,196]
>
>
>
> Cxf.xml ::
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:sec="http://cxf.apache.org/configuration/security"
>
> xmlns:http="http://cxf.apache.org/transports/http/configuration"
>
> xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
>
> xsi:schemaLocation="
>
> http://cxf.apache.org/configuration/security
>
> http://cxf.apache.org/schemas/configuration/security.xsd
>
> http://cxf.apache.org/transports/http/configuration
>
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-
> beans-2.0.xsd">
>
> <http:conduit
>
> name="{http://www.americanexpress.com/businesstravel/profilerouter
> }ProfileRouterMgmtServicePort.http-conduit">
>
> <http:client AutoRedirect="true" Connection="Keep-Alive" />
>
> </http:conduit>
>
> </beans>
>
>
>
>
>
> Regards
>
> Jai Kishore P, AMEX-GTT
>
> N:0441-8212,M:9884041281.
>
>
>
> From: Freeman-2 [via ServiceMix] [mailto:ml-node+4450372-1629184908-147307@n5.nabble.com
> ]
> Sent: Friday, June 03, 2011 12:37 PM
> To: Polepalli, JaiKishore
> Subject: Re: cxf:bc provider with proxy configuration
>
>
>
> Hi,
>
> About the http:conduit name, you should take a look about the link[1]
> which I've pointed to you, more importantly.
>
> The first thing to notice is the "name" attribute on <http:conduit>.
> This allows CXF to associate this HTTP Conduit configuration with a
> particular WSDL Port. The name includes the service's namespace, the
> WSDL port name (as found in the wsdl:service section of the WSDL), and
> ".http-conduit". It follows this template: "{WSDL
> Namespace}portName.http-conduit". Note: it's the PORT name, not the
> service name. Thus, it's likely something like "MyServicePort", not
> "MyService". If you are having trouble getting the template to work,
> another (temporary) option for the name value is simply "*.http-
> conduit".
>
> There's an obvious error in your configuration, you shouldn't have an
> ":" between the namespace and port name.
>
> Btw, please don't post same question several times on the list, we're
> glad to help but we can't guarantee the response time, so please don't
> post same question every half hour like this.
>
> Please be patient, if you really need some immediate response, I
> think you may need consider some commercial support[2]
>
> [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
> [2]http://servicemix.apache.org/support.html
>
> Freeman
>
>
> On 2011-6-3, at 下午2:32, jaikishore wrote:
>
>
>> Hi Freeman,
>>
>> There’s no any whitespaces in front xml
>> declaration
>> line in cxf.xml. Still it’s not working{getting same xception}.
>> Then I tried to give exact name space and port endpoint with “:”
>> character
>> in cxf.xml{please check the below configurations}.
>> now I am not getting the below exception. At the same time messages
>> are not
>> routing through this proxy{which we are defined in cxf.xml} getting
>> connection timed out xception.
>> can u please check the configuration http:conduit
>> name="{http://www.jack.com/businesstravel/
>> profilerouter}:ProfileRouterMgmtServicePort.http-conduit
>> given in cxf.xml is true or not. please help me in this regards…
>>
>> cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Xbean.xml:
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>> .
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450300.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:[hidden email]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> Connect at CamelOne May 24-26
> The Open Source Integration Conference
>
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the
> discussion below:
>
> http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450372.html
>
> To unsubscribe from cxf:bc provider with proxy configuration, click
> here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=
> > .
>
>
> Confidential: This electronic message and all contents contain
> information from Syntel, Inc. which may be privileged, confidential
> or otherwise protected from disclosure. The information is intended
> to be for the addressee only. If you are not the addressee, any
> disclosure, copy, distribution or use of the contents of this
> message is prohibited. If you have received this electronic message
> in error, please notify the sender immediately and destroy the
> original message and all copies.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450401.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
RE: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
I changed name attribute like {WSDL Namespace}portName.http-conduit as u said.
Still I am getting the same xception. Please help me to solve this.
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,196]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?http&http:client]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:397)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
... 37 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,196]
Cxf.xml ::
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xsi:schemaLocation="
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:conduit
name="{http://www.americanexpress.com/businesstravel/profilerouter}ProfileRouterMgmtServicePort.http-conduit">
<http:client AutoRedirect="true" Connection="Keep-Alive" />
</http:conduit>
</beans>
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Freeman-2 [via ServiceMix] [mailto:ml-node+4450372-1629184908-147307@n5.nabble.com]
Sent: Friday, June 03, 2011 12:37 PM
To: Polepalli, JaiKishore
Subject: Re: cxf:bc provider with proxy configuration
Hi,
About the http:conduit name, you should take a look about the link[1]
which I've pointed to you, more importantly.
The first thing to notice is the "name" attribute on <http:conduit>.
This allows CXF to associate this HTTP Conduit configuration with a
particular WSDL Port. The name includes the service's namespace, the
WSDL port name (as found in the wsdl:service section of the WSDL), and
".http-conduit". It follows this template: "{WSDL
Namespace}portName.http-conduit". Note: it's the PORT name, not the
service name. Thus, it's likely something like "MyServicePort", not
"MyService". If you are having trouble getting the template to work,
another (temporary) option for the name value is simply "*.http-
conduit".
There's an obvious error in your configuration, you shouldn't have an
":" between the namespace and port name.
Btw, please don't post same question several times on the list, we're
glad to help but we can't guarantee the response time, so please don't
post same question every half hour like this.
Please be patient, if you really need some immediate response, I
think you may need consider some commercial support[2]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
[2]http://servicemix.apache.org/support.html
Freeman
On 2011-6-3, at 下午2:32, jaikishore wrote:
> Hi Freeman,
>
> There’s no any whitespaces in front xml
> declaration
> line in cxf.xml. Still it’s not working{getting same xception}.
> Then I tried to give exact name space and port endpoint with “:”
> character
> in cxf.xml{please check the below configurations}.
> now I am not getting the below exception. At the same time messages
> are not
> routing through this proxy{which we are defined in cxf.xml} getting
> connection timed out xception.
> can u please check the configuration http:conduit
> name="{http://www.jack.com/businesstravel/
> profilerouter}:ProfileRouterMgmtServicePort.http-conduit
> given in cxf.xml is true or not. please help me in this regards…
>
> cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>
>
>
> Xbean.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>
>
> .
>
>
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450300.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
________________________________
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450372.html
To unsubscribe from cxf:bc provider with proxy configuration, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4447568&code=amFpa2lzaG9yZV9wb2xlcGFsbGlAc3ludGVsaW5jLmNvbXw0NDQ3NTY4fDE2NDY1NDE5MjA=> .
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450401.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf:bc provider with proxy configuration
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
About the http:conduit name, you should take a look about the link[1]
which I've pointed to you, more importantly.
The first thing to notice is the "name" attribute on <http:conduit>.
This allows CXF to associate this HTTP Conduit configuration with a
particular WSDL Port. The name includes the service's namespace, the
WSDL port name (as found in the wsdl:service section of the WSDL), and
".http-conduit". It follows this template: "{WSDL
Namespace}portName.http-conduit". Note: it's the PORT name, not the
service name. Thus, it's likely something like "MyServicePort", not
"MyService". If you are having trouble getting the template to work,
another (temporary) option for the name value is simply "*.http-
conduit".
There's an obvious error in your configuration, you shouldn't have an
":" between the namespace and port name.
Btw, please don't post same question several times on the list, we're
glad to help but we can't guarantee the response time, so please don't
post same question every half hour like this.
Please be patient, if you really need some immediate response, I
think you may need consider some commercial support[2]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
[2]http://servicemix.apache.org/support.html
Freeman
On 2011-6-3, at 下午2:32, jaikishore wrote:
> Hi Freeman,
>
> There’s no any whitespaces in front xml
> declaration
> line in cxf.xml. Still it’s not working{getting same xception}.
> Then I tried to give exact name space and port endpoint with “:”
> character
> in cxf.xml{please check the below configurations}.
> now I am not getting the below exception. At the same time messages
> are not
> routing through this proxy{which we are defined in cxf.xml} getting
> connection timed out xception.
> can u please check the configuration http:conduit
> name="{http://www.jack.com/businesstravel/
> profilerouter}:ProfileRouterMgmtServicePort.http-conduit
> given in cxf.xml is true or not. please help me in this regards…
>
> cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>
>
>
> Xbean.xml:
> <?xml version="1.0" encoding="UTF-8"?>
>
>
> .
>
>
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450300.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference
Re: cxf:bc provider with proxy configuration
Posted by jaikishore <ja...@syntelinc.com>.
Hi Freeman,
There’s no any whitespaces in front xml declaration
line in cxf.xml. Still it’s not working{getting same xception}.
Then I tried to give exact name space and port endpoint with “:” character
in cxf.xml{please check the below configurations}.
now I am not getting the below exception. At the same time messages are not
routing through this proxy{which we are defined in cxf.xml} getting
connection timed out xception.
can u please check the configuration http:conduit
name="{http://www.jack.com/businesstravel/profilerouter}:ProfileRouterMgmtServicePort.http-conduit
given in cxf.xml is true or not. please help me in this regards…
cxf.xml :: <?xml version="1.0" encoding="UTF-8"?>
Xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4450300.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
FW: Accessing Database from Apache Tomcat servicemix instance
Posted by jaikishore <ja...@syntelinc.com>.
Can u please respond to below mail…..
Regards
Jai Kishore P, AMEX-GTT
N:0441-8212,M:9884041281.
From: Polepalli, JaiKishore
Sent: Wednesday, September 14, 2011 10:26 AM
To: 'Freeman-2 [via ServiceMix]'
Subject: Accessing Database from Apache Tomcat servicemix instance
Hi Freeman,
We r currently running servicemix on apache tomcat instance.
Everything is working fine. But we have a requirement to call hibernate dao for db transactions.
I can able to load hibernate session {by defining database parameters} from servicemix-bean component. Problem is, when I changed
Database parameters to data source ,it throwing exception “could not find data source”. But we can access the same data source from other
Web Applications in same jvm. Please suggest us.
I have posted this on user mailing list..can u help in this regards
Regards
P. JAI KISHORE
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
--
View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4802276.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf:bc provider with proxy configuration
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You can configure http:conduit for this cxfbc:provider, some related
configuration like
<http:conduit name="*.http-conduit">
<http:proxyAuthorization>
<sec:UserName>proxy.user</sec:UserName>
<sec:Password>proxy.pass</sec:Password>
</http:proxyAuthorization>
<http:client
ProxyServerType="HTTP"
ProxyServer="proxy.host"
ProxyServerPort="proxy.port"
/>
</http:conduit>
You can get more details from[1]
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
Freeman
On 2011-6-2, at 下午5:39, jaikishore wrote:
> Hi Freeman,
>
> currently I am working on a cxfbc:provider component
> to
> consume external web services.I am succeeded with that, but now I
> need to
> consume a xternal web services which required proxy configuration.
> Can u tell me how can I implement this one in cxfbc:provider. Please
> help me
> in this regards.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/cxf-bc-provider-with-proxy-configuration-tp4447568p4447568.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference