-
Bug
-
Resolution: Won't Do
-
Major
-
7.3.0
I get an odd error (see below), when I try to Run As Local Camel Context a project from one of these archetypes:
- camel-archetype-cxf-code-first-blueprint
- camel-archetype-cxf-contract-first-blueprint
[INFO] ------------------------------------------------------------------------ [INFO] Building A Camel CXF Blueprint Route 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camel-cxf-contract-first-blueprint --- [INFO] Deleting /home/tsedmik/workspace/test2/target [INFO] [INFO] --- cxf-codegen-plugin:3.0.4.redhat-620133:wsdl2java (generate-sources) @ camel-cxf-contract-first-blueprint --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-cxf-contract-first-blueprint --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-cxf-contract-first-blueprint --- [INFO] Compiling 7 source files to /home/tsedmik/workspace/test2/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-cxf-contract-first-blueprint --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-cxf-contract-first-blueprint --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ camel-cxf-contract-first-blueprint --- [INFO] [INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ camel-cxf-contract-first-blueprint --- [WARNING] Bundle com.mycompany:camel-cxf-contract-first-blueprint:bundle:1.0.0-SNAPSHOT : Instructions in Private-Package, or -testpackages that are never used: com\.mycompany\.camel\.cxf\.contract\.first\.blueprint\..*|com\.mycompany\.camel\.cxf\.contract\.first\.blueprint Classpath: Jar:.,Jar:camel-core,Jar:slf4j-api,Jar:jaxb-core,Jar:jaxb-impl,Jar:camel-blueprint,Jar:camel-core-xml,Jar:camel-core-osgi,Jar:camel-cxf,Jar:camel-spring,Jar:spring-aop,Jar:aopalliance,Jar:spring-tx,Jar:camel-cxf-transport,Jar:cxf-rt-frontend-jaxrs,Jar:cxf-core,Jar:woodstox-core-asl,Jar:stax2-api,Jar:xmlschema-core,Jar:javax.ws.rs-api,Jar:javax.annotation-api,Jar:cxf-rt-transports-http,Jar:cxf-rt-frontend-jaxws,Jar:xml-resolver,Jar:asm,Jar:cxf-rt-bindings-xml,Jar:cxf-rt-frontend-simple,Jar:cxf-rt-ws-addr,Jar:cxf-rt-ws-policy,Jar:neethi,Jar:cxf-rt-rs-security-oauth,Jar:cxf-rt-rs-client,Jar:oauth-provider,Jar:oauth,Jar:spring-core,Jar:commons-logging,Jar:spring-beans,Jar:spring-context,Jar:spring-expression,Jar:cxf-rt-features-clustering,Jar:cxf-rt-bindings-soap,Jar:cxf-rt-wsdl,Jar:wsdl4j,Jar:cxf-rt-databinding-jaxb [INFO] [INFO] >>> camel-maven-plugin:2.15.1.redhat-620133:run (default-cli) @ camel-cxf-contract-first-blueprint >>> [INFO] [INFO] --- cxf-codegen-plugin:3.0.4.redhat-620133:wsdl2java (generate-sources) @ camel-cxf-contract-first-blueprint --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-cxf-contract-first-blueprint --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-cxf-contract-first-blueprint --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-cxf-contract-first-blueprint --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-cxf-contract-first-blueprint --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< camel-maven-plugin:2.15.1.redhat-620133:run (default-cli) @ camel-cxf-contract-first-blueprint <<< [INFO] [INFO] --- camel-maven-plugin:2.15.1.redhat-620133:run (default-cli) @ camel-cxf-contract-first-blueprint --- [WARNING] The POM for org.ops4j.pax.swissbox:pax-swissbox-tinybundles:jar:1.3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext [INFO] Starting Camel ... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Jun 25, 2015 2:33:50 PM org.springframework.context.support.FileSystemXmlApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@38370693: startup date [Thu Jun 25 14:33:50 CEST 2015]; root of context hierarchy Jun 25, 2015 2:33:50 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from URL [file:/home/tsedmik/workspace/test2/src/main/resources/OSGI-INF/blueprint/blueprint.xml] [ERROR] ************************************* [ERROR] Error occurred while running main from: org.apache.camel.spring.Main [ERROR] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:488) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from URL [file:/home/tsedmik/workspace/test2/src/main/resources/OSGI-INF/blueprint/blueprint.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) 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.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94) at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:207) at org.apache.camel.spring.Main.doStart(Main.java:156) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.main.MainSupport.run(MainSupport.java:150) at org.apache.camel.main.MainSupport.run(MainSupport.java:354) at org.apache.camel.spring.Main.main(Main.java:89) ... 6 more Caused by: org.xml.sax.SAXParseException; systemId: http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID(XMLScanner.java:1048) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentScannerImpl.java:646) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:929) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:629) at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:685) at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2175) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:573) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:617) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2453) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1772) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:746) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:605) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3138) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391) ... 25 more [ERROR] ************************************* [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.373 s [INFO] Finished at: 2015-06-25T14:33:51+01:00 [INFO] Final Memory: 35M/334M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.15.1.redhat-620133:run (default-cli) on project camel-cxf-contract-first-blueprint: null: MojoExecutionException: InvocationTargetException: Line 1 in XML document from URL [file:/home/tsedmik/workspace/test2/src/main/resources/OSGI-INF/blueprint/blueprint.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
- is related to
-
FUSETOOLS-1520 Improve the camel-cxf-code-first-blueprint archetype to support Local Camel Context execution (Run-As)
- Closed
-
FUSETOOLS-1514 Remove archetypes which don't run with camel maven plugin
- Closed