[jcifs] Need help with jcifs setup

Sabyasachi Mukherjee sabyasachi.mukherjee at ascindia.com
Tue May 30 11:41:29 GMT 2006


Thanks Richard and Yannick. The issue is now solved. 

Best Regards,
Sabyasachi.


-----Original Message-----
From: Richard Caper [mailto:rcaper at gmail.com] 
Sent: Tuesday, May 30, 2006 4:06 PM
To: Sabyasachi Mukherjee
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Need help with jcifs setup

If you're getting a 404 back from Tomcat, that would imply that it
isn't installing the servlet context properly with the filter in place
(i.e. with the filter present, initialization is failing).

The web.xml snippet you have below may be the cause; the
filter-mapping element is invalid.  Instead of:

<filter-mapping url-pattern='/*' filter-name='NtlmHttpFilter'/>

it should be:

<filter-mapping>
    <filter-name>NtlmHttpFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


On 5/29/06, Sabyasachi Mukherjee <sabyasachi.mukherjee at ascindia.com>
wrote:
>
>
>
>
> I have setup jcifs on my Tomcat 5.0 server. The setup is on a client
machine
> on a Windows XP network. The web.xml for the application is like this
:
>
>
>
> <filter>
>
>             <filter-name>NtlmHttpFilter</filter-name>
>
>             <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
>
>             <init-param>
>
>
<param-name>jcifs.smb.client.domain</param-name>
>
>
> <param-value>domainname</param-value>
>
>             </init-param>
>
>             <init-param>
>
>        <param-name>jcifs.netbios.wins</param-name>
>
>        <param-value>192.168.26.13,192.168.26.12</param-value>
>
>     </init-param>
>
>             <init-param>
>
>         <param-name>jcifs.util.loglevel</param-name>
>
>         <param-value>1</param-value>
>
>     </init-param>
>
> </filter>
>
>
>
> <filter-mapping
>
>     url-pattern='/*'
>
>     filter-name='NtlmHttpFilter'/>
>
>
>
>
>
> When I try to access the example serlvet  from the same machine, I get
a 404
> error. I cannot see any logs. Which is the default logging location ?
>
> Am I missing something ? Any help will be appreciated.


More information about the jcifs mailing list