Mac OS X
On 10/13/2014 02:01 PM, Achim Nierbeck wrote:
hmm, did you tell us already which OS you're using?
regards, Achim
2014-10-13 13:59 GMT+02:00 David Leangen <[email protected]
<mailto:[email protected]>>:
Hi!
Do you have another container with a JMXServer running?
Nope. (Unless there is something happening that I am not aware of.
How could I verify?)
It’s rather strange behavior you're describing.
No doubt.
Could you do a cleanup of the cache folder, by removing the data
folder?
Again, assuming the data directory to which you refer is in
$KARAF_HOME (i.e. the directory where Karaf is installed), there is
nothing there, except a tmp directory.
Cheers,
=David
2014-10-13 13:47 GMT+02:00 David Leangen <[email protected]
<mailto:[email protected]>>:
It looks like the lib folder doesn’t contain the
karaf-jmx-boot.jar file (providing the MBeanServerBuilder).
Can you check that this jar is in the lib folder ?
Yes, it is there.
Do you have something in bin/setenv ?
No, using defaults.
By the way, can you try with Java7 (instead of Java6) ?
I installed Java7. Same problem. :-(
Cheers,
=David
On 10/13/2014 10:39 AM, David Leangen wrote:
Wow! Impressive response. :-) Thank you!
Can you make a try with 3.0.2 (currently on staging) ?
Tried. Same problem. :-(
which version of Java are you using?
Please note with Karaf 3.0.1 it's still recommended to use
Java7
Hmmm. I am still a luddite with 1.6 (more precisely
1.6.0_65-b14-462-11M4609).
I’m running 3.0.1 on Mac out of the box. You’ll likely need to
describe more about your circumstances, e.g. the JVM used, what
commands you’ve run (to start Karaf and at it’s own command
line),
what bundles you’ve installed (if any), the complete stack
trace, etc?
I ran “karaf” with the default (i.e. “out-of-the-box”)
installation, and
before Karaf could start, it died with the following:
*$ karaf*
javax.management.JMRuntimeException: Failed to load
MBeanServerBuilder
class org.apache.karaf.management.boot.KarafMBeanServerBuilder:
java.lang.ClassNotFoundException:
org.apache.karaf.management.boot.KarafMBeanServerBuilder
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:481)
at
javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:512)
at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:299)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175)
at
sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
at
sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:458)
at sun.management.Agent.startAgent(Agent.java:135)
at sun.management.Agent.startAgent(Agent.java:239)
Caused by: java.lang.ClassNotFoundException:
org.apache.karaf.management.boot.KarafMBeanServerBuilder
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:424)
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:466)
... 9 more
Exception thrown by the agent :
javax.management.JMRuntimeException:
Failed to load MBeanServerBuilder class
org.apache.karaf.management.boot.KarafMBeanServerBuilder:
java.lang.ClassNotFoundException:
org.apache.karaf.management.boot.KarafMBeanServerBuilder
Cheers,
=David
On 10/13/2014 10:15 AM, David Leangen wrote:
Hi!
I am new to Karaf. I am trying to set up v3.0.1 on my Mac,
but am
getting a JMRuntimeException: Failed to load
MBeanServerBuilder.
I noticed this thread:
http://mail-archives.apache.org/mod_mbox/karaf-user/201404.mbox/%3ccagrrcrxmqe-v65jecwpakmatc6qap+hvyb_abmgxk8zpvko...@mail.gmail.com%3E
<http://mail-archives.apache.org/mod_mbox/karaf-user/201404.mbox/<cagrrcrxmqe-v65jecwpakmatc6qap+hvyb_abmgxk8zpvko...@mail.gmail.com>
<http://mail-archives.apache.org/mod_mbox/karaf-user/201404.mbox/%3ccagrrcrxmqe-v65jecwpakmatc6qap+hvyb_abmgxk8zpvko...@mail.gmail.com%3E>>
However, it does not seem to be relevant to me, and I did
not find any
other reference to this problem.
Assuming that Karaf is intended to run out of the box, is
there a quick
recommended fix for this?
Cheers,
=David
--
Jean-Baptiste Onofré
[email protected] <mailto:[email protected]>
http://blog.nanthrax.net <http://blog.nanthrax.net/>
Talend - http://www.talend.com <http://www.talend.com/>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
& Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com