I hate Windows platform ;)
Can kill the Karaf process, cleanup the data folder and start from a
fresh state using bin/karaf.bat ?
Thanks,
Regards
JB
On 04/07/2014 05:31 PM, Matthieu Vincent wrote:
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]
<mailto:[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]>
<mailto:[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]>>
<mailto:[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]>>>
<mailto:[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]>>>>
<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] <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]>>>>
<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]
<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]>>>
<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