Search code examples
javastartupapache-karafapache-servicemix

ServiceMix can't start


My serviceMix can't start, i juste trying to stop it ./stop then./start

when i do ./client :

client: JAVA_HOME not set; results may vary
Logging in as smx
Failed to get the session.

My JAVA_HOME is set correctlly.

when i do ./status

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Not Running ...

when i do ./stop

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Can't connect to the container. The container is not running.

Before I stop it functioned normally.

thx for your help


Solution

  • Trying configuring the JAVA_HOME setting in servicemix's bin/setenv file.

    In the file, you will find a section looking something like the follow. Trying setting JAVA_HOME here.

    # general settings which should be applied for all scripts go here; please keep in mind that it is possible that scripts might be executed more than once, e.g. in example of the start script where the start script is executed first and the karaf script afterwards.

    # The following section shows the possible configuration options for the default karaf scripts

    # export JAVA_HOME # Location of Java installation