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

Jar files wrongly classified als deployable modules

XMLWordPrintable

    • Hide

      Create an almost empty jar file containing a single class with an empty static main method and an manifest file with the Main-Class attribute set.
      Add this to the EarContent/lib directory of an EAR project.
      Performing a full publish.

      The jar will be listed as deployed module in the servers view and a message about it will be logged in the server log.

      Show
      Create an almost empty jar file containing a single class with an empty static main method and an manifest file with the Main-Class attribute set. Add this to the EarContent/lib directory of an EAR project. Performing a full publish. The jar will be listed as deployed module in the servers view and a message about it will be logged in the server log.

      When the library folder of an EAR (/lib) or WEB module (/WEB-INF/lib) contains jar files that have a Main-Class entry in their manifest file, Jboss tools designates them as "J2EE Application Client Module".

      This is visible in the GUI in the Servers view when unfolding a runtime server. The above mentioned jar files from EAR/lib are listed between the normal EJB and WEB modules. When you unfold a WEB module in this view, the above mentioned jar files from /WEB-INF/lib are listed here.

      The problem is also visible in the server log. For each jar file being present in EAR/lib and WEB-INF/lib with the mentioned Main-Class entry, a message is printed:

      "Module [name of jar file] published without error."

      Additionally, if a jar file in EAR/lib has classes with EJB annotations, a similar thing happens as with jar files that have a Main-Class entry. The only difference is that in this case the jar file in question is being branded as "J2EE EJB Module"

              nickboldt Nick Boldt
              arjan.tijms@gmail.com Arjan Tijms (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: