You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "nick faiz (JIRA)" <di...@incubator.apache.org> on 2005/06/21 09:56:18 UTC

[jira] Created: (DIREVE-167) specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path

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

         Key: DIREVE-167
         URL: http://issues.apache.org/jira/browse/DIREVE-167
     Project: Directory Server
        Type: Bug
  Components: server main  
    Versions: 0.9.1    
    Reporter: nick faiz
 Assigned to: Alex Karasulu 
    Priority: Trivial


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]



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIREVE-167) specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path

Posted by "Nick Faiz (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-167?page=comments#action_12315130 ] 

Nick Faiz commented on DIREVE-167:
----------------------------------

This issue can be closed. It looks like a prob. with FileSystemXmlApplicationContext . An easy workaround, on UNIX, is to use 2 file separators when specifying the absolute path to the context file, e.g. //tmp/server.xml

> specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path
> ----------------------------------------------------------------------------------------------------------
>
>          Key: DIREVE-167
>          URL: http://issues.apache.org/jira/browse/DIREVE-167
>      Project: Directory Server
>         Type: Bug
>   Components: server main
>     Versions: 0.9.1
>     Reporter: Nick Faiz
>     Assignee: Alex Karasulu
>     Priority: Trivial

>
> 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]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRSERVER-364) specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-364.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> specification of server.xml arg. file when starting DS fails if server.xml is specified with absolute path
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-364
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-364
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Nick Faiz
>         Assigned To: Alex Karasulu
>            Priority: Trivial
>
> 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]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.