geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5522) ActiveMQ + OSGi XML xBean configuration problem
Date Wed, 11 Aug 2010 21:09:16 GMT


David Jencks commented on GERONIMO-5522:

I doubt we can help you with this problem.  We don't use spring dm in geronimo.  Maybe the
activemq community can help.

we use apache aries blueprint with xbean-blueprint to configure activemq in geronimo 3.x.
 Since the blueprint namespace handler stuff is not yet an osgi spec all the blueprint container
namespace implementations are currently incompatible.  

> ActiveMQ + OSGi XML xBean configuration problem
> -----------------------------------------------
>                 Key: GERONIMO-5522
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>         Environment: Apache Felix, Spring DM
>            Reporter: Eduardo Zanni
>            Priority: Blocker
> I'm trying to use an external .xml file to configure a broker. I have the following code
in my spring bundle context:
> {noformat}
>     <bean id="brokerFactory" class="org.apache.activemq.xbean.BrokerFactoryBean">
>     	<property name="config" value="file:c:/activemq.xml" />  
>     	<property name="start" value="false" />  
>     </bean> 
> {noformat}
> This should link with the configuration file with no further problems. Here is what my
activemq.xml file looks like:
> {noformat}
> <beans 
>   xmlns="" 
>   xmlns:amq=""
>   xmlns:xsi=""
>   xsi:schemaLocation="
>   <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
>   <amq:broker useJmx="true" xmlns="">
>     <networkConnectors>
>       <!-- 
>       <networkConnector uri="multicast://default?initialReconnectDelay=100" />
>       <networkConnector uri="static://(tcp://localhost:61616)" />
>        -->
>     </networkConnectors>
>     <persistenceFactory>
>       <journalPersistenceAdapterFactory journalLogFiles="5" dataDirectory="${basedir}/target/foo"
>     </persistenceFactory>
>     <transportConnectors>
>       <transportConnector uri="tcp://localhost:61636" />
>     </transportConnectors>
>   </amq:broker>
> </beans>
> {noformat}
> As you can see it's a pretty standard one. When starting out my bundles I get the following
> {noformat}
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'brokerManager' defined in URL [bundle://7.0:0/META-INF/spring
> /bundle-context.xml]: Cannot resolve reference to bean 'brokerFactory' while setting
bean property 'brokerFactory'; nested exception is org.springfra
> mework.beans.factory.BeanCreationException: Error creating bean with name 'brokerFactory'
defined in URL [bundle://7.0:0/META-INF/spring/bundle-conte
> xt.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 10 in XML 
> document from OSGi resource[file:c:/activemq.xml||bnd.sym=genericenqueuer-engine]
is invalid; nested exception is org.xml.sax.SAXParseExcepti
> on: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be
found for element 'amq:broker'.
> {noformat}
> I have tried several configurations for the namaspaces involved. Using the broker tags
with and without the "amq:" declaration (<broker> and <amq:broker>) and specifying
the specific version number for the activemq .xsd declaration. Still, the .xsd file doesn't
seem to be found.
> I am using xbean-spring version 3.7 which can be found [here|].
I have tried extracting the .xsd file from my
bundle file and exporting it on a package in one of my bundles but the parser still can't
seem to find it. Any help with this issue will be greatly appreciated.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message