You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jeremy Boynes <jb...@apache.org> on 2006/07/20 22:15:26 UTC

Re: [PATCH] launcher cannot boot from a jar file whose path contains spaces

On Jul 20, 2006, at 10:16 AM, Raymond Feng wrote:

> Hi,
>
> A gentle reminder: Have we reached a conclusion on how to fix the  
> problem?
>

Not sure - if the patch I supplied for MSUREFIRE-148 gets applied  
then we will have fixed the issue inside maven and I believe that it  
is working in the standalone environment. I don't know if there is a  
general solution for this given that we can't tell if the URL has  
already been correctly encoded. If we can solve that problem then I'd  
say let's do so, otherwise let's fix surefire and tackle other  
problematic hosts as they come up.

--
Jeremy


> Thanks,
> Raymond
>
> ----- Original Message ----- From: "Jeremy Boynes"  
> <jb...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Saturday, July 15, 2006 10:28 AM
> Subject: Re: [PATCH] Chianti launcher cannot boot from a jar file  
> whose path contains spaces
>
>
>> On Jul 15, 2006, at 9:15 AM, Raymond Feng wrote:
>>
>>> I tried with both SUN and IBM JDK and got the same problem. To   
>>> reproduce it, you can just go to "<chianti>\sca\samples 
>>> \calculator"  and run "mvn". Running "mvn" from "<chianti>" is  
>>> successful since  it uses the jar from "<chianti>\sca\core 
>>> \target" instead of local  maven repository.
>>>
>>
>> Ah, that's why I wasn't seeing it. I ran the test from "chianti"  
>> and  the standalone launcher from the command line (where the JRE  
>> does  encode the URL correctly).
>>
>>> Here is the printout of JarLocation: file:/C:/Documents and  
>>> Settings/zfeng/.m2/repository/org/apache/tuscany/core/1.0- 
>>> chianti- SNAPSHOT/core-1.0-chianti-SNAPSHOT.jar. Please note the  
>>> space is  from the maven repository folder.
>>
>> I think the real problem here lies with maven not creating a well   
>> formed URL to pass to surefire's IsolatedClassLoader - garbage  
>> in,  garbage out ;-)
>> I would guess they are using File.toURL() which does not encode as  
>> opposed to File.toURI().toURL() which does - at least that appears  
>> to  be what's in SurefireBooter.createClassLoader(). I opened   
>> MSUREFIRE-148 for this.
>>
>> However, given maven may not be the only thing that is borked  
>> perhaps  we should go ahead and encode it.
>> --
>> Jeremy
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


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