It's good to know I'm not (entirely) crazy.

I tried referencing the 4.2 XSD at
http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4
.2-incubator-SNAPSHOT.xsd and now everything works.

I'll go with it.  I think I'll save it locally to avoid any future
surprises.

 

-----Original Message-----
From: TimDog [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 1:42 PM
To: [email protected]
Subject: Re: Spring 2.0.1 + ActiveMQ 4.1.0: Did
activemq-core-4.1-incubator-S NAPSHOT.xsd change?



Same thing here, in my post dated Jan 04.  It's apparent something has
changed.  
Luckily, I was fortunate enough to take a snapshot of the XSD on 26 Dec.  

I did a diff of the two files.  Not a complete analysis...but what I see is
this.

<             <xs:sequence minOccurs='0'
maxOccurs='1'><xs:any/></xs:sequence>^M
---
>             <xs:sequence minOccurs='0' maxOccurs='1'><xs:any
> namespace='##other'/></xs:sequence>^M
30c30

So it appears that they've put in the namespace='##other'  not sure why that
would effect anything.  The only other anomaly in the files is this:

<             <xs:sequence minOccurs='0'
maxOccurs='1'><xs:any/></xs:sequence>^M
---
>             <xs:choice minOccurs='0' maxOccurs='1'>^M
>               <xs:element ref='tns:connectionFactory'/>^M
>               <xs:element ref='tns:xaConnectionFactory'/>^M
>               <xs:any namespace='##other'/>^M
>             </xs:choice>^M
681a693

This appears in the new file and not the old one.  

I'm not clear on why it's expecting more elements with the addition of the
"##other" namespace.  Glad I'm not the only one.  Since I'm not bright
enough to figure it out so far, I'm just referencing the old XSD locally,
until I can figure out how I can adapt to the change.

Cheers,

Tim





elusivemel wrote:
> 
> All:
> 
> Forgive me for asking if I'm missing something obvious, but did the XML
> schema definition for the 4.1.0 release change underneath me?  
> 
> I'm using Spring 2.0.1 and xbean-spring-v2c-2.7 and this configuration
> file
> was working fine 2 weeks ago, but suddenly I'm getting and error:
> 
> Line 10 in XML document from URL
>
[file:/c:/work/workspace/compliance_wire/target/test-classes/WEB-INF/jms-con
> text.xml] is invalid; nested exception is org.xml.sax.SAXParseException:
> cvc-complex-type.2.4.b: The content of element 'amq:queue' is not
> complete.
> One of '{"http://activemq.org/config/1.0":compositeDestinations,
> "http://activemq.org/config/1.0":properties,
> WC[##other:"http://activemq.org/config/1.0"]}' is expected. 
> 
> 
> Here's the block of code that the parser is complaining about:
> 
>               <amq:destinations>
>                       <amq:queue name="jobqueue"
> physicalName="com.cntus.jnj.cw.jobqueue" />
>               </amq:destinations>
> 
> 
> So it looks like element <amq:queue> isn't complete.  I get it.  
> 
> It's not very clear to me exactly what properties I need to fill in and
> what
> their values should be. 
> 
> Is there any updated documentation that I missed somewhere?   
> 
> I've been struggling with this for days, any help would be greatly
> appreciated. 
> 
> My entire config is below.
> 
> 
> 
> -------------------begin entire xml config----------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:amq="http://activemq.org/config/1.0";
>       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.xsd
> http://activemq.org/config/1.0
>
http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4
> .1-incubator-SNAPSHOT.xsd">
> 
>       <!--  lets create an embedded ActiveMQ Broker -->
>       <amq:broker useJmx="false" persistent="true" start="true">
>               <amq:destinations>
>                       <amq:queue name="jobqueue"
> physicalName="com.cntus.jnj.cw.jobqueue" />
>               </amq:destinations>
> 
>               <amq:persistenceAdapter>
>                       <amq:jdbcPersistenceAdapter>
>                               <amq:dataSource>
>                                       <ref bean="dataSource" />
>                               </amq:dataSource>
>                       </amq:jdbcPersistenceAdapter>
>               </amq:persistenceAdapter>
> 
>               <amq:transportConnectors>
>                       <amq:transportConnector uri="tcp://localhost:0" />
>               </amq:transportConnectors>
>       </amq:broker>
> 
>       <!--  ActiveMQ destinations to use  -->
>         <amq:queue name="cwjobqueue" 
>               physicalName="com.cntus.jnj.cw.jobqueue" /> 
>      
>       <!-- JMS ConnectionFactory to use, configuring the embedded broker
> using XML -->
>       <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost" />
> 
>       <!-- Spring JMS Template -->
>       <bean id="cwJmsTemplate"
>               class="org.springframework.jms.core.JmsTemplate">
>               <property name="connectionFactory">
>                       <!-- lets wrap in a pool to avoid creating a
> connection per send -->
>                       <bean
>       
> class="org.springframework.jms.connection.SingleConnectionFactory">
>                               <property name="targetConnectionFactory">
>                                       <ref local="jmsFactory" />
>                               </property>
>                       </bean>
>               </property>
>       </bean>
> 
>       <bean id="consumerJmsTemplate"
>               class="org.springframework.jms.core.JmsTemplate">
>               <property name="connectionFactory" ref="jmsFactory" />
>       </bean>
> 
>       <!-- a sample POJO which uses a Spring JmsTemplate -->
>       <bean id="producer"
>               class="com.cntus.jnj.cw.jms.ComplianceWireMessageProducer">
>               <property name="template">
>                       <ref bean="cwJmsTemplate" />
>               </property>
> 
>               <property name="destination">
>                       <ref bean="cwjobqueue" />
>               </property>
> 
>               <property name="messageCount">
>                       <value>10</value>
>               </property>
>       </bean>
> 
>       <!-- a sample POJO consumer -->
>       <bean id="consumer"
>               class="com.cntus.jnj.cw.jms.ComplianceWireMessageConsumer">
>               <property name="template" ref="consumerJmsTemplate" />
>               <property name="destination" ref="cwjobqueue" />
>       </bean>
> </beans>
> 
> -------------------end xml config----------------------------
> 
> 
> 
> 
> 
> Melvin Jones
> x2478
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Spring-2.0.1-%2B-ActiveMQ-4.1.0%3A--Did-activemq-core-
4.1-incubator-S-NAPSHOT.xsd-change--tf2940617.html#a8223730
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to