camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg A. (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9438) Unable to use camel-example-cxf
Date Mon, 21 Dec 2015 15:09:46 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066532#comment-15066532
] 

Greg A. commented on CAMEL-9438:
--------------------------------

got this correct output after changes 


[mbp:~/Source/git/camel/examples/camel-example-cxf]$> mvn exec:java -PCamelTransport 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: Example :: CXF 2.17-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> exec-maven-plugin:1.1.1:java (default-cli) > validate @ camel-example-cxf
>>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ camel-example-cxf ---
[INFO] 
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cxf ---
[INFO] 
[INFO] <<< exec-maven-plugin:1.1.1:java (default-cli) < validate @ camel-example-cxf
<<<
[INFO] 
[INFO] --- exec-maven-plugin:1.1.1:java (default-cli) @ camel-example-cxf ---
[t.CamelTransportExample.main()] BusApplicationContext          INFO  Refreshing org.apache.cxf.bus.spring.BusApplicationContext@2927491d:
startup date [Mon Dec 21 16:08:21 CET 2015]; root of context hierarchy
[t.CamelTransportExample.main()] BusApplicationContext          INFO  Loaded configuration
file /org/apache/camel/example/camel/transport/CamelDestination.xml.
[t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean definitions
from class path resource [META-INF/cxf/cxf.xml]
[t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean definitions
from class path resource [META-INF/cxf/camel/cxf-extension-camel.xml]
[t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean definitions
from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
[t.CamelTransportExample.main()] egate$BeanPostProcessorChecker INFO  Bean 'cxf' of type [class
org.apache.cxf.bus.spring.SpringBus] is not eligible for getting processed by all BeanPostProcessors
(for example: not eligible for auto-proxying)
[t.CamelTransportExample.main()] CamelContextFactoryBean        INFO  Bridging Camel and Spring
property placeholder configurer with id: bridgePropertyPlaceholder
[t.CamelTransportExample.main()] DefaultTypeConverter           INFO  Loaded 205 type converters
[t.CamelTransportExample.main()] SpringCamelContext             INFO  Apache Camel 2.17-SNAPSHOT
(CamelContext: dest_context) is starting
[t.CamelTransportExample.main()] ManagedManagementStrategy      INFO  JMX is enabled
[t.CamelTransportExample.main()] DefaultRuntimeEndpointRegistry INFO  Runtime endpoint registry
is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache
limit: 1000)
[t.CamelTransportExample.main()] SpringCamelContext             INFO  AllowUseOriginalMessage
is enabled. If access to the original message is not needed, then its recommended to turn
this option off as it may improve performance.
[t.CamelTransportExample.main()] SpringCamelContext             INFO  StreamCaching is not
in use. If using streams then its recommended to enable stream caching. See more details at
http://camel.apache.org/stream-caching.html
[t.CamelTransportExample.main()] log                            INFO  Logging initialized
@5211ms
[t.CamelTransportExample.main()] JettyHttpComponent             WARN  You use localhost interface!
It means that no external connections will be available. Don't you want to use 0.0.0.0 instead
(all network interfaces)? Endpoint[jetty:http://localhost:9001/GreeterContext/GreeterPort]
[t.CamelTransportExample.main()] JettyHttpComponent             INFO  Using default Jetty
continuation timeout for: Endpoint[jetty:http://localhost:9001/GreeterContext/GreeterPort]
[t.CamelTransportExample.main()] Server                         INFO  jetty-9.2.11.v20150529
[t.CamelTransportExample.main()] AbstractHandler                WARN  No Server set for org.apache.camel.component.jetty.JettyHttpComponent$1@7e0b628b
[t.CamelTransportExample.main()] ContextHandler                 INFO  Started o.e.j.s.ServletContextHandler@1c948edc{/,null,AVAILABLE}
[t.CamelTransportExample.main()] ServerConnector                INFO  Started ServerConnector@6f45eca3{HTTP/1.1}{localhost:9001}
[t.CamelTransportExample.main()] Server                         INFO  Started @5317ms
[t.CamelTransportExample.main()] SpringCamelContext             INFO  Route: route1 started
and consuming from: Endpoint[jetty:http://localhost:9001/GreeterContext/GreeterPort]
[t.CamelTransportExample.main()] SpringCamelContext             INFO  Total 1 routes, of which
1 is started.
[t.CamelTransportExample.main()] SpringCamelContext             INFO  Apache Camel 2.17-SNAPSHOT
(CamelContext: dest_context) started in 0.404 seconds
Starting Server
[t.CamelTransportExample.main()] ReflectionServiceFactoryBean   INFO  Creating Service {http://apache.org/hello_world_soap_http}CamelService
from class org.apache.hello_world_soap_http.Greeter
[t.CamelTransportExample.main()] ServerImpl                     INFO  Setting the server's
publish address to be camel://direct:EndpointA
[t.CamelTransportExample.main()] ReflectionServiceFactoryBean   INFO  Creating Service {http://apache.org/hello_world_soap_http}CamelService
from class org.apache.hello_world_soap_http.Greeter
[t.CamelTransportExample.main()] ServerImpl                     INFO  Setting the server's
publish address to be camel://direct:EndpointB
Acquiring router port ...
[t.CamelTransportExample.main()] ReflectionServiceFactoryBean   INFO  Creating Service {http://apache.org/hello_world_soap_http}CamelService
from class org.apache.hello_world_soap_http.Greeter
Invoking sayHi...
[               qtp219563892-16] GreeterImpl                    INFO  Executing operation
sayHi
Executing operation sayHi

Server responded with: Bonjour from EndpointA

Invoking greetMe... with Mike
[               qtp219563892-17] GreeterImpl                    INFO  Executing operation
greetMe
Executing operation greetMe
Message received: Mike

Server responded with: Hello Mike from EndpointB

Invoking greetMe... with James
[               qtp219563892-18] GreeterImpl                    INFO  Executing operation
greetMe
Executing operation greetMe
Message received: James

Server responded with: Hello James from EndpointA

Invoking greetMeOneWay...
[           default-workqueue-1] GreeterImpl                    INFO  Executing operation
greetMeOneWay
Executing operation greetMeOneWay

Hello there gautric
No response from server as method is OneWay

Invoking pingMe, expecting exception...
[               qtp219563892-20] GreeterImpl                    INFO  Executing operation
pingMe, throwing PingMeFault exception, message = hello
Executing operation pingMe, throwing PingMeFault exception

[               qtp219563892-20] PhaseInterceptorChain          INFO  Application {http://apache.org/hello_world_soap_http}CamelService#{http://apache.org/hello_world_soap_http}pingMe
has thrown exception, unwinding now: org.apache.hello_world_soap_http.PingMeFault: PingMeFault
raised by server EndpointA
Expected exception: PingMeFault has occurred: PingMeFault raised by server EndpointA
FaultDetail major:2
FaultDetail minor:1
[

> Unable to use camel-example-cxf
> -------------------------------
>
>                 Key: CAMEL-9438
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9438
>             Project: Camel
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.17.0
>            Reporter: Greg A.
>            Assignee: Greg A.
>
> Got this exception when run 
> mvn exec:java -PCamelTransport
> [mbp:~/Source/git/camel/examples/camel-example-cxf]$> mvn exec:java -PCamelTransport

> [INFO] Scanning for projects...
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Camel :: Example :: CXF 2.17-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] >>> exec-maven-plugin:1.1.1:java (default-cli) > validate @ camel-example-cxf
>>>
> [INFO] 
> [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ camel-example-cxf ---
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cxf ---
> [INFO] 
> [INFO] <<< exec-maven-plugin:1.1.1:java (default-cli) < validate @ camel-example-cxf
<<<
> [INFO] 
> [INFO] --- exec-maven-plugin:1.1.1:java (default-cli) @ camel-example-cxf ---
> [t.CamelTransportExample.main()] BusApplicationContext          INFO  Refreshing org.apache.cxf.bus.spring.BusApplicationContext@567da882:
startup date [Mon Dec 21 16:00:41 CET 2015]; root of context hierarchy
> [t.CamelTransportExample.main()] BusApplicationContext          INFO  Loaded configuration
file /org/apache/camel/example/camel/transport/CamelDestination.xml.
> [t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean
definitions from class path resource [META-INF/cxf/cxf.xml]
> [t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean
definitions from class path resource [META-INF/cxf/camel/cxf-extension-camel.xml]
> [t.CamelTransportExample.main()] idationXmlBeanDefinitionReader INFO  Loading XML bean
definitions from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
> [t.CamelTransportExample.main()] SpringBusFactory               WARN  Initial attempt
to create application context was unsuccessful.
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 in XML
document from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 39; columnNumber:
46; cvc-complex-type.3.2.2: Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:115)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:154)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanDefinitionReader.java:66)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:141)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
> 	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:123)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:334)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:608)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:106)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:104)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:104)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:157)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:124)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
> 	at org.apache.camel.example.camel.transport.Server.prepare(Server.java:38)
> 	at org.apache.camel.example.camel.transport.CamelTransportExample.main(CamelTransportExample.java:32)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 39; columnNumber: 46; cvc-complex-type.3.2.2:
Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> 	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
> 	at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:116)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
> 	... 31 more
> [t.CamelTransportExample.main()] SpringBusFactory               WARN  Failed to create
application context.
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 in XML
document from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 39; columnNumber:
46; cvc-complex-type.3.2.2: Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:115)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:154)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanDefinitionReader.java:66)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:141)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
> 	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:123)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:334)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:608)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:106)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:104)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:104)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:157)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:124)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
> 	at org.apache.camel.example.camel.transport.Server.prepare(Server.java:38)
> 	at org.apache.camel.example.camel.transport.CamelTransportExample.main(CamelTransportExample.java:32)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 39; columnNumber: 46; cvc-complex-type.3.2.2:
Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> 	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
> 	at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:116)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
> 	... 31 more
> java.lang.RuntimeException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 39 in XML document from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 39; columnNumber:
46; cvc-complex-type.3.2.2: Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:151)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:124)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
> 	at org.apache.camel.example.camel.transport.Server.prepare(Server.java:38)
> 	at org.apache.camel.example.camel.transport.CamelTransportExample.main(CamelTransportExample.java:32)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
39 in XML document from class path resource [org/apache/camel/example/camel/transport/CamelDestination.xml]
is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 39; columnNumber:
46; cvc-complex-type.3.2.2: Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:115)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:154)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanDefinitionReader.java:66)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:141)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:139)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
> 	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
> 	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:123)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:334)
> 	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
> 	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:608)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:106)
> 	at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:104)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:104)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:157)
> 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)
> 	... 10 more
> Caused by: org.xml.sax.SAXParseException; lineNumber: 39; columnNumber: 46; cvc-complex-type.3.2.2:
Attribute 'ref' is not allowed to appear in element 'loadBalance'.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> 	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
> 	at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:116)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
> 	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
> 	... 31 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message