Foren

portal-ext.properties erroné?

Sabrine rainbow, geändert vor 11 Jahren.

portal-ext.properties erroné?

New Member Beiträge: 7 Beitrittsdatum: 10.05.12 Neueste Beiträge
Bonjour ,
je voudrais configurer liferay à utiliser ma base de données mysql nommée lportal.emoticon
J'ai créé bien évidemment le portal-ext.properties dans le chemin suivant:
C:\_liferay\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\ROOT\WEB-INF\classes

et voici le code que j'y ai mis (après avoir suivi les étapes stipulée ici :http://www.liferay.com/community/wiki/-/wiki/Main/Database+Portal+Properties
Mais ca ne marche pas , la page de démarrage de liferay ne s'affiche pas sur eclipse et quand je vide mon fichier portal-ext.properties ca marche puisqu'il utilise la bd par défaut hsql;
Est ce que mon fichier portal-ext.properties n'est pas correct?
Merci d'avance

##Portal-ext.properties:

## JDBC
##

#
# Set the JNDI name to lookup the JDBC data source. If none is set,
# then the portal will attempt to create the JDBC data source based on the
# properties prefixed with "jdbc.default.".
#
jdbc.default.jndi.name=jdbc/LiferayPool

#
# Set the properties used to create the JDBC data source. These properties
# will only be read if the property "jdbc.default.jndi.name" is not set.
#
# The default settings are configured for an in-memory database called
# Hypersonic that is not recommended for production use. Please change the
# properties to use another database.
#
# Add dynamic-data-source-spring.xml to the property "spring.configs" to
# configure the portal to use one database cluster for read calls and
# another database cluster for write calls. The convention is to create a
# set of properties prefixed with "jdbc.read." to handle read calls and
# another set of properties prefixed with "jdbc.write." to handle write
# calls. These data sources can also be created via JNDI by setting the
# properties "jdbc.read.jndi.name" and "jdbc.write.jndi.name". Note that
# these settings, though separate, are a copy of the default settings with
# the newly overridden values.
#

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=
jdbc.default.password=

##
## Database
##

#
# Specify any database vendor specific settings.
#

#
# MySQL
#

#
# Set the MySQL engine type. InnoDB is the recommended engine because it
# provides transactional integrity.
#
database.mysql.engine=InnoDB
virginie joussot, geändert vor 11 Jahren.

RE: portal-ext.properties erroné?

Junior Member Beiträge: 78 Beitrittsdatum: 14.03.12 Neueste Beiträge
bonjour,
qu'avez vous dans les logs ?
Avez vous les drivers mysql sur le serveur ?
Le serveur MySQL est installé sur la même machine que Liferay ?
Cdlt,
Sabrine rainbow, geändert vor 11 Jahren.

RE: portal-ext.properties erroné?

New Member Beiträge: 7 Beitrittsdatum: 10.05.12 Neueste Beiträge
Bonjour Virginie ,
Merci pour votre réponse.
Le problème est maintenant réglé , il fallait juste omettre la ligne :jdbc.default.jndi.name=jdbc/LiferayPool du fichier portal-ext.properties et mettre le bon username et le bon password!
bonne fin de journée !! emoticon
thumbnail
Pascal SIMON, geändert vor 11 Jahren.

RE: portal-ext.properties erroné?

Junior Member Beiträge: 85 Beitrittsdatum: 18.02.09 Neueste Beiträge
Bonjour Sabrine,

Il faut que tu choisisses si tu utilises une datasource ou non..

pour utiliser une datasource :

jdbc.default.jndi.name=jdbc/LiferayPool

Si tu veux utuiliser mysql mais sans passer par la datasource :

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=
jdbc.default.password=

Dans ton tichier portal-ext.properties, tu as choisi les 2 en même temps. Vérifie au début des logs de démarrage que ton fichier portal-ext.properties est bien pris compte et que tu as un message du type "determine dialect for mysql...".

Bon courage,

Pascal
Sabrine rainbow, geändert vor 11 Jahren.

RE: portal-ext.properties erroné?

New Member Beiträge: 7 Beitrittsdatum: 10.05.12 Neueste Beiträge
Bonjour Pascal,
Merci pour ta réponse, elle a été d'une grande utilité!! en effet, en supprimant la ligne jdbc.default.jndi.name=jdbc/LiferayPool de mon fichier "portal-ext.properties" et en renseignant les champs username et password ca a marché!!
Merci infiniment emoticon!!!
vellodrom vellodrom, geändert vor 11 Jahren.

RE: portal-ext.properties erroné?

New Member Beiträge: 3 Beitrittsdatum: 26.02.10 Neueste Beiträge
salut
tu peux me joindre sur vellodrom@gmail.com STP

A+