Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Select jboss-seam.jar to link via manifest and copy to /.

Web facet: 

Add additional resources: components.xml, faces-config.xml, pages.xml to WEB-INF, messages.properties - to WEB-INF/classes.
Select library to package into war: to_war library should be copied to /WEB_INF/lib.

Set web resource directory.  

 

javaEEApplication facet: 

Include EJB and Web facets into ear; set the context root and module names properly. Add jboss-app.xml as additional resource.Note that the application.xml is changed on facet configuring and the duplicated modules are inserted there; remove them manually from this file after configuring the facet.

 On On the build settings tab set the archive name to deploy or the exploded directory (note, that it should have .ear extension):

 Remove JPA facet to avoid redundant resources packaging into war.

 4. Edit the components.xml :

The core:init component should be changed as follows: 

  5. Create JBoss run configuration:

select the jboss application server, default instance; on the Deployment page select the facet to deploy - javaEEApplication facet.

 
That's all. The ear that is created on deployment is the same as one built by ant in the original seam example.