[jcifs] tomcat url unknown protocol: smb

Simon Weatherill simon-samba at weatherill.org
Fri Jul 22 12:50:31 MDT 2011


I had to set a System property to allow the URL class to load the smb
protocol handler.

    // make sure URL can load jCIFS's "smb" protocol Handler
    Properties prop = System.getProperties();
    prop.setProperty("java.protocol.handler.pkgs", "jcifs");

Simon

On 7/20/2011 6:34 AM, rajasekaran wrote:
> Hi- I am also facing this unknown protocol issue eventhough i placed
> my jcifs-1.3.16.jar under Tomcat6.0's lib folder as per faq? My env is
> Tomcat 6, Java 6 and cifs-1.3.16.jar. Since tomcat 6.0 it is not
> necessary to use or setup setenv or setclasspath or anyother files
> isn't? Any clue?
> ------------------------------------------------------------------------
> View this message in context: Re: tomcat url unknown protocol: smb
> <http://samba.2283325.n4.nabble.com/tomcat-url-unknown-protocol-smb-tp2514348p3680396.html>
> Sent from the Samba - jcifs mailing list archive
> <http://samba.2283325.n4.nabble.com/Samba-jcifs-f2512050.html> at
> Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20110722/d856317c/attachment.html>


More information about the jCIFS mailing list