NOTE : I am currently working on Petals ESB extensibility and lighweight (in memory) mode and I think I will share in the JIRA as improvment entries some problems I encounter.
In petals-kernel : org.ow2.petals.kernel.configuration.ConfigurationServiceImpl#start, the server.properties file is retrieved from the classloader, a File object is then created (File serverPropsFile = new File(serverPropsURL.toURI().normalize())
and the file is not used but a stream is created from it.
This type of handling does not allow using a server.properties file elsewhere than in the conf folder, using a server.properties as JAR resource raise an exception :
Caused by: org.objectweb.fractal.api.control.IllegalLifeCycleException: URI is not hierarchical
Solution is to not create the file since it is not used, getting the input stream is enough.