Free Tomcat Hosting?

2011-12-16 Thread Rhino


 I'm wondering if anyone can tell me of anywhere that has free Tomcat 
hosting?


I'd like to make a small number of Tomcat servlets and JSPs available as 
part of a code portfolio to show prospective clients and/or employers. 
Presumably, these would get very little use, just the occasional glance 
from someone who wanted to see an example of my work. I don't want to 
leave my own computer running 24x7 and I can't afford to pay for hosting 
at this point, although that may change down the road.


I've seen plenty of free hosting services that offer things like MySQL 
or blogging but I haven't found any yet that offer Tomcat.


Can anyone point me to some free Tomcat hosting?

--
Rhino

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



Re: hi

2011-12-02 Thread Rhino


 There's an amazing new tool, just released to the world, that will 
help you out. It's called a search engine. One very exciting search 
engine is Google. Those of us who have used it like to say Google is 
your friend because we use it look for things that we want to know.


May I suggest you explore Google? The URL is http://google.com.

--
Rhino

On 2011-12-02 14:21, srilaxmi deevela wrote:

where is the link

On Sat, Dec 3, 2011 at 12:47 AM, André Warniera...@ice-sa.com  wrote:


srilaxmi deevela wrote:


Hi,
i havesome doubts on web applications in java, is there any   websites
like
users@tomcat.apache.org

  this is going to be a hard case..



--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@tomcat.**apache.orgusers-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 Consultant

2010-11-18 Thread Rhino


 There are two languages in the cited message, German and French. I'm 
positive about that.


I'm not great in either language and certainly don't know all of the 
words but I think the French message is just a translation of the German 
message which appears to be a standard confidentiality clause of the 
kind found in many emails. You know the kind: This information is 
confidential and is only intended for whoever. If you receive it in 
error, do such-and-such.


I'm not clear about the context of this message but if you're thinking 
it's a Tomcat question, I'm pretty sure it's not.


--
Rhino


On 2010-11-19 00:20, Asangansi wrote:

Lets wait and watch guys.


skype: asangansi.ini
+47 48295638



On Fri, Nov 19, 2010 at 12:19 AM, Pidp...@pidster.com  wrote:


On 18/11/2010 21:52, Martin Gainty wrote:

can we get someone from the vatican to translate?

I think there's a couple of Cardinals lurking on the list, but you might
have to wait until it's working hours in Europe again.


p


Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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, 18 Nov 2010 21:08:37 +
From: ma...@apache.org
To: users@tomcat.apache.org
Subject: Re: Tomcat Consultant

On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:

Um, can anyone translate this? Am I really seeing that?
http://training.mulesoft.com/about/index.html

It looks like Latin to me. Google translate will take a stab at it on
that basis.

Best guess, someone at Mulesoft's idea of a joke (not sure where the
humour is) or their website has been hacked.

Mark

-
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: Basic Question

2010-04-16 Thread Rhino
Can you remind me how to do that (or where to find documentation 
describing it)?


FileUploadServlet is one that I wrote some time back and it has a 
web.xml file associated with it. I'm pretty sure I created it myself 
although I don't actually remember doing so at this point. Here are the 
current contents but I'm not sure if this is still how the web.xml 
should look at this point:


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

   servlet
   servlet-nameform/servlet-name
   servlet-classupload.UploadForm/servlet-class
   /servlet
   servlet
   servlet-nameservlet/servlet-name
   servlet-classupload.UploadServlet/servlet-class
   init-param
   param-nameuploadDir/param-name
   param-valueuploads/param-value
   /init-param
   /servlet

   servlet-mapping
   servlet-nameform/servlet-name
   url-pattern/form/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nameservlet/servlet-name
   url-pattern/servlet/url-pattern
   /servlet-mapping

/web-app

Also, does this file need to be put into Tomcat somehow so that Tomcat 
can see it? If so, what is the proper mechanism to do so? Or does the 
act of exporting to the war file do that automagically? Again, my memory 
is really fuzzy on this stuff and I don't remember where these 
techniques are described.


--
Rhino

Joseph M Morgan wrote:
Did you configure your servlets in your web.xml properly?  Also...it 
sounds as though you are deploying each servlet in its own app.   Make 
sure you are invoking the servlet through the proper app.


