Starting the Jazz Build Engine (jbe) with classpath errors
I'm running jbe from the installdir/buildsystem/buildengine/eclipse directory and before the process starts up I see some class path errors including the following:
and:
Do I need to set a Classpath variable or use a different JRE possibly, or what is going on here?
- James
java.lang.NoClassDefFoundError: org.xmlsoap.schemas.soap.envelope.Envelope
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
at com.ibm.team.repository.transport.client.RemoteTeamServer.createTeamService(RemoteTeamServer.java:296)
at com.ibm.team.repository.common.transport.AbstractTeamServer.getService(AbstractTeamServer.java:94)
at com.ibm.team.repository.client.internal.TeamRepository.getTeamService(TeamRepository.java:1397)
at com.ibm.team.repository.client.internal.TeamRepository.getServiceInterface(TeamRepository.java:1084)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:334)
and:
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.EObject
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
Do I need to set a Classpath variable or use a different JRE possibly, or what is going on here?
- James
One answer
I'm running jbe from the installdir/buildsystem/buildengine/eclipse directory and before the process starts up I see some class path errors including the following:
java.lang.NoClassDefFoundError: org.xmlsoap.schemas.soap.envelope.Envelope
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
at com.ibm.team.repository.transport.client.RemoteTeamServer.createTeamService(RemoteTeamServer.java:296)
at com.ibm.team.repository.common.transport.AbstractTeamServer.getService(AbstractTeamServer.java:94)
at com.ibm.team.repository.client.internal.TeamRepository.getTeamService(TeamRepository.java:1397)
at com.ibm.team.repository.client.internal.TeamRepository.getServiceInterface(TeamRepository.java:1084)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:334)
and:
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.EObject
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
Do I need to set a Classpath variable or use a different JRE possibly, or what is going on here?
- James
It seems the issue was that A) I was not running the jbe command as sudo, B) I needed to fully qualify the jbe command when running it and C) I was quoting the build engine id. Fixing these 3 issues enabled me to start the build engine. Note: I am running this on ubuntu linux.