[jcifs] Re: Accessing protected share from Servlet -- Solution

David Webster dave_web at yahoo.com
Wed Jan 31 14:42:25 GMT 2007

David Webster <dave_web <at> yahoo.com> writes:

> I straightened out my pathInfo by removing a few superfluous "/" so now the 
> SmbFile being created seems a little better. Before canonicalPath was empty, 
> now it is there. 
> The problem now is that the listFiles in doDirectory is now throwing an 
> SmbAuthException.
> jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
> I must be getting really close ... :)

I removed the HttpFilter from in front of the url and it started working.

I did need to move the resp.setContentType( "text/html" ); line below out = 
resp.getWriter(); in doDirectory(...).

Apparently the NetworkExplorer servlet trips on the HttpFilter.

More information about the jcifs mailing list