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

When having Java 7 and Java 6 installed EAP servers are not choosing Java 6 and fails to launch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.2.Final
    • None
    • server
    • Hide
      When a server is launched a JVM is selected. The first JVM matching the execution environment was selected despite a better match being available. This led to sub-optimal choices and, in some cases, the server failed to start. This has been corrected and now if a JVM is available that exactly matches the execution environment is it preferentially selected.
      Show
      When a server is launched a JVM is selected. The first JVM matching the execution environment was selected despite a better match being available. This led to sub-optimal choices and, in some cases, the server failed to start. This has been corrected and now if a JVM is available that exactly matches the execution environment is it preferentially selected.
    • Documented as Resolved Issue

    Description

      When a SOA-P 5.2 server is started in JBDS 5.0.2 and 5.0.1 - this exception is raised:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/bootstrap/BaseServerConfig
      at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:190)
      at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
      at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
      at org.jboss.Main.boot(Main.java:218)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.ClassNotFoundException: org.jboss.bootstrap.BaseServerConfig
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 6 more

      The root problem from EAP side is that this stacktrace occurs because it is launched with Java 7, same actually happens from command line.
      Now, the question is why does Java 7 get selected when the server is setup to run with Java Execution Environment 1.6 - that is the tooling bug here and which Rob made a patch for.
      To describe in cases:
      1) Thus if the user have only Java 6 configured in Eclipse this issue should not occur.
      2) If the user has only Java 7 configured in Eclipse this error is expected
      3) If the user has both Java 6 and Java 7 configured and server adapter is configured to use Java 1.6 Execution Environment (which it is by default) then one would expect it to pick Java 6.
      Case 1 and 2 works - its case 3 that is failing.

      Attachments

        Issue Links

          Activity

            People

              rob.stryker Rob Stryker (Inactive)
              ldimaggi@redhat.com Len DiMaggio
              Michelle Murray Michelle Murray (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: