[mule-user] ClassNotFoundException DecoratingAnnotatedServiceProcessor after migration

84 views
Skip to first unread message

Ernst Leeuwenkamp

unread,
Feb 18, 2011, 12:32:14 PM2/18/11
to us...@mule.codehaus.org
Hi,

I am migrating a working project from mule 2.2.1 to 3.1 and getting a ClassNotFoundException by starting either the mule-standalone server or the project out of the mule-ide plugin.

It looks like it can't initialize the spring-beans.

The class *org.mule.config.processors.DecoratingAnnotatedServiceProcessor*, which can't be found, is in the mule-module-annotation.jar.

The part of the mule-configuration where the spring-beans are defined looks like :

*Start part of mule-module*

<spring:bean id="DataSourceSQLdwh" class="org.enhydra.jdbc.standard.StandardDataSource"
destroy-method="shutdown">
<!-- Datasource oud voor truncate jobs t.z.t vervangen door PooledDataSourceSQLdwh -->
<spring:property name="driverName" value="${jdbc.sqldwh.driver}"/>
<spring:property name="url" value="${jdbc.sqldwh.url}"/>
<spring:property name="user" value="${jdbc.sqldwh.username}"/>
<spring:property name="password" value="${jdbc.sqldwh.password}"/>
</spring:bean>

<spring:bean id="PooledDataSourceSQLdwh" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<!-- Connection properties -->
<spring:property name="driverClass" value="${jdbc.sqldwh.driver}" />
<spring:property name="jdbcUrl" value="${jdbc.sqldwh.url}" />
<spring:property name="user" value="${jdbc.sqldwh.username}" />
<spring:property name="password" value="${jdbc.sqldwh.password}" />
<!-- Pool properties -->
<spring:property name="minPoolSize" value="5" />
<spring:property name="maxPoolSize" value="50" />
<!-- max_statements op nul laten staan bij ms sql server !!!!! -->
<spring:property name="maxStatements" value="0" />
<spring:property name="idleConnectionTestPeriod" value="300" />
<spring:property name="loginTimeout" value="30" />
<spring:property name="acquireIncrement" value="1"/>
</spring:bean>

<spring:bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<spring:property name="dataSource" ref="PooledDataSourceSQLdwh"/>
<spring:property name="mappingResources">
<spring:list>
<spring:value>BalansTekst.hbm.xml</spring:value>
<spring:value>Bestemming.hbm.xml</spring:value>
<spring:value>Dossier.hbm.xml</spring:value>
<spring:value>DossSegment.hbm.xml</spring:value>
<spring:value>DossSgKosten.hbm.xml</spring:value>
<spring:value>GrbStam.hbm.xml</spring:value>
<spring:value>HistDagboek.hbm.xml</spring:value>
<spring:value>Merge.hbm.xml</spring:value>
<spring:value>Supplier.hbm.xml</spring:value>
<spring:value>Employee.hbm.xml</spring:value>
</spring:list>
</spring:property>
<spring:property name="hibernateProperties">
<spring:props>
<spring:prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</spring:prop>
<spring:prop key="hibernate.connection.autocommit">false</spring:prop>
<spring:prop key="hibernate.connection.isolation">2</spring:prop>
<spring:prop key="hibernate.order_inserts">false</spring:prop>
<spring:prop key="hibernate.order_updates">false</spring:prop>
<spring:prop key="hibernate.jdbc.batch_size">30</spring:prop>
<spring:prop key="hibernate.show_sql">false</spring:prop>
<spring:prop key="hibernate.hbm2ddl.auto">update</spring:prop>
</spring:props>
</spring:property>
</spring:bean>

*Start part of mule-module*

And here is my log:

