I'm a bit confused. I wrote a simple standalone test.

- main
public static void main(String[] args) throws Exception
{
   // set handler pkgs
   System.out.println("java.protocol.handler.pkgs: " + 
System.getProperty("java.protocol.handler.pkgs"));

   URL url = new URL("file", null, args[0]);
   System.out.println("url: " + url);
   URLConnection urlCon = url.openConnection();
   System.out.println("connection class: " + urlCon.getClass().getName());

   url = new URL("other", null, args[0]);
   System.out.println("url: " + url);
   urlCon = url.openConnection();
   System.out.println("connection class: " + urlCon.getClass().getName());
}

- run
java -Djava.protocol.handler.pkgs=org.avoka.test.files.protocol -classpath %cp% 
org.avoka.test.files.FilesTest build.xml

- output
java.protocol.handler.pkgs: org.avoka.test.files.protocol
url: file:build.xml
connection class: sun.net.www.protocol.file.FileURLConnection
url: other:build.xml
connection class: org.avoka.test.files.protocol.other.OtherURLConnection

I do have org.avoka.test.files.protocol.file.Handler and
org.avoka.test.files.protocol.file.FileURLConnection on the classpath.
My file.Handler isn't called. Am I missing something?

This same thing happens with JBoss-3.2 and HEAD but not JBoss-3.0 (my
3.0 is not up to date).

JDK1.3.1_05, J2SDK1.4.0
Win2K

Thanks,
alex




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to