If you get an error like this
Then the error is probably that the JDBC driver (Apache Derby by default) could not write to the persistent file area.
Create a directory for the broker to write its files. e.g. in Java code call setDataDirectory
or in XML use