Tuesday, June 25, 2013

Configuration Weblogic 12.1.1 and liferay 6.1.1

LIBRARIES

The following libraries should be put into the ${WEBLOGIC_HOME}/${DOMAIN_HOME}/lib

  1. xercesImpl.jar (1336 KB)
  2. xml-apis-1.4.01.jar (216 KB)
  3. hsql.jar (if lifeary will be started with hsql Database)
  4. jaxen.jar (222 KB)
  5. log4j.jar (471 KB)
  6. log4j-extras.jar (339 KB)
  7. portal-services.jar
  8. portlet.jar

Most of those librires should be just copied from your exploded liferay-6.1.1 war in weblogic ${WEBLOGIC_HOME}/${DOMAIN_HOME}/AdminServer/tmp/_WL_user/${random}/liferay-portal-6.1.1/lib folder to your ${WEBLOGIC_HOME}/${DOMAIN_HOME}/lib folder.

JSF

Don't forget to install JSF library (2.0 version) in WebLogic after you are ready with liferay installation. You can find JSF library in ${WEBLOGIC_HOME}/wlserver_12.1/common/deployable-libraries

JPA

Weblogic uses EclipseLink as JPA Implementation. So when you are starting the Weblogic, it will validate all your JPA Entities and would miss some annotations that hibernate does not place, when you were generating Entities from the database with Hibernate ant task (for example @Temporal).

JNDI

Don't forget to assign your DataSources your AdminServer in WebLogic GUI and make Sure that WebLogic has Connection to them. Otherwise, in case if you are using JNDI to resolve the Datasources, you would get

15:48:12,120 ERROR [InfraProductionConfig:56] javax.naming.NameNotFoundException: While trying to lookup 'jdbc.MyDB' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/MyDB'

No comments:

Post a Comment