Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19425

Error when loading projects in Central with Java 9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Beta2
    • 4.3.0.Alpha1
    • central

      Today I wanted to try out the latest build of Oracle JDK 1.9 beta and discovered a problem with central.
      When I started JBDS, I immediately got an error window pop up:

      Refreshing JBoss Tutorials... has encountered a problem.
      An internal error occurred during: "Refreshing JBoss Tutorials...".
      javax/xml/bind/JAXBException
      

      This is in the workspace log:

      !ENTRY org.eclipse.core.jobs 4 2 2015-03-10 17:12:52.346
      !MESSAGE An internal error occurred during: "Refreshing JBoss Tutorials...".
      !STACK 0
      java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      	at org.jboss.tools.project.examples.model.ProjectExampleUtil.fetchCategories(ProjectExampleUtil.java:389)
      	at org.jboss.tools.project.examples.model.ProjectExampleUtil.getProjects(ProjectExampleUtil.java:266)
      	at org.jboss.tools.project.examples.model.ProjectExampleUtil.getProjects(ProjectExampleUtil.java:257)
      	at org.jboss.tools.central.jobs.RefreshTutorialsJob.run(RefreshTutorialsJob.java:52)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException cannot be found by org.jboss.tools.project.examples_3.0.0.Alpha1-v20150213-0945-B3
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      	... 5 more
      

      I used JBDS 9.0.0.Alpha1 installed on OS X 10.10 Yosemite with Oracle JDK 1.9:

      nattura:9.0.0 rasp$ java -version
      java version "1.9.0-ea"
      Java(TM) SE Runtime Environment (build 1.9.0-ea-b53)
      Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b53, mixed mode)
      

      The consequence of this is that the "Start from scratch" section in Central is not loaded and shows "No entries found".

      Note: When I installed the same JBDS with Java 8, there was no error.

            fbricon@redhat.com Fred Bricon
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: