Index: src-setup/org/opencms/setup/CmsSetupBean.java =================================================================== RCS file: /usr/local/cvs/opencms/src-setup/org/opencms/setup/CmsSetupBean.java,v retrieving revision 1.13 diff -u -r1.13 CmsSetupBean.java --- src-setup/org/opencms/setup/CmsSetupBean.java 18 Jan 2010 10:02:59 -0000 1.13 +++ src-setup/org/opencms/setup/CmsSetupBean.java 24 Aug 2010 09:52:45 -0000 @@ -1909,6 +1909,11 @@ // initialize the database name with the app name if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(request.getContextPath())) { dbName = request.getContextPath().substring(1); + // transform Maven default finalName "${artifactId}-${version}.war" + // e.g.: "opencms-demo-7.5.2" -> "opencms_demo_7_5_2" + // reason: e.g.: MySql cannot have '-', '.' in Database-Name. + dbName = dbName.replace('-', '_'); + dbName = dbName.replace('.', '_'); } if (provider.equals(ORACLE_PROVIDER) || provider.equals(POSTGRESQL_PROVIDER)