Message Boards
Liferay 7, can start a clean GA2, can't start clean GA3
Jack Bakker, modified 7 Years ago.
Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
A clean (and fresh) GA2 starts fine, a clean GA3 does not
18:46:03,031 INFO [Start Level: Equinox Container: 4001771f-f58b-0016-1459-9b17edd91f36][BundleStartStopLogger:35] STARTED com.liferay.util.taglib_2.4.1 [1]
06-Oct-2016 18:46:03.034 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.TerminationProcessException: Subprocess terminated with exit code 1
I have attached stack trace as ga3_startup.txt
ideas ?
18:46:03,031 INFO [Start Level: Equinox Container: 4001771f-f58b-0016-1459-9b17edd91f36][BundleStartStopLogger:35] STARTED com.liferay.util.taglib_2.4.1 [1]
06-Oct-2016 18:46:03.034 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.TerminationProcessException: Subprocess terminated with exit code 1
I have attached stack trace as ga3_startup.txt
ideas ?
Attachments:
David H Nebinger, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
JAVA_HOME should be set to the JDK directory, not the JRE subdirectory.
The failure itself appears to be in the launching of the lpkg verification process, this is invoked by java and uses util-taglib.jar to verify the lpkg files.
The failure itself appears to be in the launching of the lpkg verification process, this is invoked by java and uses util-taglib.jar to verify the lpkg files.
Jack Bakker, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
jbakker@masterdev:/usr/lib/jvm$ echo $JAVA_HOME
/usr/lib/jvm/java-8-sun
jbakker@masterdev:/usr/lib/jvm$ ls -l
lrwxrwxrwx 1 root root 12 Oct 6 11:19 java-8-sun -> jdk1.8.0_101
/usr/lib/jvm/java-8-sun
jbakker@masterdev:/usr/lib/jvm$ ls -l
lrwxrwxrwx 1 root root 12 Oct 6 11:19 java-8-sun -> jdk1.8.0_101
Jack Bakker, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
found it
on my Ubuntu 14.04, /usr/bin/java was pointing to a /etc/alternatives/java which was pointing to a java 7 ; all good after updating to point to a /usr/lib/jvm/java-8-sun/jre/bin/java
sudo update-alternatives --config java
or if that doesn't work, update the /etc/alternatives/java symbolic link yourself
on my Ubuntu 14.04, /usr/bin/java was pointing to a /etc/alternatives/java which was pointing to a java 7 ; all good after updating to point to a /usr/lib/jvm/java-8-sun/jre/bin/java
sudo update-alternatives --config java
or if that doesn't work, update the /etc/alternatives/java symbolic link yourself
David H Nebinger, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Aha, so it's you're fault!
At first I thought that's funny, because the snippet of log you posted seemed to indicate that it was running java 8...
But if JAVA_HOME actually pointed to a java 7 sdk and the process was just launching "java", that might have gotten you the wrong jdk...
At first I thought that's funny, because the snippet of log you posted seemed to indicate that it was running java 8...
But if JAVA_HOME actually pointed to a java 7 sdk and the process was just launching "java", that might have gotten you the wrong jdk...
Jack Bakker, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
the log did indicate it was running java 8
and JAVA_HOME was pointing to java 8
but PATH had /usr/bin and /usr/bin/java is a symlink to /etc/alternatives/java which was a symlink to a java 7 but now is a happy symlink to java 8
'the process', yep
also note the subject of this post, which was also true
and JAVA_HOME was pointing to java 8
but PATH had /usr/bin and /usr/bin/java is a symlink to /etc/alternatives/java which was a symlink to a java 7 but now is a happy symlink to java 8
'the process', yep
also note the subject of this post, which was also true
Olaf Kock, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
I ran into this issue yesterday on DXP FP5: Liferay seems to start a second Java process by just spinning up whatever is named "java", not taking care of JAVA_HOME. I needed to tweak/link the global system's java to the same JVM that I was using for running Liferay and it worked. Not sure if there's already an issue for it, definitely not a nice or expected behaviour. I'm assuming that not too many will run into this issue, but on Linux it might be more prevalent as older OpenJDK JVMs might be preinstalled/available through the OS.
I haven't yet looked for an issue, as I just ran into it and was happy to have fixed it in time for end-of-business-day.
I haven't yet looked for an issue, as I just ran into it and was happy to have fixed it in time for end-of-business-day.
Jack Bakker, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
Yesterday.. all my tribbles seemed so far away...
Oh look.. a hurricane.
Joking aside, best wishes to those on EAST coast of US. Stay safe.
Oh look.. a hurricane.
Joking aside, best wishes to those on EAST coast of US. Stay safe.
Nicolas Ballinas, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
New Member Posts: 7 Join Date: 3/28/12 Recent PostsOlaf Kock:
I ran into this issue yesterday on DXP FP5: Liferay seems to start a second Java process by just spinning up whatever is named "java", not taking care of JAVA_HOME. I needed to tweak/link the global system's java to the same JVM that I was using for running Liferay and it worked. Not sure if there's already an issue for it, definitely not a nice or expected behaviour. I'm assuming that not too many will run into this issue, but on Linux it might be more prevalent as older OpenJDK JVMs might be preinstalled/available through the OS.
I haven't yet looked for an issue, as I just ran into it and was happy to have fixed it in time for end-of-business-day.
Thank you for the solution! We were stuck on GA2 because we couldn't get GA3 to run, and now that you mention it it all makes sense. We were doing all our tests by defining JAVA_HOME in standalone.conf only, but still having Java1.7 as system default. With GA2 this would work, but not GA3.
Time to upgrade!
Beatriz Blanco, modified 7 Years ago.
RE: Liferay 7, can start a clean GA2, can't start clean GA3
New Member Posts: 3 Join Date: 5/9/13 Recent Posts
Thanks a lot!! We had the same problem and we were able to fix it with your post. Regards from Spain ;)