- if (System.getProperty(CatalinaActivator.ARGEO_SERVER_TOMCAT_CONFIG) != null)\r
- xmlConfiguration = new URL(\r
- System.getProperty(CatalinaActivator.ARGEO_SERVER_TOMCAT_CONFIG));\r
- else\r
+ if (System.getProperty(CatalinaActivator.ARGEO_SERVER_TOMCAT_CONFIG) != null) {\r
+ String customConfig = System\r
+ .getProperty(CatalinaActivator.ARGEO_SERVER_TOMCAT_CONFIG);\r
+ try {\r
+ xmlConfiguration = new URL(customConfig);\r
+ } catch (MalformedURLException e) {\r
+ // within this bundle\r
+ // typically 'default-server-ssl.xml'\r
+ xmlConfiguration = bundle.getResource(customConfig);\r
+ }\r
+ } else {\r