Hey everyone,
I am trying to deploy an EAR file in
JBoss. After doing some research, I learned that it can be extremely complicated.
First off, the structure of the ear file:
I am trying to migrate this over from a weblogic deployment, so I realize that the APP-INF directory might not be JBoss specific, but i would like to try to keep the structure if possible.
In the jboss-app.xml file, I have the following:
and in the applicationl.xml I have this:
Anyway, my problem stems from the fact that while all the jar's are added properly to the classpath (by adding <library-directory>lib</library-directory> to the application.xml file), but the APP-INF/classes directory is not. (on a side note, is having the <library-directory> element and module elements for the core.jar and tag.jar files redundant? These are in the lib folder, in addition to 3rd party libs that are not my company's code) Unfortunately, I have no idea how I would add this directory as well. I would like to stay away from modifying all the individual war files' manifest files if possible.
I tried adding a <classpath> element to the jboss-service.xml file in the conf directory of the server configuration, but it didn't work.
What is the right way to do this? I am fairly new to JBoss (and to a lesser degree, the world of application servers and ear deployments), and still don't think I fully understand the JBoss way of doing things, but I'm tasked with this so I need to learn by doing, and hopefully learn the right way in the process to streamline this ear deployment and make it as standardized as possible.
Here are some sites I've been looking at that gave me some guidance, but didn't seem to address this specific issue:
RedHat Deploy EAR with EJB3 JAR
Raible Designs JBoss ClassLoader Logic
Detail Focused JBoss EAR Classloading
Thanks in advance for any help.