Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Liferay 6.1 startup problem Ubuntu karthik N 13 de Dezembro de 2011 22:01
RE: Liferay 6.1 startup problem Ubuntu Juan Gonzalez 13 de Dezembro de 2011 23:51
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 03:39
RE: Liferay 6.1 startup problem Ubuntu Milen Dyankov 14 de Dezembro de 2011 04:05
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 21:49
RE: Liferay 6.1 startup problem Ubuntu Nagendra Kumar Busam 14 de Dezembro de 2011 22:26
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 23:12
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 23:15
RE: Liferay 6.1 startup problem Ubuntu Ravi Kumar Gupta 15 de Dezembro de 2011 01:44
RE: Liferay 6.1 startup problem Ubuntu karthik N 15 de Dezembro de 2011 01:57
RE: Liferay 6.1 startup problem Ubuntu Geeta Raghu Vamsi Kotipalli 15 de Dezembro de 2011 02:47
RE: Liferay 6.1 startup problem Ubuntu karthik N 15 de Dezembro de 2011 20:09
RE: Liferay 6.1 startup problem Ubuntu long zhao 4 de Julho de 2012 08:28
RE: Liferay 6.1 startup problem Ubuntu David H Nebinger 4 de Julho de 2012 12:34
RE: Liferay 6.1 startup problem Ubuntu long zhao 4 de Julho de 2012 16:19
RE: Liferay 6.1 startup problem Ubuntu Granger Guillaume 31 de Julho de 2013 06:02
RE: Liferay 6.1 startup problem Ubuntu Geeta Raghu Vamsi Kotipalli 14 de Dezembro de 2011 22:40
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 23:14
RE: Liferay 6.1 startup problem Ubuntu Walter Christian Guardia Casas 14 de Dezembro de 2011 01:09
RE: Liferay 6.1 startup problem Ubuntu karthik N 14 de Dezembro de 2011 03:17
RE: Liferay 6.1 startup problem Ubuntu Raja Nagendra Kumar 14 de Dezembro de 2011 22:43
karthik N
Liferay 6.1 startup problem Ubuntu
13 de Dezembro de 2011 22:01
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi all,
Im new person to liferay , Im trying to install liferay 6.1 (beta version) in Ubuntu 11.10 server.
But i will not be able to start liferay in ubuntu machine when i run startup.sh file, im getting following things in console

Using CATALINA_BASE: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26
Using CATALINA_HOME: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26
Using CATALINA_TMPDIR: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26/bin/bootstrap.jar

, but im not able to enter into liferay using http://localhost:8080/web/guest/home?


Any help guys?

Thanks & Regards,
Karthik
Juan Gonzalez
RE: Liferay 6.1 startup problem Ubuntu
13 de Dezembro de 2011 23:51
Resposta

Juan Gonzalez

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1984

Data de entrada: 28 de Outubro de 2008

Mensagens recentes

karthik N:
Hi all,
Im new person to liferay , Im trying to install liferay 6.1 (beta version) in Ubuntu 11.10 server.
But i will not be able to start liferay in ubuntu machine when i run startup.sh file, im getting following things in console

Using CATALINA_BASE: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26
Using CATALINA_HOME: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26
Using CATALINA_TMPDIR: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26/bin/bootstrap.jar

, but im not able to enter into liferay using http://localhost:8080/web/guest/home?


Any help guys?

Thanks & Regards,
Karthik


Please post the logs (/usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26/catalina.out)

Have you got permissions of read/write over that folder?
Walter Christian Guardia Casas
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 01:09
Resposta

Walter Christian Guardia Casas

Ranking: Regular Member

Mensagens: 126

Data de entrada: 5 de Maio de 2010

Mensagens recentes

Hi,

If you are using Liferay 6.1 B4 so the liferay bundle use tomcat 7 and JDK 1.6 u20 to run portal, that logs are Liferay 6.0.5, are you sure you run the correct shell?

Regards,
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 03:17
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi,

Using CATALINA_BASE: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22
Using CATALINA_HOME: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22
Using CATALINA_TMPDIR: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/temp
Using JRE_HOME: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20/win
Using CLASSPATH: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/bin/bootstrap.jar:/home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/bin/tomcat-juli.jar

Actually im getting this information when start the startup.sh file?

Any clue?

Thanks.

Regards,
Karthik.
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 03:39
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

hi,
im getting this error in my catalina.out file, even i tried stop run the another application i cannot able to start liferay,

Dec 13, 2011 12:57:53 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Dec 13, 2011 12:57:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 13, 2011 12:57:53 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.BindException: Address already in use <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:386)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:498)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:909)
Milen Dyankov
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 04:05
Resposta

Milen Dyankov

Ranking: Regular Member

Mensagens: 173

Data de entrada: 23 de Setembro de 2009

Mensagens recentes

In your log file I can see 2 things:

1) The port 8080 is used by another application. You may think you have stopped it but it still uses the port. Try to run lsof -i :8080 to see which process uses the port and then stop/kill it.

2) you are using OpenJDK. Not sure if this is a problem with Liferay but I would suggest to switch to Sun's java.
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 21:49
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi Milen,
Thanks for your reply... I have installed sun java, bt still problem persist,
Any idea? when i type java -version in terminal, It shows open JDK only,
How can i make sunjava as default?

Regards,
Karthik
Nagendra Kumar Busam
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 22:26
Resposta

Nagendra Kumar Busam

Ranking: Liferay Master

Mensagens: 637

Data de entrada: 7 de Julho de 2009

Mensagens recentes

Did you try checking the classpath/path environment variables for java
Geeta Raghu Vamsi Kotipalli
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 22:40
Resposta

Geeta Raghu Vamsi Kotipalli

Ranking: Junior Member

Mensagens: 58

Data de entrada: 9 de Novembro de 2011

Mensagens recentes

karthik N:
hi,
im getting this error in my catalina.out file, even i tried stop run the another application i cannot able to start liferay,

Dec 13, 2011 12:57:53 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Dec 13, 2011 12:57:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 13, 2011 12:57:53 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.BindException: Address already in use <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:386)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:498)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:909)



Hi Karthik

Apply this Command and check the process of the 8080 port

ps -aux|grep 8080 (grep can also be done with java,tomcat as well)

After that kill the process apart from the color related process (because color process is a default process)

then try to start the Tomcat

If u still face the same problem try to make the whole tomcat folder conversion with dos2unix and then try again (because some of the files which require the tomcat execution might be in the Windows format which a unix /linux platform cant recognize the files)

Thanks

K.G.R Vamsi
Raja Nagendra Kumar
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 22:43
Resposta

Raja Nagendra Kumar

Ranking: Expert

Mensagens: 484

Data de entrada: 1 de Março de 2006

Mensagens recentes

Check your 8080 port.. is is already in use by some other application..

Try changing the LR tomcat port to some thing else in services.xml file.


Regards
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 23:12
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi,

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/bin"
CATALINA_HOME="/home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22"
TOMCAT_HOME="/home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22"
JRE_HOME="/home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20/win"

this s my environment variable setup in /etc/environment...

IS der anything wrong with this?

Thanks and Regards,
Karthik
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 23:14
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi geeta,
I have checked with my port there is no problem with that, how can i change the tomcat folder dos2unix environment?


Thanks and Regards,
Karthik
karthik N
RE: Liferay 6.1 startup problem Ubuntu
14 de Dezembro de 2011 23:15
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi all,
Im getting this information in my catalina.out file

eval: 1: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20/win/bin/java: not found
eval: 1: /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20/win/bin/java: not found

Any clue guys?



Thanks and Regards,
Karthik
Ravi Kumar Gupta
RE: Liferay 6.1 startup problem Ubuntu
15 de Dezembro de 2011 01:44
Resposta

Ravi Kumar Gupta

Ranking: Liferay Legend

Mensagens: 1219

Data de entrada: 23 de Junho de 2009

Mensagens recentes

Hi.. Please check this directory /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20/win

do you see bin, lib directories there.. if not then you have not set JRE_HOME correctly.. from the first look it seems it is /home/bpauser/Desktop/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/jre1.6.0_20 not with /win at the last..

Please confirm
karthik N
RE: Liferay 6.1 startup problem Ubuntu
15 de Dezembro de 2011 01:57
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi all,
Thanks for all of your reply, solved that problem,
For operating system other then windows we need to Configure environmental variable as JRE_HOME="jre path in our java installation"

Regards,
Karthik
Geeta Raghu Vamsi Kotipalli
RE: Liferay 6.1 startup problem Ubuntu
15 de Dezembro de 2011 02:47
Resposta

Geeta Raghu Vamsi Kotipalli

Ranking: Junior Member

Mensagens: 58

Data de entrada: 9 de Novembro de 2011

Mensagens recentes

karthik N:
Hi all,
Thanks for all of your reply, solved that problem,
For operating system other then windows we need to Configure environmental variable as JRE_HOME="jre path in our java installation"

Regards,
Karthik



Oh cool Man seems Like you are some what a new bee for the Setup of Liferay related to Environmental Changes emoticon
karthik N
RE: Liferay 6.1 startup problem Ubuntu
15 de Dezembro de 2011 20:09
Resposta

karthik N

Ranking: Regular Member

Mensagens: 106

Data de entrada: 30 de Junho de 2011

Mensagens recentes

Hi Geeta,
Thanks, Yes Im newbie to the Ubuntu
long zhao
RE: Liferay 6.1 startup problem Ubuntu
4 de Julho de 2012 08:28
Resposta

long zhao

Ranking: Junior Member

Mensagens: 39

Data de entrada: 29 de Agosto de 2011

Mensagens recentes

Geeta Raghu Vamsi Kotipalli:
karthik N:
Hi all,
Thanks for all of your reply, solved that problem,
For operating system other then windows we need to Configure environmental variable as JRE_HOME="jre path in our java installation"

Regards,
Karthik



Oh cool Man seems Like you are some what a new bee for the Setup of Liferay related to Environmental Changes emoticon



I have the same problem.
What is your mean of "jre path in our java installation"?
I am using the Sun Java installed by myself at /usr/java/jdk1.6.0_27
David H Nebinger
RE: Liferay 6.1 startup problem Ubuntu
4 de Julho de 2012 12:34
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7252

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

so your jre path would be something like /usr/java/jdk1.6.0_27/jre...
long zhao
RE: Liferay 6.1 startup problem Ubuntu
4 de Julho de 2012 16:19
Resposta

long zhao

Ranking: Junior Member

Mensagens: 39

Data de entrada: 29 de Agosto de 2011

Mensagens recentes

David H Nebinger:
so your jre path would be something like /usr/java/jdk1.6.0_27/jre...



That is just what I am using.
But I still have that bug. I am so confused about that.
Granger Guillaume
RE: Liferay 6.1 startup problem Ubuntu
31 de Julho de 2013 06:02
Resposta

Granger Guillaume

Ranking: New Member

Mensagens: 3

Data de entrada: 18 de Maio de 2010

Mensagens recentes

I have the same installation and the same problem...
Have you find why, Liferay don't start?
I have also this Stacktrace :

Exception in thread "main" java.lang.NoClassDefFoundError: Developer
Caused by: java.lang.ClassNotFoundException: Developer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)