-
1. Re: schema issues?
davsclaus Apr 4, 2011 5:46 AM (in response to dead_devil_66)The namespace for should not contain activemq. It should just be
-
2. Re: schema issues?
dead_devil_66 Apr 4, 2011 10:35 PM (in response to davsclaus)so, i have this:
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"
should i change it to this:
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"
??
Edited by: dead_devil_66 on Apr 5, 2011 2:34 AM
-
-
4. Re: schema issues?
dead_devil_66 Apr 5, 2011 1:42 PM (in response to davsclaus)Thanks claus
The last error seems to be with the broker tag
<broker:broker useJmx="false" persistent="false" brokerName="localhost">
this is the error message:
Multiple annotations found at this line:
- Start tag of element <broker:broker>
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'broker:broker'.
Strange...isnt the broker namespace correct???
-
5. Re: schema issues?
davsclaus Apr 6, 2011 7:56 AM (in response to dead_devil_66)You can use a version specific schema for the broker. So instead of
http://activemq.apache.org/schema/core/activemq-core.xsd
You can use
http://activemq.apache.org/schema/core/activemq-core-5.4.2.xsd
If you for example use AMQ version 5.4.2. You can see all the version numbers here
-
6. Re: schema issues?
dead_devil_66 Apr 6, 2011 12:20 PM (in response to davsclaus)Many thanks Claus!!
Seems that the namespace issues are a recurring problem...
Now, as far as i can see, i have no errors declared in the xml files. But, after installing in Fuse ESB, i got the same error message. This time, i checked the log file.
This is the content:
These lines got up my attention:
"16:50:55,492 | ERROR | ExtenderThread-7 | ContextLoaderListener | 72 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=null, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location classpath:*META-INF/cxf/cxf.xml*
Offending resource: URL bundleentry://260.fwk2272087/META-INF/spring/camel-cxf.xml; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=260|bnd.sym=null]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=260|bnd.sym=null] cannot be resolved to URL because it does not exist"
After reading this, i thought that by moving camel-cxf.xml to META-INF/cxf, that i could solve this issue. Wrong! After doing that, this is the error i got:
soooooo, what is happening now...?
Edited by: dead_devil_66 on Apr 6, 2011 4:19 PM
-
7. Re: schema issues?
dead_devil_66 Apr 6, 2011 1:00 PM (in response to davsclaus)by the way, these are the xml files i have for camel configuration:
camel-cxf.xml
camel-context.xml
camel-route.xml
-
8. Re: schema issues?
ffang Apr 6, 2011 9:45 PM (in response to dead_devil_66)Hi,
Such error
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location classpath:META-INF/cxf/cxf.xml
Offending resource: URL bundleentry://260.fwk2272087/META-INF/spring/camel-cxf.xml; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resourceclasspath:META-INF/cxf/cxf.xml; nested exception is java.io.FileNotFoundException: OSGi resourceclasspath:META-INF/cxf/cxf.xml cannot be resolved to URL because it does not exist"
indicate that your customer bundle miss Import-Package META-INF.cxf, so that META-INF/cxf/cxf.xml from other bundle(more specifically cxf bundle) isn't available for your bundle, you need add META-INF.cxf to your maven-bundle-plugin Import-Pacakge.
Freeman
-
9. Re: schema issues?
dead_devil_66 Apr 11, 2011 10:56 PM (in response to ffang)ok...now im lost. What should i put in what???? I have 3 xml files. Where should i put each one??
-
10. Re: schema issues?
ffang Apr 11, 2011 11:04 PM (in response to dead_devil_66)Hi,
You just need edit your pom.xml which build your bundle, and it for Import-Package for the maven-bundle-plugin.
Freeman