You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "massive.boisson" <ma...@gmail.com> on 2006/06/08 14:03:45 UTC

running broker and classpath problem

Hi,

I want to run a standalone broker without having installed activeMQ. This is
so that other people in my company can take out code from cvs, and simply
run some ant script I prepared. 

So, I have in my lib dir 3 files:
incubator-activemq-4.0.jar
spring-1.2.6.jar
xbean-spring-2.2.jar

and I am doing this:
java -classpath
d:\lib\incubator-activemq-4.0.jar;d:\lib\spring-1.2.6.jar;d:\lib\xbean-spring-2.2.jar;
-jar incubator-activemq-4.0.jar start xbean:activemq.xml

I get this:
ACTIVEMQ_HOME: .
Loading message broker from: xbean:activemq.xml
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
java.io.IOException: Could load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException
ERROR: java.lang.Exception: java.io.IOException: Could load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException

Anyone knows what the problem is? 
org/springframework/beans/BeansException is in sping jar and which is in
classpath.

Any hints?


Thanks,
--MB
--
View this message in context: http://www.nabble.com/running-broker-and-classpath-problem-t1754665.html#a4770965
Sent from the ActiveMQ - User forum at Nabble.com.


Re: running broker and classpath problem

Posted by "massive.boisson" <ma...@gmail.com>.
I gave up starting it directly form java, and am using a verision of your
activemq.bat script.
--
View this message in context: http://www.nabble.com/running-broker-and-classpath-problem-t1754665.html#a4777897
Sent from the ActiveMQ - User forum at Nabble.com.


Re: running broker and classpath problem

Posted by "massive.boisson" <ma...@gmail.com>.
As this seems to be dead end, I am trying something else.
I'll post results ... when I have them
--
View this message in context: http://www.nabble.com/running-broker-and-classpath-problem-t1754665.html#a4773117
Sent from the ActiveMQ - User forum at Nabble.com.


Re: running broker and classpath problem

Posted by "massive.boisson" <ma...@gmail.com>.
James, thanks for attention.

That's all it prints. 


--
View this message in context: http://www.nabble.com/running-broker-and-classpath-problem-t1754665.html#a4772581
Sent from the ActiveMQ - User forum at Nabble.com.


Re: running broker and classpath problem

Posted by James Strachan <ja...@gmail.com>.
On 6/8/06, massive.boisson <ma...@gmail.com> wrote:
>
> Hi,
>
> I want to run a standalone broker without having installed activeMQ. This is
> so that other people in my company can take out code from cvs, and simply
> run some ant script I prepared.
>
> So, I have in my lib dir 3 files:
> incubator-activemq-4.0.jar
> spring-1.2.6.jar
> xbean-spring-2.2.jar
>
> and I am doing this:
> java -classpath
> d:\lib\incubator-activemq-4.0.jar;d:\lib\spring-1.2.6.jar;d:\lib\xbean-spring-2.2.jar;
> -jar incubator-activemq-4.0.jar start xbean:activemq.xml
>
> I get this:
> ACTIVEMQ_HOME: .
> Loading message broker from: xbean:activemq.xml
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> java.io.IOException: Could load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/beans/BeansException
> ERROR: java.lang.Exception: java.io.IOException: Could load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/beans/BeansException
>
> Anyone knows what the problem is?
> org/springframework/beans/BeansException is in sping jar and which is in
> classpath.

Spring has a lovely habit of wrapping exceptions so am wondering if
the real NoClassDefFoundError cause is further down in the stack trace
- I wonder could you include the entire stack trace please?

-- 

James
-------
http://radio.weblogs.com/0112098/