It's all about the answers!

Ask a question

java.lang.IllegalStateException: No Java compiler available while Launch the Jetty based server for debugging


Pankaj Kumar (177) | asked Jul 22 '20, 9:12 a.m.
edited Jul 23 '20, 8:43 a.m.
 Hello Team,

I am trying to setup RTC plugin development environment setup with CLM 7.0 version.
I have followed the RTC extension workshop all steps worked as expected when I am launching the Jetty based server for debugging it shows below error message:
8:21:35,650 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b] ERROR ository.common.transport.AbstractElementDescriptor  - Exception in com.ibm.team.social.service.internal.Activator.start() of bundle com.ibm.team.social.service.
org.osgi.framework.BundleException: Exception in com.ibm.team.social.service.internal.Activator.start() of bundle com.ibm.team.social.service.
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
 at com.ibm.team.repository.common.transport.AbstractElementDescriptor.getBundleContext(AbstractElementDescriptor.java:397)
 at com.ibm.team.repository.common.transport.registry.ExtensionServiceElementDescriptor.startBundleActivationManager(ExtensionServiceElementDescriptor.java:799)
 at com.ibm.team.repository.common.transport.registry.ExtensionServiceElementDescriptor.start(ExtensionServiceElementDescriptor.java:761)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistryReader.handleExtensionAdded(HardCodedChangeEventHandlerRegistryReader.java:59)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistryReader.handleExtensionAdded(HardCodedChangeEventHandlerRegistryReader.java:1)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:204)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:626)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1137)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistry.start(HardCodedChangeEventHandlerRegistry.java:28)
 at com.ibm.team.process.internal.service.ProcessServicePlugin.start(ProcessServicePlugin.java:84)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(AccessController.java:703)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.ibm.team.social.common.HttpsSocketFactoryHelper
 at com.ibm.team.social.service.internal.Activator.start(Activator.java:40)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(AccessController.java:703)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 ... 34 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle com.ibm.team.social.common (391).
 at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:116)
 at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:531)
 at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
 at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
 at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:391)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
 at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:853)
 ... 39 more
Caused by: org.osgi.framework.BundleException: Exception in com.ibm.team.social.common.Activator.start() of bundle com.ibm.team.social.common.
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
 at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
 ... 48 more
Caused by: java.lang.IllegalStateException: The platform metadata area could not be written: C:\Program Files\IBM\EWMClient\workspace\.metadata.  By default the platform writes its content
under the current working directory when the platform is launched.  Use the -data parameter to
specify a different content area for the platform.
 at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)
 at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129)
 at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44)
 at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:199)
 at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:59)
 at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:209)
 at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:391)
 at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:379)
 at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:389)
 at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:63)
 at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:101)
 at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:90)
 at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.<init>(PreferenceForwarder.java:37)
 at org.eclipse.core.runtime.Plugin$1.run(Plugin.java:377)
 at org.eclipse.core.runtime.Plugin.getPluginPreferences(Plugin.java:380)
 at com.ibm.team.social.common.Activator.start(Activator.java:77)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(AccessController.java:703)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 ... 55 more
18:21:35,660 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b] ERROR ository.common.transport.AbstractElementDescriptor  - Exception in com.ibm.team.social.service.internal.Activator.start() of bundle com.ibm.team.social.service.
org.osgi.framework.BundleException: Exception in com.ibm.team.social.service.internal.Activator.start() of bundle com.ibm.team.social.service.
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)
 at com.ibm.team.repository.common.transport.AbstractElementDescriptor.getBundleContext(AbstractElementDescriptor.java:397)
 at com.ibm.team.repository.common.transport.registry.ExtensionServiceElementDescriptor.start(ExtensionServiceElementDescriptor.java:763)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistryReader.handleExtensionAdded(HardCodedChangeEventHandlerRegistryReader.java:59)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistryReader.handleExtensionAdded(HardCodedChangeEventHandlerRegistryReader.java:1)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:204)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:626)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
 at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1137)
 at com.ibm.team.process.internal.service.events.registry.HardCodedChangeEventHandlerRegistry.start(HardCodedChangeEventHandlerRegistry.java:28)
 at com.ibm.team.process.internal.service.ProcessServicePlugin.start(ProcessServicePlugin.java:84)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(AccessController.java:703)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
 at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
 at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
 at org.eclipse.osgi.container.Module.doStart(Module.java:571)
 at org.eclipse.osgi.container.Module.start(Module.java:439)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
 at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com/ibm/team/social/common/HttpsSocketFactoryHelper
 at com.ibm.team.social.service.internal.Activator.start(Activator.java:40)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
 at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
 at java.security.AccessController.doPrivileged(AccessController.java:703)
 at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
 ... 33 more
