activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlo1957ca <dlo195...@hotmail.com>
Subject Re: [Spam: 5.0] ClassNotFoundException: No ClassLoaders found for: beans
Date Thu, 08 Mar 2007 16:30:33 GMT

Yes, I have editied broker-config.xml . I am using the same one for both
4.0.2 and 4.1.0. I followed the instructions from the article:

http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html
http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html 

Here is the broker-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://activemq.org/config/1.0">
  <broker useJmx="true" brokerName="intechgserver.broker1">
    <!-- In ActiveMQ 4, you can setup destination policies. note: this xml
format may still change a bit -->
    <destinationPolicy>
      <policyMap><policyEntries>

          <policyEntry topic="FOO.>">
            <dispatchPolicy>
              <strictOrderDispatchPolicy />
            </dispatchPolicy>
            <subscriptionRecoveryPolicy>
              <lastImageSubscriptionRecoveryPolicy />
            </subscriptionRecoveryPolicy>
          </policyEntry>

      </policyEntries></policyMap>
    </destinationPolicy>

    <persistenceAdapter>
      <journaledJDBC journalLogFiles="5" dataDirectory="activemq-data"/>
      <!-- To use a different datasource, use th following syntax : -->
      <!--
      <journaledJDBC journalLogFiles="5" dataDirectory="../data"
dataSource="#postgres-ds"/>
       -->
    </persistenceAdapter>

    <transportConnectors>
      <!-- prefixing a connector with discovery: causes the connector to be
advertiesed over rendezvous -->
      <transportConnector brokerName="intechgserver.broker1"
uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
    </transportConnectors>

    <networkConnectors>
      <!-- by default just auto discover the other brokers -->
      <networkConnector uri="multicast://default"/>
      <!--
      <networkConnector
uri="static://(tcp://host1:61616,tcp://host2:61616)"/>
      -->
    </networkConnectors>

  </broker>
</beans>

I have also edited the ra.xml as per the article.

Thanks,
Daryl
 

James.Strachan wrote:
> 
> I wonder have you editted the broker-config.xml at all? Any chance we
> can take a look? I suspect its a namespace issue in the XML (e.g. the
> activemq namespace on the beans element or something)
> 
> 
> On 3/8/07, dlo1957ca <dlo1957ca@hotmail.com> wrote:
>>
>> jdk1.5.0_09
>> Windows XP
>>
>> I am having a problem running "ActiveMQ 4.1.0 Release" on jboss-4.0.5.GA.
>> I
>> tried ActiveMQ 4.0.2 and I can get it to work.
>>
>> The following is the exception generated with "ActiveMQ 4.1.0 Release":
>>
>> 19:11:21,890 INFO  [XBeanXmlBeanDefinitionReader] Loading XML bean
>> definitions from class path resource [broker-config.xml]
>> 19:11:22,015 WARN  [ServiceController] Problem starting service
>> jboss.jca:service=RARDeployment,name='activemq-ra.rar'
>> javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
>> embedded broker: xbean:broker-config.xml, due to:
>> org.springframework.beans.
>> factory.BeanDefinitionStoreException: Failed to load type: beans. Reason:
>> java.lang.ClassNotFoundException: No ClassLoaders found for: beans;
>> nested exception is java.lang.ClassNotFoundException: No ClassLoaders
>> found
>> for: beans
>>         at
>> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
>>         at
>> org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>>         at
>> org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
>>         at
>> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>>         at $Proxy0.start(Unknown Source)
>>         at
>> org.jboss.system.ServiceController.start(ServiceController.java:417)
>>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>>         at $Proxy36.start(Unknown Source)
>>         at
>> org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:356)
>>         at
>> org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
>>         at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
>>         at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>>         at $Proxy8.deploy(Unknown Source)
>>         at
>> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
>>         at
>> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
>>         at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
>>         at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>>         at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>>         at $Proxy0.start(Unknown Source)
>>         at
>> org.jboss.system.ServiceController.start(ServiceController.java:417)
>>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>>         at $Proxy4.start(Unknown Source)
>>         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
>>         at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
>>         at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>>         at $Proxy5.deploy(Unknown Source)
>>         at
>> org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
>>         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
>>         at org.jboss.Main.boot(Main.java:200)
>>         at org.jboss.Main$1.run(Main.java:490)
>>         at java.lang.Thread.run(Thread.java:595)
>> Caused by:
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Failed to load type: beans. Reason: java.lang.ClassNotFoundException: No
>> Cl
>> assLoaders found for: beans; nested exception is
>> java.lang.ClassNotFoundException: No ClassLoaders found for: beans
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBeanQNameHelper.java:75)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwarePropertyValues(XBeanQNameHelper.java:54)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:63)
>>
>>         at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:421)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:208)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:256)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:152)
>>         at
>> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)
>>         at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1147)
>>         at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1137)
>>         at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:150
>> )
>>         at
>> org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:63)
>>         at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:
>> 89)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499)
>>         at
>> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)
>>         at
>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
>>         at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:180)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
>>
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
>>         at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
>>         at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>>         at
>> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
>>         at
>> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
>>         at
>> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
>>         ... 88 more
>> Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for:
>> beans
>>         at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
>>         at
>> org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
>>         at
>> org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass(XBeanQNameHelper.java:107)
>>         at
>> org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBeanQNameHelper.java:72)
>>         ... 117 more
>>
>> Any ideas how to resolve this?
>>
>> Thanks,
>> Daryl
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ClassNotFoundException%3A-No-ClassLoaders-found-for%3A-beans-tf3367196s2354.html#a9368319
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/ClassNotFoundException%3A-No-ClassLoaders-found-for%3A-beans-tf3367196s2354.html#a9374227
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message