Issue Details (XML | Word | Printable)

Key: DIRSERVER-364
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Trivial Trivial
Assignee: Alex Karasulu
Reporter: Nick Faiz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path

Created: 21/Jun/05 04:48 PM   Updated: 21/Apr/07 11:12 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 09/Aug/05 06:27 AM


 Description  « Hide
I have to specify a relative path to the server.xml if I want to start the server. It would be nice to be able to specify an absolute path without hitting a FileNotFoundEx.. It seems to be dropping the leading File.separator ...


java.io.FileNotFoundException: home/nickf/src/apache/directory/apacheds/trunk/main/server.xml (No such file or directory)

For example:

[nickf@little-creatures trunk]$ pwd
/home/nickf/src/apache/directory/apacheds/trunk
[nickf@little-creatures trunk]$ java -jar main/target/apacheds-main-0.9.1-SNAPSHOT.jar /home/nickf/src/apache/directory/apacheds/trunk/main/server.xml
server: loading settings from /home/nickf/src/apache/directory/apacheds/trunk/main/server.xml
[INFO] XmlBeanDefinitionReader - -Loading XML bean definitions from file [/home/nickf/src/apache/directory/apacheds/trunk/home/nickf/src/apache/directory/apacheds/trunk/main/server.xml]
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [/home/nickf/src/apache/directory/apacheds/trunk/home/nickf/src/apache/directory/apacheds/trunk/main/server.xml]; nested exception is java.io.FileNotFoundException: home/nickf/src/apache/directory/apacheds/trunk/main/server.xml (No such file or directory)
java.io.FileNotFoundException: home/nickf/src/apache/directory/apacheds/trunk/main/server.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)

Whereas, from the same directory, the relative path works!

[nickf@little-creatures trunk]$ java -jar main/target/apacheds-main-0.9.1-SNAPSHOT.jar main/server.xml server: loading settings from main/server.xml
[INFO] XmlBeanDefinitionReader - -Loading XML bean definitions from file [/home/nickf/src/apache/directory/apacheds/trunk/main/server.xml]



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu made changes - 09/Aug/05 06:27 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
Fix Version/s 0.9.2 [ 12310192 ]
Alex Karasulu made changes - 10/Feb/06 12:34 PM
Key DIREVE-167 DIRSERVER-364
Project Directory Server [ 10516 ] Directory ApacheDS [ 12310260 ]
Fix Version/s 0.9.2 [ 12310192 ]
Affects Version/s 0.9.1 [ 11125 ]
Component/s server main [ 11494 ]
Emmanuel Lecharny made changes - 21/Apr/07 11:12 AM
Status Resolved [ 5 ] Closed [ 6 ]