2020-07-22 18:21:38.068:INFO:oejs.Server:jetty-8.1.16.v20140903
18:21:38,337 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO nternal.app.servlet.util.ServletDispatchingHandler  - CRJZS0315I Servlet Dispatching Enabled
18:21:38,337 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO nternal.app.servlet.util.ServletDispatchingHandler  - CRJZS0318I Servlet Loopback Disabled
18:21:38,347 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b] ERROR com.ibm.team.jfs.app.ConfigUtil                     - CRJZS0159E For the application context "/jazz", the file "teamserver.properties" could not be found using the search path "C:\IBM\workspace\serverws\.metadata\.plugins\org.eclipse.pde.core\[RTCExt] Jetty RTC Server\org.eclipse.osgi\386\data\temp\_jazz\proxytemp\hc_-1521053754;C:\IBM\workspace\serverws\.metadata\.plugins\org.eclipse.pde.core\[RTCExt] Jetty RTC Server\org.eclipse.osgi\186\data".
18:21:38,347 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO com.ibm.team.jfs.app.ConfigUtil                     - CRJZS0160I For the application context "/jazz", the application data path is "C:\IBM\workspace\serverws\.metadata\.plugins\org.eclipse.pde.core\[RTCExt] Jetty RTC Server\org.eclipse.osgi\386\data\temp\_jazz\proxytemp\hc_-1521053754".
18:21:38,347 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO com.ibm.team.jfs.app.ConfigUtil                     - CRJZS0161I For the application context "/jazz", the bundle data path is "C:\IBM\workspace\serverws\.metadata\.plugins\org.eclipse.pde.core\[RTCExt] Jetty RTC Server\org.eclipse.osgi\186\data".
18:21:38,347 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO com.ibm.team.jfs.app.ConfigUtil                     - CRJZS0163I For the application context "/jazz", the application context configuration path is "<unknown>".
18:21:38,347 [Start Level: Equinox Container: a0288f07-1acc-001a-15c3-cf9d65d86d8b]  INFO com.ibm.team.jfs.app.ConfigUtil                     - CRJZS0162I For the application context "/jazz", the application configuration path is "<unknown>".
2020-07-22 18:21:38.425:INFO:oejs.AbstractConnector:Started SocketConnector@0.0.0.0:7080
2020-07-22 18:21:39.131:INFO:oejus.SslContextFactory:Enabled Protocols [TLSv1] of [TLSv1, TLSv1.1, TLSv1.2]
2020-07-22 18:21:39.133:INFO:oejs.AbstractConnector:Started SslSocketConnector@0.0.0.0:7443
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/dashboard-internal/ViewHistoryAtomFeed.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/dashboard-internal/ViewHistoryJSON.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/jazz-ck/examples/AllExamples.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/jazz-ck/examples/inline.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/jazz-ck/examples/plugins.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/jazz-ck/examples/toolbars.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
18:21:44,083 [Worker-0] ERROR net.jazz.web.jsp/JspScanner                         - Problem with /WEB-INF/gcsdk/diagnostics.jsp
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
 at net.jazz.web.jsp.internal.JspPage.validate(JspPage.java:72)
 at net.jazz.web.jsp.internal.JspScanner.run(JspScanner.java:42)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Any suggestions will be a great help.
Thanks in advance. 

One answer



permanent link
Ralph Schoon (59.4k23642) | answered Jul 22 '20, 2:25 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The Luanch refers to an older java version. You have to change it to Java 1.8. I can try to provide a screenshot tomorrow.

Note that starting the Eclipse debug client fails and I have a defect open for that.

Comments
Pankaj Kumar commented Jul 22 '20, 10:47 p.m.

Thanks Ralph for quick response. Screenshot will be helpful. 


Ralph Schoon commented Jul 23 '20, 8:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I can't figure out what I did. Try to look at the launch, go to the settings tab and make sure to have at least Java 1.7 selected. Make sure you have a JDK 1.8 configured as explained in the workshop and create an Execution environment for that.

Your answer


Register or to post your answer.