You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bei der Arbeit mit dem Plugin gibt es ein Problem, wenn OpenCms mit einer serverless hsqldb betrieben wird. Mit einer MySQL gibt es keine Probleme.
Installation des OpenCms erfolgt zuvor mittels setup-scripts.
English Version:
Hello,
I encountered an issue while working with a serveless hsqldb and using this plugin for synchronisation.
There is no problem if I use a MySQL DB.
OpenCms installation is done via setup-script beforehand.
Fehlermeldung / Error message (Maven):
--------------------
The following critical error occurred:
Critical error during OpenCms initialization: Unable to initialize connection pool "default". Is the database up and running?
Giving up, unable to start OpenCms.
--------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.463 s
[INFO] Finished at: 2017-12-13T16:04:19+01:00
[INFO] Final Memory: 23M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.comundus.maven:vfs-maven-plugin:10.5.2:sync (sync_resources) on project basesetup: Undetermined error executing com.comundus.opencms.VfsSync: Critical error during OpenCms initialization: Unable to initialize connection pool "default". Is the database up and running?: org.hsqldb.jdbcDriver -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
## Configuration of the driver manager*#################################################################################driver.vfs=db
driver.project=db
driver.user=db
driver.history=db
driver.subscription=db
## Declaration of database pools#################################################################################db.pools=default
## Configuration of the default database pool################################################################################## name of the JDBC driver db.pool.default.jdbcDriver=org.hsqldb.jdbcDriver
# URL of the JDBC driverdb.pool.default.jdbcUrl=jdbc:hsqldb:file:C:\workspaces\basesetup\hsqldb\opencms;shutdown\=false# optional parameters for the URL of the JDBC driverdb.pool.default.jdbcUrl.params=?characterEncoding\=UTF-8
# user name to connect to the databasedb.pool.default.user=sa
# password to connect to the databasedb.pool.default.password=
# the URL to make the JDBC DriverManager return connections from the DBCP pooldb.pool.default.poolUrl=opencms:default
# the maximum number of objects that can be borrowed from the pooldb.pool.default.maxActive=50
# the maximum amount of time before throwing an exception when the pool is exhausteddb.pool.default.maxWait=2000
# the minimum number of objects that will kept connecteddb.pool.default.minIdle=5
# the maximum number of objects that can sit idled in the pooldb.pool.default.maxIdle=20
# action to take when the pool is exhausted {grow|block|fail}db.pool.default.whenExhaustedAction=grow
# connections will be validated before they are borrowed from the pooldb.pool.default.testOnBorrow=false
# connections will be validated by evictor threaddb.pool.default.testWhileIdle=true
# number of milliseconds to sleep between runs of the evictor thread# -1 means no idle connection evictor thread will be rundb.pool.default.timeBetweenEvictionRuns=3600000
# number of connections tested in a run of the evictor threaddb.pool.default.numTestsPerEvictionRun=3
# minimum amount of time in milliseconds a connection may be idle in the pool before it is eligable for evictiondb.pool.default.minEvictableIdleTime=1800000
# the query to validate connections#db.pool.default.testQuery=SELECT STRUCTURE_ID FROM CMS_OFFLINE_STRUCTURE WHERE RESOURCE_PATH = '/'db.pool.default.testQuery=
# number of attempts to connect to the database during startup (default = 10)db.pool.default.connects=10
# sleep time between two attempts to connect to the database during startup in ms (default = 5000)db.pool.default.wait=5000
# The pool size for the Entity Manger (only required for JPA)db.pool.default.entityMangerPoolSize=250
## Configuration for statement pooling#################################################################################db.statements.default.pooling=true
db.statements.default.maxActive=200
db.statements.default.maxWait=2000
db.statements.default.maxIdle=100
db.statements.default.whenExhaustedAction=grow
## Configuration of the database driver manager#################################################################################db.name=basesetup
db.vfs.driver=org.opencms.db.hsqldb.CmsVfsDriver
db.vfs.pool=opencms:default
db.vfs.sqlmanager=org.opencms.db.hsqldb.CmsSqlManager
db.project.driver=org.opencms.db.hsqldb.CmsProjectDriver
db.project.pool=opencms:default
db.project.sqlmanager=org.opencms.db.hsqldb.CmsSqlManager
db.user.driver=org.opencms.db.hsqldb.CmsUserDriver
db.user.pool=opencms:default
db.user.sqlmanager=org.opencms.db.hsqldb.CmsSqlManager
db.history.driver=org.opencms.db.hsqldb.CmsHistoryDriver
db.history.pool=opencms:default
db.history.sqlmanager=org.opencms.db.hsqldb.CmsSqlManager
db.subscription.driver=org.opencms.db.hsqldb.CmsSubscriptionDriver
db.subscription.pool=opencms:default
db.subscription.sqlmanager=org.opencms.db.hsqldb.CmsSqlManager
## Ethernet address used for UUID generation# Server name used for various messages#################################################################################server.ethernet.address=73:f5:12:57:85:b0
server.name=OpenCmsServer
## Enable/Disable OpenCms Setup Wizard# The wizard sets the flag to false after the setup.# To use the wizard again, reset it manually to true.# By setting no value, wizard can always be used.#################################################################################wizard.enabled=false
## Enable/Disable exception thrown during servlet initialization.# If disabled there is no attempt to reinitialize the servlet, so the servlet# container has to be restarted, as required by some servlet containers that# does not like servlets throwing exceptions during initialization.# valid values are true, false and auto. default is auto#################################################################################servlet.exception.enabled=auto
The text was updated successfully, but these errors were encountered:
RaphaelLiskor
changed the title
Syncronisation mit hsqldb fehlerhaft / Sync with hsqldb fails
Synchronisation mit hsqldb fehlerhaft / Sync with hsqldb fails
Dec 13, 2017
Hallo Raphael,
wir haben das Plugin nie mit der hsqldb getestet. Wenn Du die passenden SQL-Skripte hast (kommen mit dem Standardinstallationswizard mit), solltest Du in der Lage sein, das komplette Projekt mit dem Plugin zu bauen.
Dazu brauchst Du auf jeden Fall auch das opencms-basic-Projekt.
Dort ist dann wichtig, die richtige Datenbankverbindung anzugeben. In der Datei https://github.com/comundus/opencms-basic/blob/master/parent/pom.xml gibt es ein Profil für mysql. An diesem kannst Du Dich orientieren und ein eigenes Profil für hsql anlegen.
Nicht vergessen, die Dependency für den Datenbanktreiber in der POM anzugeben.
Solltest Du eine laufähige Version hinbekommen, ist ein Pull request von Dir herzlich willkommen.
Viele Grüße und frohe Weihnachten
veggie
Hallo,
bei der Arbeit mit dem Plugin gibt es ein Problem, wenn OpenCms mit einer serverless hsqldb betrieben wird. Mit einer MySQL gibt es keine Probleme.
Installation des OpenCms erfolgt zuvor mittels setup-scripts.
English Version:
Hello,
I encountered an issue while working with a serveless hsqldb and using this plugin for synchronisation.
There is no problem if I use a MySQL DB.
OpenCms installation is done via setup-script beforehand.
Fehlermeldung / Error message (Maven):
Genutzte Konfiguration / Configuration used:
setup.properties
opencms.properties
pom.xml (Auszug / Excerpt)
The text was updated successfully, but these errors were encountered: