Solved

Apache Tomcat Web Server - How to connect the web server to a windows file share

Posted on 2015-02-18
3
324 Views
Last Modified: 2015-02-24
We are migration from a linux tomcat v5.5 install to a windows tomcat v 7.0.33 install.  The Windows tomcat server runs on a Windows 2008 R2 server.  IIS is not installed.

On the linux server this command is used to mount a windows file system in linux.  It mounts the file system at server startup.

mount -t cifs -o username=samba,password=password  //server/share/folder       /folder/linux_mount_point

The linux based application running on Tomcat stores files on a Windows File server using the above mount point.  Right now the Windows File server holds about 45 GB of files.

Now that the application is moving to a windows based tomcat platform, how do i configure the windows server to make the same type of connection the linux server makes?  I prefer not to move the file locally to the new Window's tomcat server.
0
Comment
Question by:epmmis
3 Comments
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 40617869
There are a few way to do this but the easiest is to "net use  <drive> \\servername\sharename  password /user:username"  then you can reference the path i.e. x:\ would be the root of the share..
0
 
LVL 62

Accepted Solution

by:
gheist earned 250 total points
ID: 40620017
You must run Tomcat as user that can access shares.
Also tcnative sendfile() does not work with network files.
And this too: web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0227
0
 

Author Closing Comment

by:epmmis
ID: 40627594
I just learned that it is already built into the application its capability to use a UNC path to external shares.

Our plan now is to make the linux user which mounts the CIF connections now, the user which starts the tomcat service.


Hopefully that will be sufficient.

Thank you for your comments.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question