java - Why would my samba connection fail after an upgrade to windows 2012? -
i have jsp running on tomcat 6.0.26 (windows server 2008 r2 sp1) has samba (jcifs-1.3.17.jar) connection list files found on remote server.
this worked without problems until ad controller updated windows 2012 (fully patched).
now, can't list files on samba share anymore.
smbfile sffile = new smbfile("smb://myserver.com/share/", "subfolder", new ntlmpasswordauthentication("mydom", session.getattribute("userid").tostring(), session.getattribute("usercode").tostring())); smbfile[] asfdirectorylist = sffile.listfiles("webversion" + session.getattribute("plcode").tostring().substring(0,3) + "*.xls");
the second line returns following exception:
org.apache.jasper.jasperexception: jcifs.smb.smbexception: network name cannot found. org.apache.jasper.servlet.jspservletwrapper.handlejspexception(jspservletwrapper.java:491) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:407) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) root cause jcifs.smb.smbexception: network name cannot found. jcifs.smb.smbtransport.checkstatus(smbtransport.java:563) jcifs.smb.smbtransport.send(smbtransport.java:663) jcifs.smb.smbsession.send(smbsession.java:238) jcifs.smb.smbtree.treeconnect(smbtree.java:176) jcifs.smb.smbfile.doconnect(smbfile.java:911) jcifs.smb.smbfile.connect(smbfile.java:954) jcifs.smb.smbfile.connect0(smbfile.java:880) jcifs.smb.smbfile.resolvedfs(smbfile.java:669) jcifs.smb.smbfile.send(smbfile.java:773) jcifs.smb.smbfile.dofindfirstnext(smbfile.java:1986) jcifs.smb.smbfile.doenum(smbfile.java:1738) jcifs.smb.smbfile.listfiles(smbfile.java:1715) jcifs.smb.smbfile.listfiles(smbfile.java:1681) org.apache.jsp.financials.frfinancialsfilelisting_jsp._jspservice(frfinancialsfilelisting_jsp.java:220) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:377) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717)
does know why happen , how fix it?
[edit] mystery: updating ad controller windows 2012 should not have effect on webserver accessing share on fileserver (both of running windows 2008 r2 sp1). cannot understand that.
with windows server 2012 r2 smb 1.0 has been disabled default. therefore need activate smb 1.0 again in windows server 2012 r2.
- open
add roles , features wizard
of windows , check ifsmb 1.0/cifs file shareing support
activated: - enable smb 1.0 support opening registry editor. go
hkey_local_machine\system\currentcontrolset\services\lanmanserver
, change value ofdependonservice
samss srv2
samss srv
- restart windows
you can verify if support activated checking properties of system service server (lanmanserver)
in tab dependencies smb 1.xxx activated:
source: http://woshub.com/smb-1-0-support-in-windows-server-2012-r2/#!prettyphoto
Comments
Post a Comment