You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ganesh Sabbani <ga...@oracle.com> on 2010/03/18 09:58:49 UTC

Fwd: Tomcat not able to access folder which is in virtual drive

----- Forwarded Message -----
From: ganesh.sabbani@oracle.com
To: users@tomcat.apache.org
Sent: Thursday, March 18, 2010 2:16:39 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Fwd: Tomcat not able to access folder which is in virtual drive


----- Forwarded Message -----
From: ganesh.sabbani@oracle.com
To: dev@tomcat.apache.org
Sent: Thursday, March 18, 2010 1:12:52 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Tomcat not able to access folder which is in virtual drive

Hi,
I am developing a project wherein it reads log files from virtual drive.
I have created the project in eclipse and it is working perfectly fine using tomcat and reads the log files, but the issue which i am facing is when i create a WAR file and deploy it on tomcat it is unable to access the virtual drive!
And when i change the drive location to say c: or d: then i can see the logs,cant figure out whats d problem for last 2days!!Please reply as soon as possible.
Thanx.
Regards,
Ganesh Sabbani

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat not able to access folder which is in virtual drive

Posted by Peter Crowther <pe...@melandra.com>.
On 18 March 2010 08:58, Ganesh Sabbani <ga...@oracle.com> wrote:

> I have created the project in eclipse and it is working perfectly fine
> using tomcat and reads the log files, but the issue which i am facing is
> when i create a WAR file and deploy it on tomcat it is unable to access the
> virtual drive!
>

What user is the deployed Tomcat running as?

Can that user see the mapped drive?

Remember that if you're starting Tomcat as a Windows service, Windows only
does a partial profile load - it doesn't re-create mapped drives for the
service.


> Please reply as soon as possible.
>
> As a friendly note... if you include this at the bottom of requests for
free support on mailing lists, you are more likely to annoy people who might
reply and *less* likely to get a fast answer.  We do this out of kindness,
not because we're paid.

- Peter

RE: Tomcat not able to access folder which is in virtual drive

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Karthik Nanjangude [mailto:karthik.nanjangude@xius-bcgi.com]
> Subject: RE: Tomcat not able to access folder which is in virtual drive
> 
> I suggest separating the Project into 2 parts

How is that going to help, when

A) the webapp operates properly under Eclipse; and

B) Windows services can't use mapped drives (as Peter pointed out), regardless of how you partition an application?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat not able to access folder which is in virtual drive

Posted by Karthik Nanjangude <ka...@xius-bcgi.com>.
Hi

I suggest separating the Project into 2 parts

1) Vitual  application to read the log files
    This can be achieved in tomcat
    [ /conf/Catalina/localhost/ virtualdirectory.xml ] via  remote directory
    mount

"virtualdirectory.xml"  can have  something like this [real path of log files ]

<?xml version="1.0" encoding="UTF-8"?>
<Context
    docBase="D:/JAVA/<Log file directory>"
    useNaming="false">
</Context>




2) Now in u'r  2nd part of project u can call the URL as
   http://<IP>/:<PORT>/virtualdirectory/ayx.log





With regards
Karthik



-----Original Message-----
From: Ganesh Sabbani [mailto:ganesh.sabbani@oracle.com]
Sent: Thursday, March 18, 2010 2:29 PM
To: users@tomcat.apache.org
Subject: Fwd: Tomcat not able to access folder which is in virtual drive


----- Forwarded Message -----
From: ganesh.sabbani@oracle.com
To: users@tomcat.apache.org
Sent: Thursday, March 18, 2010 2:16:39 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Fwd: Tomcat not able to access folder which is in virtual drive


----- Forwarded Message -----
From: ganesh.sabbani@oracle.com
To: dev@tomcat.apache.org
Sent: Thursday, March 18, 2010 1:12:52 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Tomcat not able to access folder which is in virtual drive

Hi,
I am developing a project wherein it reads log files from virtual drive.
I have created the project in eclipse and it is working perfectly fine using tomcat and reads the log files, but the issue which i am facing is when i create a WAR file and deploy it on tomcat it is unable to access the virtual drive!
And when i change the drive location to say c: or d: then i can see the logs,cant figure out whats d problem for last 2days!!Please reply as soon as possible.
Thanx.
Regards,
Ganesh Sabbani

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org