diff options
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java index 36bf4475bf..619643eaa3 100644 --- a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java +++ b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java @@ -20,6 +20,7 @@ package org.apache.tuscany.sca.implementation.bpel.ode; import java.io.File; +import java.net.URISyntaxException; import java.net.URL; import java.util.Map; import java.util.Properties; @@ -89,7 +90,11 @@ public class EmbeddedODEServer { URL dbLocation = getClass().getClassLoader().getResource("jpadb"); if (dbLocation == null) throw new ODEInitializationException("Couldn't find database in the classpath"); - _workRoot = new File(dbLocation.getFile()).getParentFile(); + try { + _workRoot = new File(dbLocation.toURI()).getParentFile(); + } catch (URISyntaxException e) { + throw new ODEInitializationException(e); + } initTxMgr(); initPersistence(); |