Use prefer-application-packages to load newer JARs
Description
Environment
relates
Activity

Paul PiaoSeptember 18, 2012 at 1:27 AM
PASSED Manual Testing using the following steps:
Use WebLogic 10.3.6.
Add jar file in WebLogic lib folder. ( commons-lang.jar, antlr.jar, mozilla jars)
We have to tell Weblogic to load portal/plugin JARs from WEB-INF and not by its original class loader. In weblogic.xml set prefer-web-inf-classes flag to true. This tells weblogic to load classes from web-inf folder first.
Start the server.
Login liferay.
Deploy Plugins "OpenSocial plugin" and "kaleo-web plugin".
Check deploy the plugins is working.
Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 6698dc5c5f413f7a0b5c8abb544f68f9eb203551.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: ba03a80f588dcfccfaa674fe4dfbe872e32b35cf.
OpenSocial plugin and kaleo-web plugin work fine on the portal.

Matthew LeeAugust 20, 2012 at 12:46 PM
Committed on:
Portal 6.2.x GIT ID: c54c76c0f426d1f864589e8b5b5292a603a60d8f.

Igor SpasicAugust 9, 2012 at 2:59 AM
How to test this: simple remove PRE_CLASSPATH setting from setDomainEnv.cmd (if there is any) and try some of the related LPSs.
For example: to add OpenSocial plugin; or to approve web content using kaleo-web.
Details
Assignee
SE SupportSE SupportReporter
Igor SpasicIgor Spasic(Deactivated)Labels
Branch Version/s
6.1.xBackported to Branch
CommittedEpic/Theme
Git Pull Request
https://github.com/brianchandotcom/liferay-plugins/pull/856, https://github.com/brianchandotcom/liferay-plugins/pull/856Components
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Branch Version/s
Backported to Branch
Epic/Theme
Git Pull Request
Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Since portal now supports WebLogic >= 10.3.5, we can now use prefer-application-packages descriptor to specify packages of JARs that has to be loaded first i.e. instead of old versions that are bundled with WebLogic.
See:
http://www.liferay.com/community/wiki/-/wiki/Main/Weblogic+tips#section-Weblogic+tips-Using+newer+JARs
http://www.liferay.com/community/wiki/-/wiki/Main/Weblogic+tips#section-Weblogic+tips-prefer-application-packages