On 8/23/07, charliec <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I downloaded the ServiceMix binaries for the Linux platform and when
> starting ServiceMix I receive the error below.  Any ideas on how to fix this
> issue?
> Thanks
>
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> Starting Apache ServiceMix ESB: 3.1.1-incubating
>
> Loading Apache ServiceMix from servicemix.xml on the CLASSPATH
> 23-Aug-07 11:34:21 AM org.springframework.core.CollectionFactory <clinit>
> INFO: JDK 1.4+ collections available
> 23-Aug-07 11:34:21 AM org.springframework.core.CollectionFactory <clinit>
> INFO: Commons Collections 3.x available
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
>    at java.lang.Class.initializeClass(libgcj.so.7rh)
>    at java.lang.Class.initializeClass(libgcj.so.7rh)
>    at java.lang.Class.forName(libgcj.so.7rh)
>    at java.lang.Class.forName(libgcj.so.7rh)
>    at
> org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:44)
>    at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
>    at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
>    at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
>    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.servicemix.Main.main(Main.java:51)
>    at java.lang.reflect.Method.invoke(libgcj.so.7rh)
>    at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>    at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>    at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
> Caused by: java.lang.NullPointerException
>    at java.lang.Class.initializeClass(libgcj.so.7rh)

I can see from the error that you're using GCJ instead of a Sun Java
implemenation (notice the libgcj.so in the errors above; that's the
GNU Java implementation). Download the Sun Java implementation for
LInux and everything will work fine.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Reply via email to