-
1. Re: EJB-JAR Packaging with external dependencies
wdfink May 21, 2012 8:40 AM (in response to pi4630)I would say the common way to do this is to pack this into an EAR file.
-
2. Re: EJB-JAR Packaging with external dependencies
pi4630 May 21, 2012 8:52 AM (in response to wdfink)Looking here: http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/ch01s04s02.html
as reference:
If I put my Bar.jar into the lib folder of the ear, would it be in the scope of the classes inside WAR?
-
3. Re: EJB-JAR Packaging with external dependencies
wdfink May 21, 2012 8:58 AM (in response to pi4630)AFAIK it should be accessible from classes inside the WAR
-
4. Re: EJB-JAR Packaging with external dependencies
derek.west1 Feb 8, 2018 5:53 PM (in response to wdfink)Are you sure about that? When I add My dependent jars to my EAR my application won't deploy. In fact I get this exception:
23:13:03,533 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "app.war" of deployment "app.ear"
-
5. Re: EJB-JAR Packaging with external dependencies
wdfink Feb 28, 2018 1:05 PM (in response to derek.west1)Derek, this would be an old thread and you might use complete different versions.
If you have issues you might open a new thread with the details