[jcifs] jcifs-0.9.5 timeout on the Windows 2003 domain controller

Eric Glass eric.glass at gmail.com
Wed Jul 21 01:27:50 GMT 2004


The timeout would typically be a network issue, but there are a couple
of strange items here:

"jcifs.http.auth.ntlm.domain" isn't a parameter recognized by jCIFS;
what you probably want is either "jcifs.smb.client.domain" (which
would contain your Windows domain name, i.e. "MYDOMAIN") or
"jcifs.http.domainController" (which would contain the IP address of a
box running SMB services, such as a Windows or Samba server).

"jcifs.netbios.hostname" contains the hostname that you want others to
see (i.e., when jCIFS connects to an SMB server, the server sees this
name).  jCIFS is trying to connect back to the local box, because in a
roundabout way this is what gets picked as the default controller if
none is specified.  If you happen to be running SMB services on the
same box with the servlet container, this might actually work (never
tried).  But it's probably not the behavior you intended.  From the
web.xml you sent, you're probably wanting to set
"jcifs.http.domainController" to "houdc006.corp.h.com".


Eric


----- Original Message -----
From: John Jih <john.jih at halliburton.com>
Date: Tue, 20 Jul 2004 19:25:03 -0500
Subject: [jcifs] jcifs-0.9.5 timeout on the Windows 2003 domain controller
To: jcifs at lists.samba.org


















Hi:



 



We downloaded the jcifs-0.9.5.jar and put these code in the web.xml
to authenticate user from the win2003 domain controller (some parameter value
been altered). We got the timeout message from time to time, is this network
issue or DC issue or maybe other parameters needed?



 



 



       
<init-param>



           
<param-name>jcifs.http.auth.ntlm.domain</param-name>



           
<param-value>houdc006.corp.h.com</param-value>



       
</init-param>



 



       
<init-param>



           
<param-name>jcifs.smb.client.responseTimeout</param-name>



           
<param-value>20000</param-value>



       
</init-param>



 



        <init-param>



           
<param-name>jcifs.smb.client.soTimeout</param-name>



           
<param-value>25000</param-value>



       
</init-param>



 



       
<init-param>



           
<param-name>jcifs.netbios.hostname</param-name>



         
<param-value>my_Dev_9009</param-value>



       
</init-param>



 



 



Time out message:



 



jcifs.smb.SmbException:
Timeout waiting for response from server: MY_DEV_9009<00>/34.XXX.X.XXX



      at
jcifs.smb.SmbTransport.send(SmbTransport.java:643)



      at
jcifs.smb.SmbSession.sessionSetup(SmbSession.java:179)



      at
jcifs.smb.SmbSession.send(SmbSession.java:138)



      at
jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)



      at
jcifs.smb.SmbSession.logon(SmbSession.java:75)



      at
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:129)



      at
com.evermind[Oracle9iAS (9.0.2.1.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)



      at
com.evermind[Oracle9iAS (9.0.2.1.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)



      at
com.evermind[Oracle9iAS (9.0.2.1.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)



      at
com.evermind[Oracle9iAS (9.0.2.1.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)



      at
com.evermind[Oracle9iAS (9.0.2.1.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)



      at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)



      at
java.lang.Thread.run(Thread.java:479)



 



 



 



Thanks,



John Jih


More information about the jcifs mailing list