diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-07-29 17:40:38 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-07-29 17:40:38 +0200 |
| commit | ac67b0ccef6b1235afba3f8bb5861c1333b6344e (patch) | |
| tree | d20b533b682810ff8c8832ce6f4d158314dd5220 /src/main/java/com/c2kernel/process/Gateway.java | |
| parent | 405a52f8f04b13f659c3bcdd232cb80317c09043 (diff) | |
Reinstated URL parameter to CastorXMLUtility (other modules use their
own instances of it)
Renamed variables back to their original names
Diffstat (limited to 'src/main/java/com/c2kernel/process/Gateway.java')
| -rw-r--r-- | src/main/java/com/c2kernel/process/Gateway.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java index cd76d0e..85262e8 100644 --- a/src/main/java/com/c2kernel/process/Gateway.java +++ b/src/main/java/com/c2kernel/process/Gateway.java @@ -108,7 +108,11 @@ public class Gateway // load kernel mapfiles giving the resourse loader and the properties of
// the application to be able to configure castor
- mMarshaller = new CastorXMLUtility(mResource, props, "mapFiles/");
+ try {
+ mMarshaller = new CastorXMLUtility(mResource, props, mResource.getKernelResourceURL("mapFiles/"));
+ } catch (MalformedURLException e1) {
+ throw new InvalidDataException("Invalid Resource Location", "");
+ }
// init module manager
|
