Re: tomcat no longer writing to log files

2009-05-15 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Michael A. Repucci mich...@repucci.org
Date sent:  Thu, 14 May 2009 17:42:16 -0400
Subject:Re: tomcat no longer writing to log files
To: Tomcat Users List users@tomcat.apache.org

 Seems like a bit of animosity toward Tomcat has finally helped me make
 progress, mostly because it got all you gurus to actually explain a
 bit of how it works, and how it's packaged, all concepts I didn't
 understand. I'm a scientist, not a programmer.


Really? Your cv/resume indicates otherwise.

Sure your phd is in neuroscience but your current employment is listed as
Scientific Programmer and so was your last employment.

Considering that you are Proficient in things such as C/C++/C#, PHP ... 
Linux OS 
you should have considered that letting people know some details about your 
configuration/system would have helped.

Anyways, as stated by other people, get rid of the ubuntu packaged Tomcat and 
install the 
official one, also use a real Java version from SUN.


Also, tomcat does work out of the box. Incorrect administration of any system 
will stop it 
from working out of the box.



-Steve O.





 I'm new to Ubuntu and
 Tomcat. My colleagues have been completely unhelpful in this process.
 It works on their systems, so they've just left me to struggle on my
 own.
 
 My frustration is further fueled by the fact that the web site that
 our application will soon handle (http://neuroanalysis.org/toolkit/)
 is working just fine as static html; it doesn't change much, and most
 of the pages (not viewable externally) are generated automatically
 from code, using m2html or doxygen. But now they want me to integrate
 this site into the JSP format seen at the root
 (http://neuroanalysis.org/), despite the fact that I have zero
 experience with Tomcat, Java, or JSP, and nearly no web application
 development experience.
 
 It would have been nice if Tomcat just worked, out of the box, but it
 took me a couple days just to get it up and running. Now Tomcat works,
 at least the default page and the example webapps, but the application
 that my colleagues built won't work. This is their fault, as far as
 I'm concerned, yet there's nothing I can do to force them to improve
 what is probably sloppy code on their part.
 
 So I'm just looking for some help. Sorry to insult Tomcat, but thanks
 for the useful feedback. I'll work on the suggestions and let you know
 if I can't make any progress.
 
 :) Michael
 



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



Re: tomcat no longer writing to log files

2009-05-15 Thread Michael A. Repucci
On Fri, May 15, 2009 at 10:20 AM, Steve Ochani ocha...@ncc.edu wrote:

  Really? Your cv/resume indicates otherwise.

 Sure your phd is in neuroscience but your current employment is listed as
 Scientific Programmer and so was your last employment.

 Considering that you are Proficient in things such as C/C++/C#, PHP ...
 Linux OS
 you should have considered that letting people know some details about your
 configuration/system would have helped.


That's just marketing. If you look more carefully, I've never worked outside
of academia. I've even tried, and I can't get a job as a real programmer. My
father and brother are both real programmers, and I understand the
difference between what they know and what I know. But when trying to get a
job in science doing programming, the academics that tend to hire you like
to see proficiency, where my proficiency in any of those languages is
probably less than yours.


 Anyways, as stated by other people, get rid of the ubuntu packaged Tomcat
 and install the
 official one, also use a real Java version from SUN.


Working on it. I didn't realize that Ubuntu packages were the potentially
more difficult route. I'd made the false assumption that they might simplify
things for me.


 Also, tomcat does work out of the box. Incorrect administration of any
 system will stop it
 from working out of the box.


Honestly, what I'm most frustrated about isn't Tomcat, per say, but the
stuff written by my colleagues that should work with Tomcat. I'm a bit
baffled how the über-cross-platform Java (and its disciples Ant and Tomcat)
could be used to create code that is extraordinarily sensitive to the
version and platforms on which it is compiled and run. I suppose that's just
because the code was poorly written, and you could probably write platform-
and version-dependent code in any language, but it would have been nice if I
could have installed whatever the latest packages were on my system, and
compiled and run successfully the first time. Instead I'm spending upwards
of a week learning all the internals. I guess that's useful in the long run,
but I could just use some good and patient guidance. Sorry to have stepped
on anybody's toes, and thank you all for your help.

:) Michael


