Combination View Flat View Tree View
Threads [ Previous | Next ]
Julien Ripault
Correct installation for Liferay 6.1 CE and Tomcat 7
April 19, 2012 6:32 AM
Answer

Julien Ripault

Rank: New Member

Posts: 15

Join Date: March 19, 2012

Recent Posts

Hi,

I have some problems to run correctly Liferay. I have a Tomcat 7 installed and I have to install Liferay outside of Tomcat. so I did what the documentation said :
I modified apache-tomcat-7.0.26\conf\Catalina\localhost\ROOT.xml :
1<Context path="" docBase="D:\dev\liferay_ce_war" reloadable="true" crossContext="true">
2...
3</Context>


In the portal-ext.properties, I have :
1resource.repositories.root=D:/dev/liferay/config
2jdbc.default.jndi.name=jdbc/LiferayPool

with D:\dev\liferay\config the directory containing /data, /deploy and /logs

When I run tomcat, Liferay is loaded but everytime, it launches the setup wizard even though the file portal-setup-wizard.properties is present in D:\dev\liferay\config

Moreover, If i do the setup and try to hot deploy Portlets, the deployment goes well and the war is exploded in the webapps dir of Tomcat but portlets are not displayed in the Add list. I'm compelled to restart Liferay to see them.

There must be something I missed for the configuration.

Thanks in advance for any suggestions or information you can provide

Julien
Ravi Kumar Gupta
RE: Correct installation for Liferay 6.1 CE and Tomcat 7
April 19, 2012 6:41 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

Liferay will load setup only for first time. But if it can not find database then it will try to recreate that.. do you see any errors in logs.. or can you please share the log from startup.. ?
Julien Ripault
RE: Correct installation for Liferay 6.1 CE and Tomcat 7
April 19, 2012 6:51 AM
Answer

Julien Ripault

Rank: New Member

Posts: 15

Join Date: March 19, 2012

Recent Posts

For the database, everything is good, I use a Resource MySQL defined in the context

Here's the logs

 1
 219 avr. 2012 13:43:42 org.apache.coyote.AbstractProtocol init
 3INFO: Initializing ProtocolHandler ["http-bio-8080"]
 419 avr. 2012 13:43:42 org.apache.coyote.AbstractProtocol init
 5INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
 619 avr. 2012 13:43:42 org.apache.catalina.startup.Catalina load
 7INFO: Initialization processed in 6309 ms
 819 avr. 2012 13:43:42 org.apache.catalina.core.StandardService startInternal
 9INFO: D├®marrage du service Catalina
