You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ychawla <pr...@gmail.com> on 2012/03/16 16:42:21 UTC

ServiceMix 4.4 Windows Service Installation Issues

Hello All,
I followed the steps to install ServiceMix as a Windows Service:

features:install wrapper
wrapper:install

When I try to start ServiceMix from the Windows Service console, I get the
following error in wrapper.log:

Caused by: java.lang.ClassNotFoundException:
Files\Java\jdk1.6.0_25.jre.lib.endorsed;C:\Program
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
java.net.URLClassLoader$1.run(Unknown Source)
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
java.net.URLClassLoader.findClass(Unknown Source)
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
java.lang.ClassLoader.loadClass(Unknown Source)
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
java.lang.ClassLoader.loadClass(Unknown Source)

It looks like it doesn't like spaces in JAVA_HOME.  I have installed to the
standard Windows folder and the directory name "Program Files" has a space
in it.

It looks similar to this bug:
https://issues.apache.org/jira/browse/SMX4KNL-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Does anyone know a workaround for this in 4.4.x?  I am assuming I need to
uninstall Java and re-install to a path with no spaces. 

Thanks,
Yogesh

 

--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-4-Windows-Service-Installation-Issues-tp5571633p5571633.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.4 Windows Service Installation Issues

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Do you use a 64 bits JVM / 64 bits system ?

Regards
JB

On 03/16/2012 04:42 PM, ychawla wrote:
> Hello All,
> I followed the steps to install ServiceMix as a Windows Service:
>
> features:install wrapper
> wrapper:install
>
> When I try to start ServiceMix from the Windows Service console, I get the
> following error in wrapper.log:
>
> Caused by: java.lang.ClassNotFoundException:
> Files\Java\jdk1.6.0_25.jre.lib.endorsed;C:\Program
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> java.net.URLClassLoader$1.run(Unknown Source)
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> java.net.URLClassLoader.findClass(Unknown Source)
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> java.lang.ClassLoader.loadClass(Unknown Source)
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> INFO   | jvm 5    | 2012/03/16 10:19:39 | 	at
> java.lang.ClassLoader.loadClass(Unknown Source)
>
> It looks like it doesn't like spaces in JAVA_HOME.  I have installed to the
> standard Windows folder and the directory name "Program Files" has a space
> in it.
>
> It looks similar to this bug:
> https://issues.apache.org/jira/browse/SMX4KNL-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Does anyone know a workaround for this in 4.4.x?  I am assuming I need to
> uninstall Java and re-install to a path with no spaces.
>
> Thanks,
> Yogesh
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-4-Windows-Service-Installation-Issues-tp5571633p5571633.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com