开发者

jcifs with GWT: unsupported protocol smb

开发者 https://www.devze.com 2023-04-05 07:19 出处:网络
So I\'m writing a web app with GWT and GXT. I\'m trying to use jcifs.jar to access files on a samba server and I keep getting an \"unsupported protocol\" message.

So I'm writing a web app with GWT and GXT. I'm trying to use jcifs.jar to access files on a samba server and I keep getting an "unsupported protocol" message.

This is my code:

FileSystemManager manager = VFS.getManager();
FileObject buildLog = 
    manager.resolveFile("smb://tarzan/tgrid/build/build_log.txt");
InputStream stream = buildLog.getContent().getInputStream;

I read about this issue and开发者_如何学Go I understand I need to add jcifs.jar to the GWT containers classpath, is that correct? And if so, what does it mean? How do i do that?


The fact that you're coding your client-side, and possibly RPC, with GWT is unrelated to the libraries you use on the server-side. Those libraries have to be in your webapp's WEB-INF/lib folder. It's the same with the GWT DevMode, which simply embeds a lightweight HTTP server and servlet container.

0

精彩评论

暂无评论...
验证码 换一张
取 消