[mule-user] Error running mule examples

0 views
Skip to first unread message

daianacheng

unread,
Dec 2, 2008, 12:39:43 PM12/2/08
to us...@mule.codehaus.org

Hi all,

Hope someone can help me with this one. When running the mule hello or echo
examples from eclipse (after following the instructions from the mule
documentation) i get the following error related to the configuration of the
spring framework (or so it seems). I get no error whatsoever when running it
from the command line. I'm using jdk 1.6.0_06 and mule 2.1.1 Community
Edition. I built the eclipse projects with maven without problems and then
imported them to eclipse but it just doesn't seem to work. Any help would be
much appreciated!

[12-02 18:35:26] INFO MuleServer [main]: Mule Server initializing...
[12-02 18:35:26] INFO MuleApplicationContext [main]: Refreshing
org.mule.config.spring.MuleApplicationContext@1632847: display name
[org.mule.config.spring.MuleApplicationContext@1632847]; startup date [Tue
Dec 02 18:35:26 CET 2008]; root of context hierarchy
[12-02 18:35:27] INFO MuleApplicationContext [main]: Bean factory for
application context [org.mule.config.spring.MuleApplicationContext@1632847]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@7e9ce2
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_ObjectToString'. The previous object will be
overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_ObjectToByteArray'. The previous object will be
overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_ObjectToOutputHandler'. The previous object will
be overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_ObjectToInputStream'. The previous object will
be overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_XmlToOutputHandler'. The previous object will be
overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_DomDocumentToString'. The previous object will
be overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_XmlToDocumentResult'. The previous object will
be overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named 'XmlToDom4jDocument'. The previous object will be
overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named 'XmlToW3CDocument'. The previous object will be
overwritten.
[12-02 18:35:27] WARN TransientRegistry [main]: TransientRegistry already
contains an object named '_ServletRequestToOutputHandler'. The previous
object will be overwritten.
[12-02 18:35:27] ERROR SpringXmlConfigurationBuilder [main]: Configuration
with "org.mule.config.spring.SpringXmlConfigurationBuilder" failed.
org.mule.api.lifecycle.InitialisationException: Initialisation Failure:
Error creating bean with name '_muleSimpleRegistryBootstrap' defined in URL
[jar:file:/C:/.m2/repository/org/mule/modules/mule-module-spring-config/2.1.1/mule-module-spring-config-2.1.1.jar!/default-mule-config.xml]:
Invocation of init method failed; nested exception is
java.lang.NoClassDefFoundError: javax/jms/JMSException
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:79)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:79)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:65)
at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at
org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:113)
at
org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:58)
at
org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at
org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:177)
at org.mule.MuleServer.initialize(MuleServer.java:351)
at org.mule.MuleServer.run(MuleServer.java:257)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '_muleSimpleRegistryBootstrap' defined in URL
[jar:file:/C:/.m2/repository/org/mule/modules/mule-module-spring-config/2.1.1/mule-module-spring-config-2.1.1.jar!/default-mule-config.xml]:
Invocation of init method failed; nested exception is
java.lang.NoClassDefFoundError: javax/jms/JMSException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1302)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:71)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:71)
... 13 more
Caused by: java.lang.NoClassDefFoundError: javax/jms/JMSException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructors(Class.java:1459)
at org.mule.util.ClassUtils.getConstructor(ClassUtils.java:466)
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:357)
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:411)
at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:383)
at
org.mule.config.bootstrap.SimpleRegistryBootstrap.registerTransformers(SimpleRegistryBootstrap.java:154)
at
org.mule.config.bootstrap.SimpleRegistryBootstrap.process(SimpleRegistryBootstrap.java:117)
at
org.mule.config.bootstrap.SimpleRegistryBootstrap.initialise(SimpleRegistryBootstrap.java:106)
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:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1378)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1339)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1299)
... 27 more
Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 44 more


--
View this message in context: http://www.nabble.com/Error-running-mule-examples-tp20796503p20796503.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Dec 2, 2008, 1:23:31 PM12/2/08
to us...@mule.codehaus.org
Missing this class: java.lang.NoClassDefFoundError: javax/jms/JMSException

Andrew

daianacheng

unread,
Dec 2, 2008, 1:46:50 PM12/2/08
to us...@mule.codehaus.org

Mmm, yes, I can also see that. But my question is more, which jar far of all
those who contain this class should I add and why is it missing if I have
followed the steps for a successful build with Eclipse from the mule
documentation? Any idea of what exactly I did wrong?

Regards,
Diana.


Andrew Perepelytsya wrote:
>
> Missing this class: java.lang.NoClassDefFoundError: javax/jms/JMSException
>
> Andrew
>
>

--
View this message in context: http://www.nabble.com/Error-running-mule-examples-tp20796503p20798422.html

alloyer

unread,
Dec 2, 2008, 10:27:32 PM12/2/08
to us...@mule.codehaus.org

You lost geronimo-jms_1.1_spec.osgi-1.1.jar which is in %MULE_HOME%\lib\opt.
I think your configuration for the mule project in eclipse may have some
problems.

daianacheng wrote:
>
> Mmm, yes, I can also see that. But my question is more, which jar far of
> all those who contain this class should I add and why is it missing if I
> have followed the steps for a successful build with Eclipse from the mule
> documentation? Any idea of what exactly I did wrong?
>
> Regards,
> Diana.
>
>
> Andrew Perepelytsya wrote:
>>
>> Missing this class: java.lang.NoClassDefFoundError:
>> javax/jms/JMSException
>>
>> Andrew
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Error-running-mule-examples-tp20796503p20806043.html

Reply all
Reply to author
Forward
0 new messages