[jcifs] he requested resource is not available

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Fri Jan 31 12:46:05 EST 2003


It is vital that directories contain a trailing '/'. The HTTP URL you are using is
confusing the application server. You want to use a URL like:

   http://hostname:8180/servlet/NetworkExplorer/

and

  http://hostname:8180/servlet/NetworkExplorer/FINANCE/

Once the trailing '/' is there it will persist as you drill down and you should
not have a problem.

Also please note that NetworkExplorer is flawed in two possibly critical ways:

1) It does not URL encode or decode paths. This will cause problems with
Unicode and possibly other funny character combinations. The solution to
this problem remains to be seen. Primarily we are not sure how Unicode should
be represented in an HTTP URL or even if any browsers support such a thing.

2) It cannot list directories with more than ~2000 files in them. It can but it
uses a lot of CPU on the server with all the formatting and timestaming. There
really should be a lean mode. Otherwise jCIFS can list ~15000 files in
~10seconds which isn't great either but no one has complained yet so...

Otherwise I use NetworkExplorer at work and it works quite well. Unfortunately
I'm not aware of anyone else that uses it so I don't have a good idea of how well
it works like I do the jCIFS core. Be prepared to experiment or look at the code
(which is quite small BTW).

> -----Original Message-----
> From:	Rob Meijer [SMTP:static at xs4all.nl]
> Sent:	Thursday, January 30, 2003 11:59 AM
> To:	jcifs at lists.samba.org
> Subject:	[jcifs] he requested resource is not available
> 
> Hi everyone,
> 
> I've been playing all days with jcifs, but i keep getting what seem to be
> authentication errors
> if i goto http://hostname:8180/NetworkExplorer i get a list of workgroups
> and domain
> however, when i click on one of these workgroups and domains i get :
> 
> type Status report
> 
> message /FINANCE/
> 
> description The requested resource (/FINANCE/) is not available.
> 
> What i want is relatively simple.
> All the users that come to this webserver only need access to 1 workgroup,
> FINANCE, which is a samba/cifs server on this same server.
> Then i want user to authenticate against samba.
> here are the relevant parts of the config files
> web.xml
> 
> 
>    <filter>
>         <filter-name>NTLM HTTP Authentication Filter</filter-name>
>         <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
> 
>         <init-param>
>             <param-name>jcifs.http.domainController</param-name>
>             <param-value>hostname</param-value>
>         </init-param>
> 
>         <init-param>
>             <param-name>jcifs.smb.client.domain</param-name>
>             <param-value>FINANCE</param-value>
>         </init-param>
>         <init-param>
>             <param-name>jcifs.netbios.wins</param-name>
>             <param-value>hostname</param-value>
>         </init-param>
> </filter>
> 
>     <servlet>
>         <servlet-name>NetworkExplorer</servlet-name>
>         <servlet-class>jcifs.http.NetworkExplorer</servlet-class>
> 
>         <init-param>
>             <param-name>jcifs.smb.client.domain</param-name>
>             <param-value>FINANCE</param-value>
>         </init-param>
>         <init-param>
>             <param-name>jcifs.smb.client.username</param-name>
>             <param-value>username</param-value>
>         </init-param>
>         <init-param>
>             <param-name>jcifs.smb.client.password</param-name>
>             <param-value>password</param-value>
>         </init-param>
>         <init-param>
>             <param-name>jcifs.netbios.baddr</param-name>
>             <param-value>hostname</param-value>
>         </init-param>
>     </servlet>
> 
> 
> smb.conf
> 
> [global]
>    workgroup = FINANCE
>    encrypt passwords = Yes
>    security = user
>    domain logons = Yes
>    load printers = No
>    lock directory = /var/lock
>    wins support = Yes
> 
> [NET]
>    path = /home/net
>    read only = No
>    public = Yes
>    guest ok = No
>    writeable = Yes
>    valid users= username,username,username
>    strict locking = Yes
>    shares modes = Yes
> 
> I'm using jcifs 0.7.1, tomcat 4.1.18,and samba 3.0a20
> 
> 
> Can anyone offer suggestions how to get this working?
> 
> 



More information about the jcifs mailing list