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.

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.

SUN JDK:
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

IBM JDK:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20060511 (SR2))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2006050
4 (JIT enabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA)
JCL  - 20060511a

I also see the javadoc of URL.toURI() saying this:

toURI
public URI toURI()
throws URISyntaxExceptionReturns a URI equivalent to this URL. This method functions in the same way as new URI (this.toString()). Note, any URL instance that complies with RFC 2396 can be converted to a URI. However, some URLs that are not strictly in compliance can not be converted to a URI.


   Returns:
   a URI instance equivalent to this URL.
   Throws:
URISyntaxException - if this URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
   Since:
   1.5

Thanks,
Raymond

----- Original Message ----- From: "Jeremy Boynes" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, July 15, 2006 7:08 AM
Subject: Re: [PATCH] Chianti launcher cannot boot from a jar file whose path contains spaces


On Jul 14, 2006, at 9:19 PM, Raymond Feng wrote:

Hi,

URL returned from Class.getResource() sometimes does not strictly conform to RFC2396. As a result, running "mvn" command in "calculator" folder directly fails with the following the exception.

Please review and apply.


Running from a location with a space in the filename works for me on Windows with both Sun and IBM JDKs.

Which version of which JRE are you using that is returning the duff URL?
--
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to