Could load xbean factory when configure ActiveMQ brokerUri
-----------------------------------------------------------
Key: GERONIMO-4384
URL: https://issues.apache.org/jira/browse/GERONIMO-4384
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: ActiveMQ
Affects Versions: 2.1.3
Environment: Windows XP ,JDK 1.5.0
Reporter: viola.lu
1.Edit config.xml udner $geronimo_instal_Dir/var/config as below:
<module name="org.apache.geronimo.configs/activemq-broker/2.1.3/car">
<gbean name="ActiveMQ">
<attribute
name="brokerUri">xbean:file:/path/to/activemq.xml</attribute>
<attribute name="brokerName">possibly-unique-broker</attribute>
<attribute name="useShutdownHook">false</attribute>
<attribute name="dataDirectory">var/activemq</attribute>
</gbean>
<gbean name="ActiveMQ.tcp.default">
<attribute name="host">${ServerHostname}</attribute>
<attribute name="port">${ActiveMQPort + PortOffset}</attribute>
</gbean>
<gbean name="ActiveMQ.stomp.default">
<attribute name="host">${ServerHostname}</attribute>
<attribute name="port">${ActiveMQStompPort + PortOffset}</attribute>
</gbean>
2.Startup geronimo server, but exceptions exist:
22:02:15,843 ERROR [GBeanInstanceState] Error while starting; GBean is now in
the FAILED state:
abstractName="org.apache.geronimo.configs/activemq-broker/2.1.3/car?ServiceModule=org.apache.geronimo.configs/activemq-broker/2.1.3/car,j2eeType=JMSServer,name=ActiveMQ"
java.io.IOException: Could load xbean factory:java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException
at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:28)
at
org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:43)
at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
at
org.apache.geronimo.activemq.BrokerServiceGBeanImpl.doStart(BrokerServiceGBeanImpl.java:80)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$49484ad2.startConfiguration(<generated>)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:162)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:61)
at
org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:47)
at
org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:41)
... 27 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.