Fórum
Can't start Liferay 7 bundle
Alex Pierce, modificado 7 Anos atrás.
Can't start Liferay 7 bundle
New Member Postagens: 12 Data de Entrada: 30/11/16 Postagens Recentes
Hi!
I have downloaded three Liferay 7 bundles and no one starts correctly.
- Liferay 7 ga2 + Tomcat
- Liferay 7 ga3 + Tomcat
- Liferay 7 ga3 + Wildfly
I have Ubuntu 14.04 on my work computer. And the same OS in my laptop where this bundles works fine.
I saw the similar post: https://web.liferay.com/community/forums/-/message_boards/message/80756421
According to this, firstly, I have installed jdk8 ans make sure that all links pointed on new java version (update-alternatives, JAVA_HOME, default-java).
But I still give an error:
My logs/catalina.out is in attachments. Can you give me an advice, what's wrong?
I have downloaded three Liferay 7 bundles and no one starts correctly.
- Liferay 7 ga2 + Tomcat
- Liferay 7 ga3 + Tomcat
- Liferay 7 ga3 + Wildfly
I have Ubuntu 14.04 on my work computer. And the same OS in my laptop where this bundles works fine.
I saw the similar post: https://web.liferay.com/community/forums/-/message_boards/message/80756421
According to this, firstly, I have installed jdk8 ans make sure that all links pointed on new java version (update-alternatives, JAVA_HOME, default-java).
>$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
>$ ls -l /usr/lib/jvm
итого 16
lrwxrwxrwx 1 root root 13 нояб. 30 15:58 default-java -> java-8-oracle
lrwxrwxrwx 1 root root 20 апр. 18 2014 java-1.7.0-openjdk-amd64 -> java-7-openjdk-amd64
drwxr-xr-x 8 root root 4096 окт. 27 2014 java-6-oracle
drwxr-xr-x 5 root root 4096 нояб. 30 15:56 java-7-openjdk-amd64
drwxr-xr-x 8 root root 4096 авг. 17 2015 java-7-oracle
drwxr-xr-x 8 root root 4096 нояб. 28 16:40 java-8-oracle
>$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
But I still give an error:
30-Nov-2016 15:16:42.430 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
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:256)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.TerminationProcessException: Subprocess terminated with exit code 1
My logs/catalina.out is in attachments. Can you give me an advice, what's wrong?
Anexos:
Milen Dyankov, modificado 7 Anos atrás.
RE: Can't start Liferay 7 bundle
Expert Postagens: 310 Data de Entrada: 30/10/12 Postagens Recentes
Judging by
it seams you are using JRE and not JDK! In case you are unaware of the differences between the two see here! You need JDK for Liferay to run properly!
Java Home: /usr/lib/jvm/java-8-oracle/jre
it seams you are using JRE and not JDK! In case you are unaware of the differences between the two see here! You need JDK for Liferay to run properly!
Alex Pierce, modificado 7 Anos atrás.
RE: Can't start Liferay 7 bundle
New Member Postagens: 12 Data de Entrada: 30/11/16 Postagens Recentes
Hi, Milen!
JRE included in every JDK, and tomcat use java executable from JRE folder.
I have JDK installed on my computer.
JRE included in every JDK, and tomcat use java executable from JRE folder.
I have JDK installed on my computer.
>$ ls -1 /usr/lib/jvm/java-8-oracle/
bin
COPYRIGHT
db
include
javafx-src.zip
jre
lib
LICENSE
man
README.html
release
src.zip
THIRDPARTYLICENSEREADME-JAVAFX.txt
THIRDPARTYLICENSEREADME.txt
Milen Dyankov, modificado 7 Anos atrás.
RE: Can't start Liferay 7 bundle
Expert Postagens: 310 Data de Entrada: 30/10/12 Postagens Recentes
Oh than may be that the stupid way Tomcat logs things tricked me to think that. Anyway I'd suggest to try to install Java manually and use it instead of default OS one just to make sure there is no some weird things going on with JAVA_HOME and aliases
Alex Pierce, modificado 7 Anos atrás.
RE: Can't start Liferay 7 bundle (Resposta)
New Member Postagens: 12 Data de Entrada: 30/11/16 Postagens Recentes
I found the the reason of the problem and it is so stupid... See the log:
My directory called "7.0 ga3 + tomcat". So when I removed plus sign (and all spaces, just in case) from the folder name - it starts working!
I also have the directory called "6.2 ga4 + tomcat" and there are no problem with Liferay 6.2 startup.
15:16:42,057 ERROR [Start Level: Equinox Container: 60b62bfa-0fb7-0016-1216-c09d15eef5d7][ClassPathUtil:109] /home/ninomt/Sources/Development/Liferay/7.0 ga3 tomcat/liferay-ce-portal-7.0-ga3/osgi/state/org.eclipse.osgi/16/0 is not a directory
15:16:42,058 ERROR [Start Level: Equinox Container: 60b62bfa-0fb7-0016-1216-c09d15eef5d7][ClassPathUtil:109] /home/ninomt/Sources/Development/Liferay/7.0 ga3 tomcat/liferay-ce-portal-7.0-ga3/osgi/core is not a directory
15:16:42,059 ERROR [Start Level: Equinox Container: 60b62bfa-0fb7-0016-1216-c09d15eef5d7][ClassPathUtil:109] /home/ninomt/Sources/Development/Liferay/7.0 ga3 tomcat/liferay-ce-portal-7.0-ga3/osgi/state/org.eclipse.osgi/7/0 is not a directory
My directory called "7.0 ga3 + tomcat". So when I removed plus sign (and all spaces, just in case) from the folder name - it starts working!
I also have the directory called "6.2 ga4 + tomcat" and there are no problem with Liferay 6.2 startup.