Can jar files be added to the root of an EAR file?

Solution Verified - Updated -

Issue

  • From the document at https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 it appears the EAR root folder should contain only EJB and WAR jar files and other jar files should be placed in the EAR/lib folder.
    Could you clarify whether or not this is a mandatory packaging policy ?
  • Is it OK to package regular (non-ejb, non-war) jar files in the EAR root folder ?
  • We've experienced stranges java.lang.LinkageError issues in some enterprise application appearing just after the application server restart.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content