[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to