Andreas,

I got the same problem. It happens on windows.
The correct url should be:

jar:file:/J:/./jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDep

I made the following hack in org.jboss.jetty.Jetty

static String
  fixURL (String url)
{
-String protocol="file:";
-int index=url.indexOf(protocol)+protocol.length();
+int index=url.lastIndexOf(':')+1;

This nearly works on both Windows and Unix.

But in Unix it is possible to do:

mkdir a:

My hack would break for this.

I did try a more complicated approach using File(parent, child)
and File.toURL() I got

jar:file:/J:/./J:/jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDep

which is not valid either.

Regards,
Adrian


>From: "Andreas Schaefer" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: [JBoss-dev] Jetty problem
>Date: Fri, 30 Nov 2001 19:36:36 -0800
>
>Hi Geeks
>
>Maybe it is just me but I always get an error starting
>JBoss on the current CVS head. The jetty service
>complains when it goes into "ensureProperties()"
>method because it cannot load the jetty.properties
>file.
>
>I added some output to this method
>
>     System.out.println( "JettyService.ensureProperties(), props: " + props 
>+
>       ", resource: " +
>getClass().getClassLoader().getResource(props).toString() +
>       ", fixURL(): " +
>Jetty.fixURL(getClass().getClassLoader().getResource(props).toString())
>     );
>
>and find this:
>
>19:31:45,865 INFO  [Default] JettyService.ensureProperties(), props:
>jetty.properties
>resource:
>jar:file:/J:/jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDeplo
>yer/deploy.29/jetty-plugin.sar!/jetty.properties
>fixURL():
>jar:file:\./J:/jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDep
>loyer/deploy.29/jetty-plugin.sar!/jetty.properties
>
>The exception is:
>java.util.zip.ZipException: The specific path is invalid
>
>I am running on a W2K box with JDK1.3.1.
>
>xxxxxxxxxxxxxxxxx
>Andreas Schaefer
>Senior Consultant
>JBoss Group, LLC
>xxxxxxxxxxxxxxxxx
>
>
>_______________________________________________
>Jboss-development mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-development


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to