Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6347

JBoss Tools expects the Eclipse JDT Core jar from the Seam distribution to be in core.jar, but they are now in ecj.jar

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.1 ER1, EAP_EWP 5.1.1 ER3
    • Fix Version/s: EAP_EWP 5.1.2 ER1
    • Component/s: Seam
    • Labels:
      None
    • Environment:

      eap 5.1.1 ER3, JBDS 4.0.0.GA

    • Steps to Reproduce:
      Hide

      1. in JBDS 4.0.0: File->New->Seam Web Project
      2. create a WAR project called NewWebProject using Seam runtime from EAP 5.1.1 ER1
      3. notice there is no core.jar, nor ecj.jar in the lib/ folder
      4. New -> Seam Action
      5. on the NewWebProject-test project, run as -> TestNG project
      6. Notice the exception

      Could not instantiate Seam component: org.jboss.seam.security.ruleBasedPermissionResolver
      ...
      Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath

      Show
      1. in JBDS 4.0.0: File->New->Seam Web Project 2. create a WAR project called NewWebProject using Seam runtime from EAP 5.1.1 ER1 3. notice there is no core.jar, nor ecj.jar in the lib/ folder 4. New -> Seam Action 5. on the NewWebProject-test project, run as -> TestNG project 6. Notice the exception Could not instantiate Seam component: org.jboss.seam.security.ruleBasedPermissionResolver ... Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Copy ecj.jar from seam/lib/ directory to your JBDS project NewWebProject/WebContent/WEB-INF/lib/:
      cp seam/lib/ecj.jar NewWebProject/WebContent/WEB-INF/lib/ecj.jar

      Show
      Copy ecj.jar from seam/lib/ directory to your JBDS project NewWebProject/WebContent/WEB-INF/lib/: cp seam/lib/ecj.jar NewWebProject/WebContent/WEB-INF/lib/ecj.jar
    • Release Notes Text:
      Hide
      Seam projects created using JBDS earlier than version 4.1.1 failed the test phase with the message:

      <screen>
      Could not instantiate Seam component: org.jboss.seam.security.ruleBasedPermissionResolver
      ...
      Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
      </screen>

      This error occurred because, since an upgrade of Drools to 5.1, functions required by JBDS which would previously been found in <filename>lib/core.jar</filename> are now contained in lib/ecj.jar. To workaround this problem, take one of the following options, with option 1 being the recommended option:

      <orderedlist>
        <listitem>
          <para>Upgrade JBDS to 4.1.1;</para>
        <listitem>
        <listitem>
          <para>Copying lib/ecj.jar to the project.</para>
        <listitem>
      </orderedlist>
      Show
      Seam projects created using JBDS earlier than version 4.1.1 failed the test phase with the message: <screen> Could not instantiate Seam component: org.jboss.seam.security.ruleBasedPermissionResolver ... Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath </screen> This error occurred because, since an upgrade of Drools to 5.1, functions required by JBDS which would previously been found in <filename>lib/core.jar</filename> are now contained in lib/ecj.jar. To workaround this problem, take one of the following options, with option 1 being the recommended option: <orderedlist>   <listitem>     <para>Upgrade JBDS to 4.1.1;</para>   <listitem>   <listitem>     <para>Copying lib/ecj.jar to the project.</para>   <listitem> </orderedlist>
    • Release Notes Docs Status:
      Documented as Known Issue
    • Docs QE Status:
      NEW

      Description

      JBoss Tools expects the Eclipse JDT Core jar to be located in seam/lib/core.jar.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  maschmid Marek Schmidt
                  Writer:
                  Russell Dickenson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: