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

Assign proper VM to tomcat runtimes

XMLWordPrintable

      It appears the tomcat runtime detector fails to properly detect tomcat 8 instances when run with JDK 6, which caused the test failures in JBIDE-17288 :

      Error Message
      
      expected:<3> but was:<2>
      
      Stacktrace
      
      java.lang.AssertionError: expected:<3> but was:<2>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.jboss.tools.wtp.runtimes.tomcat.tests.TomcatDetectionTest.testTomcatDetection(TomcatDetectionTest.java:64)
      

      Tomcat 8 needs a JDK 7 to be properly set. nickboldt's PR, while strenghtening the tests, is not enough to address the issue/ So instead of using the default VM, we should assign the most appropriate one in the detector.

            rob.stryker Rob Stryker (Inactive)
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: