Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
martin chenier
Tomcat start but not liferay portal
3. März 2013 07:44
Antwort

martin chenier

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 3. März 2013

Neue Beiträge

I, I'm new to liferay.

Just installed Liferay on a Ubuntu 12.04 server. I can start tomcat and get the web page "it's work" in Firefox, but Liferay portal doesn't start. That's what i get when running catalina.sh. Any clue of what is wrong?

Thanks.

Martin



martin@libremd:/portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin$ ./catalina.sh run
Using CATALINA_BASE: /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27
Using CATALINA_HOME: /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27
Using CATALINA_TMPDIR: /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp
Using JRE_HOME: /usr
Using CLASSPATH: /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin/bootstrap.jar:/portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin/tomcat-juli.jar
Mar 03, 2013 3:23:28 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/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 03, 2013 3:23:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 03, 2013 3:23:29 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:393)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:956)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at java.net.ServerSocket.<init>(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:380)
... 17 more

Mar 03, 2013 3:23:29 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:958)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.BindException: Address already in use <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:956)
... 13 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at java.net.ServerSocket.<init>(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:380)
... 17 more

Mar 03, 2013 3:23:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 03, 2013 3:23:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3581 ms
Mar 03, 2013 3:23:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 03, 2013 3:23:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
Mar 03, 2013 3:23:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/conf/Catalina/localhost/ROOT.xml
Loading jar:file:/portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Mar 03, 2013 3:23:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
15:24:08,749 INFO [pool-2-thread-1][DialectDetector:71] Determine dialect for HSQL Database Engine 2
15:24:08,786 WARN [pool-2-thread-1][DialectDetector:86] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal-ext.properties.
15:24:09,078 INFO [pool-2-thread-1][DialectDetector:136] Found dialect org.hibernate.dialect.HSQLDialect
Starting Liferay Portal Community Edition 6.1.1 CE GA2 (Paton / Build 6101 / July 31, 2012)
15:25:47,471 INFO [pool-2-thread-1][BaseDB:452] Database supports case sensitive queries
15:25:49,698 INFO [pool-2-thread-1][ServerDetector:154] Server supports hot deploy
15:25:49,720 INFO [pool-2-thread-1][PluginPackageUtil:1030] Reading plugin package for the root context
15:26:00,293 INFO [pool-2-thread-1][AutoDeployDir:106] Auto deploy scanner started for /portal/liferay-portal-6.1.1-ce-ga2/deploy
Mar 03, 2013 3:26:15 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'Remoting Servlet'
Mar 03, 2013 3:26:28 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/welcome-theme
Mar 03, 2013 3:26:28 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/marketplace-portlet
Mar 03, 2013 3:26:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /portal/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/resources-importer-web
Mar 03, 2013 3:26:29 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 03, 2013 3:26:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 179940 ms
Mar 03, 2013 3:26:29 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)
at org.apache.catalina.startup.Catalina.await(Catalina.java:757)
at org.apache.catalina.startup.Catalina.start(Catalina.java:703)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)

