Project

General

Profile

Actions

feature request #9023

closed

option to start cdm webapp with hibernate.hbm2ddl.auto = create

Added by Andreas Kohlbecker over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal

Description

in compliance with the existing start parameter cdm.forceSchemaUpdate which can be set as system parameter or ServletContext attribute the new option may be named cdm.forceSchemaCreate


UPDATE:

The new integration test profile can be run by

mvn integration-test -pl cdmlib-remote-webapp -Pdb-create
Actions #1

Updated by Andreas Kohlbecker over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #2

Updated by Andreas Kohlbecker over 2 years ago

  • Description updated (diff)
  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100
Actions #3

Updated by Andreas Kohlbecker over 2 years ago

  • Status changed from Closed to Resolved
  • % Done changed from 100 to 50
Actions #4

Updated by Andreas Kohlbecker over 2 years ago

running the integration tests from the parent project casues probelms:

mvn integration-test -pl cdmlib-remote-webapp -Pdb-create
Caused by: java.io.FileNotFoundException: class path resource [eu/etaxonomy/cdm/remote.xml] cannot be opened because it does not exist
    at org.springframework.core.io.ClassPathResource.getInputStream (ClassPathResource.java:172)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:330)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:304)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:181)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:217)
    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource (DefaultBeanDefinitionDocumentReader.java:223)

Actions #5

Updated by Andreas Kohlbecker over 2 years ago

prior running

mvn package -DskipTests

is needed

Actions #6

Updated by Andreas Kohlbecker over 2 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

this works now as expected

Actions

Also available in: Atom PDF