RE: Create a log file under my application directory

2002-02-25 Thread Bing Zhang

Never mind my question. I developed my application on NT with JBuilder,
debugged it with Tomcat that coming with JBuilder. However when I deployed
it on linux, it turned out that the path info is quite different and more
restrict on linux. 

Another question I put database driver, classes111.zip under
webapps/myapp/WEB-INF/lib on linux, it gave me exception. However under NT
development environment, it worked with no error. Is it true that tomcat on
linux does not recognize the *.zip file?

Thanks,

Bing

-Original Message-
From: Bing Zhang
To: '[EMAIL PROTECTED]'
Sent: 2/24/02 9:44 PM
Subject: Create a log file under my application directory

Hi,

I am running tomcat 4.0.1.

The connection pooling part of my application needs a new log file every
time it starts via new File(fileName). The filename is a file just
under
my application, such as webapps/myapp/connectionpool.log. But every time
I
run it, I got an exception: permission denied. 

I tried to use catalina.policy to add create and write permission for
that
particular file, but no fruit. What have I missed? I do not want to use
the
usual sevlet log() method for my connection pooling log.

Thanks,

Bing

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Create a log file under my application directory

2002-02-25 Thread Bing Zhang

Sorry one more time, never mind my question. Rename the *.zip to *.jar
solved the problem.

But why the deployment under linux is much harder than my development
environment on NT. Both use tomcat. On my NT, if I just give a log filename
without any path information, it silently creates the log file just under my
project directory. But under linux, I have to gave it absolute path.

Thanks,

Bing

-Original Message-
From: Bing Zhang
To: Bing Zhang
Cc: '[EMAIL PROTECTED]'
Sent: 2/25/02 12:12 AM
Subject: RE: Create a log file under my application directory

Never mind my question. I developed my application on NT with JBuilder,
debugged it with Tomcat that coming with JBuilder. However when I
deployed
it on linux, it turned out that the path info is quite different and
more
restrict on linux. 

Another question I put database driver, classes111.zip under
webapps/myapp/WEB-INF/lib on linux, it gave me exception. However under
NT
development environment, it worked with no error. Is it true that tomcat
on
linux does not recognize the *.zip file?

Thanks,

Bing

-Original Message-
From: Bing Zhang
To: '[EMAIL PROTECTED]'
Sent: 2/24/02 9:44 PM
Subject: Create a log file under my application directory

Hi,

I am running tomcat 4.0.1.

The connection pooling part of my application needs a new log file every
time it starts via new File(fileName). The filename is a file just
under
my application, such as webapps/myapp/connectionpool.log. But every time
I
run it, I got an exception: permission denied. 

I tried to use catalina.policy to add create and write permission for
that
particular file, but no fruit. What have I missed? I do not want to use
the
usual sevlet log() method for my connection pooling log.

Thanks,

Bing

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Create a log file under my application directory

2002-02-25 Thread Randy Layman


Tomcat doesn't support .zip on any platform, and its because of the
spec, not the developer's preference.  Simply rename your .zip to .jar (they
are the same structure, just different names).

Randy

 -Original Message-
 From: Bing Zhang [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 25, 2002 3:12 AM
 To: Bing Zhang
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: Create a log file under my application directory
 
 
 Never mind my question. I developed my application on NT with 
 JBuilder,
 debugged it with Tomcat that coming with JBuilder. However 
 when I deployed
 it on linux, it turned out that the path info is quite 
 different and more
 restrict on linux. 
 
 Another question I put database driver, classes111.zip under
 webapps/myapp/WEB-INF/lib on linux, it gave me exception. 
 However under NT
 development environment, it worked with no error. Is it true 
 that tomcat on
 linux does not recognize the *.zip file?
 
 Thanks,
 
 Bing
 
 -Original Message-
 From: Bing Zhang
 To: '[EMAIL PROTECTED]'
 Sent: 2/24/02 9:44 PM
 Subject: Create a log file under my application directory
 
 Hi,
 
 I am running tomcat 4.0.1.
 
 The connection pooling part of my application needs a new log 
 file every
 time it starts via new File(fileName). The filename is a file just
 under
 my application, such as webapps/myapp/connectionpool.log. But 
 every time
 I
 run it, I got an exception: permission denied. 
 
 I tried to use catalina.policy to add create and write permission for
 that
 particular file, but no fruit. What have I missed? I do not 
 want to use
 the
 usual sevlet log() method for my connection pooling log.
 
 Thanks,
 
 Bing
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]