Re: tomcat no longer writing to log files

2009-05-15 Thread David Smith
Caldarale, Charles R wrote:
 From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com]
 Subject: Re: tomcat no longer writing to log files

 Then when I reinstalled, Tomcat didn't get reinstalled under 
 /etc nor /etc/init.d, and it didn't get started automatically
 as it had before.
 

 It wasn't clear to me whether you used a repackaged Tomcat this time, or 
 downloaded a real one from tomcat.apache.org.  If the latter, the scripts are 
 in Tomcat's bin directory, under the names startup.sh and shutdown.sh.  If 
 you used a 3rd-party repackaged version, there's no telling where they might 
 be.

  - Chuck


   

Actually it seemed clear to me the OP used a package installer as the
original tomcat download doesn't have anything to place files in /etc
automatically (at least not that I've ever seen).  I think the OP should
have used the operating system's install/uninstall tool to remove the
package instead of just deleting files.  It also sounds to me the
reinstall failed in some manner, maybe silently.

To Michael:

I would use the system control panel stuff included with your OS to
uninstall the tomcat package, then go back in and re-install it.  If the
re-install doesn't work, check the logs related to package maintenance
(maybe syslog?) and ask on a email list for your OS how to
remove/reinstall a damaged package. 

Or you could just uninstall it, download tomcat from tomcat.apache.org
and install it.  Installation is super easy -- just unarchive it using
the appropriate unzip/untar program, cd to tomcat's bin directory and
run startup.sh.  Once you get it running, then go ahead and modify files
like server.xml and tomcat-users.xml to taste as well as add/remove
webapps in the webapps directory.  It won't start automatically this
way, but at least you'll have something working.

--David

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



Re: tomcat no longer writing to log files

2009-05-15 Thread David Smith
Michael A. Repucci wrote:
 On Fri, May 15, 2009 at 10:20 AM, Steve Ochani ocha...@ncc.edu wrote:

   
  Really? Your cv/resume indicates otherwise.

 Sure your phd is in neuroscience but your current employment is listed as
 Scientific Programmer and so was your last employment.

 Considering that you are Proficient in things such as C/C++/C#, PHP ...
 Linux OS
 you should have considered that letting people know some details about your
 configuration/system would have helped.

 

 That's just marketing. If you look more carefully, I've never worked outside
 of academia. I've even tried, and I can't get a job as a real programmer. My
 father and brother are both real programmers, and I understand the
 difference between what they know and what I know. But when trying to get a
 job in science doing programming, the academics that tend to hire you like
 to see proficiency, where my proficiency in any of those languages is
 probably less than yours.


   
 Anyways, as stated by other people, get rid of the ubuntu packaged Tomcat
 and install the
 official one, also use a real Java version from SUN.
 


 Working on it. I didn't realize that Ubuntu packages were the potentially
 more difficult route. I'd made the false assumption that they might simplify
 things for me.


   
 Also, tomcat does work out of the box. Incorrect administration of any
 system will stop it
 from working out of the box.
 


 Honestly, what I'm most frustrated about isn't Tomcat, per say, but the
 stuff written by my colleagues that should work with Tomcat. I'm a bit
 baffled how the über-cross-platform Java (and its disciples Ant and Tomcat)
 could be used to create code that is extraordinarily sensitive to the
 version and platforms on which it is compiled and run. I suppose that's just
 because the code was poorly written, and you could probably write platform-
 and version-dependent code in any language, but it would have been nice if I
 could have installed whatever the latest packages were on my system, and
 compiled and run successfully the first time. Instead I'm spending upwards
 of a week learning all the internals. I guess that's useful in the long run,
 but I could just use some good and patient guidance. Sorry to have stepped
 on anybody's toes, and thank you all for your help.

 :) Michael

   
