Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Davy Kamerbeek
Weblogic 10.3.6 hot deploy
August 28, 2012 5:49 AM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

Hi,

I'm having issues with the Liferay autodeployment on a weblogic container.

Stack:
Linux Redhat
Oracle Weblogic Server 10.3.6
Liferay 6.1.20 EE war
Oracle Database

Content portal-ext.properties:
Internal (in WAR) portal-ext.properties:
# Liferay specific settings
liferay.home=/oracle/user_projects/domains

# Include and overrides
include-and-override=${liferay.home}/portal-setup-wizard.properties
include-and-override=${liferay.home}/portal-ext.properties

External (on container domain path) portal-ext.properties:
# Setup
schema.run.enabled=true
schema.run.minimal=true
setup.wizard.enabled=false
# Liferay specific settings
liferay.home=/oracle/user_projects/domains
# Database
jdbc.default.jndi.name=jdbc/LiferayPool
# Deployment
auto.deploy.enabled=true
auto.deploy.dest.dir=/oracle/user_projects/domains/s_xxxx01/autodeploy

For this example i use a sample war from the sample sdk (delivered with the Liferay Developer Studio). I copy the war to the $liferay_home/deploy folder. Liferay will copy the artifact to the autodeploy folder of weblogic. Weblogic installs the war and is visible and active in de deployment weblogic console.

Logging:

11:19:37,916 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:177] Processing sample-styled-minimal-theme-6.1.10.1.war
11:19:37,919 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeAutoDeployListener:49] Copying themes for /oracle/user_projects/domains/deploy/sample-styled-minimal-theme-6.1.10.1.war
11:19:37,920 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying sample-styled-minimal-theme-6.1.10.1.war
11:19:37,924 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Updating Sample Styled Minimal from version 6.1.10.1 to version 6.1.10.1
11:19:38,262 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2083] Modifying Servlet 2.4 /tmp/20120827111937924/WEB-INF/web.xml
11:19:38,409 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeAutoDeployListener:55] Themes for /oracle/user_projects/domains/deploy/sample-styled-minimal-theme-6.1.10.1.war copied successfully. Deployment will start in a few seconds.

Nothing else will happen. Looks like liferay isn't deploying the WAR properly?

zero exceptions in logging!
Davy Kamerbeek
RE: Weblogic 10.3.6 hot deploy
September 2, 2012 11:05 PM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

Any hint is welcome!
Davy Kamerbeek
RE: Weblogic 10.3.6 hot deploy
September 12, 2012 11:07 PM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

Figured it out... the weblogic autodeploy always deploy's the artifacts to the admin server. The liferay instance was running on a managed server (not admin server) so the plugins were being installed on the adminserver so the liferay instance never got the callback from the container to get the acknowledge to finalize the plugin status.
S P
RE: Weblogic 10.3.6 hot deploy
October 13, 2012 10:38 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Davy,
I am trying to install Liferay6.1.1.1GA2 on Linux5 Tikonga Server with Weblogic 10.3.6 but its not deploying liferay war file...
could you please share the steps you did for liferay deplpoyment.


Thanks in Advance.
Davy Kamerbeek
RE: Weblogic 10.3.6 hot deploy
October 13, 2012 11:28 PM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

I need a little more information. Please post the server logging, portal-ext.properties, and explain what you did to deploy the liferay war on weblogic.
S P
RE: Weblogic 10.3.6 hot deploy
October 15, 2012 1:16 PM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Davy,
Thanks for the reply.
here i have created a query in the forum,please have a look.

http://www.liferay.com/community/forums/-/message_boards/message/16869843

Also If you have any steps particular please message me i will try it.

i am ok for both liferay6.1.1 or liferay6.1.2 war file but i am trying in linux o.s ,it will be good if liferay deployed in production mode or other than auto-deplpoy.

I am able to to do in windows both 6.1 .1 and 6.1.2 with liferay faces.

Thanks in Advance.
Davy Kamerbeek
RE: Weblogic 10.3.6 hot deploy
October 17, 2012 3:23 AM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

Did you follow the steps mentioned in Weblogic 10.3 install guide ?
S P
RE: Weblogic 10.3.6 hot deploy
October 18, 2012 1:52 PM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Davy,
Thanks for your reply.
Much appreciated.

