You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Andreas Veithen (JIRA)" <tu...@ws.apache.org> on 2008/04/02 18:43:24 UTC

[jira] Created: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Surefire fails because of java.endorsed.dirs setting
----------------------------------------------------

                 Key: TUSCANY-2187
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
             Project: Tuscany
          Issue Type: Bug
          Components: Build System
         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
            Reporter: Andreas Veithen
            Priority: Minor


In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:

<argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>

On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:

java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed

I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Andreas Veithen (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584734#action_12584734 ] 

Andreas Veithen commented on TUSCANY-2187:
------------------------------------------

Actually this looks more like SUREFIRE-297. I tested with 2.4 but it doesn't work. I also tested various other combinations of versions and ways of quoting the argLine value, but without success. Note that from SUREFIRE-297 it is not clear how this is supposed to work, i.e. how to correctly quote the value.

I also tested the following:

                    <systemProperties>
                        <property>
                            <name>java.endorsed.dirs</name>
                            <value>${java.endorsed.dirs}</value>
                        </property>
                    </systemProperties>

But I can't test if this has the desired effect. Indeed, on my platform the tests run just fine without the java.endorsed.dirs property, so I don't have the possibility to test if this works correctly.

> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-2187:
-------------------------------------

    Assignee: Raymond Feng

> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
> Maven version: 2.0.8
>            Reporter: Andreas Veithen
>            Assignee: Raymond Feng
>            Priority: Minor
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584678#action_12584678 ] 

Luciano Resende commented on TUSCANY-2187:
------------------------------------------

This looks like [SUREFIRE-307] - Tests fail if in path with spaces, and it seems to be fixed in surefire 2.4.
Could you please try to move the surefire plugin to 2.4 version and see if that helps ?

> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-2187.
-----------------------------------

    Resolution: Fixed

Fixed under r644071 (1.1) & 644069 (trunk)

> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
> Maven version: 2.0.8
>            Reporter: Andreas Veithen
>            Assignee: Raymond Feng
>            Priority: Critical
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584772#action_12584772 ] 

Raymond Feng commented on TUSCANY-2187:
---------------------------------------

It seems that SUN JDK 5.x has the java.endorsed.dirs system property set by the jdk. On Wondows, the path contains spaces but surefire plugin cannot handle it correctly. 

The property is used to pass endorsed dirs to enable the workaround for SUN JDK 1.4.x as reported in TUSCANY-1925. I'll fix it with the following:

<argLine>-Djava.endorsed.dirs=${endorsed.dirs}</argLine>

Now you need to use the commands below to work around TUSCANY-1925:

set MAVEN_OPTS=-Dendorsed.dirs=<directory to host xercesImpl-2.8.1.jar and xml-apis-1.3.03.jar>


> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
> Maven version: 2.0.8
>            Reporter: Andreas Veithen
>            Assignee: Raymond Feng
>            Priority: Minor
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng updated TUSCANY-2187:
----------------------------------

    Priority: Critical  (was: Minor)

> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
> Maven version: 2.0.8
>            Reporter: Andreas Veithen
>            Assignee: Raymond Feng
>            Priority: Critical
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-2187) Surefire fails because of java.endorsed.dirs setting

Posted by "Andreas Veithen (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated TUSCANY-2187:
-------------------------------------

    Environment: 
Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
Maven version: 2.0.8

  was:Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"


> Surefire fails because of java.endorsed.dirs setting
> ----------------------------------------------------
>
>                 Key: TUSCANY-2187
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2187
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>         Environment: Windows XP with Java home "C:\Program Files\Java\jdk1.5.0_10"
> Maven version: 2.0.8
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> In revision 642377, the following setting was added to the Surefire plugin configuration in sdo/pom.xml:
> <argLine>-Djava.endorsed.dirs=${java.endorsed.dirs}</argLine>
> On systems where the path to the Java directory contains spaces (as is usually the case on most Windows systems), execution of the tests (e.g. in sdo/impl) fails with the following kind of error:
> java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_10\jre\lib\endorsed
> I tried to add quotes to the argument, but I couldn't figure out how to make Maven understand that the value of argLine is a single argument.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org