Solved

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

Posted on 2015-02-18
3
311 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 79

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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