[jcifs] Difficulties with smb protocol handler in servlet context

Gary Rambo c-grambo at aventail.com
Thu Sep 25 05:46:34 EST 2003


I've been having intermittent difficulty registering the smb protocol
handler when running in a servlet context (Jetty, Struts); but I don't see
the same problem when running the same code stand-alone.

If I call registerSmbURLHandler() before making any other call to the Jcifs
library, and then immediately after test the smb url with 

	URL url = new URL( "smb://servername/" );

I get the MalformedURLException:

java.net.MalformedURLException: unknown protocol: smb
        at java.net.URL.<init>(URL.java:544)
        at java.net.URL.<init>(URL.java:434)
        at java.net.URL.<init>(URL.java:383)

Any suggestions?

Thanks.


Gary



More information about the jcifs mailing list