This guide will assist you in the startup of JBoss EAP 5.1 with Liferay 6.1 EE GA1.
Resolution
- Download JBoss EAP
- Download the liferay-dependencies.zip
- Navigate to [L:/$JBOSS_BUNDLE/../server/default/lib]:
- Add the Liferay dependencies (hsql.jar, portlet.jar, portal-service.jar)
- Add mysql.jar
- Delete the following in [L:/$JBOSS_BUNDLE/../common/lib]:
- hibernate-validator.jar
- hsqldb.jar
- hsqldb-plugin.jar
- Navigate to [L:/$JBOSS_BUNDLE/../server/default/conf]:
- Edit login-config.xml
- Comment out the blocks with the name "HsqlDBRealm" and "JmsXARealm"
- Delete the following in [L:/$JBOSS_BUNDLE/../server/default/deploy]:
- /messaging
- ejb2-container-jboss-beans.xml
- ejb2-timer-service.xml
- ejb3-connections-jboss-beans.xml
- ejb3-container-jboss-beans.xml
- ejb3-interceptors-aop.xml
- ejb3-timerservice-jboss-beans.xml
- hsqldb-ds.xml
- jms-ra.rar
- mail-ra.rar
- mail-service.xml
- profile-service-secured.jar
- uuid-key-generator.sar
- Delete the following in [L:/$JBOSS_BUNDLE/../server/default/deployers]:
- jboss-ejb3-endpoint-deployer.jar
- messaging-definitions-jboss-beans.xml
- Navigate to [L:/$JBOSS_BUNDLE/../server/default/deploy/ROOT.war]:
- Clear contents in folder
- Extract the liferay.war
- By defining the portal domain, it will not allow parent classes to load first, and instead export all portal classes
<classloading xmlns="urn:jboss:classloading:1.0" parent-first="false" domain="LiferayDomain" export-all="NON_EMPTY" import-all="true"> </classloading>
- Add jboss-classloading.xml to [L:/$JBOSS_BUNDLE/../ROOT.war/WEB-INF] with the following content:
- Add the following to portal-ext.properties:
hibernate.validator.apply_to_ddl=false hibernate.validator.autoregister_listeners=false
- Delete the following in [L:/$JBOSS_BUNDLE/../ROOT.war/WEB-INF/lib]:
- jaxrpc.jar
- stax.jar
- xercesImpl.jar
- xml-apis.jar
Startup
- Start Liferay by running the following command in [L:/$JBOSS_BUNDLE/bin]:
run.bat
Shutdown
- Shutdown Liferay by running the following command in [L:/$JBOSS_BUNDLE/bin]:
shutdown.bat
Deployment
- Add jboss-classloading.xml to the WEB-INF folder of each plugin, with the following content:
<classloading xmlns="urn:jboss:classloading:1.0" domain="PLUGINNAME-portlet" parent-domain="LiferayDomain" parent-first="false" top-level-classloader="false" export-all="NON_EMPTY" import-all="false"> </classloading>
Plugins
- In order to hot deploy in the correct place, configure the portal-ext.properties with the following:
auto.deploy.jboss.dest.dir=${jboss.home.dir}/server/default/deploy #(This one can be left like this, it will usually always detect) auto.deploy.deploy.dir=G:/jboss-eap-5.1/deploy #(This one needs to be the exact folder where you are going to be placing your .war files into.)