Portal Server 6.3: NetFile not working properly

Hi,We use JES 2005Q1.NetFile was installed with JCIFS, but when we tried to access windows 2000 file system, and add a share, it complains"Win interface software not found."Any comments?Thanks,Dave
[253 byte] By [overcomer] at [2007-11-25 19:29:17]
# 1

For accessing windows hosts through NetFile, SUNWjcifs package has to be installed. This part has been documented. Do add this package and restart the portal server web container. I'm assume both Portal and Access Manager install the same web container. If you already install this package, set debug flag to message in AMConfig.properties and rebounce the server. Then check out log information. Jerry

jh23093 at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

Jerry,

Thanks for the reply.

JCIFS is already installed.

bash-2.05# pkginfo | grep jcifs

systemSUNWjcifsJCIFS library

I restarted the application server which hosts both access manager and portal, and set debug flag in AMConfig.properties file

We then configured a Common Host to a windows shared folder, and specified a share name without password (since no password is required), and then click on "NetFile Java2", NetFile gives a NullPointerException with the following error messages:

http://portal1.corp.inovsys.com:8080/portal/NetFileController

java.io.IOException: Server returned HTTP response code: 500 for URL: http://portal1.corp.inovsys.com:8080/portal/NetFileController

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at com.sun.portal.netfile.transport.NetFileHTTPTransport.createInputStream(NetFile HTTPTransport.java:174)

at NF2110.c(NF2110)

at NetFileApplet.d(NetFileApplet)

at NetFileApplet.start(NetFileApplet)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

com.sun.portal.netfile.shared.NetFileException:

at com.sun.portal.netfile.transport.NetFileHTTPTransport.createInputStream(NetFile HTTPTransport.java:184)

at NF2110.c(NF2110)

at NetFileApplet.d(NetFileApplet)

at NetFileApplet.start(NetFileApplet)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

com.sun.portal.netfile.shared.NetFileException:

at com.sun.portal.netfile.transport.NetFileHTTPTransport.createInputStream(NetFile HTTPTransport.java:184)

at NF2110.c(NF2110)

at NetFileApplet.d(NetFileApplet)

at NetFileApplet.start(NetFileApplet)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException

at NF2093.<init>(NF2093)

at NetFileApplet.start(NetFileApplet)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

If I did not specify Share name, and leave share name/password blank, and then access NetFile Java2, the NetFIle window pop up, and then if I tried to add a share, the "Win Interface software not found" message pop up.

Any insight into this problem?

Thanks,

Dave

overcomer at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

Hi, Jerry

"For accessing windows hosts through NetFile, SUNWjcifs package has to be installed. This part has been documented. "

Can you point me to the documentation that documents how SUNWjcifs should be installed? Maybe the way how I installed it is not right.

Thanks,

Dave

overcomer at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4

Could you check http://docs-pdf.sun.com/817-7691/817-7691.pdf page 64 as below:

The Sun Java System Portal Server software NetFile needs JCiFS libraries (bundled as SUNWjcifs) for Windows access. This needs to be installed in Portal Server node only. To install, use the following

steps. 1. Add this package by running pkgadd -d . SUNWjcifs from the current (this) directory.

2. Run PortalServer-base/SUNWps/lib/postinstall_JCIFS

3. Run PortalServer-base/SUNWps/bin/undeploy Verifying the Portal Server Installation

4. Run PortalServer-base/SUNWps/bin/deploy command.

5. Restart the server.

If you have done this, how big your file size you wish to retrieve? Jerry

jh23093 at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5

Hi Jerry,

Thanks a lot! Actually I just found the link you provided below and finished implementing it. After I complete those steps, the "Win Interface software not found" error is gone.

But when I tried to define/access a shared network drive on windows machine, I got the following errors:

Request Type Received: 601

06/15/2005 02:33:22:476 PM EDT: Thread[service-j2ee,5,main]

Listing for Directory /

06/15/2005 02:33:22:476 PM EDT: Thread[service-j2ee,5,main]

WinFile: setting WINS server's IP to-ad1

06/15/2005 02:33:22:476 PM EDT: Thread[service-j2ee,5,main]

WinFile: setting machineEncoding to-ISO8859_1

06/15/2005 02:33:22:497 PM EDT: Thread[service-j2ee,5,main]

ERROR: Exception in getting the file listing

jcifs.smb.SmbException: The network name cannot be found

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

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

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

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

at jcifs.smb.SmbFile.connect(SmbFile.java:514)

at jcifs.smb.SmbFile.connect0(SmbFile.java:484)

at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:460)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1380)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1356)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1237)

at com.sun.portal.netfile.servlet.java2.WinFile.getDirectory(WinFile.java:197)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor$DirectoryListin gHandler.expan

dDir(SerializedRequestProcessor.java:1701)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor$DirectoryListin gHandler.acces

s$000(SerializedRequestProcessor.java:1678)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor.getFilesList(Se rializedReques

tProcessor.java:414)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor.handleRequest(S erializedReque

stProcessor.java:286)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor.processRequest( SerializedRequ

estProcessor.java:205)

at com.sun.portal.netfile.servlet.java2.NetFileServlet.handleRequest(NetFileServle t.java:245)

at com.sun.portal.netfile.servlet.java2.NetFileServlet.doPost(NetFileServlet.java: 214)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:86

and also Access Denied error:

06/15/2005 04:02:31:531 PM EDT: Thread[service-j2ee,5,main]

WinFile: setting machineEncoding to-cp1252

06/15/2005 04:02:31:705 PM EDT: Thread[service-j2ee,5,main]

ERROR: Exception in getting the file listing

jcifs.smb.SmbAuthException: Access denied

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

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

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

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

at jcifs.smb.SmbFile.connect(SmbFile.java:514)

at jcifs.smb.SmbFile.connect0(SmbFile.java:484)

at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:460)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1380)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1356)

at jcifs.smb.SmbFile.listFiles(SmbFile.java:1237)

at com.sun.portal.netfile.servlet.java2.WinFile.getDirectory(WinFile.java:197)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor$DirectoryListin gHandler.expandDir(SerializedRequestProcessor.java:1701)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor$DirectoryListin gHandler.access$000(SerializedRequestProcessor.java:1678)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor.getFilesList(Se rializedRequestProcessor.java:414)

at com.sun.portal.netfile.servlet.java2.SerializedRequestProcessor.handleRequest(S erializedRequestProcessor.java:286)

The file is very small text file.

Dave

overcomer at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 6

Jerry

I can't help but wondering is there any special steps on the windows side to make it "sharable"?

Because on amconsole admin, it requires share name and password, and also on NetFile console it also requires a password. We left this password blank because we did not specify password on windows network shared drive.

Thanks,

Dave

overcomer at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...
# 7
As I remember, you need to creat a system name same as your window server name and put your window login name and password to sign in the window before you can access file system. Look like you don't have login to get your window system. is it right? Jerry
jh23093 at 2007-7-4 12:04:17 > top of Java-index,Web & Directory Servers,Portal Servers...