mirror of
https://github.com/corda/corda.git
synced 2025-02-01 00:45:59 +00:00
Add 'finance' module to Corda WebServer, for plugins to use. (#489)
* Add 'finance' module to Corda WebServer, for plugins to use. * Fix wording of error message.
This commit is contained in:
parent
bf90b140c1
commit
352da7e4c7
@ -220,6 +220,8 @@ class NodeConfigTest {
|
|||||||
|
|
||||||
assertEquals(localPort(20001), webConfig.webAddress)
|
assertEquals(localPort(20001), webConfig.webAddress)
|
||||||
assertEquals(localPort(10001), webConfig.p2pAddress)
|
assertEquals(localPort(10001), webConfig.p2pAddress)
|
||||||
|
assertEquals("trustpass", webConfig.trustStorePassword)
|
||||||
|
assertEquals("cordacadevpass", webConfig.keyStorePassword)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -31,6 +31,7 @@ sourceSets {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':core')
|
compile project(':core')
|
||||||
|
compile project(':finance')
|
||||||
compile project(':client:rpc')
|
compile project(':client:rpc')
|
||||||
compile project(':client:jackson')
|
compile project(':client:jackson')
|
||||||
testCompile project(':node')
|
testCompile project(':node')
|
||||||
@ -61,4 +62,4 @@ dependencies {
|
|||||||
task integrationTest(type: Test) {
|
task integrationTest(type: Test) {
|
||||||
testClassesDir = sourceSets.integrationTest.output.classesDir
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
||||||
classpath = sourceSets.integrationTest.runtimeClasspath
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
||||||
}
|
}
|
||||||
|
@ -161,6 +161,11 @@ class NodeWebServer(val config: WebServerConfig) {
|
|||||||
} catch (e: java.nio.file.NoSuchFileException) {
|
} catch (e: java.nio.file.NoSuchFileException) {
|
||||||
log.debug("Tried to open a file that doesn't yet exist, retrying", e)
|
log.debug("Tried to open a file that doesn't yet exist, retrying", e)
|
||||||
Thread.sleep(retryDelay)
|
Thread.sleep(retryDelay)
|
||||||
|
} catch (e: Throwable) {
|
||||||
|
// E.g. a plugin cannot be instantiated?
|
||||||
|
// Note that we do want the exception stacktrace.
|
||||||
|
log.error("Cannot start WebServer", e)
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user