INFO 2011-02-18 17:11:09,468 [main] org.mule.MuleServer: Mule Server initializing...
INFO 2011-02-18 17:11:09,953 [main] org.mule.config.spring.MuleApplicationContext: Refreshing org.mule.config.spring.MuleApplicationContext@13d28e3: startup date [Fri Feb 18 17:11:09 CET 2011]; root of context hierarchy
ERROR 2011-02-18 17:11:11,578 [main] org.mule.config.spring.SpringXmlConfigurationBuilder: Configuration with "org.mule.config.spring.SpringXmlConfigurationBuilder" failed.
org.mule.api.lifecycle.InitialisationException: Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:115)
at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:116)
at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:79)
at org.mule.MuleServer.initialize(MuleServer.java:377)
at org.mule.MuleServer.run(MuleServer.java:267)
at org.mule.MuleServer.start(MuleServer.java:254)
at org.mule.MuleServer.main(MuleServer.java:127)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:722)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:100)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:107)
... 13 more
Caused by: java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.mule.config.spring.processors.DecoratingFlowAnnotationsBeanProcessor.setMuleContext(DecoratingFlowAnnotationsBeanProcessor.java:29)
at org.mule.config.spring.MuleContextPostProcessor.postProcessBeforeInitialization(MuleContextPostProcessor.java:46)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1405)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.mule.config.processors.DecoratingAnnotatedServiceProcessor
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)
... 27 more
ERROR 2011-02-18 17:11:11,578 [main] org.mule.config.builders.AutoConfigurationBuilder: Configuration with "org.mule.config.builders.AutoConfigurationBuilder" failed.
org.mule.api.config.ConfigurationException: Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor (org.mule.api.lifecycle.InitialisationException)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:54)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:79)
at org.mule.MuleServer.initialize(MuleServer.java:377)
at org.mule.MuleServer.run(MuleServer.java:267)
at org.mule.MuleServer.start(MuleServer.java:254)
at org.mule.MuleServer.main(MuleServer.java:127)
Caused by: org.mule.api.lifecycle.InitialisationException: Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:115)
at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:116)
at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47)
... 10 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:722)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:100)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:107)
... 13 more
Caused by: java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
at org.mule.config.spring.processors.DecoratingFlowAnnotationsBeanProcessor.setMuleContext(DecoratingFlowAnnotationsBeanProcessor.java:29)
at org.mule.config.spring.MuleContextPostProcessor.postProcessBeforeInitialization(MuleContextPostProcessor.java:46)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1405)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.mule.config.processors.DecoratingAnnotatedServiceProcessor
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)
... 27 more
ERROR 2011-02-18 17:11:11,593 [main] org.mule.MuleServer:
********************************************************************************
Message : Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor
Code : MULE_ERROR-71999
--------------------------------------------------------------------------------
Exception stack is:
1. org.mule.config.processors.DecoratingAnnotatedServiceProcessor (java.lang.ClassNotFoundException)
java.net.URLClassLoader$1:200 (null)
2. org/mule/config/processors/DecoratingAnnotatedServiceProcessor (java.lang.NoClassDefFoundError)
org.mule.config.spring.processors.DecoratingFlowAnnotationsBeanProcessor:29 (null)
3. Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor (org.springframework.beans.factory.BeanCreationException)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory:527 (null)
4. Error creating bean with name '_muleAnnotationsProcessor' defined in URL [jar:file:/D:/Settings/U165491/.m2/repository/org/mule/modules/mule-module-spring-config/3.1.0/mule-module-spring-config-3.1.0.jar!/default-mule-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/mule/config/processors/DecoratingAnnotatedServiceProcessor (org.mule.api.lifecycle.InitialisationException)
org.mule.registry.AbstractRegistry:115 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.lang.ClassNotFoundException: org.mule.config.processors.DecoratingAnnotatedServiceProcessor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************

ERROR 2011-02-18 17:11:11,593 [main] org.mule.MuleServer:
********************************************************************************
* A Fatal error has occurred while the server was running: *
* org.mule.config.processors.DecoratingAnnotatedServiceProcessor *
* (java.lang.ClassNotFoundException) *
* *
* The error is fatal, the system will shutdown *
********************************************************************************

The jar is in the <MULE-HOME>\lib\mule and the database driver (jtds-1.2.5.jar) and the pool-library (c3p0-0.9.1.jar) are placed in the <MULE-HOME>\lib\user directories.

I found in the default-mule-config.xml from the mule-module-spring-config-3.1.0.jar the following rule for the loading of the beans:
<bean name="_muleAnnotationsProcessor" class="org.mule.config.spring.processors.DecoratingFlowAnnotationsBeanProcessor"/>

And that is a different class than the one that could not be found.

I can't figger out what is going wrong. Any ideas?

Regards Ernst

mule-config.xml
2011-02-18_log.txt

Ernst Leeuwenkamp

unread,
Feb 21, 2011, 7:53:28 AM2/21/11
to us...@mule.codehaus.org
Oeps...... problem solved by adding mule-module-annotations-3.1.0,jar to project :-)

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

http://xircles.codehaus.org/manage_email


Reply all
Reply to author
Forward
0 new messages