activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Teira <mte...@tid.es>
Subject ClassNotFoundException: bean trying to start an embedded broker
Date Wed, 30 Aug 2006 09:11:00 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello.<br>
I'm trying to test an ActiveMQ compiled from the svn repository
(trunk). I have a working scenario under ActiveMQ 4.0-RC2 and 4.0.1
that is no longer working under the trunk version. It seems that spring
is no longer understanding the 'bean' or something so. <br>
<br>
I've replaced the jars:<br>
<tt><br>
</tt><tt>activemq-core-4.0-RC2.jar<br>
backport-util-concurrent-2.1.jar<br>
xbean-spring-2.2.jar<br>
activeio-core-3.0-beta1.jar<br>
spring-1.2.4.jar<br>
<br>
with: <br>
<b><br>
</b></tt><tt><b>activeio-core-3.0-SNAPSHOT.jar<br>
backport-util-concurrent-2.1.jar<br>
activemq-core-4.1-incubator-SNAPSHOT.jar<br>
spring-2.0-rc1.jar<br>
xbean-spring-2.6-SNAPSHOT.jar</b><br>
<br>
</tt>But it throws an exception:<br>
<small><tt><br>
<big>[ERROR][2006/08/30.10:55:30.176][main]Error starting JMSBroker:
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from URL
[<a class="moz-txt-link-freetext" href="file://localhost//opt/planb/cells/jms/etc/jmsconfig.xml">file://localhost//opt/planb/cells/jms/etc/jmsconfig.xml</a>];
nested
exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Failed
to load type: bean. Reason: java.lang.ClassNotFoundException: bean;
nested exception is java.lang.ClassNotFoundException: bean<br>
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed
to load type: bean. Reason: java.lang.ClassNotFoundException: bean;
nested exception is java.lang.ClassNotFoundException: bean<br>
Caused by: java.lang.ClassNotFoundException: bean<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:200)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.security.AccessController.doPrivileged(Native
Method)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:188)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
es.tid.planb.core.ClassPLoader.findClass(ClassPLoader.java:249)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:306)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
es.tid.planb.core.ClassPLoader.loadClass(ClassPLoader.java:219)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanQNameHelper.loadClass(XBeanQNameHelper.java:107)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanQNameHelper.getBeanInfo(XBeanQNameHelper.java:72)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanQNameHelper.coerceNamespaceAwarePropertyValues(XBeanQNameHelper.java:54)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:61)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:380)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:205)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:253)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:153)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1084)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:39)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:486)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:386)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:180)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:278)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:161)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:51)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
es.tid.planb.spci.jmsbroker.CJMSBroker.init(CJMSBroker.java:58)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at es.tid.planb.shell.Shell.start(Shell.java:325)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:585)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)</big></tt></small><br>
<br>
The configuration file I'm using is:<br>
<br>
<tt>&lt;beans xmlns=<a class="moz-txt-link-rfc2396E" href="http://activemq.org/config/1.0">"http://activemq.org/config/1.0"</a>&gt;<br>
&nbsp; &lt;broker brokerName="testJMS" <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
persistent="true" <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
useShutdownHook="false" <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
deleteAllMessagesOnStartup="false"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;transportConnectors&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transportConnector uri="tcp://localhost:61635"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transportConnector uri="stomp://trabucco.hi.inet:65000"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/transportConnectors&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;persistenceAdapter&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;journaledJDBC useJournal="false"
dataSource="#jdbc-ds"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/journaledJDBC&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/persistenceAdapter&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;jmsBridgeConnectors&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jmsQueueConnector outboundQueueConnectionFactory="#REMOTE"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;outboundQueueBridges&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;outboundQueueBridge
outboundQueueName="SUNRECV"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/outboundQueueBridges&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;inboundQueueBridges&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;inboundQueueBridge
inboundQueueName="SUNSEND"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/inboundQueueBridges&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/jmsQueueConnector&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/jmsBridgeConnectors&gt;<br>
<br>
<br>
&nbsp; &lt;/broker&gt;<br>
<br>
&nbsp; &lt;bean id="jdbc-ds" <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class="org.apache.commons.dbcp.BasicDataSource"
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destroy-method="close"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;property name="driverClassName"
value="oracle.jdbc.driver.OracleDriver"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;property name="url" value="jdbc:oracle:oci:user/pass@sid"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;property name="poolPreparedStatements" value="true"/&gt;<br>
&nbsp; &lt;/bean&gt;<br>
<br>
&nbsp; &lt;bean id="REMOTE" <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class="es.tid.planb.spci.sunmq.ConnectionFactoryBean"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;property name="brokerHostName" value="localhost"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;property name="brokerHostPort" value="7676"/&gt;<br>
&nbsp; &lt;/bean&gt; <br>
<br>
&lt;/beans&gt;<br>
</tt><br>
<br>
Is there any change in the configuration I'm not aware of? Or perhaps
I'm missing some jar or the version of someone is not right?<br>
<br>
Thanks a lot. <br>
<br>
Regards.<br>
<br>
<tt></tt><br>
<br>
<br>
</body>
</html>

Mime
View raw message