1019 avr. 2012 13:43:42 org.apache.catalina.core.StandardEngine startInternal
11INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
1219 avr. 2012 13:43:42 org.apache.catalina.startup.HostConfig deployDescriptor
13INFO: D├®ploiement du descripteur de configuration D:\dev\apache-tomcat-7.0.26\c
14onf\Catalina\localhost\ROOT.xml
15Loading jar:file:/D:/dev/liferay_ce_war/WEB-INF/lib/portal-impl.jar!/system.prop
16erties
1713:44:00,613 INFO  [EasyConf:122] Refreshed the configuration of all components
1813:44:03,799 INFO  [ConfigurationLoader:56] Properties for jar:file:/D:/dev/life
19ray_ce_war/WEB-INF/lib/portal-impl.jar!/portal loaded from [file:/D:/dev/liferay
20_ce_war/WEB-INF/classes/portal-ext.properties, jar:file:/D:/dev/liferay_ce_war/W
21EB-INF/lib/portal-impl.jar!/portal.properties]
22Loading jar:file:/D:/dev/liferay_ce_war/WEB-INF/lib/portal-impl.jar!/portal.prop
23erties
24Loading file:/D:/dev/liferay_ce_war/WEB-INF/classes/portal-ext.properties
2513:44:37,935 INFO  [DialectDetector:80] Determine dialect for MySQL 5
2613:44:38,627 INFO  [DialectDetector:145] Found dialect org.hibernate.dialect.MyS
27QLDialect
28Starting Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January
29 6, 2012)
3013:45:59,732 INFO  [BaseDB:409] Database does not support case sensitive queries
31
3213:46:03,328 INFO  [PluginPackageUtil:1096] Reading plugin package for the root
33context
3413:47:16,127 INFO  [AutoDeployDir:105] Auto deploy scanner started for D:\dev\li
35feray\config\deploy
3613:47:29,178 INFO  [AutoDeployDir:167] Processing testPortlet-1.0.1-SNAPSHOT.war
37
3813:47:30,545 INFO  [PortletAutoDeployListener:71] Copying portlets for D:\dev\li
39feray\config\deploy\testPortlet-1.0.1-SNAPSHOT.war
40  Expanding: D:\dev\liferay\config\deploy\testPortlet-1.0.1-SNAPSHOT.war into D:
41\dev\apache-tomcat-7.0.26\temp\20120419134735363
42  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\c
43lasses
44  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\c
45lasses
46  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\META-INF
47  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\j
48sp
49  Warning: META-INF\MANIFEST.MF modified in the future.
50  Warning: META-INF\maven\com.atos.liferay.test\testPortlet\pom.properties modif
51ied in the future.
52  Warning: META-INF\maven\com.atos.liferay.test\testPortlet\pom.xml modified in
53the future.
54  Warning: WEB-INF\liferay-plugin-package.properties modified in the future.
55  Warning: view.jsp modified in the future.
56  Warning: META-INF\maven modified in the future.
57  Warning: META-INF\maven\com.atos.liferay.test modified in the future.
58  Warning: META-INF\maven\com.atos.liferay.test\testPortlet modified in the futu
59re.
60  Copying 25 files to D:\dev\apache-tomcat-7.0.26\webapps\testPortlet-1.0.1-SNAP
61SHOT
62  Copying 1 file to D:\dev\apache-tomcat-7.0.26\webapps\testPortlet-1.0.1-SNAPSH
63OT
64  Deleting directory D:\dev\apache-tomcat-7.0.26\temp\20120419134735363
6513:47:53,553 INFO  [PortletAutoDeployListener:81] Portlets for D:\dev\liferay\co
66nfig\deploy\testPortlet-1.0.1-SNAPSHOT.war copied successfully. Deployment will
67start in a few seconds.
6819 avr. 2012 13:47:57 org.apache.catalina.startup.HostConfig deployDirectory
69INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\host-manag
70er de l'application web
7119 avr. 2012 13:47:58 org.apache.catalina.startup.HostConfig deployDirectory
72INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\manager de
73 l'application web
7419 avr. 2012 13:47:58 org.apache.catalina.startup.HostConfig deployDirectory
75INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\pwet-1.0-S
76NAPSHOT de l'application web
7719 avr. 2012 13:48:01 org.apache.catalina.startup.HostConfig deployDirectory
78INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\test3-port
79let de l'application web
8019 avr. 2012 13:48:04 org.apache.catalina.startup.HostConfig deployDirectory
81INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\test4-port
82let de l'application web
8319 avr. 2012 13:48:06 org.apache.catalina.startup.HostConfig deployDirectory
84INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\testPortle
85t-1.0-SNAPSHOT de l'application web
8619 avr. 2012 13:48:07 org.apache.catalina.startup.HostConfig deployDirectory
87INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\testPortle
88t-1.0.1-SNAPSHOT de l'application web
8919 avr. 2012 13:48:09 org.apache.coyote.AbstractProtocol start
90INFO: Starting ProtocolHandler ["http-bio-8080"]
9119 avr. 2012 13:48:09 org.apache.coyote.AbstractProtocol start
92INFO: Starting ProtocolHandler ["ajp-bio-8009"]
9319 avr. 2012 13:48:09 org.apache.catalina.startup.Catalina start
94INFO: Server startup in 266839 ms
Sampsa Sohlman
RE: Correct installation for Liferay 6.1 CE and Tomcat 7
April 19, 2012 6:47 AM
Answer

Sampsa Sohlman

LIFERAY STAFF

Rank: Regular Member

Posts: 225

Join Date: September 27, 2007

Recent Posts

When I run tomcat, Liferay is loaded but everytime, it launches the setup wizard even though the file portal-setup-wizard.properties is present in D:\dev\liferay\config


The setup up wizard is not able to write it's property file to file system. So that might be reason to why it is always visible.

Put

1    setup.wizard.enabled=false



to your portal-ext.properties file, then wizard is not visible.
Julien Ripault
RE: Correct installation for Liferay 6.1 CE and Tomcat 7
April 19, 2012 7:02 AM
Answer

Julien Ripault

Rank: New Member

Posts: 15

Join Date: March 19, 2012

Recent Posts

Sampsa Sohlman:
When I run tomcat, Liferay is loaded but everytime, it launches the setup wizard even though the file portal-setup-wizard.properties is present in D:\dev\liferay\config


The setup up wizard is not able to write it's property file to file system. So that might be reason to why it is always visible.

Put

1    setup.wizard.enabled=false



to your portal-ext.properties file, then wizard is not visible.


So, it means that D:\dev\liferay\config is not accessible for Liferay. Hence I should move this config directory in the liferay_home dir ?