-Original message-
From: Rhino rhi...@sympatico.ca
To: tomcat-user tomcat-u...@jakarta.apache.org
Sent: Fri, Apr 16, 2010 01:07:29 GMT+00:00
Subject: Basic Question

I hope someone will take pity on me and help me with this very basic 
question. I was moderately fluent with servlets and Tomcat several 
years ago but haven't touched them in a while. I'm trying to get back 
into servlets now.


I am having trouble getting my servlets to start in Tomcat. I 
inevitably get a 404 error. I am running Tomcat 6.0.26 on Windows XP 
SP2. The sample applications in Tomcat run fine.


My servlets are in Eclipse 3.5.2. They compile fine and I have used 
the Tomcat menu to export them to the war file directory; no error 
gets reported when I do the export. I did a manual deploy of the war 
file from the war file to deplay section of the Tomcat Manager page.


When I start the Tomcat Manager in my browser, it shows several 
servlets, including the examples and the servlets that I have deployed 
myself. In each case, my own servlets seem to be started just fine. 
All of them say running, the number of sessions is 0 for each of 
them, and all of them have stop, reload and undeploy options which are 
clickable and a start option which is not clickable. To me, that says 
these puppies are started and there is no error in any of them.


However, when I click on my servlets, like /FileUploadServlet for 
example, I get this:



 HTTP Status 404 - /FileUploadServlet/



*type* Status report

*message* _/FileUploadServlet/_

*description* _The requested resource (/FileUploadServlet/) is not 
available._





 Apache Tomcat/6.0.26



I feel sure that I've simply neglected to do something simple and 
straightforward but my memory is failing me. I can't remember what 
other steps are needed to get a servlet configured so that it runs in 
Tomcat.


I was going to try to run the servlet in Eclipse but I'm darned if I 
can remember how to start it there either.


Can someone help me out?

--
Rhino

-
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: Basic Question

2010-04-16 Thread Rhino



Konstantin Kolinko wrote:

2010/4/16 Rhino rhi...@sympatico.ca:
  

However, when I click on my servlets, like /FileUploadServlet for example, I
get this:

 HTTP Status 404 - /FileUploadServlet/




The keyword here is welcome page.  If your WAR file does not have
index.jsp or index.html, or some explicit mapping for its root
address, you will get a 404 response trying to access the root of your
webapp.

According to the web.xml that you posted, your application will
respond to the following URLs:
/FileUploadServlet/form
/FileUploadServlet/servlet

  
As Homer Simpson would say: D'oh!. I was clicking on the application 
from the Tomcat Manager so it was trying to launch FileUploadServlet, 
i.e. it was trying to go to http://localhost:8080/FileUploadServlet. As 
soon as I added /form to the URL it came up fine! It has been at least 
four or five years since I last played with a servlet so I simply forgot 
about adding that part of the URL. Thank you!!!

Some pointers:
http://tomcat.apache.org/tomcat-6.0-doc/index.html
http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html
http://wiki.eclipse.org/WTP_Tomcat_FAQ

You may also want to know, that ${catalina.base}/conf/web.xml provides
the defaults for your WEB-INF/web.xml.
Do not change that common file (in /conf), though, unless it is really needed.

  

And thanks also for this information! I'll keep it handy.

Best regards,

Rhino

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



Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread Rhino


