[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
Jamie Maher created JETTY-1492:
----------------------------------

             Summary: Specifying -D option in start.ini puts slashes in file path on windows when starting
                 Key: JETTY-1492
                 URL: https://jira.codehaus.org/browse/JETTY-1492
             Project: Jetty
          Issue Type: Bug
         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
            Reporter: Jamie Maher
            Priority: Minor


Adding the following options in the start.ini:

--exec
-Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
-Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf


Causes the java jre to be spawned with the following command line args:

"-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
"-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"

(notice the extra escaping slashes which probably work fine under unix, but messes up windows)


JAAS fails to work with the options specified above.

If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
-Djava.security.krb5.conf=C:\jaas\krb5.conf
-Djava.security.auth.login.config=C:\jaas\cas_jaas.conf


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org

    [ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292945#comment-292945 ]

Joakim Erdfelt commented on JETTY-1492:
---------------------------------------

out of curiosity, what happens if you use this syntax in the start.ini?

-Djava.security.krb5.conf=C:/Program Files/Apache Software Foundation/Tomcat 5.5/krb5.conf
-Djava.security.auth.login.config=C:/Program Files/Apache Software Foundation/Tomcat 5.5/cas_jaas.conf

or you quote the start.ini sections?

"-Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf"
"-Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf"


               

> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
>                 Key: JETTY-1492
>                 URL: https://jira.codehaus.org/browse/JETTY-1492
>             Project: Jetty
>          Issue Type: Bug
>         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
>            Reporter: Jamie Maher
>            Priority: Minor
>              Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292947#comment-292947 ]

Jamie Maher commented on JETTY-1492:
------------------------------------

Hi Joakim,

Using the forward slash syntax:
-Djava.security.krb5.conf=C:/Program Files/Apache Software Foundation/Tomcat 5.5/krb5.conf

Results in this:
"-Djava.security.auth.login.config=C:/Program\ Files/Apache\ Software\ Foundation/Tomcat\ 5.5/krb5.conf"


If I quote the start.ini sections (they were not quoted before) then it excludes them in the spawned java jre command line.


It's funny, because the -Djetty.home parameter in the spawned java jre contains spaces in the command line:
(although it's not specified in the start.ini)

"-Djetty.home=C:\Program Files\Jetty\jetty-distribution-8.1.1.v20120215"

There must be some magic processing in the start.jar that is unix specific that's getting applied when it shouldn't..

               

> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
>                 Key: JETTY-1492
>                 URL: https://jira.codehaus.org/browse/JETTY-1492
>             Project: Jetty
>          Issue Type: Bug
>         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
>            Reporter: Jamie Maher
>            Priority: Minor
>              Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292949#comment-292949 ]

Joakim Erdfelt commented on JETTY-1492:
---------------------------------------

Actually, it's not unix specific, its Runtime.exec() specific.
The arguments for it must be properly quoted/escaped for it to work.

Wish I could flag bugs on jira as 'valid' or 'confirmed'
               

> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
>                 Key: JETTY-1492
>                 URL: https://jira.codehaus.org/browse/JETTY-1492
>             Project: Jetty
>          Issue Type: Bug
>         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
>            Reporter: Jamie Maher
>            Priority: Minor
>              Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292956#comment-292956 ]

Jamie Maher commented on JETTY-1492:
------------------------------------

Note: jdk1.6.0_17 was used to launch start.jar
               

> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
>                 Key: JETTY-1492
>                 URL: https://jira.codehaus.org/browse/JETTY-1492
>             Project: Jetty
>          Issue Type: Bug
>         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
>            Reporter: Jamie Maher
>            Priority: Minor
>              Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ https://jira.codehaus.org/browse/JETTY-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Bartel reassigned JETTY-1492:
---------------------------------

    Assignee: Joakim Erdfelt
   

> Specifying -D option in start.ini puts slashes in file path on windows when starting
> ------------------------------------------------------------------------------------
>
>                 Key: JETTY-1492
>                 URL: https://jira.codehaus.org/browse/JETTY-1492
>             Project: Jetty
>          Issue Type: Bug
>         Environment: Eclipse Jetty distribution 8.1.1.v20120215, Windows XP SP3
>            Reporter: Jamie Maher
>            Assignee: Joakim Erdfelt
>            Priority: Minor
>              Labels: startup, windows
>
> Adding the following options in the start.ini:
> --exec
> -Djava.security.krb5.conf=C:\Program Files\Apache Software Foundation\Tomcat 5.5\krb5.conf
> -Djava.security.auth.login.config=C:\Program Files\Apache Software Foundation\Tomcat 5.5\cas_jaas.conf
> Causes the java jre to be spawned with the following command line args:
> "-Djava.security.auth.login.config=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\cas_jaas.conf"
> "-Djava.security.krb5.conf=C:\Program\ Files\Apache\ Software\ Foundation\Tomcat\ 5.5\krb5.conf"
> (notice the extra escaping slashes which probably work fine under unix, but messes up windows)
> JAAS fails to work with the options specified above.
> If I move the files to a folder without spaces and change the start.ini then it works fine, eg:
> -Djava.security.krb5.conf=C:\jaas\krb5.conf
> -Djava.security.auth.login.config=C:\jaas\cas_jaas.conf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] (JETTY-1492) Specifying -D option in start.ini puts slashes in file path on windows when starting

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org
Jan Bartel closed Bug JETTY-1492 as Duplicate

This issue was moved to jetty eclipse bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=396564

Change By: Jan Bartel (13/Dec/12 9:35 PM)
Resolution: Duplicate
Status: Open Closed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email