activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <dejan.bosa...@ttmsolutions.com>
Subject Re: SAXParserException with amq namespace.
Date Tue, 26 Aug 2008 10:24:03 GMT
You can also try

to use FileSystemXmlApplicationContext from XBean project, since it is
more forgiving on schema problems.

You can also take a look at this issue

http://issues.apache.org/activemq/browse/AMQ-1794

since it could be the source of your problems (in case you have more
than one broker elements defined)


BTW. committing the patch attached to issue and regenerating schemes
would be really helpful


Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



Bruce Snyder wrote:
> On Wed, Aug 20, 2008 at 10:07 PM, PJGratz <pjgratz@yahoo.com> wrote:
>   
>> I am receiving errors when trying to parse out an XML Configuration file that
>> contains the amq namespace.
>>
>> The matching wildcard is strict, but no declaration can be found for element
>> 'amq:broker'
>>
>> I used two beans configurations, one from the ActiveMQ Spring example and
>> the other from the default XML Configuration page.
>>
>> Default XML Configuration page:
>>
>> <beans
>>  xmlns="http://www.springframework.org/schema/beans"
>>  xmlns:amq="http://activemq.apache.org/schema/core"
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>  xsi:schemaLocation="http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>>  http://activemq.apache.org/schema/core
>> http://activemq.apache.org/schema/core/activemq-core.xsd
>>  http://activemq.apache.org/camel/schema/spring
>> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
>>
>>
>>
>> <beans
>>  xmlns="http://www.springframework.org/schema/beans"
>>  xmlns:amq="http://activemq.apache.org/schema/core"
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>  xsi:schemaLocation="http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>>  http://activemq.apache.org/schema/core
>> http://activemq.apache.org/schema/core/activemq-core.xsd">
>>     
>
> The activemq-core-5.1.0.xsd contains a broker element. It's located here:
>
> http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd
>
> Bruce
>   



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message