Solved

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

Posted on 2015-02-18
3
299 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 78

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 61

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now