Version Used : liferay-plugins-sdk-6.1.1 liferay-portal-6.1.1-ce-ga2(bundle tomcat) tomcat-7.0.27 liferay-portal-6.1.2-ce-ga3(bundle jboss) jboss-7.1.1.
Step1: If you are connecting SAP BO please drop this list of jars in docroot\WEB-INF\lib (bcm.jar,certjfips.jar,cryptofips.jar,ssljfips.jar)
Step2: Drop jboss-deplyment-structure.xml file in your docroot\WEB-INF path
In jboss-deplyment-structure.xml you should use these following codes
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure >
<deployment>
<dependencies>
<module name="com.liferay.portal" slot="main" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
In this liferay-portal-6.1.2-ce-ga3\jboss-7.1.1\modules\com\liferay\portal\main path We have to drop bcm.jar,certjfips.jar,cryptofips.jar,ssljfips.jar and this is the same jars what we used in lib path what we used in step1
Step3: Drop jboss-classloader.xml file in your docroot\WEB-INF path Snippet used in jboss-classloader.xml
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0" domain="DomainName" export-all="NON_EMPTY" import-all="true">
</classloading>
Step4: Start your project using tomcat first
Step 5: Export your lifearay war after running your project in tomcat server
Right click on your project Liferay->SDK->war expert it and this war file will save in this path liferay-plugins-sdk-6.1.1\dist
Step6: Stop your tomcat
Step 7: open cmd prompt first and Increase Java Heap size: BY
set "JAVA_OPTS=-Xms512m -Xmx512m -XX:MaxPermSize=256m"
Step 8: Type cd in cmd prompt paste your jboss bin standalone.bat path or otherwise start standalone.bat manually in jboss path