The changed class is not loaded after JBoss EAP restart.

Solution Unverified - Updated -

Issue

  • In the development process there is a requirement to synchronize the classes that are changed and compiled from the IDE into the ear classloader. What is the best way to do that?
  • The requirement is to synchronize my compiled class into a folder within the ear, restart jboss and have the changed class override the class which already exists in on of the jars.
  • In EAP 5.2 there are jars in ear/lib.
    • The jars which is suppose to be changed is extracted.
    • Then created ear/lib/_classes.jar FOLDER, into which the changed compiled classes (full package folders structure) is synchronized.
    • However, the changed class is not loaded after jboss restart but rather the original one.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.