I have followed the steps and i got timeout error while deploying using weblogic console browser.
refered url : https://www.liferay.com/es/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen11-installing-liferay-on-oracle-weblogic-103-0
Here is my current enviornemnt:
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
JDK : jdk160_29
WebLogic Server Version: 12.1.1.0(I tried with weblogic10.3.6 also)
Liferay:liferay-portal-6.1.0-ce-rc1-20111219113511317.war
Please find the error
 1
 2<Oct 18, 2012 9:33:27 PM BST> <Warning> <J2EE> <BEA-160188> <Unresolved WebApp library references defined in weblogic.xml, of module 'liferay-portal-6.1.0-ce-rc1-20111219113511317.war' [Extension-Name: jsf, Specification-Version: 1.2, Implementation-Version: 1.2, exact-match: false].>
 3<Oct 18, 2012 9:42:37 PM BST> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: java.lang.RuntimeException: Timed out waiting for completion
 4        at weblogic.management.provider.internal.ActivateTaskImpl.waitForCompletion(ActivateTaskImpl.java:402)
 5        at weblogic.management.provider.internal.ActivateTaskImpl.waitForTaskCompletion(ActivateTaskImpl.java:377)
 6        at weblogic.management.provider.internal.EditAccessImpl.activateChangesAndWaitForCompletion(EditAccessImpl.java:963)
 7        at weblogic.management.mbeanservers.edit.internal.ConfigurationManagerMBeanImpl.activate(ConfigurationManagerMBeanImpl.java:398)
 8        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 9        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11        at java.lang.reflect.Method.invoke(Method.java:597)
12        at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
13        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
14        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
15        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
16        at java.security.AccessController.doPrivileged(Native Method)
17        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
18        at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:263)
19        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
20        at java.security.AccessController.doPrivileged(Native Method)
21        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
22        at weblogic.management.mbeanservers.edit.internal.RecordingInterceptor.invoke(RecordingInterceptor.java:199)
23        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
24        at java.security.AccessController.doPrivileged(Native Method)
25        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
26        at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:65)
27        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
28        at java.security.AccessController.doPrivileged(Native Method)
29        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
30        at weblogic.management.mbeanservers.edit.internal.EditLockInterceptor.invoke(EditLockInterceptor.java:112)
31        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
32        at java.security.AccessController.doPrivileged(Native Method)
33        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
34        at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
35        at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
36        at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
S P
RE: Weblogic 10.3.6 hot deploy
October 18, 2012 2:13 PM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

I have increased weblogic time out ,now liferay is running fine.
I am not sure ,till now why it was not working.
Anyways thanks very much for your reply.
Now i will try to deploy liferay bridges and customs portlets.

Thanks.emoticon
Siva Reddy
RE: Weblogic 10.3.6 hot deploy
June 18, 2013 7:12 AM
Answer

Siva Reddy

Rank: New Member

Posts: 8

Join Date: December 22, 2010

Recent Posts

Hi Davy and SP,
This post saved lot of my time to deploy the liferay on weblogic server and apprecited both of you for the good work being done.

My requirement is slightly different though related to hot deploy.
Weblogic admin server - deployed liferay and plug-in wars successfully through hot deployment. As the hot deployment works only on admin server.
Weblogic manage server - deployed the liferay.war through console but weblogic auto deployment is not working on manage server.

I just see the message like "deployment will start shortly" but it never deploys.

Appreciated your inputs to resolve it.
Davy Kamerbeek
RE: Weblogic 10.3.6 hot deploy
June 18, 2013 7:25 AM
Answer

Davy Kamerbeek

Rank: New Member

Posts: 23

Join Date: March 12, 2012

Recent Posts

Hi,

I'm driving in my car so I will anwser very short ;-)
Hot deploy will not work on a managed server. You'll have to create a wls script to deploy the artifacts.

Good luck!
Siva Reddy
RE: Weblogic 10.3.6 hot deploy
June 19, 2013 1:33 AM
Answer

Siva Reddy

Rank: New Member

Posts: 8

Join Date: December 22, 2010

Recent Posts

Thanks Davy for the qucik reply.

If possible can you pls share wls scripts? any inputs to start the wls scripts are highly appreciated.
Mathew Anderson
RE: Weblogic 10.3.6 hot deploy
June 21, 2013 12:51 PM
Answer

Mathew Anderson

Rank: Junior Member

Posts: 29

Join Date: April 22, 2013

Recent Posts

I have a job that looks in a stage directory, $STAGE below. If it sees a file in it, it runs the shell script below with the name of the portlet as the only argument. Granted this is not wlst, but it does the job.

It should be mostly the same for 10.3.6.

 1
 2#!/bin/sh
 3STAGE="/path/to/stage/folder"
 4ORACLE_PATH="/path/to/weblogic/install"
 5ORACLE_DOMAIN="${ORACLE_PATH}/user_projects/domains/liferay"
 6
 7#echo "APP IS: $1"
 8APP=$1
 9
