I got an exception "Connection refused", it seems that karaf is blocked on
the kar feature installation.
After 6 minutes it starts to install region feature but still connection
refused :(
2014-04-07 17:21:42,877 | INFO | Event Dispatcher | FeaturesServiceImpl
| res.internal.FeaturesServiceImpl 509 | 1 -
org.apache.karaf.features.core - 3.0.0 | Installing feature kar 3.0.0
2014-04-07 17:27:58,012 | INFO | Event Dispatcher | FeaturesServiceImpl
| res.internal.FeaturesServiceImpl 509 | 1 -
org.apache.karaf.features.core - 3.0.0 | Installing feature region 3.0.0
Mat
2014-04-07 17:28 GMT+02:00 Jean-Baptiste Onofré <[email protected]>:
> The log looks good to me.
>
> When you say you cannot connect using ssh, does it mean that you have an
> exception or it just timeout ?
>
> Regards
> JB
>
>
> On 04/07/2014 05:24 PM, Matthieu Vincent wrote:
>
>> I've deepened my tests : in fact, the feature seems to be installed
>> correctly but it isn't at all :(
>> I need to do a karaf.bat clean and install the feature in order to get
>> it working....
>>
>> I'm very confused :(
>>
>> I've tried as you asked to start the service with an empty data dir, get
>> this in karaf.log and cannot connect through ssh :(
>>
>> avr. 07, 2014 5:21:36 PM org.apache.karaf.main.Main launch
>> INFO: Installing and starting initial bundles
>> avr. 07, 2014 5:21:37 PM org.apache.karaf.main.Main launch
>> INFO: All initial bundles installed and set to start
>> avr. 07, 2014 5:21:37 PM org.apache.karaf.main.lock.SimpleFileLock lock
>> INFO: Trying to lock D:\Siti-1.3.0\server\karaf-siti\lock
>> avr. 07, 2014 5:21:37 PM org.apache.karaf.main.lock.SimpleFileLock lock
>> INFO: Lock acquired
>> avr. 07, 2014 5:21:37 PM org.apache.karaf.main.Main$KarafLockCallback
>> lockAquired
>> INFO: Lock acquired. Setting startlevel to 100
>> 2014-04-07 17:21:42,877 | INFO | Event Dispatcher | FeaturesServiceImpl
>> | res.internal.FeaturesServiceImpl 509 | 1 -
>> org.apache.karaf.features.core - 3.0.0 | Installing feature kar 3.0.0
>>
>>
>> Matthieu
>>
>>
>>
>> 2014-04-07 17:17 GMT+02:00 Jean-Baptiste Onofré <[email protected]
>> <mailto:[email protected]>>:
>>
>>
>> Could you try to cleanup the data folder before starting the service ?
>>
>> Do you have something in the log (data/log/karaf.log) ?
>>
>> Regards
>> JB
>>
>>
>> On 04/07/2014 05:15 PM, Matthieu Vincent wrote:
>>
>> Yes I start the service and start the same instance with the .bat
>>
>>
>> 2014-04-07 17:05 GMT+02:00 Jean-Baptiste Onofré <[email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>>:
>>
>>
>>
>> It should be the same (and I tested on Linux).
>>
>> When you say: I stop the service and try to install, I
>> guess that
>> you start with bin/karaf.bat script ? or does it mean that
>> you have
>> two Karaf instances on the same machine ?
>>
>> Regards
>> JB
>>
>>
>> On 04/07/2014 04:54 PM, Matthieu Vincent wrote:
>>
>> Hi again,
>>
>> next step, next problem :(
>>
>> Now that my service starts correctly, I tried to install
>> my
>> feature :
>> failure : IOInterruptedException occurs on spring feature
>>
>> If I stop the service and try to install the same
>> feature :
>> everything
>> goes fine.
>>
>> Any idea of configuration change between service
>> runtime and
>> "bat" runtime ?
>>
>> Mat
>>
>>
>> 2014-04-07 15:03 GMT+02:00 Jean-Baptiste Onofré
>> <[email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> <mailto:[email protected] <mailto:[email protected]>
>>
>> <mailto:[email protected] <mailto:[email protected]>>>>:
>>
>>
>>
>> OK, it's the fix that I did and included for 3.0.1.
>>
>> Regards
>> JB
>>
>>
>> On 04/07/2014 02:59 PM, Matthieu Vincent wrote:
>>
>> No need :)
>>
>> in wrapper.java.classpath, i got 2 times index
>> 3 ! So
>>
>>
>> wrapper.java.classpath.3=%________KARAF_HOME%/lib/karaf-jmx-
>> ________boot.jar
>>
>>
>>
>> wasn't
>>
>> load.
>>
>> After reindexing everything, service starts
>> and ssh
>> connection
>> is OK !
>>
>> Thanks
>> Mat
>>
>>
>> 2014-04-07 14:52 GMT+02:00 Jean-Baptiste Onofré
>> <[email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> <mailto:[email protected]
>> <mailto:[email protected]> <mailto:[email protected]
>> <mailto:[email protected]>>>
>> <mailto:[email protected]
>> <mailto:[email protected]> <mailto:[email protected]
>> <mailto:[email protected]>>
>> <mailto:[email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>>>>:
>>
>>
>>
>> Hi again Matthieu,
>>
>> I checked, and I think I already fixed
>> this issue.
>>
>> In the karaf-wrapper.conf, could you
>> check that
>> you have
>> (especially
>> about the arguments ID):
>>
>> # Java Application
>> wrapper.working.dir=%KARAF_________BASE%
>>
>> wrapper.java.command=%JAVA_________HOME%/bin/java
>>
>>
>>
>> wrapper.java.mainclass=org.________apache.karaf.wrapper.____
>> internal.____Main
>>
>>
>>
>> wrapper.java.classpath.1=%________KARAF_HOME%/lib/karaf-__
>> wrapper.______jar
>>
>>
>> wrapper.java.classpath.2=%________KARAF_HOME%/lib/karaf.jar
>>
>>
>>
>> wrapper.java.classpath.3=%________KARAF_HOME%/lib/karaf-jmx-
>> ________boot.jar
>>
>>
>>
>> wrapper.java.classpath.4=%________KARAF_HOME%/lib/karaf-
>> jaas-________boot.jar
>>
>>
>>
>> wrapper.java.classpath.5=%________KARAF_HOME%/lib/karaf-__
>> wrapper-______main.jar
>>
>>
>>
>> wrapper.java.classpath.6=%________KARAF_HOME%/lib/karaf-org.
>> ________osgi.core.jar
>>
>> wrapper.java.library.path.1=%________KARAF_HOME%/lib/
>>
>>
>>
>>
>>
>> # Application Parameters. Add parameters
>> as needed
>> starting from 1
>> #wrapper.app.parameter.1=
>>
>> # JVM Parameters
>> # note that n is the parameter number
>> starting from 1.
>>
>>
>> wrapper.java.additional.1=-________Dkaraf.home="%KARAF_HOME%"
>>
>>
>> wrapper.java.additional.2=-________Dkaraf.base="%KARAF_BASE%"
>>
>>
>> wrapper.java.additional.3=-________Dkaraf.data="%KARAF_DATA%"
>>
>>
>> wrapper.java.additional.4=-________Dkaraf.etc="%KARAF_ETC%"
>>
>>
>> wrapper.java.additional.5=-________Dcom.sun.management.__
>> jmxremote
>>
>>
>>
>> wrapper.java.additional.6=-________Djavax.management.
>> builder.________initial=org.apache.karaf.________management.boot.________
>> KarafMBeanServerBuilder
>>
>>
>> wrapper.java.additional.7=-________Dkaraf.startLocalConsole=
>> ____false
>>
>>
>> wrapper.java.additional.8=-________Dkaraf.startRemoteShell=__true
>>
>>
>>
>> wrapper.java.additional.9=-________Djava.endorsed.dirs="%
>> JAVA_________HOME%/jre/lib/endorsed;%____JAVA_____HOME%/
>> lib/endorsed;__%__KARAF_____HOME%/lib/__endorsed"
>>
>>
>>
>> wrapper.java.additional.10=-________Djava.ext.dirs="%JAVA___
>> HOME%/______jre/lib/ext;%JAVA___HOME%/__lib/____ext;%KARAF__
>> _HOME%/lib/__ext"
>>
>>
>>
>>
>>
>> Do you mind to send to me the
>> karaf-wrapper.conf
>> to double
>> check ?
>>
>>
>> Thanks,
>> Regards
>> JB
>>
>> On 04/07/2014 02:35 PM, Matthieu Vincent
>> wrote:
>>
>> Hi
>>
>> I've just install a fresh karaf
>> 3.0 and try
>> to use
>> it a s
>> Windows service.
>>
>> I've succesfully install
>> service-wrapper and run
>> wrapper:install.
>>
>> I stopped my instance and try to
>> start it with
>> service,
>> and I
>> got the
>> folowing error :
>>
>> STATUS | wrapper | 2014/04/07
>> 14:16:28 | -->
>> Wrapper
>> Started as
>> Service
>> STATUS | wrapper | 2014/04/07
>> 14:16:28 |
>> Launching a
>> JVM...
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 |
>>
>> javax.management.________JMRuntimeException:
>>
>>
>> Failed to load
>> MBeanServerBuilder
>> class
>>
>>
>> org.apache.karaf.management.________boot.____
>> KarafMBeanServerBuilder:
>> java.lang.________
>> ClassNotFoundException:
>>
>>
>>
>> org.apache.karaf.management.________boot.__
>> KarafMBeanServerBuilder
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> checkMBeanServerBuilder(________MBeanServerFactory.java:502)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> getNewMBeanServerBuilder(________MBeanServerFactory.java:538)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> newMBeanServer(________MBeanServerFactory.java:315)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> createMBeanServer(________MBeanServerFactory.java:230)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> createMBeanServer(________MBeanServerFactory.java:191)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> java.lang.management.________ManagementFactory.________
>> getPlatformMBeanServer(________ManagementFactory.java:466)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> sun.management.jmxremote.________ConnectorBootstrap.________
>> startLocalConnectorServer(________ConnectorBootstrap.java:519)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> sun.management.Agent.________startLocalManagementAgent(____
>> ____Agent.java:134)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>> sun.management.Agent.________
>> startAgent(Agent.java:247)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>> sun.management.Agent.________
>> startAgent(Agent.java:369)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 |
>> Caused by:
>> java.lang.________
>> ClassNotFoundException:
>>
>>
>>
>> org.apache.karaf.management.________boot.__
>> KarafMBeanServerBuilder
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>> java.net.URLClassLoader$1.run(________URLClassLoader.java:366)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>> java.net.URLClassLoader$1.run(________URLClassLoader.java:355)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> java.security.________AccessController.doPrivileged(
>> ________Native
>>
>>
>> Method)
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> java.net.URLClassLoader.________findClass(URLClassLoader.
>> java:________354)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> java.lang.ClassLoader.________loadClass(ClassLoader.java:___
>> _____423)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> sun.misc.Launcher$________AppClassLoader.loadClass(_____
>> ___Launcher.java:308)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> java.lang.ClassLoader.________loadClass(ClassLoader.java:___
>> _____356)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> loadBuilderClass(________MBeanServerFactory.java:445)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | at
>>
>>
>>
>> javax.management.________MBeanServerFactory.________
>> checkMBeanServerBuilder(________MBeanServerFactory.java:487)
>>
>>
>>
>>
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 | ...
>> 9 more
>> INFO | jvm 1 | 2014/04/07
>> 14:16:28 |
>> Exception
>> envoyée par
>> l'agent
>> :
>> javax.management.________JMRuntimeException:
>>
>>
>> Failed to load
>> MBeanServerBuilder
>> class
>>
>>
>> org.apache.karaf.management.________boot.____
>> KarafMBeanServerBuilder:
>> java.lang.________
>> ClassNotFoundException:
>>
>>
>>
>> org.apache.karaf.management.________boot.__
>> KarafMBeanServerBuilder
>>
>>
>>
>>
>> ERROR | wrapper | 2014/04/07
>> 14:16:28 | JVM
>> exited while
>> loading the
>> application.
>>
>> FYI, I'm running it on a JDK 1.7
>> 64bits on
>> Windows 7 pro.
>>
>> Thanks in advance
>> Mat
>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> <mailto:[email protected]
>> <mailto:[email protected]> <mailto:[email protected]
>> <mailto:[email protected]>>>
>> <mailto:[email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>> <mailto:[email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]
>> >>>>
>>
>>
>>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> <mailto:[email protected]
>> <mailto:[email protected]> <mailto:[email protected]
>> <mailto:[email protected]>>>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected] <mailto:[email protected]>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>