- Original Message - 
From: CalvinD [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, May 17, 2006 12:26 PM
Subject: Displaying Photos stored in Oracle in HTML generated by servlet




I am working on a project that queries staff information and photos from 
our

oracle database and I need to display this information in a web page.
I can query and display the textual data but now I need to add the image
along with the text.
If this is not the right form, please direct my to the most appropriate.
Otherwise, any help will be appreciated.


I'm not quite sure what you want.

Are you asking if it is possible? Are you looking for a program that does 
what you want? Are you looking for code fragments that show the gist of how 
to do what you want? Are you concerned with how to get the picture out of 
the database or how to display it once you've retrieved it or both?


In a nutshell, it sounds like it ought to be pretty straightforward to do 
what you want to do. I've obtained blobs from databases before - but it was 
a DB2 or MySQL database, not Oracle - it wasn't too hard. Simply displaying 
a JPEG, GIF, or PNG from the filesystem within a servlet is easy. Fetching a 
blob from a database and then displaying it might be a little harder; you 
may have to put the image in the file system first although, now that I 
think about it, the ImageIO classes should be able to grab the photo without 
first having to write it to the file system.


Of course, I'm assuming that your program will be written in a recent 
version of Java that support ImageIO.


--
Rhino



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16/05/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Displaying Photos stored in Oracle in HTML generated byservlet

2006-05-17 Thread Rhino
The current version of Java is indeed 1.5. However, the java 1.6 beta is now 
available and a few people are using it - but now me.


I'm still not clear how we can help you.

I understand that you will be getting the pictures from a blob column in the 
database but you say that you don't have a blob column yet and therefore you 
will not have any blob data in the table either. If you're asking how to get 
the photos into the database, I can only guess with respect to Oracle. I've 
never worked with Oracle. Then again, I've found MySQL and DB2 to be very 
similar and I know all the major relational databases have a lot of 
similarities since they are written to the same standards so I'm pretty sure 
that a program that works for DB2 or MySQL will work with minimal changes 
with Oracle.


I've got a little prototype Java program, StoreBlobs, that stores a blob in 
a table column but I just checked and the database is DB2 and it's for a 
rather old version of JDBC (1.22) so I'm using a JDBC-1.22-centric way of 
storing the data, i.e. I'm using setBytes() rather than setBlobs(). I've 
just checked and I don't even have the database any more; that means I don't 
know what the table definition was and therefore I have no way of reliably 
recreating the table so that I can run the code again or try variations of 
the code.


Wait! I just checked the server and have a slightly newer version of 
StoreBlobs that is storing a blob in a MySQL table and using setBlobs() to 
do it. The table still exists. I've just run it and proven that the program 
still works. I also have a program, FetchBlobs, that retrieves the blob from 
the database as well. FetchBlobs writes the blob to the file system so that 
another program can display it on a standard HTML page. You'd have to modify 
that bit of the code; instead of writing the newly fetch Blob to the file 
system, you'd have to somehow make it into an object that the servlet could 
display. I'm really not sure what form that code would have to take.


If either or both of those two prototype programs would help you, let me 
know and I'll post some snippets or even the entire programs. (They're 
small.) As for writing out the blob out in the response, someone else will 
have to help you with that.


--
Rhino