10# put the app in the Liferay Hotdeploy Directory
11
12echo "Deploying ${APP} ... "
13cp ${STAGE} /${APP} ${ORACLE_DOMAIN}/../deploy/.
14sleep 10
15
16# Now that the app is in the deploy directory, liferay needs to read it and stage it to the applications directory.
17# for above, need to set in portal-ext.properties file : auto.deploy.weblogic.dest.dir=ORACLE_DOMAIN/applications
18# also I found that auto.deploy.unpack.war=false works great
19# it will be staged as a war file.
20
21# Undeploy the app if it exists
22strLength=`expr length ${APP}`
23let myLength=`expr ${strLength}-4`
24appName=${APP:0:${myLength}}
25${JAVA_HOME}/bin/java  -classpath ${ORACLE_PATH}/wlserver_12.1/server/lib/weblogic.jar:${JAVA_HOME}/j2se/lib/tools.jar weblogic.Deployer -adminurl t3://localhost:7001  -userconfigfile ${ORACLE_DOMAIN}/configfile.secure -userkeyfile ${ORACLE_DOMAIN}/keyfile.secure -verbose -undeploy -targets CLUSTER_NAME -name  ${appName}
26
27# Deploy the app
28${JAVA_HOME}/bin/java -classpath ${ORACLE_PATH}/wlserver_12.1/server/lib/weblogic.jar:${JAVA_HOME}/j2se/lib/tools.jar weblogic.Deployer -adminurl t3://localhost:7001  -userconfigfile ${ORACLE_DOMAIN}/configfile.secure -userkeyfile ${ORACLE_DOMAIN}/keyfile.secure -verbose -stage -deploy -targets CLUSTER_NAME -upload ${ORACLE_DOMAIN}/applications/${APP}
Ehsan Rashidy
RE: Weblogic 10.3.6 hot deploy
July 12, 2013 9:54 PM
Answer

Ehsan Rashidy

Rank: New Member

Posts: 17

Join Date: April 24, 2013

Recent Posts

Mathew Anderson:
I have a job that looks in a stage directory, $STAGE below. If it sees a file in it, it runs the shell script below with the name of the portlet as the only argument. Granted this is not wlst, but it does the job.

It should be mostly the same for 10.3.6.

 1
 2#!/bin/sh
 3STAGE="/path/to/stage/folder"
 4ORACLE_PATH="/path/to/weblogic/install"
 5ORACLE_DOMAIN="${ORACLE_PATH}/user_projects/domains/liferay"
 6
 7#echo "APP IS: $1"
 8APP=$1
 9
10# put the app in the Liferay Hotdeploy Directory
11
12echo "Deploying ${APP} ... "
13cp ${STAGE} /${APP} ${ORACLE_DOMAIN}/../deploy/.
14sleep 10
15
16# Now that the app is in the deploy directory, liferay needs to read it and stage it to the applications directory.
17# for above, need to set in portal-ext.properties file : auto.deploy.weblogic.dest.dir=ORACLE_DOMAIN/applications
18# also I found that auto.deploy.unpack.war=false works great
19# it will be staged as a war file.
20
21# Undeploy the app if it exists
22strLength=`expr length ${APP}`
23let myLength=`expr ${strLength}-4`
24appName=${APP:0:${myLength}}
25${JAVA_HOME}/bin/java  -classpath ${ORACLE_PATH}/wlserver_12.1/server/lib/weblogic.jar:${JAVA_HOME}/j2se/lib/tools.jar weblogic.Deployer -adminurl t3://localhost:7001  -userconfigfile ${ORACLE_DOMAIN}/configfile.secure -userkeyfile ${ORACLE_DOMAIN}/keyfile.secure -verbose -undeploy -targets CLUSTER_NAME -name  ${appName}
26
27# Deploy the app
28${JAVA_HOME}/bin/java -classpath ${ORACLE_PATH}/wlserver_12.1/server/lib/weblogic.jar:${JAVA_HOME}/j2se/lib/tools.jar weblogic.Deployer -adminurl t3://localhost:7001  -userconfigfile ${ORACLE_DOMAIN}/configfile.secure -userkeyfile ${ORACLE_DOMAIN}/keyfile.secure -verbose -stage -deploy -targets CLUSTER_NAME -upload ${ORACLE_DOMAIN}/applications/${APP}


Mathew,
Can I use this script in weblogic 12c?
when I deploy my portlet through admin console into a weblogic managed server, it's not showed up in liferay,
I guess this script can do the job!!
Mathew Anderson
RE: Weblogic 10.3.6 hot deploy
July 15, 2013 5:47 AM
Answer

Mathew Anderson

Rank: Junior Member

Posts: 29

Join Date: April 22, 2013

Recent Posts

Yes, I wrote it on my 12c system.