I'm relatively new to Mule and I'm trying to run Mule 2.2.1 embedded within
Tomcat 6.0.18.
As documented in the Mule users manual, I've configured my web.xml in
WEB-INF with:
<context-param>
<param-name>org.mule.config</param-name>
<param-value>my-mule-config.xml</param-value>
</context-param>
and set up a listener ...
<listener>
<listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
</listener>
But when I start up Tomcat, I get the following class not found error:
SEVERE: Error configuring application listener of class
org.mule.config.builders.MuleXmlBuilderContextListener
java.lang.ClassNotFoundException:
org.mule.config.builders.MuleXmlBuilderContextListener
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
...
Clearly the 'MuleXmlBuilderContextListener' class can't be found.
Should I resolve this by downloading and adding the
'mule-2.2.1-embedded.jar' into my web app, WEB-INF/lib? If I do this, the
class is now found OK, but I also need to add many Spring and misc jars,
etc.
Is the the correct way to embed Mule within Tomcat - or is this totally the
wrong approach?
Any help/guidance much appreciated?
--
View this message in context: http://www.nabble.com/Embedding-Mule-within-Tomcat-tp22868834p22868834.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
Hi Andrew
Initially, I added no Mule jars to Tomcat and got the class not found errors, previously described when I started Tomcat. I then downloaded and added the mule-2.2.1-embedded.jar and deployed into my web app directory WEB-INF/lib.
As already stated, I then had to deploy further spring jars, and so on, to get Tomcat to start without the class not found errors.
It seems to me I must be trying to embed Mule into Tomcat in totally the wrong way here, as looking through the forum I don't see any similar problems listed.
So, how should it be done?
Andrew Perepelytsya wrote:
>
> Did you add those jars to the webapp initially?
>
> Andrew
>
>
<listener>
<listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
</listener>
" .then i start my tomcat,but error:
2009-7-1 15:22:48 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2009-7-1 15:22:48 org.apache.catalina.core.StandardContext start
严重: Context [/mule] startup failed due to previous errors
the listener is error.but i have added the mule-2.2.1-embedded.jar.
u said,"Once you want to do it properly, you can e.g. package your WAR with maven.
Then you only put mule modules you need in pom.xml",i don't know how to do.Could you describe it in detail?give a example is better.
thanks.
I am looking to embed Mule in my Spring app. Could you tell me how you were able to achieve the integration and/or which example webapp did you refer to in your post.
Thanks,
Salman