Mar 03, 2013 3:26:29 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Mar 03, 2013 3:26:29 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Mar 03, 2013 3:26:29 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Mar 03, 2013 3:26:30 PM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'Remoting Servlet'
15:26:30,137 INFO [pool-2-thread-1][PluginPackageUtil:1033] Reading plugin package for resources-importer-web
15:26:31,462 INFO [pool-2-thread-1][PluginPackageUtil:1033] Reading plugin package for marketplace-portlet
15:26:31,518 INFO [pool-2-thread-1][HotDeployEvent:109] Plugin welcome-theme requires resources-importer-web
15:26:31,519 INFO [pool-2-thread-1][PluginPackageUtil:1033] Reading plugin package for welcome-theme
Mar 03, 2013 3:26:33 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 03, 2013 3:26:34 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [org.python.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Mar 03, 2013 3:26:34 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Mar 03, 2013 3:26:34 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Mar 03, 2013 3:26:34 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Mar 03, 2013 3:26:34 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
dave ch
RE: Tomcat start but not liferay portal
3. März 2013 09:48
Antwort

dave ch

Rang: Regular Member

Nachrichten: 164

Eintrittsdatum: 6. Februar 2012

Neue Beiträge

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib


Hi Martin,

These links may help you: link1 , link2 , link3

Regards,
Dave
Hitoshi Ozawa
RE: Tomcat start but not liferay portal
3. März 2013 13:16
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7954

Eintrittsdatum: 23. März 2010

Neue Beiträge

Probably because you didn't following all of Liferay's installation steps outlined in Liferay's online documentation:
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen11-installing-liferay-on-tomcat-7-0

Anyways, it'll be much easier if you just download the tomcat liferay bundle.
martin chenier
RE: Tomcat start but not liferay portal
3. März 2013 14:56
Antwort

martin chenier

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 3. März 2013

Neue Beiträge

Thank you Hitoshi and Dave. I was able to solved my problem with your answers and the following ressources: here what I've done, maybe it could help newbie like me:

1. Installed Ubuntu server 12.04 with LAMP, then sudo apt-get update and sudo apt-get upgrade
2. Installed Ubuntu minimal desktop with this command : sudo apt-get install --no-install-recommends ubuntu-desktop
3. Installed Firefox: sudo apt-get install firefox
4. Installed Oracle Java 7 with this reference
a. sudo add-apt-repository ppa:webupd8team/java
b. sudo apt-get update
c. sudo apt-get install oracle-java7-installer
5. Then, automatically set up the Java 7 environment variables with this command: sudo apt-get install oracle-java7-set-default
6. Follow this reference
6. Download Liferay - Tomcat bundle
7. Unzip the file
8. Move the file to /opt
9. Navigate to: /opt/liferay-{version}/tomcat-{version}/bin and hit the command ./startup.sh
Hitoshi Ozawa
RE: Tomcat start but not liferay portal
3. März 2013 16:09
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7954

Eintrittsdatum: 23. März 2010

Neue Beiträge

Shouldn't have installed Oracle JDK 7. Liferay 6.1.x currently only supports JDK 5 and JDK 6. Some functionalities doesn't work and have been reported several times here in the forum.

The upcoming Liferay 6.2 is supposed to JDK 7. Have to wait until then.
martin chenier
RE: Tomcat start but not liferay portal
3. März 2013 16:51
Antwort

martin chenier

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 3. März 2013

Neue Beiträge

Ok thanks, will correct that.
Akash Jaisawal
RE: Tomcat start but not liferay portal
3. März 2014 04:05
Antwort

Akash Jaisawal

Rang: Junior Member

Nachrichten: 75

Eintrittsdatum: 3. März 2012

Neue Beiträge

martin chenier:
Thank you Hitoshi and Dave. I was able to solved my problem with your answers and the following ressources: here what I've done, maybe it could help newbie like me:

1. Installed Ubuntu server 12.04 with LAMP, then sudo apt-get update and sudo apt-get upgrade
2. Installed Ubuntu minimal desktop with this command : sudo apt-get install --no-install-recommends ubuntu-desktop
3. Installed Firefox: sudo apt-get install firefox
4. Installed Oracle Java 7 with this reference
a. sudo add-apt-repository ppa:webupd8team/java
b. sudo apt-get update
c. sudo apt-get install oracle-java7-installer
5. Then, automatically set up the Java 7 environment variables with this command: sudo apt-get install oracle-java7-set-default
6. Follow this reference
6. Download Liferay - Tomcat bundle
7. Unzip the file
8. Move the file to /opt
9. Navigate to: /opt/liferay-{version}/tomcat-{version}/bin and hit the command ./startup.sh



Hello martin
when i follow your steps, i got this
akash@akash-desktop:~/workspace-itl/server/liferay-portal/tomcat/bin$ ./startup.sh
Using CATALINA_BASE: /home/akash/workspace-itl/server/liferay-portal/tomcat
Using CATALINA_HOME: /home/akash/workspace-itl/server/liferay-portal/tomcat
Using CATALINA_TMPDIR: /home/akash/workspace-itl/server/liferay-portal/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /home/akash/workspace-itl/server/liferay-portal/tomcat/bin/bootstrap.jar:/home/akash/workspace-itl/server/liferay-portal/tomcat/bin/tomcat-juli.jar