Issue Details (XML | Word | Printable)

Key: JAMES-527
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Norman Maurer
Reporter: Joachim Draeger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JAMES Server

data-source for default derby maildb is configured with a relative path

Created: 12/Jun/06 01:55 AM   Updated: 21/Nov/07 08:31 AM
Return to search
Component/s: James Core
Affects Version/s: 2.3.0, 3.0
Fix Version/s: 2.3.0

Time Tracking:
Not Specified

Environment: tested on windows, jre 1.5

Resolution Date: 15/Jun/06 03:48 PM


 Description  « Hide
Data source is configured with a relative path in config.xml:

         <dburl>jdbc:derby:../apps/james/var/derbydb;create=true</dburl>

The path is relative to the current directory when starting james. Calling run from the bin folder is allright. Calling it from James root directory bin\run.bat causes the db to be created in the uplevel directory.

Possible solutions:

 - add a "cd PHOENIX_HOME" in start scripts
 - evaluate the PHOENIX_HOME enviroment variable in James






 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Norman Maurer added a comment - 12/Jun/06 01:47 PM
Now we change to $PHOENIX_HOME/bin before start james. This seems to me a better solution then use getProperties() at the moment. Anyway we should maybe change the config for not using a relative path on derby configuration.

Stefano Bagnara added a comment - 15/Jun/06 03:23 PM
Still there in Windows.

Joachim Draeger added a comment - 15/Jun/06 04:47 PM
Other directories in var don't seem to be accessed by a relative path, how is it managed there?
Although the cd fix is okay for now it is IMHO odd to use relative path in the James enviroment by default.

What do you think?

   - reopen as improvement?
   - create new?
  - it's okay the way it is?

Danny Angus added a comment - 21/Nov/07 08:31 AM
Closing issue fixed in released version.