Fórum

Correct installation for Liferay 6.1 CE and Tomcat 7

Ju lien, modificado 12 Anos atrás.

Correct installation for Liferay 6.1 CE and Tomcat 7

New Member Postagens: 15 Data de Entrada: 19/03/12 Postagens Recentes
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 :
<context path="" docbase="D:\dev\liferay_ce_war" reloadable="true" crosscontext="true">
... 
</context>


In the portal-ext.properties, I have :
resource.repositories.root=D:/dev/liferay/config
jdbc.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
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Correct installation for Liferay 6.1 CE and Tomcat 7

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
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 ., modificado 12 Anos atrás.

RE: Correct installation for Liferay 6.1 CE and Tomcat 7

New Member Postagens: 15 Data de Entrada: 19/03/12 Postagens Recentes
For the database, everything is good, I use a Resource MySQL defined in the context

Here's the logs


19 avr. 2012 13:43:42 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
19 avr. 2012 13:43:42 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
19 avr. 2012 13:43:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6309 ms
19 avr. 2012 13:43:42 org.apache.catalina.core.StandardService startInternal
INFO: D├®marrage du service Catalina
19 avr. 2012 13:43:42 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
19 avr. 2012 13:43:42 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: D├®ploiement du descripteur de configuration D:\dev\apache-tomcat-7.0.26\c
onf\Catalina\localhost\ROOT.xml
Loading jar:file:/D:/dev/liferay_ce_war/WEB-INF/lib/portal-impl.jar!/system.prop
erties
13:44:00,613 INFO  [EasyConf:122] Refreshed the configuration of all components
13:44:03,799 INFO  [ConfigurationLoader:56] Properties for jar:file:/D:/dev/life
ray_ce_war/WEB-INF/lib/portal-impl.jar!/portal loaded from [file:/D:/dev/liferay
_ce_war/WEB-INF/classes/portal-ext.properties, jar:file:/D:/dev/liferay_ce_war/W
EB-INF/lib/portal-impl.jar!/portal.properties]
Loading jar:file:/D:/dev/liferay_ce_war/WEB-INF/lib/portal-impl.jar!/portal.prop
erties
Loading file:/D:/dev/liferay_ce_war/WEB-INF/classes/portal-ext.properties
13:44:37,935 INFO  [DialectDetector:80] Determine dialect for MySQL 5
13:44:38,627 INFO  [DialectDetector:145] Found dialect org.hibernate.dialect.MyS
QLDialect
Starting Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January
 6, 2012)
13:45:59,732 INFO  [BaseDB:409] Database does not support case sensitive queries

13:46:03,328 INFO  [PluginPackageUtil:1096] Reading plugin package for the root
context
13:47:16,127 INFO  [AutoDeployDir:105] Auto deploy scanner started for D:\dev\li
feray\config\deploy
13:47:29,178 INFO  [AutoDeployDir:167] Processing testPortlet-1.0.1-SNAPSHOT.war

13:47:30,545 INFO  [PortletAutoDeployListener:71] Copying portlets for D:\dev\li
feray\config\deploy\testPortlet-1.0.1-SNAPSHOT.war
  Expanding: D:\dev\liferay\config\deploy\testPortlet-1.0.1-SNAPSHOT.war into D:
\dev\apache-tomcat-7.0.26\temp\20120419134735363
  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\c
lasses
  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\c
lasses
  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\META-INF
  Copying 1 file to D:\dev\apache-tomcat-7.0.26\temp\20120419134735363\WEB-INF\j
sp
  Warning: META-INF\MANIFEST.MF modified in the future.
  Warning: META-INF\maven\com.atos.liferay.test\testPortlet\pom.properties modif
ied in the future.
  Warning: META-INF\maven\com.atos.liferay.test\testPortlet\pom.xml modified in
the future.
  Warning: WEB-INF\liferay-plugin-package.properties modified in the future.
  Warning: view.jsp modified in the future.
  Warning: META-INF\maven modified in the future.
  Warning: META-INF\maven\com.atos.liferay.test modified in the future.
  Warning: META-INF\maven\com.atos.liferay.test\testPortlet modified in the futu
re.
  Copying 25 files to D:\dev\apache-tomcat-7.0.26\webapps\testPortlet-1.0.1-SNAP
SHOT
  Copying 1 file to D:\dev\apache-tomcat-7.0.26\webapps\testPortlet-1.0.1-SNAPSH
OT
  Deleting directory D:\dev\apache-tomcat-7.0.26\temp\20120419134735363
13:47:53,553 INFO  [PortletAutoDeployListener:81] Portlets for D:\dev\liferay\co
nfig\deploy\testPortlet-1.0.1-SNAPSHOT.war copied successfully. Deployment will
start in a few seconds.
19 avr. 2012 13:47:57 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\host-manag
er de l'application web
19 avr. 2012 13:47:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\manager de
 l'application web
19 avr. 2012 13:47:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\pwet-1.0-S
NAPSHOT de l'application web
19 avr. 2012 13:48:01 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\test3-port
let de l'application web
19 avr. 2012 13:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\test4-port
let de l'application web
19 avr. 2012 13:48:06 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\testPortle
t-1.0-SNAPSHOT de l'application web
19 avr. 2012 13:48:07 org.apache.catalina.startup.HostConfig deployDirectory
INFO: D├®ploiement du r├®pertoire D:\dev\apache-tomcat-7.0.26\webapps\testPortle
t-1.0.1-SNAPSHOT de l'application web
19 avr. 2012 13:48:09 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
19 avr. 2012 13:48:09 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
19 avr. 2012 13:48:09 org.apache.catalina.startup.Catalina start
INFO: Server startup in 266839 ms
thumbnail
Sampsa Sohlman, modificado 12 Anos atrás.

RE: Correct installation for Liferay 6.1 CE and Tomcat 7

Regular Member Postagens: 230 Data de Entrada: 27/09/07 Postagens Recentes
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

	setup.wizard.enabled=false



to your portal-ext.properties file, then wizard is not visible.
Julien ., modificado 12 Anos atrás.

RE: Correct installation for Liferay 6.1 CE and Tomcat 7

New Member Postagens: 15 Data de Entrada: 19/03/12 Postagens Recentes
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

	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 ?