Webapps written to the servlet spec aren't super-sensitive.  If written
to spec, there might be some minor bit of setup (e.g. database pool),
but otherwise they should just plain work.  Your colleagues may have
done things outside the spec if their stuff doesn't just work with a
minor bit of setup like a database pool if needed.

Adding to that, tomcat as packaged at tomcat.apache.org and run on Sun's
JVM isn't sensitive either.  I've never had any trouble setting up an
instance of it, but then again, I don't use the third party packages
either.  If your system is using some other JVM like Kaffe, it may be
contributing to your headaches.

Try this for a confidence builder:
  - get tomcat 6 from tomcat.apache.org
  - unpack wherever you like
  - make sure you have a Sun JVM  version 1.5 or better installed and
available (execute the command java -version to see what comes up)
  - cd into tomcat's bin directory
  - start tomcat with ./startup.sh
  - go to your favorite browser and browse http://localhost:8080 (I
think that's the default, out of the box http connector port) and see
the magic.

Once you have that success, add your webapp to the webapps directory and
check it out on that same browser.  'tis just that simple.

--David

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



Re: tomcat no longer writing to log files

2009-05-15 Thread Andre-John Mas


On 15-May-2009, at 10:37, Michael A. Repucci wrote:

Also, tomcat does work out of the box. Incorrect administration  
of any

system will stop it
from working out of the box.



Honestly, what I'm most frustrated about isn't Tomcat, per say, but  
the

stuff written by my colleagues that should work with Tomcat. I'm a bit
baffled how the über-cross-platform Java (and its disciples Ant and  
Tomcat)

could be used to create code that is extraordinarily sensitive to the
version and platforms on which it is compiled and run. I suppose  
that's just
because the code was poorly written, and you could probably write  
platform-
and version-dependent code in any language, but it would have been  
nice if I
could have installed whatever the latest packages were on my system,  
and
compiled and run successfully the first time. Instead I'm spending  
upwards
of a week learning all the internals. I guess that's useful in the  
long run,
but I could just use some good and patient guidance. Sorry to have  
stepped

on anybody's toes, and thank you all for your help.



I hate to say it, but the best way to make Java code have issues is  
trying to
be too smart when doing something. This usually results in code that  
works
in certain narrow situations, but not the rest. What I mean by being  
'too
smart' is when someone try to make the best 'uber' code possible,  
which ends

up being convoluted and only understandable to the author when it was
written. I am not saying it is the case here, but programming is like
hand writing, in that you do yourself a favour by making sure it is  
written
well enough that someone else can read it and yourself in a month's  
time.


On the other hand, there are different version of servlet specification,
of Java, of Tomcat and each has their incompatibilities. Learning how to
make your code work in the widest range of conditions will help make
you a better programmer, IMHO.

André-John
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

On 5/14/2009 4:14 PM, Michael A. Repucci wrote:
 Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

Sorry for the barrage of questions, but the answers will help us figure
out what's going on:

Can you tell us how you start Tomcat?
Are you sure that it's running when no log files are generated?
What is the euid of the running Tomcat process?
Where /is/ Tomcat's log directory (you may have to read the script that
you use to start Tomcat to figure out what that is)?
What are the file permissions on Tomcat's log directory?
What are the file permissions of the log files themselves (if the files
still exist)?
What JVM are you using (try running java -version)?
What version of Tomcat are you using?

I don't want to start a flame war, but you'll catch more flies with
honey: saying that TC is a crappy piece of software is not recommended
technique when asking for help from this list.

As for your colleagues' code not running, I suspect it's something
simple like a required database library not being installed into Tomcat
(which is required, depending on how they have arranged everything).

Once error messages return, you are welcome to report the errors you get
from their application and we'll do what we can to help.

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoNj+QACgkQ9CaO5/Lv0PBvOwCeM4lDnGOsWkHJOl/nYI41pmlN
Gy8AoLHam8zJ4tmjAYFcqoKrWqK18pMJ
=RY7b
-END PGP SIGNATURE-

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



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Hi Tomcat'ers,

