[jboss-user] [EJB 3.0] - Re: deployment question (dependent jar files)

andyd do-not-reply at jboss.com
Tue Oct 24 17:13:31 EDT 2006


Suggest you look at deploying in an ear file.

I put all jars/wars into the root of the EAR and then reference them in META-INF/application.xml.

i.e.

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
  <display-name>MyAppEAR</display-name>
  
  	PortletUtils.jar
   
  
  	jboss-seam.jar
    
  
  	jboss-seam-ui.jar
  
    
    MyAppEJB.jar
  
  
    
      <web-uri>MyAppWeb.war</web-uri>
    
  



Don't forget META-INF/jboss-app.xml to define your class loader i.e.

<jboss-app>
      <loader-repository> 
      seam.jboss.org:loader=myapp-loader
      </loader-repository> 
</jboss-app> 

Hope this helps.
Andy.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980538#3980538

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980538



More information about the jboss-user mailing list