You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2010/02/03 13:32:25 UTC
Re: cvc-complex-type.2.4.c: The matching wildcard is strict, but no
declaration can be found for element 'broker:broker'.
Hi
Try without the version number in the AMQ XSD
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
Then it should locate the XSD in the .jar and not require to be online.
On Wed, Feb 3, 2010 at 1:28 PM, mabahma <ma...@hotmail.com> wrote:
>
> I picked up a camel tutorial and i never get to run it succefully.
> I'm using Camel 2.1 and ActivMq 5.3.0
>
> It always crashes with the error :
>
>
> org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard
> is strict, but no declaration can be found for element 'broker:broker'.
>
> Am i missing any library ?
>
> Here is my maven file :
>
>
>
> ***
>
> <properties>
> <camel-version>2.1.0</camel-version>
> <activemq-version>5.3.0 </activemq-version>
> <xbean-spring-version>3.6</xbean-spring-version>
> </properties>
>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
>
> <!-- Core Camel support -->
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-core</artifactId>
> <version>${camel-version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-spring</artifactId>
> <version>${camel-version}</version>
> </dependency>
>
> <!-- ActiveMQ connectivity for Camel -->
> <dependency>
> <groupId>org.apache.activemq</groupId>
> <artifactId>activemq-camel</artifactId>
> <version>${activemq-version}</version>
> </dependency>
>
> <!-- Add support for JAXB marshaling -->
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jaxb</artifactId>
> <version>${camel-version}</version>
> </dependency>
>
> <!-- Add support for CSV marshaling -->
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-csv</artifactId>
> <version>${camel-version}</version>
> </dependency>
>
> <!-- Add support for HTTP -->
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jetty</artifactId>
> <version>${camel-version}</version>
> </dependency>
>
> <!-- Embedded ActiveMQ broker -->
> <dependency>
> <groupId>org.apache.activemq</groupId>
> <artifactId>activemq-core</artifactId>
> <version>${activemq-version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.xbean</groupId>
> <artifactId>xbean-spring</artifactId>
> <version>${xbean-spring-version}</version>
> </dependency>
>
> </dependencies>
> *****
>
> and the spring file :
>
> ***************
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:camel="http://camel.apache.org/schema/spring"
> xmlns:broker="http://activemq.apache.org/schema/core"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd
> http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd">
>
>
>
>
> <broker:broker useJmx="false" persistent="false"
> brokerName="localhost">
> <broker:transportConnectors>
> <broker:transportConnector uri="tcp://localhost:61616" />
> </broker:transportConnectors>
> </broker:broker>
>
> <bean id="jms"
> class="org.apache.activemq.camel.component.ActiveMQComponent">
> <property name="brokerURL" value="tcp://localhost:61616"/>
> </bean>
>
> <bean id="normalizer" class="org.fusesource.camel.OrderNormalizer"/>
> <bean id="orderHelper" class="org.fusesource.camel.OrderHelper"/>
>
> <camel:camelContext >
> <camel:package>org.fusesource.camel</camel:package>
>
> </camel:camelContext>
>
> </beans>
>
>
> ***************
>
>
>
> Main class that crashes with the error : no declaration can be found for
> element 'broker:broker'.
>
>
> ***************
>
>
> public class SampleCamelServer {
>
> public static void main(String[] args) throws Exception {
> Main.main("-ac", "camel-context.xml");
> }
>
> }
> ********************
>
> I can open the file
> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd
>
> In a browser , so why can't he found the element ?
>
>
> do u have any idea about this error ?
>
>
> I'm using jdk1.5 and MyEclipse 8
>
> Thnx a lot.
>
> --
> View this message in context: http://old.nabble.com/cvc-complex-type.2.4.c%3A-The-matching-wildcard-is-strict%2C-but-no-declaration-can-be-found-for-element-%27broker%3Abroker%27.-tp27435582p27435582.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: cvc-complex-type.2.4.c: The matching wildcard is strict, but
no declaration can be found for element 'broker:broker'.
Posted by Willem Jiang <wi...@gmail.com>.
It should be fixed in ActiveMQ 5.3.1[1]
[1]https://issues.apache.org/activemq/browse/AMQ-2569
Willem
Claus Ibsen wrote:
> Hi
>
> Try without the version number in the AMQ XSD
> http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core.xsd">
>
> Then it should locate the XSD in the .jar and not require to be online.
>
>
> On Wed, Feb 3, 2010 at 1:28 PM, mabahma <ma...@hotmail.com> wrote:
>> I picked up a camel tutorial and i never get to run it succefully.
>> I'm using Camel 2.1 and ActivMq 5.3.0
>>
>> It always crashes with the error :
>>
>>
>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard
>> is strict, but no declaration can be found for element 'broker:broker'.
>>
>> Am i missing any library ?
>>
>> Here is my maven file :
>>
>>
>>
>> ***
>>
>> <properties>
>> <camel-version>2.1.0</camel-version>
>> <activemq-version>5.3.0 </activemq-version>
>> <xbean-spring-version>3.6</xbean-spring-version>
>> </properties>
>>
>> <dependencies>
>> <dependency>
>> <groupId>junit</groupId>
>> <artifactId>junit</artifactId>
>> <version>3.8.1</version>
>> <scope>test</scope>
>> </dependency>
>>
>> <!-- Core Camel support -->
>> <dependency>
>> <groupId>org.apache.camel</groupId>
>> <artifactId>camel-core</artifactId>
>> <version>${camel-version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.camel</groupId>
>> <artifactId>camel-spring</artifactId>
>> <version>${camel-version}</version>
>> </dependency>
>>
>> <!-- ActiveMQ connectivity for Camel -->
>> <dependency>
>> <groupId>org.apache.activemq</groupId>
>> <artifactId>activemq-camel</artifactId>
>> <version>${activemq-version}</version>
>> </dependency>
>>
>> <!-- Add support for JAXB marshaling -->
>> <dependency>
>> <groupId>org.apache.camel</groupId>
>> <artifactId>camel-jaxb</artifactId>
>> <version>${camel-version}</version>
>> </dependency>
>>
>> <!-- Add support for CSV marshaling -->
>> <dependency>
>> <groupId>org.apache.camel</groupId>
>> <artifactId>camel-csv</artifactId>
>> <version>${camel-version}</version>
>> </dependency>
>>
>> <!-- Add support for HTTP -->
>> <dependency>
>> <groupId>org.apache.camel</groupId>
>> <artifactId>camel-jetty</artifactId>
>> <version>${camel-version}</version>
>> </dependency>
>>
>> <!-- Embedded ActiveMQ broker -->
>> <dependency>
>> <groupId>org.apache.activemq</groupId>
>> <artifactId>activemq-core</artifactId>
>> <version>${activemq-version}</version>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.xbean</groupId>
>> <artifactId>xbean-spring</artifactId>
>> <version>${xbean-spring-version}</version>
>> </dependency>
>>
>> </dependencies>
>> *****
>>
>> and the spring file :
>>
>> ***************
>> <beans xmlns="http://www.springframework.org/schema/beans"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:camel="http://camel.apache.org/schema/spring"
>> xmlns:broker="http://activemq.apache.org/schema/core"
>> xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>> http://camel.apache.org/schema/spring
>> http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd
>> http://activemq.apache.org/schema/core
>> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd">
>>
>>
>>
>>
>> <broker:broker useJmx="false" persistent="false"
>> brokerName="localhost">
>> <broker:transportConnectors>
>> <broker:transportConnector uri="tcp://localhost:61616" />
>> </broker:transportConnectors>
>> </broker:broker>
>>
>> <bean id="jms"
>> class="org.apache.activemq.camel.component.ActiveMQComponent">
>> <property name="brokerURL" value="tcp://localhost:61616"/>
>> </bean>
>>
>> <bean id="normalizer" class="org.fusesource.camel.OrderNormalizer"/>
>> <bean id="orderHelper" class="org.fusesource.camel.OrderHelper"/>
>>
>> <camel:camelContext >
>> <camel:package>org.fusesource.camel</camel:package>
>>
>> </camel:camelContext>
>>
>> </beans>
>>
>>
>> ***************
>>
>>
>>
>> Main class that crashes with the error : no declaration can be found for
>> element 'broker:broker'.
>>
>>
>> ***************
>>
>>
>> public class SampleCamelServer {
>>
>> public static void main(String[] args) throws Exception {
>> Main.main("-ac", "camel-context.xml");
>> }
>>
>> }
>> ********************
>>
>> I can open the file
>> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd
>>
>> In a browser , so why can't he found the element ?
>>
>>
>> do u have any idea about this error ?
>>
>>
>> I'm using jdk1.5 and MyEclipse 8
>>
>> Thnx a lot.
>>
>> --
>> View this message in context: http://old.nabble.com/cvc-complex-type.2.4.c%3A-The-matching-wildcard-is-strict%2C-but-no-declaration-can-be-found-for-element-%27broker%3Abroker%27.-tp27435582p27435582.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>