- Original Message - 
From: Calvin Deiterich [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, May 17, 2006 2:31 PM
Subject: Re: Displaying Photos stored in Oracle in HTML generated byservlet



Rhino,
That for getting back to me.
I am coding with Java 1.5(or whatever they call the latest version). I
have all the framework done and can create the table without the
images.
I would prefer not to have to write the image to the file system since
there could be many photos being displayed depending on the parameters.
I have a person class that has one Blob field image_data and five
String fields(name, location, etc.).
I need to write that image_data field to the response along with the
other fields in the servlet so that the image is displayed on the web
page.
Thanks
Calvin




[EMAIL PROTECTED] 5/17/2006 2:11:34 PM 


- Original Message - 
From: CalvinD [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, May 17, 2006 12:26 PM
Subject: Displaying Photos stored in Oracle in HTML generated by
servlet




I am working on a project that queries staff information and photos

from

our
oracle database and I need to display this information in a web

page.

I can query and display the textual data but now I need to add the

image

along with the text.
If this is not the right form, please direct my to the most

appropriate.

Otherwise, any help will be appreciated.


I'm not quite sure what you want.

Are you asking if it is possible? Are you looking for a program that
does
what you want? Are you looking for code fragments that show the gist of
how
to do what you want? Are you concerned with how to get the picture out
of
the database or how to display it once you've retrieved it or both?

In a nutshell, it sounds like it ought to be pretty straightforward to
do
what you want to do. I've obtained blobs from databases before - but it
was
a DB2 or MySQL database, not Oracle - it wasn't too hard. Simply
displaying
a JPEG, GIF, or PNG from the filesystem within a servlet is easy.
Fetching a
blob from a database and then displaying it might be a little harder;
you
may have to put the image in the file system first although, now that I

think about it, the ImageIO classes should be able to grab the photo
without
first having to write it to the file system.

Of course, I'm assuming that your program will be written in a recent
version of Java that support ImageIO.

--
Rhino



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date:
16/05/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How can I limit the number of instance my servlet can server concurrently?

2006-04-04 Thread Rhino
Just a guess but couldn't you accomplish this by setting up your servlet to 
use a connection pool and then limiting the connection pool to 10 threads 
maximum?


--
Rhino

- Original Message - 
From: Meryl Silverburgh [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, April 04, 2006 2:42 AM
Subject: How can I limit the number of instance my servlet can server 
concurrently?



Is it possible to limit Tomcat to just handle 10 concurrently request
to my servlet?
for all others (11 and onward), it will queue them up, and serve them
only when one of the currently-serving request is done?

Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: what is the command to find out whether or not Tomcat is installed on your server

2006-02-19 Thread Rhino

I think you should clarify what you are trying to determine.

Are you asking for a command that will prove that Tomcat is (correctly) 
installed? Or are you asking whether a given application is installed within 
Tomcat? Or, do you really want to know if Tomcat is simply running at a 
given moment?


After all, Tomcat might be correctly installed but still not have any 
applications in it beyond the Manager applications and examples that come 
with it. Are you simply trying to verify that the installation of Tomcat 
worked? Or are you trying to determine if an application that you wrote and 
installed in Tomcat was correctly installed?


The two questions may have somewhat different answers.

Also, what version of Tomcat are you using? The techniques may change a bit 
from one version of Tomcat to the next.


--
Rhino

- Original Message - 
From: karen lin [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Sunday, February 19, 2006 1:50 PM
Subject: what is the command to find out whether or not Tomcat is installed 
on your server



Hi All:
I am not very familiar with Unix OS, Let us say, after i logged in to my
unix account,
what is the command i should use to find out whether or not TomCat is
installed??

please let me know..

Many thanks..






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fw: what is the command to find out whether or not Tomcat is installed on your server

2006-02-19 Thread Rhino



For the sake of others who might have the 
same question, now or in the future, I'm replying on the list.

Our copy of Tomcat 4 is not installed in 
/usr/lib; it is in /var/tomcat4. It's been a few years since it was installed 
and I honestly don't remember if that was the default install location or if we 
put it in a non-standard location for some reason so this may not be where you 
will find Tomcat on your Linux machine. Our machine is currently Linux Mandrake 
9, I think, although the administrator was talking about upgrading to Mandrake 
10 a while ago so he may have upgraded to 10 by now. 

I seem to recall that we installed an RPM 
in order to get Tomcat up and running but I may be confusing this with my memory 
of when weinstalledMySQL. In some cases, I think RPMs use 
non-standard locations for software. 

I think you should be consulting the 
Tomcat documentation to see where your particular copy of Tomcat is supposed to 
be. According to the Tomcat 5.5 installation document, found at http://tomcat.apache.org/tomcat-5.5-doc/setup.html, 
it looks like Tomcat can be in a variety of places ona Linux machine. 
According to that document, it appears that you are relatively free to choose 
any convenient location for your copy of Tomcat. 

Maybe you need to ask a different 
question: "If I'm pretty sure that Tomcat is installed on a given Linux machine 
but I'm not sure where it is, how do I find it?" 

--
Rhino

- Original Message - 
From: karen lin 
To: [EMAIL PROTECTED] 
Sent: Sunday, February 19, 2006 3:04 PM
Subject: Re: what is the command to find out whether or not Tomcat 
is installed on your server
I am simply trying to verify that the installation of 
Tomcatworked...so if i am logged in to the Unix account, go under 
usr/lib , i should be able to find out to see if tomcat is under usr/lib, 
correct??please let me know..many thanks..karen
On 2/19/06, Rhino 
[EMAIL PROTECTED] 
wrote:
I 
  think you should clarify what you are trying to determine.Are you 
  asking for a command that will prove that Tomcat is (correctly)installed? 
  Or are you asking whether a given application is installed withinTomcat? 
  Or, do you really want to know if Tomcat is simply running at agiven 
  moment?After all, Tomcat might be correctly installed but still not 
  have anyapplications in it beyond the Manager applications and examples 
  that come with it. Are you simply trying to verify that the installation 
  of Tomcatworked? Or are you trying to determine if an application that you 
  wrote andinstalled in Tomcat was correctly installed?The two 
  questions may have somewhat different answers. Also, what version of 
  Tomcat are you using? The techniques may change a bitfrom one version of 
  Tomcat to the next.--Rhino- Original Message 
  -From: "karen lin"  
  [EMAIL PROTECTED]To: users@tomcat.apache.orgSent: 
  Sunday, February 19, 2006 1:50 PMSubject: what is the command to find out 
  whether or not Tomcat is installed on your serverHi All:I 
  am not very familiar with Unix OS, Let us say, after i logged in to myunix 
  account,what is the command i should use to find out whether or not TomCat 
  isinstalled??please let me know..Many 
  thanks..No 
  virus found in this incoming message.Checked by AVG Free Edition. 
  Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 
  17/02/2006--No virus found in this outgoing 
  message.Checked by AVG Free Edition.Version: 7.1.375 / Virus Database: 
  267.15.11 /264 - Release Date: 
  17/02/2006-To 
  unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]-- "Being nice and being kind are completely different. 
Just cuz you are nice, that does not mean you are kind. I am always kind, 
but I am not always the nicest person around..."---Vishal Malik 



No virus found in this incoming message.Checked by AVG Free 
Edition.Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 
17/02/2006
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: A question about log rotation

2006-02-11 Thread Rhino
I had a similar issue on a Mandrake system running tomcat 4.1.24 a couple of 
years back. I resolved it eventually and wrote a bit of documentation for 
myself and the Linux sysadmin for our system. It was not intended for use by 
anyone but us so it may not explain things sufficiently clearly but it's a 
start. If you need any clarification on this points in my document, feel 
free to ask. I don't guarantee a clear answer since I'm far from being an 
expert, but if I can't help, maybe someone else on this list can.


I don't know if this information is applicable for RH9 but since they are 
both Linux, I have my fingers crossed.


=
Logrotate and logs:

/etc/logrotate.conf controls the logrotate program. This file sets the basic
parameters of the program, e.g. how many weeks worth of backlogs to keep and
whether to use compression. It also identifies the directory for the 
logrotate

control files; in the case of our server the relevant line says 'include
/etc/logrotate.d' (excluding the apostrophes).

The full contents of /etc/logrotate.conf on our server is:

# see man logrotate for details

# rotate log files weekly

weekly

# keep 4 weeks worth of backlogs

rotate 4

# create new (empty) log files after rotating old ones

create

# uncomment this if you want your log files compressed

compress

# RPM packages drop log rotation information into this directory

include /etc/logrotate.d

# no packages own lastlog or wtmp -- we'll rotate them here

/var/log/wtmp {

monthly

create 0664 root utmp

rotate 1

}

/var/log/lastlog {

monthly

rotate 1

}

# system-specific logs may be configured here




The logrotate directory, /etc/logrotate.d in the case of our server, has one
file for each package handled by logrotate. For instance, on our server,
directory /etc/logrotate.d has a file for Tomcat, another for MySQL, another
for cron, etc. Within each of these files are specific instructions about
what to do about the logs generated by the facility. For example,
/etc/logrotate.d/tomcat4 contains instructions about the tomcat logs.

The full contents of the file for the tomcat package on our server,
/etc/logrotate.d/tomcat4, is as follows:

/var/tomcat4/logs/*.txt {

copytruncate

weekly

rotate 4

nocompress

missingok

}

/var/tomcat4/logs/catalina.out {

copytruncate

weekly

rotate 4

nocompress

missingok

}

To uncompress a log file that has been compressed by logrotate, use
'gunzip'. For example, to uncompress a file called
localhost_log.2004-05-08.text.24.gz, use:

gunzip localhost_log.2004-05-08.text.24.gz

This yields the file:

localhost_log.2004-05-08.txt.24

To uncompress *all* files in a given directory, use this command while
positioned in the directory:

gunzip *

The real position of the logs directory is /var/log/tomcat4. Since real
paths should be used in a 'find' command if at all possible (as opposed to
using symbolic links), real paths are used in the following commands.

The following command will find all empty files in the tomcat logs
directory, assuming that the user executing the command has sufficient
authority to read the logs directory, and print their names:

find /var/log/tomcat4 -size 0 -name '*' -print

finds every empty file in the /var/tomcat4/logs directory displays the
file's particulars.

The following command will delete those same empty files if the user has
sufficient authority over the /var/log/tomcat4 directory:

find /var/log/tomcat4 -size 0 -name '*' -exec -rm {} \;

=

I hope this helps you.

--
Rhino

- Original Message - 
From: Randy Paries [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 11, 2006 1:21 AM
Subject: A question about log rotation


Hello,

I have a tomcat apache-tomcat-5.5.15 running on RH9

i am having this wierd problem. I think it is log rotation

I start getting exceptions in the catalina.out that it can not access
a log file .

permission denied

I have tomcat running as user  apache.

But when the logs are rotated, they are create by root,

what rotates the logs and where do change the settings.

Thanks
Randy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 10/02/2006




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 10/02/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please Help Setting Up Site

2006-01-28 Thread Rhino
Excuse me for top-posting but Outlook Express is not letting me intersperse 
my reply in your original note correctly


The answer to your problem *may* be at http://ZoneEdit.com. ZoneEdit is very 
useful service that lets you manage DNS issues more easily; it is free if 
you have only a small number of sites to manage. If you go to their site, 
you should be able to set up a free account for yourself using the 
information on the screens provided (follow the Sign Up link), then create 
DNS entries that map www.mysite.com to mysite.com. I haven't set up an 
account in a fair while so my memory is rusty on the details but I seem to 
recall finding it fairly simple to create the entries I needed and I am no 
DNS guru by any stretch of the imagination!


The reason I said that ZoneEdit *may* solve your problem is the certificate 
issue. I don't see anything about certificates in the pages that list the 
settings for my domains. You may need to handle the certificate issue 
outside of ZoneEdit; I don't know nearly enough about certificates to talk 
intelligently about them. You can also email ZoneEdit and ask them 
questions; they do tech support by email and respond pretty quickly, usually 
within a couple of hours (at least on weekdays). They probably know how 
certificates get handled even if they don't manage certificates themselves.


Rhino


- Original Message - 
From: Scott Purcell [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, January 28, 2006 10:37 AM
Subject: Please Help Setting Up Site


Hello,

I have been screwing around with a few Tomcat 5.5 problems for some time, 
and cannot seem to resolve them, and could use some help.


First off.
1) I have a real web site that needs to be shown to the world. I have 
purchased a DNS entry and created the site.

   I am running on port 80.
   After installing a clean tomcat, I put the folder under webapps. The 
folder is the webapp.

   I am running a certificate under Catalina in server.xml for this site.
   In server.xml I only changed 8080 to 80. And left the host as 
localhost

  Now if someone types in the proper http://www.mysite.com all is good.
  PROBLEM: when friends and family type in http://mysite.com (forgetting) 
the www, they get to my site, but get the message that the certificate
   is wrong. And this makes sense because the certificate is assigned to 
www.mysite.com, not mysite.com. Make sense?

  How can I get around this problem. It is killing me.


Please if anyone has ideas, let me know.
Do I need to do anything with my dns entry in tomcat?

Also, what is the admin module I see and can I install it on a existing 
Tomcat 5.5 server?







No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 27/01/2006



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 27/01/2006


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upgrading Tomcat

2005-12-01 Thread Rhino
Thanks very much for your help with my questions. I don't know how I missed 
the note in the archive; I suppose I was distracted by too many balls in the 
air today :-)


Rhino

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 01, 2005 4:04 PM
Subject: RE: Upgrading Tomcat



From: Rhino [mailto:[EMAIL PROTECTED]
Subject: Re: Upgrading Tomcat

I'm having trouble finding the note you mentioned in the mailing list
archives.


It's here:
http://marc.theaimsgroup.com/?l=tomcat-userm=113332618812952w=2


I'm trying to figure out the following:
- does Core include the Administration webapp?


It did in 5.0, does not in 5.5.


- does Core include the Deployer? If not, what does the Deployer do?


No.  See the referenced e-mail.


- does Core include the Embedded bundle? If not, what does
it do?


No.  See the referenced e-mail.


- when do I want do download Core as a Windows Executable
and when do I want to download it as a zip?


I never use the .exe since it's missing the .bat (and .sh) scripts,
which are useful for debugging.  See the referenced e-mail.

- 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/11/2005




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/11/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Annoying JBuilder copying problem

2005-11-04 Thread Rhino
I used JBuilder(6) on a project for a few months back in 2002. As I recall,
they had a fairly active set of private newsgroups with some very helpful
people on them. Maybe that would be a better place to ask your question?

I'm not saying that the Tomcat mailing list is inappropriate, just that you
might get better answers on the JBuilder newsgroups.

By the way, I was going to post a link to those newsgroups for you but I
can't remember anything about how I found them. I think they had their own
private news server and that you could access it for free without having to
buy the product but I can't recall how to subscribe to the newsgroups. If
you check their website, you should be able to find that information easily
enough.

Rhino

- Original Message - 
From: Dola Woolfe [EMAIL PROTECTED]
To: Tom Cat tomcat-user@jakarta.apache.org
Sent: Friday, November 04, 2005 12:06 PM
Subject: Annoying JBuilder copying problem


 Hi,

 Those (very few) of you who use JBuilder for Tomcat
 development know that JB insists on copying .class
 files into the WEB-INF/classes directory for you.
 Ordinarily, this is ok, but with the new version of
 JBuilder (2006), in one of the diectories it decides
 to copy 67 out of 78 files.

 1. Has anyone experienced this problem and know a
 workaround?
 2. Is there a way to prevent JB from copying .class
 files into the WEB-INF directory?

 Thanks!

 Dola Chin



 __
 Yahoo! FareChase: Search multiple travel sites in one click.
 http://farechase.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 03/11/2005





-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 03/11/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DB2 and Tomcat 5.5 Issue

2005-10-25 Thread Rhino
I'm not running Tomcat 5.5 - in fact, I haven't even used my older Tomcat
setup (4.1.x) with DB2 V7 in quite a while and I haven't used it with DB2 V8
at all - but I use DB2 quite a bit with Java applications that I write so
perhaps I can help

The old JDBC drivers are deprecated as of Version 8 of DB2. However, you can
still use them if you like. New Universal drivers are provided with Version
8 and should be located in db2jcc.jar. The URLs for the new drivers change
just a little bit but the new syntax is documented in the Information
Center.

The manuals suggest that you need all to have all three of the following
jars in your classpath:

- sqllib\java\db2java.zip
- sqllib\java\db2jcc.jar
- sqllib\java\db2jcc_license_cu.jar

I'm guessing that you *might* get away with using just db2java.zip if you're
sticking to the old drivers. However, it would be best to put all three jars
on your classpath so that you can use either the old or new drivers at any
time without having to install anything else later.

Also, you *may* need some additional jars, depending on what you are doing.
Rather than cutting and pasting chunks of the manual and maybe missing
something, let me suggest that you go to the Information Center and put
Setting up the Windows Java Environment in the Search box; if you press
Go, you should see the page I mean.

If this advice doesn't help, you will find an active DB2 newsgroup at
comp.databases.ibm-db2 on Usenet. It is monitored by the IBM Toronto lab,
which is responsible for DB2 on Unix/Linux/Windows, and they often jump in
to help with questions people post. If you ask there, you are almost certain
to get a good answer.

By the way, I don't think you need to rename db2java.zip to db2java.jar; in
fact, that may be the source of your problem. You may want to try renaming
it back to db2java.zip FIRST and see if that resolves the problem before
worrying about adding any additional jars.

For what it's worth, I think your db2java.zip file is in the right place -
tomcat_home\common\lib - but you may want to double-check the Tomcat docs;
they may have made some changes for Tomcat 5.x and 5.5.x.

Rhino

- Original Message - 
From: Jon Christensen [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, October 25, 2005 2:01 PM
Subject: DB2 and Tomcat 5.5 Issue


Has anyone been able to connect to a DB2 8.1 datasource using Tomcat  5.5?
 I have been trying for a few days now and can only get one error message:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
of class 'COM.ibm.db2.jdbc.app.DB2Driver' for connect URL
'jdbc:DB2:bfstst' at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSourc­
e.java:780)

at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.j­
ava:540)


Caused by: java.sql.SQLException: No suitable driver  at
java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSourc­
e.java:773)

... 23 more


I've got the db2java.jar (renamed from db2java.zip) in
tomcat_home\common\lib and also in my web apps's lib directory.

We are trying to switch from using WSAD 5.x to using Eclipse and Tomcat
5.5 running under XP but this has been holding me up for quite some
time now.  Any help would be greatly appreciated.


Thanks,


Jon



The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, or if
this message has been addressed to you in error, please immediately alert
the sender by reply e-mail and then delete this message, including any
attachments. Any dissemination, distribution or other use of the contents of
this message by anyone other than the intended recipient is strictly
prohibited.








No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/148 - Release Date: 25/10/2005



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/148 - Release Date: 25/10/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]