I'm completely new to Tomcat, and very unfamiliar with JSP or web
applications in general. I've been trying to set up an application on my
system (Ubuntu 9.04) that works just fine on my colleagues' systems (Windows
XP). I've got Tomcat working just fine, and the manager and demo
applications all work. But loading our application was giving me errors.
Before I can let you know what the errors are, I need help making Tomcat
write them once again to the log files. See, I did a silly thing. I wanted
to clear the log files (catalina.out and ourapp.log), so I just opened them,
emptied them, and resaved them. (Dumb, I know. I was getting frustrated.) Lo
and behold, Tomcat stopped writing to them, even after completely restarting
my computer. How can I get Tomcat to rewrite to these files? I've searched
all over this group's archive and the web, and the closest thing I found was
this not so helpful suggestion (
http://marc.info/?l=tomcat-userm=107947604330561w=2). Any ideas?

Did you try stopping Tomcat, deleting these logfiles altogether, and 
restarting Tomcat ?


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



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:09 PM, André Warnier a...@ice-sa.com wrote:

 Michael A. Repucci wrote:

 Hi Tomcat'ers,

 I'm completely new to Tomcat, and very unfamiliar with JSP or web
 applications in general. I've been trying to set up an application on my
 system (Ubuntu 9.04) that works just fine on my colleagues' systems
 (Windows
 XP). I've got Tomcat working just fine, and the manager and demo
 applications all work. But loading our application was giving me errors.
 Before I can let you know what the errors are, I need help making Tomcat
 write them once again to the log files. See, I did a silly thing. I wanted
 to clear the log files (catalina.out and ourapp.log), so I just opened
 them,
 emptied them, and resaved them. (Dumb, I know. I was getting frustrated.)
 Lo
 and behold, Tomcat stopped writing to them, even after completely
 restarting
 my computer. How can I get Tomcat to rewrite to these files? I've searched
 all over this group's archive and the web, and the closest thing I found
 was
 this not so helpful suggestion (
 http://marc.info/?l=tomcat-userm=107947604330561w=2). Any ideas?

  Did you try stopping Tomcat, deleting these logfiles altogether, and
 restarting Tomcat ?

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




Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Yes. That changed nothing. Still no catalina.out, still no ourapp.log.


Well, that'll teach you to do stupid things like that under Windows.

Seriously now, if this was one of my customers calling me to tell me the 
same story, I would ask them and what else did you do that you're not 
telling us ?



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



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:

 Michael A. Repucci wrote:

 Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

  Well, that'll teach you to do stupid things like that under Windows.

 Seriously now, if this was one of my customers calling me to tell me the
 same story, I would ask them and what else did you do that you're not
 telling us ?



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




Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?


Sorry, I got confused between your system and your colleague's.

I'll quote you :

--See life as it is, not as it appears to be.



But yes, I'll try some suggestions :
Under Ubuntu, your Tomcat is probably running under jsvc, which is a 
kind of wrapper which allows Tomcat to be started as non-root, but still 
use port 80 for instance if needed.
And it is probably also being launched by the script 
/etc/init.d/tomcatx.y. (where x.y is the version)
If you look in that file, you'll also probably find that it does some 
funny things with some logfiles, which normally should be found under 
/var/log/tomcatx.y., but which may just end up in one of the other 
logfiles in /var/log in this case.

If you did install this tomcat with the apt utility, then just do
- apt-get remove tomcatx.y
- apt-get purge tomcatx.y

Then, make sure that the java you have is a Sun Java, not gcj, and make 
it the default (update-alternatives java).

Then
- apt-get install tomcatx.y
and it should just magically run again.

(Under Ubuntu, you probably need to prefix all the above by sudo).

Alternatively, if you are going to be using this mainly for development, 
and you don't care if it is well-integrated with the rest of the Ubuntu 
package system, and you want a Tomcat layout a bit easier to understand 
than what the Debian and Ubuntu packagers do, you may want to download 
and install an official Tomcat from the Tomcat website.
That one installs under a single directory, usually /usr/local/tomcat or 
so. Then you have everything in one place, without symlinks etc..
The inconvenient is that you'll have to write your own system start/stop 
scripts etc..



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



Re: tomcat no longer writing to log files

2009-05-14 Thread David kerber

Michael A. Repucci wrote:

Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?
  
Other than saying that Tomcat is not a crappy piece of software, and 
I've been using it for many years, I'm afraid I don't have any other 
suggestions.  Have you searched your HD to see if the logs are ending up 
somewhere other than where you were expecting them to?




Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:

  

Michael A. Repucci wrote:



Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

 Well, that'll teach you to do stupid things like that under Windows.
  

Seriously now, if this was one of my customers calling me to tell me the
same story, I would ask them and what else did you do that you're not
telling us ?



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





  




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



RE: tomcat no longer writing to log files

2009-05-14 Thread Caldarale, Charles R
 From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com]
 Subject: Re: tomcat no longer writing to log files
 
 I think I'm going to give up on Tomcat entirely ... 
 crappy piece of software.

That's a pretty amazing attitude for somebody who admitted they screwed up and 
then blames a product that's used on about 60% of the app servers in the world. 
 Why would anyone bother to help you when you whine like that?

Regardless, before you throw the baby out with the bathwater, try installing an 
official Tomcat from tomcat.apache.org; the 3rd-party ones that come with many 
Linux distributions use symlinks to scatter bits and pieces of Tomcat all over, 
especially the log files.  It's highly likely you have destroyed those 
symlinks.  If you must use Ubuntu packages, you should be talking to Ubuntu 
support.

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Seems like a bit of animosity toward Tomcat has finally helped me make
progress, mostly because it got all you gurus to actually explain a bit of
how it works, and how it's packaged, all concepts I didn't understand. I'm a
scientist, not a programmer. I'm new to Ubuntu and Tomcat. My colleagues
have been completely unhelpful in this process. It works on their systems,
so they've just left me to struggle on my own.

My frustration is further fueled by the fact that the web site that our
application will soon handle (http://neuroanalysis.org/toolkit/) is working
just fine as static html; it doesn't change much, and most of the pages (not
viewable externally) are generated automatically from code, using m2html or
doxygen. But now they want me to integrate this site into the JSP format
seen at the root (http://neuroanalysis.org/), despite the fact that I have
zero experience with Tomcat, Java, or JSP, and nearly no web application
development experience.

It would have been nice if Tomcat just worked, out of the box, but it took
me a couple days just to get it up and running. Now Tomcat works, at least
the default page and the example webapps, but the application that my
colleagues built won't work. This is their fault, as far as I'm concerned,
yet there's nothing I can do to force them to improve what is probably
sloppy code on their part.

So I'm just looking for some help. Sorry to insult Tomcat, but thanks for
the useful feedback. I'll work on the suggestions and let you know if I
can't make any progress.

:) Michael


Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
On Thu, May 14, 2009 at 5:11 PM, André Warnier a...@ice-sa.com wrote:

 If you did install this tomcat with the apt utility, then just do
 - apt-get remove tomcatx.y
 - apt-get purge tomcatx.y

 Then, make sure that the java you have is a Sun Java, not gcj, and make it
 the default (update-alternatives java).
 Then
 - apt-get install tomcatx.y
 and it should just magically run again.


Hmm ... well now I've gone and made things worse again. André's advice
sounded good, but I'd basically already done this using the Synapic Package
Manager, and it didn't help. So I decided, foolishly, to take it one step
farther. I removed, and purged, then searched the system for anything Tomcat
related, and deleted that stuff too. Then when I reinstalled, Tomcat didn't
get reinstalled under /etc nor /etc/init.d, and it didn't get started
automatically as it had before. So is there some way to auto-recreate those
magic startup scripts? I know I could just start it manually, or create the
scripts myself, but they used to be there before I stupidly removed them.
How do I get them back?

Sad, tired, and frustrated. I'm going home.

:( Michael


RE: tomcat no longer writing to log files

2009-05-14 Thread Martin Gainty

Tomcat is an aggregation of well-tested apache components
could you elaborate a bit more on your implementation of either log4j or 
commons-logging?
and please read the Tomcat logging tutorial
http://www.mbaworld.com/docs/logging.html 
incidentally log4j specifies log4j.appender.R.File as in this log4j.properties 
file
 log4j.appender.R.File=${catalina.home}/logs/tomcat.log and commons-logging 
would handle the File specification as
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
HTH
Martin Gainty 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de 
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 14 May 2009 16:50:02 -0400
 From: dcker...@verizon.net
 To: users@tomcat.apache.org
 Subject: Re: tomcat no longer writing to log files
 
 Michael A. Repucci wrote:
  Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
  gone through the process of completely uninstalling and reinstalling the
  Tomcat packages, and it doesn't help. So now, not only does our application
  not work on my local machine, but I can't figure out why because Tomcat
  won't give me error messages. I think I'm going to give up on Tomcat
  entirely ... crappy piece of software. I take it that you have nothing
  useful to contribute to my problem?

 Other than saying that Tomcat is not a crappy piece of software, and 
 I've been using it for many years, I'm afraid I don't have any other 
 suggestions.  Have you searched your HD to see if the logs are ending up 
 somewhere other than where you were expecting them to?
 
 
  Michael Repucci
  (M) 718-288-4554
  (W) 212-746-0462
  mich...@repucci.org
  http://michael.repucci.org/
 
  --See life as it is, not as it appears to be.
 
 
  On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:
 

  Michael A. Repucci wrote:
 
  
  Yes. That changed nothing. Still no catalina.out, still no ourapp.log.
 
   Well, that'll teach you to do stupid things like that under Windows.

  Seriously now, if this was one of my customers calling me to tell me the
  same story, I would ask them and what else did you do that you're not
  telling us ?
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  
 

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

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

RE: tomcat no longer writing to log files

2009-05-14 Thread Caldarale, Charles R
 From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com]
 Subject: Re: tomcat no longer writing to log files
 
 Then when I reinstalled, Tomcat didn't get reinstalled under 
 /etc nor /etc/init.d, and it didn't get started automatically
 as it had before.

It wasn't clear to me whether you used a repackaged Tomcat this time, or 
downloaded a real one from tomcat.apache.org.  If the latter, the scripts are 
in Tomcat's bin directory, under the names startup.sh and shutdown.sh.  If you 
used a 3rd-party repackaged version, there's no telling where they might be.

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Seems like a bit of animosity toward Tomcat has finally helped me make
progress, mostly because it got all you gurus to actually explain a bit of
how it works, and how it's packaged, all concepts I didn't understand. I'm a
scientist, not a programmer. I'm new to Ubuntu and Tomcat. My colleagues
have been completely unhelpful in this process. It works on their systems,
so they've just left me to struggle on my own.


No wonder, if you're always grouchy like that.



My frustration is further fueled by the fact that the web site that our
application will soon handle (http://neuroanalysis.org/toolkit/) is working
just fine as static html; it doesn't change much, and most of the pages (not
viewable externally) are generated automatically from code, using m2html or
doxygen. But now they want me to integrate this site into the JSP format
seen at the root (http://neuroanalysis.org/), despite the fact that I have
zero experience with Tomcat, Java, or JSP, and nearly no web application
development experience.


Life is tough sometimes.  We empathise.


It would have been nice if Tomcat just worked, out of the box, but it took
me a couple days just to get it up and running. 


I hesitate to tell you this, considering the possible nefarious 
additional effect on your mood, but for most people it takes only a few 
minutes.
(I'm talking mostly of programmers though, don't really know about 
scientists).


Now Tomcat works, at least

the default page and the example webapps, but the application that my
colleagues built won't work. This is their fault, as far as I'm concerned,
yet there's nothing I can do to force them to improve what is probably
sloppy code on their part.


You could try your recipe of being rude to them also, it may work too.


So I'm just looking for some help. Sorry to insult Tomcat, but thanks for
the useful feedback. I'll work on the suggestions and let you know if I
can't make any progress.

:) Michael


:) André



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