Using Liferay Web Application Intigrator (WAI)

In case you already have web application (war), just put it in deployment folder ( “deploy” folder for tomcat and “deployment” folder for jboss )

After it is deployed, Liferay will see it as a portlet. To use portlet, go to your liferay homepage > add a page. Then select manage that page, your portlet will be located in “undefined” category. Add it to your page and you are ready to go.

Migrating EAR from JBOSS 5 to JBOSS 7

#1 your war in your ear has to has .war extension, even it is a folder.

#2 If you use JAX-RS for RESTful webservice, make sure you comment out 

<extension module=”org.jboss.as.jaxrs”/>

and

<subsystem xmlns=”urn:jboss:domain:jaxrs:1.0″/>  

in standalone.xml  (or domain)

 

Besides, for jersey, you have to deploy your webservice as an exploded folder in delpoyment folder ( and make sure it has .war extension )

using log4j with JBOSS AS 7.1.1

put this jboss-deployment-structure.xml to your ear’s META-INF

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
 <deployment>
 <exclusions>
 <module name="org.apache.log4j" />
 </exclusions>
 </deployment>
 <sub-deployment name="your_war_folder.war">
 <exclusions>
 <module name="org.apache.log4j" />
 </exclusions>
 </sub-deployment> 
</jboss-deployment-structure>

for war deployment, put it in your WEB-INF

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
</deployment> 
</jboss-deployment-structure>