Project

General

Profile

Actions

bug #6764

open

If no datasource is defined jetty exits without error message on console

Added by Andreas Müller over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
New
Category:
cdmserver
Target version:
Start date:
06/28/2017
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:

Description

I started jetty from eclipse.

After

2017-06-28 18:19:40.841:INFO:oejshC.ROOT:main: Initializing Spring root WebApplicationContext

it stopped without giving any warnings or errors on the console.
Only in the logfile I found the the missing datasource was the reason.

This should always be shown on the console, too.


original message from chat:

.... im log stand dann irgendwo

18:08:32,111 ERROR AbstractWebApplicationConfigurer:101 - property {cdm.datasource} not found.
18:08:32,111 ERROR AbstractWebApplicationConfigurer:102 - --> This property can be set in three optional ways:
18:08:32,111 ERROR AbstractWebApplicationConfigurer:103 - -->       1. as attribute to the ServletContext
18:08:32,111 ERROR AbstractWebApplicationConfigurer:104 - -->       2. as system property e.g. -Dcdm.datasource
18:08:32,111 ERROR AbstractWebApplicationConfigurer:105 - -->       3. in ~/.cdmLibrary/cdmlib-remote.properties
18:08:32,111 ERROR AbstractWebApplicationConfigurer:106 - Stopping application 

... hatte ich nicht gesehen, weil auch das falsche Logfile auf. Aber seltsam das auf der Console nichts kommt

Actions #1

Updated by Andreas Kohlbecker over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kohlbecker over 4 years ago

what was missing in your case andreas?

  • the ~/.cdmLibrary/datasources.xml file
  • the ~/.cdmLibrary/cdmlib-remote.properties file
  • the bean definition in datasources.xml
Actions #3

Updated by Andreas Müller over 4 years ago

Andreas Kohlbecker wrote:

what was missing in your case andreas?

  • the ~/.cdmLibrary/datasources.xml file
  • the ~/.cdmLibrary/cdmlib-remote.properties file
  • the bean definition in datasources.xml

both files

Actions

Also available in: Atom PDF