[mule-user] mule 3.0.0 won't start as a windows service

42 views
Skip to first unread message

kai yan

unread,
Oct 5, 2010, 6:56:59 PM10/5/10
to us...@mule.codehaus.org
this maybe a dumb question.
I just downloaded mule 3.0.0 and installed it as a windows service on vista by running c:\mule\bin\> mule install
install was sucessful but when I started the service by running c:\mule\bin\> mule start
this is the error
-------------------------------------
C:\mule\bin>mule install
Mule installed.

C:\mule\bin>mule start
Starting the Mule service...
The Mule service was launched, but failed to start.
Press any key to continue . . .
--------------------------------------
and mule.log file shows

-------------------------------------------
Starting the Mule service...
--> Wrapper Started as Service
Launching a JVM...
Starting the Mule Container...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

java.lang.ClassNotFoundException: org.mule.module.launcher.MuleContainer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:60)
at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
<-- Wrapper Stopped
The Mule service was launched, but failed to start.
-------------------------------------------------------

any idea what's going on here?
appreciate your input.

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

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Oct 5, 2010, 7:08:03 PM10/5/10
to us...@mule.codehaus.org
Have you configured MULE_HOME?

Andrew

kai yan

unread,
Oct 6, 2010, 10:14:43 AM10/6/10
to us...@mule.codehaus.org
yes I did.
and I just run mule.bat from command line everything works fine.
it's just went i run it as a windows service.

Andrew Perepelytsya

unread,
Oct 6, 2010, 10:21:48 AM10/6/10
to us...@mule.codehaus.org
How exactly and where did you specify this env variable? This is important, because a service can run under different accounts (which one are you running under), and your user props are almost always not accessible to other accounts (but global ones are).

Andrew

kai yan

unread,
Oct 6, 2010, 11:05:25 AM10/6/10
to us...@mule.codehaus.org
the env variable was set under system.
and after going through mule.bat(under c:\mule\bin) and wrapper.conf(under c:\mule\conf)
I got mule running as a service.
I have to change line 7 in wrapper.conf file
from
wrapper.java.additional.2=-Dmule.base="%MULE_BASE%"
to
wrapper.java.additional.2=-Dmule.base="%MULE_HOME%"

Andrew Perepelytsya

unread,
Oct 6, 2010, 11:11:24 AM10/6/10
to us...@mule.codehaus.org
Could you please file a jira so we can review the change and apply the fix if needed?

Thanks in advance,
Andrew

kai yan

unread,
Oct 6, 2010, 11:22:48 AM10/6/10
to us...@mule.codehaus.org
sure, I am new here, do you have a link to jira?

Andrew Perepelytsya

unread,
Oct 6, 2010, 11:27:31 AM10/6/10
to us...@mule.codehaus.org
http://www.mulesoft.org/jira/browse/MULE

Create a free account, it will allow you to watch the issue and be notified of the progress.

HTH,
Andrew

kai yan

unread,
Oct 6, 2010, 12:28:18 PM10/6/10
to us...@mule.codehaus.org

ron ellis

unread,
Nov 9, 2010, 3:02:05 PM11/9/10
to us...@mule.codehaus.org
Hi, I am having a similar problem. Getting a different error message though. I am running Windows 7 and trying to just get the basic "out of the box" running. I did set the path and MULE_HOME. Any ideas??

Unable to execute Java command. The system cannot find the file specified. (0x2)
"java" -Dmule.home="C:\mule" -Dmule.base="C:\mule" "-Djava.endorsed.dirs=C:\mule\lib\endorsed" -Xmx512m -Djava.library.path="%LD_LIBRARY_PATH%;C:\mule/lib/boot" -classpath "%MULE_LIB%;C:\mule\bin/../conf;C:\mule/lib/boot/commons-cli-1.2.jar;C:\mule/lib/boot/jcl104-over-slf4j-1.5.0.jar;C:\mule/lib/boot/log4j-1.2.14.jar;C:\mule/lib/boot/mule-module-boot-3.0.0.jar;C:\mule/lib/boot/mule-module-reboot-3.0.0.jar;C:\mule/lib/boot/slf4j-api-1.5.0.jar;C:\mule/lib/boot/slf4j-log4j12-1.5.0.jar;C:\mule/lib/boot/wrapper-3.2.3.jar" -Dwrapper.key="YzbJcVCAl1KFsICL" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4292 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.mule.module.reboot.MuleContainerBootstrap
Critical error: wait for JVM process failed


The Mule service was launched, but failed to start.

Thanks
RonE

Andrew Perepelytsya

unread,
Nov 9, 2010, 3:13:25 PM11/9/10
to us...@mule.codehaus.org
Hi Ron,

This looks like some other issue - I did confirm the patch working under Win 7 (the fix is coming out soon with Mule 3.0.1). Check the user account the service is starting under, it's typical to set variables under current user, but then run under another (e.g. JAVA_HOME isn't set).

HTH,
Andrew

John Tyndale

unread,
Nov 14, 2011, 9:08:41 AM11/14/11
to us...@mule.codehaus.org
Ron,
I get the same problem running from a console session. Are you running 64bit Java? Did you manage to resolve the issue?
Reply all
Reply to author
Forward
0 new messages