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.
精彩评论