Re: Where are the results of a System.out.println command ?

2005-05-30 Thread Rhino
The results of System.out.println() are written to a file called
catalina.out which you should find in your tomcat/logs directory.

Rhino

- Original Message - 
From: Jean-Luc Douville [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, May 30, 2005 4:39 AM
Subject: Where are the results of a System.out.println command ?


 I am running a servlet under Mac Os X Tomcat jakarta-tomcat-5.0.28.
 That servlet has a
 System.out.println(userAgent ** : +userAgent); command. On my PC i
 found the result of
 the same command (and other) in the DOS window that logs the tomcat's
 processes (serving the
 same servlet).

 On the Mac i can't find any log ...
 I send the requests to the servlet with a browser, the parameters are
 in the URL (GET method).

 Thanks.
 --

 Jean-Luc Douville
 GRAVIR/iMAGIS,INRIA,ave de l'Europe, Montbonnot 38334 Saint Ismier Cedex
 Tel: (+33) 4.76.61.54.28 -- Fax: (+33) 4.76.61.54.40

 -


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


 -- 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 27/05/2005





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.3.0 - Release Date: 30/05/2005


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



Re: confused about simple logging

2005-05-23 Thread Rhino

- Original Message - 
From: Jim Henderson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, May 23, 2005 2:01 PM
Subject: RE: confused about simple logging


 
 If I write to stdout where does that go?
 
 System.stdout.println(Where does this get printed to?);
 
 I assume C:/tomcat.../log/stdout?
 
Nope, catalina.out in c:\tomcat\logs if I recall correctly.

Rhino



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005


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



Re: List Nanny

2005-05-18 Thread Rhino
The problem has now been resolved. There was an announcement about it this
morning.

The list nanny put in a blocking rule on Tuesday but it took several hours
to get to the top of the queue and take effect.

Rhino

- Original Message - 
From: Mieke Banderas [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, May 18, 2005 9:35 AM
Subject: List Nanny


 Matt Galvin said:

 On 5/17/05, Guy Katz [EMAIL PROTECTED] wrote:
  am i the only one getting this annoying spam from the tomcat lisy?
 
 No, I have gotten like 100 of them, it's getting really annoying.


 What is the adress of the list nanny? I can't seem to find it. Such a
 problem like we currently experience should have been blocked serverside
 days ago.



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


 -- 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005


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



Re: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

2005-05-17 Thread Rhino
Nope; I think everyone's getting this spam - again and again and again! I
wonder if this idiot  automated his subscription request; otherwise I'm at a
loss to explain why the same emails come up time and time again.

Rhino

- Original Message - 
From: Guy Katz [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, May 17, 2005 1:46 AM
Subject: RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?


am i the only one getting this annoying spam from the tomcat lisy?

-Original Message-
From: s [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 10:32 PM
To: tomcat-user@jakarta.apache.org
Subject: No such list! s


Valid Lists


New Atlanta List Server
---

There is no list by that name on this server. Available lists are:

   bluedragon-interest
   servletexec-interest
   jturbo-interest





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


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


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005


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



Re: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

2005-05-17 Thread Rhino
This only started the other day; I've been subscribed for at least a couple
of years now and this is the first time I can remember it happening.

Rhino

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, May 17, 2005 2:10 PM
Subject: Re: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?


 No you are not. This is absolutely the noisiest list I have
 ever subscribed to: each post generates more than one of
 those bad list or bad list command spams.

 On Tue, 17 May 2005 08:46:54 +0300
  Guy Katz [EMAIL PROTECTED] wrote:
 am i the only one getting this annoying spam from the
 tomcat lisy?
 
 -Original Message-
 From: s [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 16, 2005 10:32 PM
 To: tomcat-user@jakarta.apache.org
 Subject: No such list! s
 
 
 Valid Lists
 
 
 New Atlanta List Server
 ---
 
 There is no list by that name on this server. Available
 lists are:
 
bluedragon-interest
servletexec-interest
jturbo-interest
 
 
 
 
 
 -
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


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


 -- 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005


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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Rhino
You are correct. I use Tomcat on XP via localhost:8080 all the time and it
works fine. I am using a DSL connection that is on all the time so I suppose
it is possible that Tomcat is using that somehow but I'd be surprised

Perhaps you should post the exact error message you are getting and some of
your configuration information so that people can figure out what is
*really* causing your problem.

Rhino

- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?


I have Tomcat installed on W2K and it says it is installed correctly. When I
try the examples it tells me that I must be on line.  If I am using
localhost:8080 why does it need to be on line?






No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005


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



Re: Java / Tomcat Job Abroad

2005-02-01 Thread Rhino
I think you'll find that there are Java jobs in Canada. I've seen some at
monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never
looked for Tomcat jobs.

I hope you like living in large cities in a climate that is sometimes
miserable (-40C in winter in Winnipeg for example) ;-)

Rhino

- Original Message - 
From: Aris Javier [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 8:52 PM
Subject: OT: Java / Tomcat Job Abroad


Hello!

This is an out of topic question...
Sorry, but since all of you guys are using Java and Tomcat,
and are from different countries...
im just wondering if i can land a job abroad?

I'm planning to migrate to Canada, US, or New Zealand from here
in Philippines... My skill is java programming (J2EE) and has 2 years
experience.

Is Java/Tomcat skill marketable in those countries i've mentioned?
Or does anyone of you need a java programmer that i can apply?

=)


Thanks!

Aris



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



Service Runner question

2005-01-17 Thread Rhino
I am running Tomcat 5.0.28 on my Windows XP machine. When I run a program
called Security Task Manager, which is a more powerful version of the
standard Windows Task Manager, it says that a Windows Process named 'Service
Runner' is using 28.3 MB of my memory. The file name is
e:\Tomcat-5.0.28\bin\tomcat5.exe.

Can anyone tell me what the consequences are if I Quarantine it, i.e. if I
stop it from launching itself automatically every time I boot up the
computer? I'm trying to understand how it will impact my testing with Tomcat
and my deployment of servlets to Tomcat from Eclipse 3.0.1 via Sysdeo. I'm
guessing it will keep me from doing any of those things.

If that is correct, what is the proper method to enable those things when I
need to do them, short of making Service Runner a TSR again?

The truth of the matter is that I can go weeks without running Tomcat so I
really don't need it to be a TSR. However, I don't want to shoot myself in
the foot and force myself to reboot every time I need Tomcat. Can anyone
advise me on the best strategy for handling this?


Rhino
---
rhino1 AT sympatico DOT ca
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. - C.A.R.
Hoare



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005


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



Re: [OT] Does anyone know this boy?

2005-01-06 Thread Rhino
Do you have a picture of this boy? That would help *enormously*; all you
have now is the fact that he is two years old and an inference that he is
not a Thai.

Rhino

- Original Message - 
From: Jan Behrens [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, January 06, 2005 1:47 PM
Subject: [OT] Does anyone know this boy?


Hi list,

I know this is OT but I do believe that everyone out there should take the
time to read this, if one does know him it will be worth more than all email
in the world...

Cheers, Jan

 PLEASE DO FOWARD TO YOUR INTERNATIONAL OPERATORS AND
 CONTACTS

 HE MUST HAVE BOUGHT  IS TRIP IN SOME TRAVEL AGENCY IN
 EUROPE...


 Looking for his family.









 The boy about 2 years, from Khoa Lak is missing his parents. Nobody
 knows what country he comes from.

 If anybody known him please contact us by phone 076-249400-4 ext. 1336,
 1339 or e- mail : [EMAIL PROTECTED]








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


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



Re: WAR files and Eclipse

2004-12-13 Thread Rhino
It's actually very easy to do what you want to do.

Assuming you have correctly installed and configured Sysdeo, you will need
to tell Eclipse where the War file for your Tomcat project should be
generated. This is done on a *project* basis, i.e. you have to repeat this
step once for each Tomcat project you create but you will never have to do
this again for a given project unless you change the location where you want
the War file.

1. Select the Tomcat project in the Package Explorer perspective.
2. Right click for a context menu. Choose 'Properties'.
3. Within Properties, choose 'Tomcat' from the tree on the left.
4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath the project so my WAR
file for export looks like this:
D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to
organize your files differently.
6. Click on OK to close the Properties dialog.

Then, every time you want to regenerate your War file, all you need to do is
this:
1. Select the Tomcat project in the Package Explorer perspective.
2. Right-click for a context menu. Choose 'Tomcat project'.
3. Choose 'Export to the war file sets in project properties'.
4. You should get a brief message that tells you the operation worked.

Now, if you don't find Tomcat in the Properties tree or if you don't see the
'Tomcat project' option in the context menu, it means you probably didn't
configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let
us know and we'll try to help.

Rhino

- Original Message - 
From: Daniel Watrous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 3:43 PM
Subject: WAR files and Eclipse


Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.

Daniel


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



Re: Why some variables and methods have leading _ in the servlet compiled from JSP?

2004-12-05 Thread Rhino

- Original Message - 
From: zerol tib [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 05, 2004 9:30 AM
Subject: Why some variables and methods have leading _ in the servlet
compiled from JSP?


 Howdy,

 When I am reading the servlet compiled from JSPs, I find that
 There are  some variables and methods have leading _ while others
 not:

 _jspxFactory
 _jspx_out
 _jspx_includes

 Why these identities have the leading underline? Is there a naming rule?

I have seen programs where programmers used an underscore as the first
character of all class variables and used variable names that didn't start
with underscores as local variables.

This practice is actually *against* the principles that are stated in Code
Conventions for the Java Programming Language at
http://java.sun.com/docs/codeconv/index.html. If you look at Chapter 9,
Naming Conventions, it has the following under Variables:


Except for variables, all instance, class, and class constants are in mixed
case with a lowercase first letter. Internal words start with capital
letters. Variable names should NOT [emphasis added] start with underscore _
or dollar sign $ characters, even though both are allowed.
Variable names should be short yet meaningful. The choice of a variable name
should be mnemonic- that is, designed to indicate to the casual observer the
intent of its use. One-character variable names should be avoided except for
temporary throwaway variables. Common names for temporary variables are i,
j, k, m, and n for integers; c, d, and e for characters.


Of course these are only conventions, not rules, so people are free to
ignore them unless their shop standards say otherwise.

Rhino


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



Re: common image practice?

2004-12-02 Thread Rhino
It sounds to me like you've hit on something that lots of people would use.
Why not put this forward as a feature request? Perhaps the good folks at
Apache will add some kind of shared image directory to Tomcat. It won't help
you today but this sounds like something that could be added fairly easily
if it doesn't violate the architecture of Tomcat in some important way.

Rhino

- Original Message - 
From: D. Stimits [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 4:27 PM
Subject: Re: common image practice?


 Nikola Milutinovic wrote:
  D. Stimits wrote:
 
  I'm looking for a good or best practice to deal with site-wide
  logo type files...things that will never change, and that every app
  will want access to. This is on linux, but enabling sym links just
  seems to be an admin/backup complexity, and duplicating logos in every
  project also seems wrong. I see the shared directory looks ideal, but
  apparently this is only for classes or libraries. Perhaps a simple
  logo loader class in the shared folder would be most convenient, but I
  have to wonder if loading something as simple as a small logo should
  have to use the overhead of going through a class.
 
 
  You could place logos and such common stuff in a separate globa path,
  otside all webapps (like in  the webserver ROOT). This is totally
  un-self-contained.

 I'd like to do this, but I was under the impression that a
 webapps/app/ was the context of one application and that file paths
 outside of this context would not be allowed (I'm thinking in terms of
 JSP's right now).

 
  A slight imprvement is to have a set of common classes that know what
  that global path is, could be configurable. That would make you
  semi-self-contained.

 This seems to be an easy alternative, but then it requires what is
 probably a lot of overhead relative to just loading a small logo type
 file directly.

 
  A completely self contained solution is hard to achieve, if not
  impossible. How can anything OUTSIDE your webapp be a part of
  self-contained module. I mean, it's outside...

 I was hoping that the global solution above would be possible with
 some sort of tomcat configuration. The existing shared/ subdirectory
 would be ideal, except that it only searches for classes there.

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



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



Re: Address already in use:JVM_BIND:8080

2004-11-03 Thread Rhino
Go into your tomcat-users.xml file in the conf directory. Create an entry
that looks like this:

user username=myid password=mypass roles=tomcat,standard,manager/

That should get you into Tomcat okay via the sign-in screen.

Rhino




- Original Message - 
From: Harry Douglass, Jr. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 9:03 PM
Subject: Address already in use:JVM_BIND:8080


 Hello,







 I am trying to install Apache Tomcat to run JSP and servlets for the first
 time.  When I type in this URL 'http://localhost:8080/' Windows XP prompts
 me for a username and password.  I typed in both the username 'admin' and
 blank password and a custom username and password when I installed it and
I
 get an Unauthorized web page returned.







 When I try running Tomcat from the DOS prompt by typing 'tomcat start', I
 see the SEVERE Error message: Address already in use:JVM_BIND:8080.  I
know
 I am running IIS, but I want to keep the same port it runs on, and
manually
 start Tomcat when I need it.







 Why can't I get it to work?







 Thank you very much in advance,





 Harry








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



Tomcat 4 and Tomcat 5 on same machine?

2004-10-02 Thread Rhino




Can anyone tell me:

  If it is possible to have an instance of Tomcat 4.1.x on the same Linux 
  Mandrake server as an instance of Tomcat 5.x?
  How to set things up so that both instances run as services but are 
  independent from one another, i.e. each can be started/stopped separately from 
  the other and potentially use a different Java JDK.
A pointer to any documentation on this subject or to something in the 
mailing list archive would be very useful if you could provide that.

I was going to try to search for this in the archive but couldn't think of 
a common term that would appear in all such posts.

We want the Tomcat 5 instance to be our test environment. We will put our 
Tomcat 4 servlets in Tomcat 5 and verify that they all still work; then we'll 
probably drop the Tomcat 4 instance, unless we can think of a good reason to 
keep it around.

Rhino---rhino1 AT sympatico DOT ca"There are two ways of 
constructing a software design. One way is to make it so simple that there are 
obviously no deficiencies. And the other way is to make it so complicated that 
there are no obvious deficiencies." - C.A.R. Hoare


Tomcat running as root?

2004-10-01 Thread Rhino



Our instance of Tomcat (4.1.30) is currently running as root. 

Can someone remind me of whether that is the recommended way of running 
Tomcat? I can't remember where that would be documented.

If root is not the right ID for Tomcat, what should I use? Can anyone give 
me (or point me to) instructions for safely changing the ID for Tomcat?

We are running Mandrake 9.1. (At least I think we are! The administrator 
was talking about upgrading to Mandrake 10 but I don't know if he's done it 
yet.)

Rhino---rhino1 AT sympatico DOT ca"There are two ways of 
constructing a software design. One way is to make it so simple that there are 
obviously no deficiencies. And the other way is to make it so complicated that 
there are no obvious deficiencies." - C.A.R. Hoare


Re: Tomcat running as root?

2004-10-01 Thread Rhino
Thanks, I *thought* that running Tomcat as root was a bad idea!

Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 01, 2004 12:42 PM
Subject: RE: Tomcat running as root?


Hi,

No, don't run Tomcat as root.  Create a special user called whatever you
want with only the bare minimum permissions for running Tomcat.  If
you're running with a port number under 1024, use commons-daemon to
invoke Tomcat, otherwise just run Tomcat normally with this user.
Details on commons-daemon are in the RUNNING.txt and setup.html files in
the docs.

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 12:40 PM
To: tomcat-user
Subject: Tomcat running as root?



Our instance of Tomcat (4.1.30) is currently running as root.



Can someone remind me of whether that is the recommended way of running
Tomcat? I can't remember where that would be documented.



If root is not the right ID for Tomcat, what should I use? Can anyone
give me (or point me to) instructions for safely changing the ID for
Tomcat?



We are running Mandrake 9.1. (At least I think we are! The administrator
was talking about upgrading to Mandrake 10 but I don't know if he's done
it yet.)



Rhino
---
rhino1 AT sympatico DOT ca
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies. - C.A.R. Hoare




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.



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



Security of Servlets

2004-09-30 Thread Rhino



We are giving some thought to putting a CGI-based Wiki, specifically 
OddMuse, on a website that runs on a Linux server. In 'Using Linux (Fourth 
Edition)', the authors warn that "The biggest cause for concern about protecting 
your site from external threats is CGI scripts." They go on to suggest various 
precautions that will reduce the risk.
This has me wondering if servlets are equally insecure or have a much 
stronger security model. I also have Jason Hunter's 'Java Servlet Programming 
(Second Edition)' which has a 30 page chapter on Security that details how 
various forms of authentication take place in servlets. However, I can't find 
any categorical statement that says servlets are actually any more secure than 
CGI. 

I was wondering if someone with extensive experience with the security 
aspects of both servlets and CGI can give me any sense of which is more secure 
and why?I need this information so that we can choose the right approach 
for our wiki.

Also, if servlets are more secure than CGI, is anyone aware of a wiki that 
runs as a servlet, preferably open source?


Rhino---rhino1 AT sympatico DOT ca"There are two ways of 
constructing a software design. One way is to make it so simple that there are 
obviously no deficiencies. And the other way is to make it so complicated that 
there are no obvious deficiencies." - C.A.R. Hoare


Re: [OFF-TOPIC] RE: Read MS Word using Java?

2004-09-10 Thread Rhino
Have a look at POI, http://jakarta.apache.org/poi. I've never used it but I
stumbled across it while researching a similar question the other day.

Rhino


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 8:57 AM
Subject: [OFF-TOPIC] RE: Read MS Word using Java?



Hi,
Please mark off-topic threads on this list as such by adding the
[OFF-TOPIC] prefix to your subject line.  Thanks,

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 12:32 AM
To: [EMAIL PROTECTED]
Subject: Read MS Word using Java?

Hello everyone!

I know this is out of tomcat discussion..
but I need help on how to read MS Word files in java..

does anybody have working codes?

Any Help is greatly appreciated..

Thanks in advance...

aris



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: logging something to catalina.out

2004-09-06 Thread Rhino

- Original Message - 
From: muhammed soyer [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 7:53 AM
Subject: logging something to catalina.out


Hello,

How can I write something to the logfile . I should study log4j in a
few days ..
But if there is an easyway of writing a line to the log files of tomcat
..it should be helpfull to me now ..

--

If I'm not mistaken, all you need is:

System.out.println(I should study log4j in a few days...).

Rhino


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



Re: logging something to catalina.out

2004-09-06 Thread Rhino

- Original Message - 
From: Christian Fritze [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 8:18 AM
Subject: Re: logging something to catalina.out


 Rhino wrote:
 
  If I'm not mistaken, all you need is:
 
  System.out.println(I should study log4j in a few days...).

 Try replacing 'out' with 'err', then it should work... ;-)

Don't *both* System.out.println() and System.err.println() write to
catalina.out? If not, where does System.out.println() write?

I'm not arguing with you; I really don't remember.

Rhino


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



Re: Does anyone here know any applet user group?

2004-08-10 Thread Rhino
Try comp.lang.java.programmer. It is a standard Usenet newsgroup.

Rhino

- Original Message - 
From: Simon Zeng [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 10:30 AM
Subject: Does anyone here know any applet user group?


 Hi all,

 Sorry to disturb those who are not interested in this. I know this is not
 the place to ask applet question. Please anyone tell me where to find a
good
 applet user/news group so I can post my questions,

 sorry and thanks again,
 -Simon

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 10:14 AM
 To: Tomcat Users List
 Subject: RE: serialized objects invalidating session


 Hi,
 Does this behavior also happen for you in 5.0.27?

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Carey Boldenow [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 10:05 AM
 To: 'Tomcat Users List'
 Subject: RE: serialized objects invalidating session
 
 Hi,
 
 I am using version 5.0.19. The objects that I am serializing contain
 nothing but String attributes and a Collection of other String objects.
 After shutting down Tomcat, I can view the SESSIONS.SER file and I can
 make out what appears to be those objects. However, once I restart
 Tomcat, and invoke request.isRequestedSessionIdValid(), it returns
 false. However, it returns true if I do not serialize my objects.
 
 Regards,
 Carey
 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 7:54 AM
 To: Tomcat Users List
 Subject: RE: serialized objects invalidating session
 
 Hi,
 5.0.27 is stable.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Alex [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 9:17 AM
 To: Tomcat Users List
 Subject: RE: serialized objects invalidating session
 
 
 is 5.0.27 no longer beta?  sometimes i see you folks posting to
 tomcat-dev@ when new releases are available...but i never saw anything
 stating it's moved out of beta.
 
 On Tue, 10 Aug 2004, Shapira, Yoav wrote:
 
  Date: Tue, 10 Aug 2004 08:56:36 -0400
  From: Shapira, Yoav [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: serialized objects invalidating session
 
  Hi,
  Needless to say, it works for me ;)  We routinely save/restore
 sessions
  with Serializable attributes.  (Although you didn't specify what
 Tomcat
  release you're using, I'm assuming and using 5.0.27).
 
  Yoav Shapira
  Millennium Research Informatics
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

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




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



Re: [OT] The Way Java Handles Date

2004-04-02 Thread Rhino
I agree. I found date manipulation a real pain when I first started using
them.

On the other hand, I know how to work with them now and I'm not prepared to
write anything better than the existing Java date/calendar classes so I can
live with it now.

I think a short tutorial is probably the best answer for explaining this to
people who are new to date manipulation in Java but I'm too busy with other
things to write one myself, at least for the next few weeks.

Maybe you could write a tutorial as you learn what you need to know?

Rhino

- Original Message - 
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 11:47 AM
Subject: [OT] The Way Java Handles Date



Hi, Just wondering if anyone found this aspect of Java annoying.  I know
this is
usually a faq, and a lot of people have put a lot of efforts making it
better.
But I just find that the learning curve is a bit too steep for new comers.
And
it hasn't been improve in j2sdk-1.5 either, at least from the interface
point of
view.  For example, a developer still has to go through the whole Calendar
and
DateFormat process to get a Date from a String

I feel like complaining today:).

-yan


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


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



Re: [OT] The Way Java Handles Date

2004-04-02 Thread Rhino
Good point! Instead of complaining about it, the best way is to come up with
a better way ourselves. Unless of course we can persuade Sun to do it for us
;-)

Mind you, Roedy Green already has a BigDate package (if I remember the name
correctly) and I was starting to think about using it before I finally
figured out the date stuff that I needed to know. Maybe that would meet your
needs. Personally, I've resisted going that way because I didn't want to use
something non-standard if at all possible. But that's just me.

As for the tutorial you saw on dates, I'd be curious to know where it is. I
don't remember seeing much of anything about dates in the Java Tutorial but
maybe you mean some other tutorial. I figured out most of what I've learned
about dates from Google posts where people were discussing problems and that
was not the nicest way to do it.

Rhino

- Original Message - 
From: Denis Haskin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 3:00 PM
Subject: Re: [OT] The Way Java Handles Date


 Why does Sun need to do it?  Anyone could do it.  Seems like it could be
 a candidate for Jakarta Commons... or is it too trivial?

 http://jakarta.apache.org/commons/

 dwh


 Yansheng Lin wrote:

 As I said, this is a faq.  There is already tutorials on Sun's Website.
But the
 way it works now is kind of counter-intuitive.  That's the problem to new
user.
 Wouldn't it be nicer if Sun came up with an Wrapper interface that allows
the
 user create a Date object with different arguments?
 
 



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



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



Re: [OT] The Way Java Handles Date

2004-04-02 Thread Rhino
Great suggestion!

I've just been reading the API and some of the information about Commons and
am strongly tempted to join in. I have some code that would probably be
useful within Commons - after a bit of reformatting to meet the code
conventions - so I will think about participating when I have a little more
time.

Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 3:20 PM
Subject: RE: [OT] The Way Java Handles Date



Hi,
See commons-lang's DateUtils and DateFormatUtils
(http://jakarta.apache.org/commons/lang/apidocs/index.html).
Enhancements to these classes should be suggested on the commons-dev
mailing list.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 3:16 PM
To: Tomcat Users List
Subject: Re: [OT] The Way Java Handles Date

Good point! Instead of complaining about it, the best way is to come up
with
a better way ourselves. Unless of course we can persuade Sun to do it
for
us
;-)

Mind you, Roedy Green already has a BigDate package (if I remember the
name
correctly) and I was starting to think about using it before I finally
figured out the date stuff that I needed to know. Maybe that would meet
your
needs. Personally, I've resisted going that way because I didn't want
to
use
something non-standard if at all possible. But that's just me.

As for the tutorial you saw on dates, I'd be curious to know where it
is. I
don't remember seeing much of anything about dates in the Java Tutorial
but
maybe you mean some other tutorial. I figured out most of what I've
learned
about dates from Google posts where people were discussing problems and
that
was not the nicest way to do it.

Rhino

- Original Message -
From: Denis Haskin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 3:00 PM
Subject: Re: [OT] The Way Java Handles Date


 Why does Sun need to do it?  Anyone could do it.  Seems like it could
be
 a candidate for Jakarta Commons... or is it too trivial?

 http://jakarta.apache.org/commons/

 dwh


 Yansheng Lin wrote:

 As I said, this is a faq.  There is already tutorials on Sun's
Website.
But the
 way it works now is kind of counter-intuitive.  That's the problem
to
new
user.
 Wouldn't it be nicer if Sun came up with an Wrapper interface that
allows
the
 user create a Date object with different arguments?
 
 



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



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: [OT] The Way Java Handles Date

2004-04-02 Thread Rhino
I had a glance at the tutorials you mentioned; I had seen those topics
before and used them.

What I meant when I said that I hadn't seen tutorials on dates was that I
hadn't seen any on the topics of *manipulating* dates, e.g. using Dates and
Calendars to obtain or set specific dates. I found the coverage of that
material a bit lacking at the time; it's probably better now though since
the Tutorial has matured considerably since I first started messing with
Java.

Rhino

- Original Message - 
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 3:29 PM
Subject: RE: [OT] The Way Java Handles Date


 Thanks Yoav, always helpful, eh:)

 But I am with Rhino on using non-standard packages, by no means
undermining
 the usefulness of the two classes in commons-lang.  Just for someone who
is
 learning this from the scratch, there could be a better interface.  But
they
 try, I guess:).  Here's a few tutorials on the sun:

 http://java.sun.com/docs/books/tutorial/i18n/format/dateintro.html
 http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html

 -yan

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 1:21 PM
 To: Tomcat Users List
 Subject: RE: [OT] The Way Java Handles Date



 Hi,
 See commons-lang's DateUtils and DateFormatUtils
 (http://jakarta.apache.org/commons/lang/apidocs/index.html).
 Enhancements to these classes should be suggested on the commons-dev
 mailing list.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Rhino [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 3:16 PM
 To: Tomcat Users List
 Subject: Re: [OT] The Way Java Handles Date
 
 Good point! Instead of complaining about it, the best way is to come up
 with
 a better way ourselves. Unless of course we can persuade Sun to do it
 for
 us
 ;-)
 
 Mind you, Roedy Green already has a BigDate package (if I remember the
 name
 correctly) and I was starting to think about using it before I finally
 figured out the date stuff that I needed to know. Maybe that would meet
 your
 needs. Personally, I've resisted going that way because I didn't want
 to
 use
 something non-standard if at all possible. But that's just me.
 
 As for the tutorial you saw on dates, I'd be curious to know where it
 is. I
 don't remember seeing much of anything about dates in the Java Tutorial
 but
 maybe you mean some other tutorial. I figured out most of what I've
 learned
 about dates from Google posts where people were discussing problems and
 that
 was not the nicest way to do it.
 
 Rhino
 
 - Original Message -
 From: Denis Haskin [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 3:00 PM
 Subject: Re: [OT] The Way Java Handles Date
 
 
  Why does Sun need to do it?  Anyone could do it.  Seems like it could
 be
  a candidate for Jakarta Commons... or is it too trivial?
 
  http://jakarta.apache.org/commons/
 
  dwh
 
 
  Yansheng Lin wrote:
 
  As I said, this is a faq.  There is already tutorials on Sun's
 Website.
 But the
  way it works now is kind of counter-intuitive.  That's the problem
 to
 new
 user.
  Wouldn't it be nicer if Sun came up with an Wrapper interface that
 allows
 the
  user create a Date object with different arguments?
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to
whom
 it is addressed, and may not be saved, copied, printed, disclosed or used
by
 anyone else.  If you are not the(an) intended recipient, please
immediately
 delete this e-mail from your computer system and notify the sender.  Thank
you.


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


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



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



Automatic gzip of tomcat logs in Linux?

2004-04-01 Thread Rhino



Does Tomcat automatically gzip its logs on Linux Mandrake?

I noticed something odd in the Tomcat logs recently on our Linux server: 
apparently, every week (on Saturday), a process is coming along and gzipping all 
of the files in the logs directory of Tomcat. The system administrator says he 
didn't initiate this process and is unaware of anything in Mandrake that would 
do this automatically. That makes me wonder if Tomcat itself is doing this? We 
haven't seen any other logs (or files of any other typeon this 
server)getting automatically gzipped.

We really don't want to do automatically zip everything in our Tomcat logs 
directory; I'd rather set up a cron job to archive or delete old logs at a 
schedule of my choosing. If Tomcat is gzipping the logs, I would like to turn it 
off: can anyone tell me how?

It would surprise me if Tomcat is the culprit here since Tomcat 4.1.24 on 
my Windows XP doesn't zip its logs but I thought I'd ask anyway. If anyone else 
is using Tomcat 4.1.x on Mandrake, maybe you can suggest an alternate cause for 
this behaviour. I don't want to throw stones, I just want to stop this 
behaviour.

We are running Mandrake 9.1and are using Tomcat 4.1.24.

Rhino---rhino1 AT sympatico DOT ca"If you're getting something 
for nothing, you're not using your own credit card."


Re: Automatic gzip of tomcat logs in Linux?

2004-04-01 Thread Rhino
Thanks! I think you may be on to something there.

Yes, the system administrator installed Tomcat from one of the Mandrake
RPMs. It may very well use logrotate for all I know; I didn't install Tomcat
on Mandrake and don't know much about Mandrake yet.

I'll run this by our system administrator; I expect to see a light bulb go
on over his head when he hears your theory ;-)

Thanks again!

Rhino


- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 2:00 PM
Subject: Re: Automatic gzip of tomcat logs in Linux?


 On Thu, Apr 01, 2004 at 01:33:09PM -0500, Rhino wrote:
 : It would surprise me if Tomcat is the culprit here since Tomcat 4.1.24
on my
 : Windows XP doesn't zip its logs but I thought I'd ask anyway. If anyone
else
 : is using Tomcat 4.1.x on Mandrake, maybe you can suggest an alternate
cause
 : for this behaviour. I don't want to throw stones, I just want to stop
this
 : behaviour.

 I'm going out on a limb here, but does Mandrake use logrotate?
 Check /etc/logrotate.conf and /etc/logrotate.d for references to Tomcat
 logs.

 If you installed from a prebuilt package, perhaps that made an entry in
 /etc/logrotate.d ; if by hand, perhaps one of your sysadmins made the
 entry for you.

 -QM

 -- 

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com


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



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



Re: War does not unpack on deployment

2004-03-13 Thread Rhino
I don't know why the WAR file is not unpacking automatically but I'd like to
suggest a simpler alternative than creating a directory and unjarring it
manually: use the Tomcat Manager application, specifically the Upload a WAR
file to install section.

Rhino

- Original Message - 
From: phil campaigne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 3:09 PM
Subject: War does not unpack on deployment


 My application Test.waris not unpacking when I ftp it to the
 jakarta-tomcat/webapps directory on my host.  Even after stop and
 re-start.  If I mkdir Test and move test.war into it and jar -vxf
 Test.war then it does expand and run properly.


 This is my server.xml entries
 **
  !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true


 !-- Test Context --
 Context path=/Test docBase=Test
debug=100 privileged=true/
 

 This is my web.xml

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

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
   display-nameTest/display-name


 servlet
 servlet-nameTest/servlet-name
 display-nameTest/display-name
 servlet-classcom.op.test.Test/servlet-class
 /servlet


  servlet-mapping
 servlet-nameTest/servlet-name
 url-pattern/Test/url-pattern
 /servlet-mapping

   /web-app
 ***
 Why doesn't unpack automatically?
 Thanks,
 Phil Campaigne


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




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



Automatic backups of Tomcat logs in Mandrake??

2004-03-07 Thread Rhino



Does Tomcat (4.1.24) take backups of logs in Mandrake? If yes, how do we 
stop it from doing so?

Our production server, whichuses Linux Mandrake 9.1,is running 
Tomcat 4.1.24. I was in the logs directory today to look in one of the logs when 
I noticed that there were an awful lot of files in there - over 3200, in fact! 
Isaw the things I expected to see, catalina.out, various dated 
localhost_admin_logs, localhost_examples_logs, and localhost_logs and then a 
huge number of .gz files. It appears that something is taking a weekly backup of 
every file in the directory and has been doing so for at least 33 weeks, which 
roughly matches how long we've had Tomcat on that server. (We don't recall 
exactly when we installed Tomcat.)

The system administrator who installed Tomcat doesn't recall clearly but 
thinks there might have been an install option that asked whether we'd like to 
do a weekly backup of the logs; if such an option did come up, he says he very 
likely would have said yes to it. He *is* sure that he didn't explicitly set up 
any scripts to backup all of these log files and we aren't aware of any other 
logs or directories of logs where this is happening. This makes us think it is 
more likely Tomcat that is doing these backups than Mandrake.

Now that we've got a bit of experience with Tomcat, we realize we 
don't need weekly backups of the Tomcat logs and would like to turn this off. 
Can anyone tell us how this could be done? He and I are both pretty new to Linux 
in general and Mandrake in particular so we're just not sure how to stop these 
backups.

Rhino---rhino1 AT sympatico DOT ca"If you're getting something 
for nothing, you're not using your own credit card."


Spam on tomcat-user?

2004-03-07 Thread Rhino
I mailed a note to tomcat-user a little while ago and got this reply within
a few minutes; it uses my subject line but the body of the note is some spam
about Harry Potter, in German.

My guess is that someone has a program monitoring the mailing list which
sends out a piece of spam every time someone sends a note to the list. I've
got a good firewall and I'm very careful about opening attachments so I'm
fairly sure this didn't originate with any virus at my end.

I don't know if there is anything the list administrators can do about this
but I'd like to let them know about this. What's the best way to do that?

Rhino

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 6:18 PM
Subject: Re: Automatic backups of Tomcat logs in Mandrake??


 Lieber Harry Potter Fan!

 Der Sprechende Hut hat entschieden, dass du nach Gryffindor gehst.
 Nun kannst du dein Zauberexamen machen.
 Dein Benutzername ist Gryffindor und
 dein Kennwort troubadour (achte darauf, den ersten Buchstaben beim
Benutzernamen gro zu schreiben und alles andere klein). Bitte behalte diese
Passwrter fr dich (ansonsten sind wir gezwungen, dich von Hogwarts zu
verweisen).

 Weiterhin viel Spass auf der Harry Potter Site!
 Wnscht dir
 Professor McGonagall

 P.S.1: Bei ersten Schwierigkeiten, nicht verzagen - schaut einfach in die
FAQ's (Hufig gestellte Fragen), dort werden fast alle eure Fragen
beantwortet. Ansonsten wendet euch an die Klassensprecherin: [EMAIL PROTECTED]



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



Re: Spam on tomcat-user?

2004-03-07 Thread Rhino
I posted about 6:15 PM EST and got the spam about 6:30 PM EST.

Rhino

- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 9:37 PM
Subject: Re: Spam on tomcat-user?


 Rhino,
 
 Looks like your right. It is coming from posts to the list.
 It only started recently.
 Who else has seen this?
 Maybe we can help narrow down the search for the offending address by
 finding a time window that they subscribed.
 
 Just a thought.
 
 Doug
 
 - Original Message - 
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, March 07, 2004 9:15 PM
 Subject: Re: Spam on tomcat-user?
 
 
  Rhino,
 
  Got the same email you did. Now without any reference words to see the
  results.
 
  Doug
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Spam on tomcat-user?

2004-03-07 Thread Rhino
Hmm, how do I get the full headers? I'm using Outlook Express 6.0 on Windows
XP. I just checked the Help and their idea of seeing the full headers is
displaying the From address, the Date, Subject and the To address. I've seen
the headers you mean in the past when I had Netscape installed but don't
know how to get them in Outlook Express

By the way, I got the same piece of spam when I posted my note about the
spam and expect to get it again when I hit Send on this note.

Rhino

- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 7:41 PM
Subject: Re: Spam on tomcat-user?


 Rhino,

 Thought I would test your theory here as well as throw in my own. Mandrake
 is a root that was used in the Harry Potter series. It may be that your
 email was harvested because of the relation. Unless someone has just set
 this up I haven't had any issues in the past, other than some virus junk.

 Also it helps if you pull the header info from the email so if this is
true,
 it will give the list admin a better shot at finding a match. The only
thing
 you can trust in the header to be accurate is the IP. Everything else can
be
 forged.

 My $.02

 Doug

 - Original Message - 
 From: Rhino [EMAIL PROTECTED]
 To: tomcat-user [EMAIL PROTECTED]
 Sent: Sunday, March 07, 2004 6:56 PM
 Subject: Spam on tomcat-user?


  I mailed a note to tomcat-user a little while ago and got this reply
 within
  a few minutes; it uses my subject line but the body of the note is some
 spam
  about Harry Potter, in German.
 
  My guess is that someone has a program monitoring the mailing list which
  sends out a piece of spam every time someone sends a note to the list.
 I've
  got a good firewall and I'm very careful about opening attachments so
I'm
  fairly sure this didn't originate with any virus at my end.
 
  I don't know if there is anything the list administrators can do about
 this
  but I'd like to let them know about this. What's the best way to do
that?
 
  Rhino
 
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, March 07, 2004 6:18 PM
  Subject: Re: Automatic backups of Tomcat logs in Mandrake??
 
 
   Lieber Harry Potter Fan!
  
   Der Sprechende Hut hat entschieden, dass du nach Gryffindor gehst.
   Nun kannst du dein Zauberexamen machen.
   Dein Benutzername ist Gryffindor und
   dein Kennwort troubadour (achte darauf, den ersten Buchstaben beim
  Benutzernamen gro zu schreiben und alles andere klein). Bitte behalte
 diese
  Passwrter fr dich (ansonsten sind wir gezwungen, dich von Hogwarts zu
  verweisen).
  
   Weiterhin viel Spass auf der Harry Potter Site!
   Wnscht dir
   Professor McGonagall
  
   P.S.1: Bei ersten Schwierigkeiten, nicht verzagen - schaut einfach in
 die
  FAQ's (Hufig gestellte Fragen), dort werden fast alle eure Fragen
  beantwortet. Ansonsten wendet euch an die Klassensprecherin:
 [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



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



Hardware/Software Prerequisites for Tomcat 4.1.30?

2004-03-05 Thread Rhino



Can anyone point me to documentation listing the hardware/software 
prerequisites for installing Tomcat 4.1.30 (binary)?

I'm having trouble installing the Tomcat 4.1.30 binary onWin98SE on 
an old Pentium 100 PC with 64 MB of memory. I suspect the PC is too old and slow 
to run Tomcat but I haven't been able to find any list of prerequisites for 
Tomcat.

Could anyone point me to this documentation or confirm that the PC in 
question is inadequate to the job?


Rhino---rhino1 AT sympatico DOT ca"If you're getting something 
for nothing, you're not using your own credit card."


Problem installing 4.1.30

2004-03-04 Thread Rhino



I tried to install Tomcat 4.1.30 for my friend this afternoon. He has a 
Win98SE 
machine. 

Icreate the environment variables JAVA_HOME and CATALINA_HOME via 
msconfig as follows:
set CATALINA_HOME=C:\jakarta-tomcat-4.1.30
set JAVA_HOME=C:\j2sdk1.4.1_02

Then, I tried executing startup.bat but got "out of space" errors. I found 
those explained in the RUNNING document so I changed the initial space for both 
startup.bat and shutdown.bat to 4096 in their properties. Rather than helping, I 
actually got *more* errors, including:
- JAVA_HOME not correctly specified 
- "out of environment space" [10-12 times]
- a complaint about the D-JavaSpecificDirs [or something similar]
- another error I can't recall now.

For what it's worth, I also tried setting JAVA_HOME to c:\j2sdk1.4.1_02\bin 
but that didn't help.

Can anyone help me figure out what is going wrong? I never had any problems 
installing Tomcat and making the startup.bat work, even the first time I 
installed it a couple of years ago and knew nothing about Tomcat

The only guess I've got is thatmy friend'sPC is just too old 
and slow. It is a Pentium-100 with 64 MB of memory. I couldn't find any hardware 
requirements for running Tomcat though so I don't know if that is my 
problem.

Rhino---rhino1 AT sympatico DOT ca"If you're getting something 
for nothing, you're not using your own credit card."


Re: image not displayed

2004-02-29 Thread Rhino
Peter,

When I display images in my servlets, I don't normally define where they are
in the web.xml file. I don't know Tomcat well enough to be sure if this
approach is possible but I suspect the most common way to do it is the way I
do it.

In my case, I simply include the HTML that displays the image in the doGet()
that displays the page. This excerpt illustrates this approach:

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {

response.setContentType(CONTENT_TYPE);

PrintWriter out = response.getWriter();

out.println(html);

out.println(head);

out.println(titleMy Title/title);

out.println(LINK rel=\stylesheet\ TYPE=\text/css\
HREF=\event_form.css\);

out.println(/head);

out.println(body);

out.println(div align=\center\);

out.println(table class=\outer\ width=\620\ cellpadding=\8\);

/** THE FOLLOWING IS THE RELEVANT LINE **/

out.println(trtdimg src=\logo_small.gif\ alt=\logo\/td/tr);

out.println(trtdh2Event Input/h2/td/tr);


out.println(form action=EventHandler method=POST);

out.println(table class=\form\ width=\620\ cellspacing=0
cellpadding=0);

out.println(/table);

out.println(/div/body/html);

}

As long as the image is where Tomcat is looking for it, you should have no
problem. In my case, the image is sitting in the highest-level of the WAR
file.

Rhino

- Original Message - 
From: Peter Renken [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 2:42 PM
Subject: image not displayed



Since i am new to Tomcat i installed tomcat 5 on a Suse 8.2 linux machine
and tried to install the First Webapp Servlet example.
I have placed all files in subdirectories of myapp, thus:
myapp/src/mypackage/Hello.java,
myapp/web/WEB-INF/web.xml
myapp/web/image/tomcat.gif

After ant install and starting a local browser, the text output is shown
correctly but the image is not displayed. I cant figure out why the image
isn't shown. Did i mis something in the web.xml? (see below)

web-app
 display-nameMy Web Application/display-name
 descriptionThis is version X.X of an application./description
 servlet
   servlet-namemyapp/servlet-name
  display-nameDescription of mypackage servlet./display-name
  descriptionDescription of mypackage servlet./description
  servlet-classmypackage.Hello/servlet-class
 /servlet
 servlet-mapping
   servlet-namemyapp/servlet-name
   url-pattern//url-pattern
 /servlet-mapping
/web-app

Thanks for any help.
Peter


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



Upgrading Tomcat from 4.1.x to 5.0.x

2004-02-27 Thread Rhino



I've been using Tomcat 4.124 and now Tomcat 4.1.29 with good results but 
I'm thinking it might be time to upgrade to Tomcat 5.0.x.

Are there any cautions/warnings/problems or just differences that I should 
expect between the two? For instance, will my servlets need to change in any way 
to run in 5.0.x? Will administration of the servlets change in any way? If there 
is anything I should do to prepare for the upgrade, particularly steps that 
minimize problems, I'd like to do so.

Am I right in believing that I should normally not remove old versions 
beforeinstalling newer versions of Tomcat; that new versions simply go on 
"in parallel", i.e. they are put in different directories than the old versions? 
That's what I did when going from 4.1.24 to 4.1.29 in Windows XP.

However, we also have Tomcat on our Linux Mandrake 9.1 server and the 
administrator wants to use urpm to simply overlay 4.1.24 on Linux with 5.0.x. Is 
that safe or should we do it some other way?
Rhino---rhino1 AT sympatico DOT ca"If you want the best 
seat in the house, you'll have to move the cat."


Re: looking for a progamer

2004-01-05 Thread Rhino
Can you tell me what you need? I'm about two hours drive west of Toronto so
Montreal is a long way to drive for a couple of hours of work. But I am an
experienced programmer, particularly with Java applications and servlets,
and would be willing to do the work via telecommuting. Je parle francais -
pas tres bien mais pas si mal! - et j'ai un ami qui parle quebecois tres
bien s'il est necessaire Perhaps we can talk on the phone or via email?

 Reinhardt Christiansen

- Original Message - 
From: FRANCOIS Dufour [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 9:19 AM
Subject: looking for a progamer


 near off mtl for a couple  hour off work ill pay 40$ an hour


 [EMAIL PROTECTED]
 crazy-wilys webmaster

 _
 MSN Search, le moteur de recherche qui pense comme vous !
 http://fr.ca.search.msn.com/


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



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



Re: How is catch{} code handled

2004-01-02 Thread Rhino
I haven't got a clue what your problem is. Your explanation is entirely
verbal and would really benefit from code snippets to make it clearer. I
just can't get a clear mental picture of what you did with your code.

I can't presume to speak for anyone else but I wouldn't be surprised if
others felt the same way.

Rhino

- Original Message - 
From: Merrill Cornish [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 02, 2004 2:05 PM
Subject: How is catch{} code handled


 My sudden IllegalStateException problem turned out to be caused by my
 error handling technique, but I'm not sure why.

 When I started this project (as a way or learning JSP), I have
 EVERYTHING in JSP pages, meaning that there was a lot of Java code in %
 ... % sections of the JSP page.  I added an errorPage declaration to
 each of my JSP pages to divert all errors to my standard error handling
 page--and all was well.

 Later, I decided to limit the JSP pages to HTML as much as possible and
 move all of the Java program logic into servlets.  I left the errorPage
 declarations in the JSP pages, although there wasn't much left there to
 throw an exception.

 In the servlets, I used the standard try/catch constructs to intercept
 exceptions.  However, I decided I wanted the exceptions caught in
 servlets to be handled by the same error page as the JSP pages used.
 Rather than have EVERY catch{} clause do the redirect, I defined a
 utility subroutine named errorPage() that collected various information
 in the catch{} clause, then called sendRedirect() to the error page.

 Separate from these catch{} clauses, whenever the processing in a
 servlet was complete, it ended with a sendRedirect() to the next JSP
 page followed immediately by a return. I had assumed that the
 sendRedirect()s in the main servlet code were safe from the
 sendRedirect() in the catch{} cause since--as I understood it--once the
 exception was thrown and the catch{} entered, nothing else in the
 servlet was processed.

 However, my IllegalStateException experience suggests there is
 something going on with catch{} that I don't understand.  Or, as a
 friend of mine used to say, I don't understand all I know about that.
:-)

 To recap, I got an IllegalStateExceptioni pointing to a sendRedirect()
 in a servlet until I effectively removed the sendRedirect() by returning
 before the sendRedirect() could be reached.  Only then did I see an
 SQLException  intercepted by a catch{} and redirected with
 sendRedirect() to the error page.

 Why did main servlet processing appear to continue (allowing the second
 sendRedirect() to cause a problem) after the exception was triggered?

 Merrill Cornish

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



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



Re: adding timestamp to logs

2004-01-02 Thread Rhino
I'm not sure I understand what your problem/question is. I've been using
Tomcat 4.1.24 for over a year and Tomcat 4.1.29 for the last few weeks and
all the messages generated by Tomcat already begin with timestamps.

Or are you asking how to put a timestamp in a message that you generate from
within your servlets?

Rhino

- Original Message - 
From: Antony Paul [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 02, 2004 8:00 AM
Subject: adding timestamp to logs


 Hi,
 I want to add a time stamp to Tomcat loggings. I am using JDK 1.3 and
no
 log4j. I want to add this to stderr.

 rgds
 Antony Paul

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



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



Re: How can I add a servlet to a server?

2003-12-13 Thread Rhino
Hi!

I'm not sure if this advice will work for you; it works for Tomcat 4.1.x but
I don't know if Tomcat 5.0 works the same as 4.1.x.

1. Check your tomcat-users.xml file and make sure that at least one of the
entries there has the authority to use the manager application. For example,
this will configure the user id 'tomcat' with the password 'tomcat' to be
able to use the Manager application:
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=standard/
  role rolename=manager/
  user username=tomcat password=tomcat
roles=tomcat,standard,manager/
/tomcat-users

2. Start Tomcat. If you're not sure how, use the startup.bat file in the
\bin directory for Windows and startup.sh for Unix. If this works, you'll
see the Tomcat welcome page.

3. Start the Manager application by clicking on the Tomcat Manager link on
the Tomcat welcome page. If you set up the tomcat-users.xml file correctly,
supply the userid and password of an ID that has manager authority. (In my
example, the user is 'tomcat' and the password is 'tomcat').

4. Go to the bottom of the Manager page, to the section marked: Upload a
WAR file to install. Click the Browse button and navigate through
your file system until you have selected the WAR file that you want to
install. Press the Install button. After a few seconds, your servlet
should have been added to the Applications table near the top of the page
and you should get a message saying that the application was successfully
installed at such-and-such a context.

Assuming that there are no problems, Step 4 will copy your WAR file to the
Webapps directory and unpack your WAR file into a subdirectory of Webapps
with the same name as the servlet context.

To execute your servlet, use your browser to start it. For example:
http://localhost:8080/MyServlet/form
where Tomcat is on your own computer (not a remote one), your context name
is 'MyServlet' and 'form' is a specific url-pattern in the web.xml file that
you put in the WAR file.

I hope this helps.

Rhino

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 7:48 AM
Subject: How can I add a servlet to a server?


Hello!
I installed Tomcat 5.0.
Please send me the answer.
I will have my servlet in a directory mydir
1. under webapps.
2. out of the webapps but under CATALINA_HOME.
3. or out of that.

Best

Mehdi Shahpar

Herder Strasse 4
12163 Berlin

__
Turbospeed zum Turbopreis! Surfen Sie doch auch mit der DSL-Flatrate
von Tiscali. Nur 15,90 EUR im Monat.
Tiscali DSL basiert auf dem T-DSL-Anschluss der Deutschen Telekom AG,
durch den weitere Kosten entstehen. Dieser ist in vielen
Anschlussgebieten verfügbar. 6 Monate Mindestvertragslaufzeit.
Und falls Sie wider Erwarten im ersten Monat nicht zufrieden sein sollten,
gewährt Tiscali Ihnen ein sofortiges Kündigungsrecht und Sie erhalten
Ihr Geld zurück.

Klicken Sie hier:
http://registrierung.tiscali.de/produkte/1342_dslflatrate.php?akkcode=10253




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


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



Re: CSS in War file

2003-12-12 Thread Rhino
You haven't said much about your environment and you haven't included any
code so it's hard to be sure what the problem is. However, I have no
problems accessing a CSS in my War file in Tomcat.

Here is a fragment from my servlet, which runs fine in Tomcat 4.1.24 on a
Linux box:

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {

response.setContentType(CONTENT_TYPE);

PrintWriter out = response.getWriter();

out.println(html);

out.println(head);

out.println(titleSDAC Event Input/title);

out.println(LINK rel=\stylesheet\ TYPE=\text/css\
HREF=\event_form.css\);

out.println(/head);


}

The CSS, event_form.css, is in my $CATALINA_HOME/webapps/SDACServlet
directory.

I hope this helps.

Rhino

- Original Message - 
From: Duncan Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 1:25 PM
Subject: Re: CSS in War file


 When I request a page which should have the styles applied, they are not.

 If I try to request the css file on it's own from a browser, I get the NPE

 (ie. www.pennymail.com/pennymail.css)

 -Duncan
 www.pennymail.com

 Wendy Smoak wrote:

   From: Duncan Smith [mailto:[EMAIL PROTECTED]
 
   The stylesheet is added to the war file in the same location
   as before,
 
  Where in the .war file is the stylesheet?
 
   but if I try to request the css file on it's own I get a
   java.lang.NullPointerException error.
 
  How are you requesting the CSS?  With a browser?  Where are you seeing
  the NPE, browser window, or in a log file?
 
  --
  Wendy Smoak
  Application Systems Analyst, Sr.
  ASU IA Information Resources Management
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Re: question on manager application

2003-12-10 Thread Rhino
I'm not sure I understand your question. I deploy WAR files regularly to a
remote Tomcat4 and it's very easy:

1. Go to the Manager application in your remote Tomcat.
2. If there is already an old version of the servlet on your remote Tomcat,
remove the old version of the servlet using the Remove command that is on
the same line as the context name in the Applications table.
3. Use the Upload a WAR file to install section to install the new version
of the WAR file. Use the Browse button to find the WAR file on *your*
system, then click the Install button. It may take a few seconds for the
Install to complete, depending on the size of the WAR file but when it is
done, the Message area near the top of the Manager application will tell you
that the installation was successful (unless your WAR file has problems in
it; then you'll get an error message.)

Tomcat takes care of all the expanding of the WAR file for you if you do it
this way.

Rhino

- Original Message - 
From: T C K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:53 AM
Subject: question on manager application


 I am in need to deploy a WAR file to a remote Tomcat4
 and need to have the WAR file expanded.  Any pointers
 as to what the URL to the manager app would look like (i.e
 the 'war' parameter - btw, what's the difference between file:/.../foo.war
 and jar:file:/.../foo.war!/ ???) and to expand the archive?

 tia

 -t



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



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



Setting Display Name

2003-12-02 Thread Rhino



Can anyone tell me where/how to set the Display Name for a given servlet or 
point me to the relevant documentation?

This is the valuethat comes up in the Manager application when it 
lists your servlets.
Rhino---rhino1 AT sympatico DOT ca"If you want the best 
seat in the house, you'll have to move the cat."


Re: Setting Display Name

2003-12-02 Thread Rhino
Hi,

Are we talking about the same thing? I mean the Display Names on the
http://localhost:8080/manager/html/list page, specifically the Display
Name column in the Applications table on that page.

All I was asking what how to set the display name for a given path in that
table. Is setting a value in the serlvet tag for an individual servlet in
my web.xml going to work when I've got several servlets in that web.xml? Or
is your suggestion assuming that I have only a single servlet in each path?

It's quite possible that I am doing something non-standard but I often have
many (related) servlets within each of the paths in that table. Naturally,
my web.xml then has several servlet elements in it. Is that a bad way of
doing things? Is it better for me to be putting each servlet in its own
path? That sounds like something that would have implications for my code,
particularly in how the different servlets share information, but if it's
the right way of doing things, I'd probably be better to bite the bullet
and make the necessary changes now

Also, can you give me a URL for SRV 13? I've never heard of that before.
Is it on the Apache website somewhere? In the Tomcat docs? Or is this at a
website for whatever standards body governs the server specs?

Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:42 PM
Subject: RE: Setting Display Name



Howdy,
Simply add display-nameBlahBlah/display-name to the servlet element.
The doc for this and all other deployment descriptor questions of this kind
is the Servlet Specification itself, SRV 13.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:35 PM
To: tomcat-user
Subject: Setting Display Name

Can anyone tell me where/how to set the Display Name for a given servlet or
point me to the relevant documentation?

This is the value that comes up in the Manager application when it lists
your servlets.

Rhino
---
rhino1 AT sympatico DOT ca
If you want the best seat in the house, you'll have to move the cat.



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: Setting Display Name

2003-12-02 Thread Rhino
Thanks for the link to the Servlet Specs.

Where do I set the display name for the servlet context?

Rhino
- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 3:27 PM
Subject: Re: Setting Display Name


The display name is for the servlet contex, not for individual servlets.

You can download the Servlet Specs as a PDF here:
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html




On Tuesday 02 December 2003 03:16 pm, Rhino wrote:
 Hi,

 Are we talking about the same thing? I mean the Display Names on the
 http://localhost:8080/manager/html/list page, specifically the Display
 Name column in the Applications table on that page.

 All I was asking what how to set the display name for a given path in that
 table. Is setting a value in the serlvet tag for an individual servlet
in
 my web.xml going to work when I've got several servlets in that web.xml?
Or
 is your suggestion assuming that I have only a single servlet in each
path?

 It's quite possible that I am doing something non-standard but I often
have
 many (related) servlets within each of the paths in that table. Naturally,
 my web.xml then has several servlet elements in it. Is that a bad way of
 doing things? Is it better for me to be putting each servlet in its own
 path? That sounds like something that would have implications for my code,
 particularly in how the different servlets share information, but if it's
 the right way of doing things, I'd probably be better to bite the bullet
 and make the necessary changes now

 Also, can you give me a URL for SRV 13? I've never heard of that before.
 Is it on the Apache website somewhere? In the Tomcat docs? Or is this at a
 website for whatever standards body governs the server specs?

 Rhino

 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 12:42 PM
 Subject: RE: Setting Display Name



 Howdy,
 Simply add display-nameBlahBlah/display-name to the servlet element.
 The doc for this and all other deployment descriptor questions of this
kind
 is the Servlet Specification itself, SRV 13.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Rhino [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 12:35 PM
 To: tomcat-user
 Subject: Setting Display Name

 Can anyone tell me where/how to set the Display Name for a given servlet
or
 point me to the relevant documentation?

 This is the value that comes up in the Manager application when it lists
 your servlets.

 Rhino
 ---
 rhino1 AT sympatico DOT ca
 If you want the best seat in the house, you'll have to move the cat.



 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
intended
 recipient, please immediately delete this e-mail from your computer system
 and notify the sender.  Thank you.


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



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

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



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



Re: Setting Display Name

2003-12-02 Thread Rhino
Excellent!

Thank,

Rhino

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 7:51 PM
Subject: Re: Setting Display Name



 In web.xml file:
 ?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
 display-nameHello World with Log4J/display-name
 servlet
 servlet-namehelloWorld/servlet-name

 servlet-classualbany.test.hello.HelloWorldServlet/servlet-class
 /servlet

 servlet-mapping
 servlet-namehelloWorld/servlet-name
 url-pattern/hello/url-pattern
 /servlet-mapping


 /web-app
 On Tue, 2 Dec 2003, Rhino wrote:

  Thanks for the link to the Servlet Specs.
 
  Where do I set the display name for the servlet context?
 
  Rhino
  - Original Message -
  From: Ben Souther [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, December 02, 2003 3:27 PM
  Subject: Re: Setting Display Name
 
 
  The display name is for the servlet contex, not for individual servlets.
 
  You can download the Servlet Specs as a PDF here:
  http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
 
 
 
 
  On Tuesday 02 December 2003 03:16 pm, Rhino wrote:
   Hi,
  
   Are we talking about the same thing? I mean the Display Names on the
   http://localhost:8080/manager/html/list page, specifically the
Display
   Name column in the Applications table on that page.
  
   All I was asking what how to set the display name for a given path in
that
   table. Is setting a value in the serlvet tag for an individual
servlet
  in
   my web.xml going to work when I've got several servlets in that
web.xml?
  Or
   is your suggestion assuming that I have only a single servlet in each
  path?
  
   It's quite possible that I am doing something non-standard but I often
  have
   many (related) servlets within each of the paths in that table.
Naturally,
   my web.xml then has several servlet elements in it. Is that a bad
way of
   doing things? Is it better for me to be putting each servlet in its
own
   path? That sounds like something that would have implications for my
code,
   particularly in how the different servlets share information, but if
it's
   the right way of doing things, I'd probably be better to bite the
bullet
   and make the necessary changes now
  
   Also, can you give me a URL for SRV 13? I've never heard of that
before.
   Is it on the Apache website somewhere? In the Tomcat docs? Or is this
at a
   website for whatever standards body governs the server specs?
  
   Rhino
  
   - Original Message -
   From: Shapira, Yoav [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Tuesday, December 02, 2003 12:42 PM
   Subject: RE: Setting Display Name
  
  
  
   Howdy,
   Simply add display-nameBlahBlah/display-name to the servlet
element.
   The doc for this and all other deployment descriptor questions of this
  kind
   is the Servlet Specification itself, SRV 13.
  
   Yoav Shapira
   Millennium ChemInformatics
  
   -Original Message-
   From: Rhino [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 02, 2003 12:35 PM
   To: tomcat-user
   Subject: Setting Display Name
  
   Can anyone tell me where/how to set the Display Name for a given
servlet
  or
   point me to the relevant documentation?
  
   This is the value that comes up in the Manager application when it
lists
   your servlets.
  
   Rhino
   ---
   rhino1 AT sympatico DOT ca
   If you want the best seat in the house, you'll have to move the cat.
  
  
  
   This e-mail, including any attachments, is a confidential business
   communication, and may contain information that is confidential,
   proprietary and/or privileged.  This e-mail is intended only for the
   individual(s) to whom it is addressed, and may not be saved, copied,
   printed, disclosed or used by anyone else.  If you are not the(an)
  intended
   recipient, please immediately delete this e-mail from your computer
system
   and notify the sender.  Thank you.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  --
  Ben Souther
  F.W. Davison  Company, Inc.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 |--|
 | Ryan Russo

Re: i18n problem

2003-11-17 Thread Rhino
Do you mean to say that when the language is changed the pages are *NOT*
reflecting the changes?
Otherwise, I don't see your problem ;-)

Rhino

- Original Message - 
From: Fernandez Angil Marian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 11:24 AM
Subject: i18n problem


 Hi Friends,
 I am using jakarta i18n taglib with tomacat 4.1, it seems that when
the
 language is changed the pages are reflecting the changes. Any solutions or
 work-around?
 Thanks and awaiting a positive reply


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



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



Re: rare problem with javac

2003-11-05 Thread Rhino
This mailing list is for people that are writing Java servlets that use the
Tomcat servlet containers. Are you using Tomcat or are you trying to write a
normal Java applet or application?

If you are writing a normal Java applet or application, you should look at
the Java FAQ by Peter van der Linden. I looked up your question in the FAQ.
If you follow this link

http://java.sun.com/people/linden/faq_a.html#Getting%20Started

and look at question 2 - Why doesn't my Hello World! program compile? -
you should get some good suggestions on fixing your problem. If that doesn't
help, try the comp.lang.java.programmer newsgroup on Usenet.

If you are using Tomcat, what version of Tomcat are you using and what
operating system are you using? What is the version of the operating system?
Which JSDK are you using? Also, are you using an IDE; if yes, which one?

Rhino


- Original Message - 
From: Javier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 1:02 PM
Subject: rare problem with javac



 Hi

 I'm trying to compile my first servlet but Iýve
 problems with javac.

 If I try to run javac without parameters I receive the
 message:

 Exception in thread main
 java.lang.NoClassDefFoundError:
 com/sun/tools/javac/Main


 and I receive the same with

 javac -h
 javac -?
 javac -classpath . Algo.java


 ...etc


 I never seen something like this...andy idea ?

 xl

 PD: I'm running java on W2K server


 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree

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



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



Re: HOW INCREASE URL length size ?

2003-09-26 Thread Rhino
Viagra maybe? ;-)

Rhino

- Original Message - 
From: Philippe Couas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 8:43 AM
Subject: HOW INCREASE URL length size ?


Hi,

Url limit size is to 451 characters.
How can increase it to 800 in Tomcat 4.1.24 ?


Thanks Philipe

Philippe COUAS

Responsable Développement

INFODEV S.A.




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



Re: generate WAR

2003-09-18 Thread Rhino
I'm using Eclipse 2.1.1 on Windows XP Pro and have used it to generate WARs
many times. The catch is that you need to install the Sysdeo plug-in. If you
do that and configure it correctly, you will get a new context menu option
in the Package Explorer when you select your project and right-click: it
will say Tomcat Project and one of its suboptions is Export to the WAR file
sets in project properties.

The Sysdeo plug-in is available at:
http://www.sysdeo.com/eclipse/tomcatPlugin.html. I found the instructions a
bit weak when I installed V2.1 and sent some suggestions for improvements to
the Sysdeo site but I'm not sure my suggestions were incorporated. If you
have any trouble with installing/configuring Sysdeo, let me know and I'll
send you the instructions I wrote, which are a bit more detailed.

Rhino

- Original Message - 
From: Jerald Powel [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 8:07 PM
Subject: generate WAR




 Hi and thanks,

  My IDE is Eclipse. Are there any users of this software on this list
who can tell me if Eclipse will build a WAR and how? I have looked at the
help section but found nothing related to this subject.

 Thanks

 J.



 WAR stands for Web Archive Resource, it is basically a .jar file
containing
 all the files of your web-app. If you use an IDE such as NetBeans it is
very
 easy to create, simple right click the root folder and select Generate
WAR,
 choose your target location to save the war file to and that is it.

 You can then place this .war in your tomcat/webapps folder and the next
time
 you restart Tomcat it will unpack the .war and create a default context
for
 your web-app as well as do any initialization you may have specified in
your
 web.xml

 HTH





 -
 Want to chat instantly with your online friends? Get the FREE
Yahoo!Messenger


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



[FileUpload]

2003-07-24 Thread Rhino



Can anyone tells me how to modify my form to ensure that the contents of an 
input type="file" control are still present when I return to the 
form?

My file upload servlet is working pretty well now except for one thing. I 
am doing edits on each of the files which are to be uploaded, including a check 
to see if the file is larger than an individual size threshold I have set. (This 
is something I've created myself because I want an individual size limit, not 
the aggregate limit provided by the Commons FileUpload team.) When an individual 
file size is too large, I create a message and display it, then invite my user 
to press the back button on their browser to go back to the form to modify the 
form - either replace the name of the overly large file with a smaller one or 
blank it out altogether.

Everything works fine except that when the user gets back to the form, all 
of the fields that are input type=file are blank. The input 
type=text fields retain their original values. I would like the input 
type=file controls to also contain their original value. What do I need to 
do to make that happen?

I've never seen this "blanking" behaviour in other formsbutthis 
is the first time I've written a servlet containing an input type=file 
control

I am running Tomcat 4.1.24. My browser is IE 6.0.2800.xpsp2.030422-1633. My 
OS is Windows XP Pro with all critical service applied.

Rhino---rhino1 AT sympatico DOT ca"If you want the best 
seat in the house, you'll have to move the cat."


Re: War files don't work

2003-07-23 Thread Rhino
Does the war file contain a web.xml file that contains entries for the /nsfs
servlet? If not, that's likely your problem.

Rhino

- Original Message - 
From: Rick Roberts [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:11 PM
Subject: War files don't work



 My server.xml contains this:
 Host name=localhost debug=0 appBase=webapps unpackWARs=true
 autoDeploy=true

 !-- NSFS Context --
 Context path=/nsfs docBase=nsfs debug=0 reloadable=true
 crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=nsfs_log.
 suffix=.txt timestamp=true/
 /Context


 My webapps dir contains my war file (nsfs.war).


 The error I get looks like this:

HTTP Status 404 - /nsfs
type Status report
message /nsfs
description The requested resource (/nsfs) is not available.
Apache Tomcat/4.1


 If I manually expand the nsfs.war file into a webapps/nsfs/ directory then
all
 works fine.

 How do I get Tomcat to use the war file?

 -- 
 ***
 * Rick Roberts*
 * Advanced Information Technologies, Inc. *
 ***


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



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



Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino



Tomcat has suddenly started behaving rather strangely on our Linux server. 
I was hoping someone here could give me some insight into the reasons and some 
suggestions for resolving the problem. We are running Tomcat 4.1.24 on a Linux 
Mandrake 9.1 box.

I wrote a servlet on the weekend which worked on my Windows XP machine but 
misbehaved slightly on the Linux server when installed there. Yesterday, I 
figured out what the problem was and revised the servlet. The revised version 
worked in Windows so I tried to install it in Linux. That's when the weirdness 
started: I can't install the WAR file in Tomcat. It always fails on the same 
error: 

java.lang.NoSuchMethodError: 
org.apache.commons.fileupload.FileUpload.setSizeMax(I)V
I checked the Javadocs and found that the setSizeMax() method is part of 
the class FileUploadBase, not FileUpload, so I immediately suspected that the 
Linux box had an older version of the commons fileupload jar, which only went to 
version 1.0 at the end of June. I searched the Linux box and found 
commons-fileupload.jar, which is NOT the current version, and also found 
commons-fileupload-1.0.jar which IS the current version. I deleted the old one 
and now the only version of the jar on the server is commons-fileupload-1.0.jar. 


I tried installing the WAR file again but get the same error. I even tried 
installing a newer version of a different WAR file that doesn't do file uploads 
and IT failed on the same error. What is going on here? 

I took a peek inside the commons-fileupload-1.0.jar and got this, which 
looks just fine to me:
jar tvf commons-fileupload-1.0.jar | more 0 Wed 
Jun 25 23:12:04 EDT 2003 META-INF/ 420 Wed Jun 25 23:12:04 EDT 
2003 META-INF/MANIFEST.MF 0 Wed Jun 25 23:11:58 EDT 
2003 org/ 0 Wed Jun 25 23:11:58 EDT 2003 
org/apache/ 0 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/ 0 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/ 6020 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/DefaultFileItem.class 1541 Wed Jun 25 
23:11:58 EDT 2003 
org/apache/commons/fileupload/DefaultFileItemFactory.class 1547 Wed 
Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/DeferredFileOutputStream.class 2159 Wed 
Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/DiskFileUpload.class 792 Wed Jun 
25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileItem.class 262 Wed Jun 25 
23:11:58 EDT 2003 
org/apache/commons/fileupload/FileItemFactory.class 811 Wed Jun 
25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUpload.class 672 Wed Jun 25 
23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUploadBase$InvalidContentTypeException.class 
669 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException.class 
651 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUploadBase$UnknownSizeException.class 
7449 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUploadBase.class 486 Wed Jun 
25 23:11:58 EDT 2003 
org/apache/commons/fileupload/FileUploadException.class 894 Wed 
Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/MultipartStream$IllegalBoundaryException.class 
894 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/MultipartStream$MalformedStreamException.class 
6245 Wed Jun 25 23:11:58 EDT 2003 
org/apache/commons/fileupload/MultipartStream.class 1789 Wed Jun 25 
23:11:58 EDT 2003 
org/apache/commons/fileupload/ThresholdingOutputStream.class 2873 Mon 
Feb 10 22:05:50 EST 2003 META-INF/LICENSE.txt 121 Wed Jun 25 
23:12:04 EDT 2003 META-INF/INDEX.LIST
I can't think of anything else to try at this point.

Any ideas anyone?

Rhino---rhino1 AT sympatico DOT ca"If you want the best seat in 
the house, you'll have to move the cat."


Re: Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino
commons-fileupload-1.0.jar is in /var/tomcat4/server/lib.

I'm not sure if that's the *best* place for it but I thought that was one of
the two places where you can put jars and have them visible to all the
servlets that might need them.

Rhino

- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 9:21 AM
Subject: Re: Weird Problems installing servlets in Tomcat



 Where is commons-fileupload-1.0.jar located?  Is it in the correct
 location for the ClassLoader to find it?

 John

 Rhino wrote:

  Tomcat has suddenly started behaving rather strangely on our Linux
  server. I was hoping someone here could give me some insight into the
  reasons and some suggestions for resolving the problem. We are running
  Tomcat 4.1.24 on a Linux Mandrake 9.1 box.
 
  I wrote a servlet on the weekend which worked on my Windows XP machine
  but misbehaved slightly on the Linux server when installed there.
  Yesterday, I figured out what the problem was and revised the servlet.
  The revised version worked in Windows so I tried to install it in Linux.
  That's when the weirdness started: I can't install the WAR file in
  Tomcat. It always fails on the same error:
 
  java.lang.NoSuchMethodError:
  org.apache.commons.fileupload.FileUpload.setSizeMax(I)V
  I checked the Javadocs and found that the setSizeMax() method is part of
  the class FileUploadBase, not FileUpload, so I immediately suspected
  that the Linux box had an older version of the commons fileupload jar,
  which only went to version 1.0 at the end of June. I searched the Linux
  box and found commons-fileupload.jar, which is NOT the current version,
  and also found commons-fileupload-1.0.jar which IS the current version.
  I deleted the old one and now the only version of the jar on the server
  is commons-fileupload-1.0.jar.
 
  I tried installing the WAR file again but get the same error. I even
  tried installing a newer version of a different WAR file that doesn't do
  file uploads and IT failed on the same error. What is going on here?
 
  I took a peek inside the commons-fileupload-1.0.jar and got this, which
  looks just fine to me:
  jar tvf commons-fileupload-1.0.jar | more
   0 Wed Jun 25 23:12:04 EDT 2003 META-INF/
 420 Wed Jun 25 23:12:04 EDT 2003 META-INF/MANIFEST.MF
   0 Wed Jun 25 23:11:58 EDT 2003 org/
   0 Wed Jun 25 23:11:58 EDT 2003 org/apache/
   0 Wed Jun 25 23:11:58 EDT 2003 org/apache/commons/
   0 Wed Jun 25 23:11:58 EDT 2003 org/apache/commons/fileupload/
6020 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/DefaultFileItem.class
1541 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/DefaultFileItemFactory.class
1547 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/DeferredFileOutputStream.class
2159 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/DiskFileUpload.class
 792 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileItem.class
 262 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileItemFactory.class
 811 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileUpload.class
 672 Wed Jun 25 23:11:58 EDT 2003
 
org/apache/commons/fileupload/FileUploadBase$InvalidContentTypeException.cla
ss
 669 Wed Jun 25 23:11:58 EDT 2003
 
org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException.clas
s
 651 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileUploadBase$UnknownSizeException.class
7449 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileUploadBase.class
 486 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/FileUploadException.class
 894 Wed Jun 25 23:11:58 EDT 2003
 
org/apache/commons/fileupload/MultipartStream$IllegalBoundaryException.class
 894 Wed Jun 25 23:11:58 EDT 2003
 
org/apache/commons/fileupload/MultipartStream$MalformedStreamException.class
6245 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/MultipartStream.class
1789 Wed Jun 25 23:11:58 EDT 2003
  org/apache/commons/fileupload/ThresholdingOutputStream.class
2873 Mon Feb 10 22:05:50 EST 2003 META-INF/LICENSE.txt
 121 Wed Jun 25 23:12:04 EDT 2003 META-INF/INDEX.LIST
  I can't think of anything else to try at this point.
 
  Any ideas anyone?
 
  Rhino
  ---
  rhino1 AT sympatico DOT ca
  If you want the best seat in the house, you'll have to move the cat.



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



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



Re: Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 9:31 AM
Subject: RE: Weird Problems installing servlets in Tomcat



Howdy,

I took a peek inside the commons-fileupload-1.0.jar and got this, which
looks just fine to me:
jar tvf commons-fileupload-1.0.jar | more
 0 Wed Jun 25 23:12:04 EDT 2003 META-INF/
 420 Wed Jun 25 23:12:04 EDT 2003 META-INF/MANIFEST.MF
 0 Wed Jun 25 23:11:58 EDT 2003 org/
snip

| I'm curious how you can tell which methods are in these classes (and which
aren't, thereby causing | the NoMethod error), from the jar listing? ;)

Obviously I can't tell which methods are there via this technique. I'm just
trying to show the dates on the different classes to show that they are from
the late-June version of the commons fileupload jar, as opposed to one of
the betas or RC* releases which had earlier dates. I'm taking it on faith
that the method I want is in there. Frankly, I'm not really sure how to tell
what methods are in a given class in a jar file.

I can't think of anything else to try at this point.

Any ideas anyone?

| Yeah.  Compile with the components on your deployment classpath in the
compile classpath.  That's | a standard practice to ensure consistency and
avoid the errors you're seeing.

I'm not sure I understand your advice. I did the compile in Eclipse on my
Windows machine. All I'm doing on the Linux box is importing a WAR file that
contains the already compiled class files from Windows.

| FileUploaded went through a couple of 1.0 RCs before the final 1.0 release
that did not work with
| tomcat.  If you're really interested in the details, search the
commons-dev list archive.

Haven't I already established that I'm using the final 1.0 release rather
than one of the RCs or betas?

| Tomcat 4.1.26, which is looking like the next stable release at the
moment, have the fileupload 1.0 | final.  Feel free to download and use it.

Do I really need to do this? Tomcat 4.1.24 and commons-fileupload-1.0.jar
seem to work fine on my Windows machine. Shouldn't they also work fine on
the Linux box?

I'm still relatively new to Tomcat and Linux so I may be asking stupid
questions; if so, I don't mean to be. I'm just trying to understand what's
going wrong. It's very possible that I've made some kind of newbie mistake;
I'm just trying to understand what it is and how to fix it.

Rhino



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



Re: Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino

- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:22 AM
Subject: Re: Weird Problems installing servlets in Tomcat


 Rhino wrote:

 
  I'm still relatively new to Tomcat and Linux so I may be asking stupid
  questions; if so, I don't mean to be. I'm just trying to understand
what's
  going wrong. It's very possible that I've made some kind of newbie
mistake;
  I'm just trying to understand what it is and how to fix it.

 Move the JAR file to where it should be, like $CATALINA_HOME/lib or
 $CATALINA_HOME/common/lib as described in the ClassLoader HOWTO.


I have had no luck getting Tomcat to load War files yet; I've been trying
various things for hours but no joy yet

First of all, I made a big mistake when I told you earlier that
commons-fileupload-1.0.jar was in /var/tomcat4/server/lib, AKA
$CATALINA_HOME/server/lib. I just plain looked at the wrong darned line of
the screen. In fact, commons-fileupload-1.0.jar was in
$CATALINA_HOME/common/lib (and still is). I think that's where I want it,
right? Tomcat uses FileUpload itself doesn't it? Otherwise I would put it in
the /shared path, right?

I've been reading the HOWTO that you cited and I'm getting a bit confused;
it seems to contradict both itself and you! According to the Quick Start
section, JAR files containing resource which are to be shared across all web
applications are to be placed in $CATALINA_HOME/shared/lib. Later, in the
detailed description of the class loaders, it says that JAR resources which
need to be shared across all web applications (except Tomcat itself) should
be put in $CATALINA_HOME/lib, not shared/lib. I suspect that the Quick Start
is wrong because it I don't even have a $CATALINA_HOME/shared/lib on the
server. That assumption would also agree with your remarks which say to use
$CATALINA_HOME/lib. The only problem is that I don't have a
$CATALINA_HOME/lib either! (We are using Tomcat 4.1.24 on Linux Mandrake 9.1
and running Tomcat as a service.) Anyway, this is probably all a bit off
point anyway; I should have commons-fileupload-1.0.jar in /common/lib,
right?

There's one other thing that I didn't post earlier which I'm starting to
suspect is fairly critical. When I first copied commons-fileupload-1.0.jar
into the $CATALINA_HOME/commons/lib, I noticed that there was already a jar
in that directory with the name commons-upload.jar. I assumed that was an
old version of the jar and deleted it.

The reason I think this might have been a major mistake was that nothing
worked right from that point on. I have been unable to install a single WAR
file, even one whose servlets did no FileUploads, since the point where I
copied commons-fileupload-1.0 jar into /commons/lib and deleted the
commons-fileupload.jar. Could that really be the cause of my problems? If
yes, what do I do about it? Do I need to find a copy of
commons-fileupload.jar and put it into /commons/lib? If yes, what do I do
about commons-fileupload-1.0.jar? Should it be in /common/lib as well? But
won't that cause conflicts?

I hope this note isn't too incoherent; I'm fairly confused right now and may
not be making quite as much sense as I would like

Rhino


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



Re: Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 1:18 PM
Subject: RE: Weird Problems installing servlets in Tomcat



Howdy,

I have had no luck getting Tomcat to load War files yet; I've been
trying
various things for hours but no joy yet

| This an issue: it means your tomcat installation is screwed up.  Resolve
| this before you proceed with more development.

Believe me, I had no plan to do more development until I'd resolved this
problem ;-) I couldn't do much of ANYTHING on the server with Tomcat the way
it was anyway ;-)

the screen. In fact, commons-fileupload-1.0.jar was in
$CATALINA_HOME/common/lib (and still is). I think that's where I want
it,
right? Tomcat uses FileUpload itself doesn't it? Otherwise I would put
it
in the /shared path, right?

| All those three right? questions are correct.

Okay, then at least I understood the HOWTO correctly.

I've been reading the HOWTO that you cited and I'm getting a bit
confused;
it seems to contradict both itself and you! According to the Quick
Start
section, JAR files containing resource which are to be shared across
all
web
applications are to be placed in $CATALINA_HOME/shared/lib. Later, in
the
detailed description of the class loaders, it says that JAR resources
which
need to be shared across all web applications (except Tomcat itself)
should
be put in $CATALINA_HOME/lib, not shared/lib. I suspect that the Quick

| Make sure you're reading the documentation for the appropriate tomcat
| version, i.e. 4.1 and not 4.0 or 5.0.  If confused, the classloader
| how-to trumps the Quick Start guide.

I was definitely reading the Tomcat 4.1 docs. The Quick Start I was
referring to was the brief precis at the start of the Class Loader HOWTO; in
other words, the document was inconsistent within itself.


There's one other thing that I didn't post earlier which I'm starting
to
suspect is fairly critical. When I first copied
commons-fileupload-1.0.jar
into the $CATALINA_HOME/commons/lib, I noticed that there was already a
jar
in that directory with the name commons-upload.jar. I assumed that was
an
old version of the jar and deleted it.

| You assumed correctly, but took the wrong action.  As I've mentioned a
| couple of times now, those two jars are different APIs of the fileupload
| component.  Soemthing which compiles against one jar won't compile
| against the other.  Therein lies your, and tomcat's internal, problem.

| What you should have done is keep the older file there and put your
| fileupload in your WEB-INF/lib directory.

| You might find it easier to start with a new installation of tomcat.
| Don't touch the common/lib, server/lib, shared/lib directories.  Only
| put libraries under the WEB-INF/lib directory of your webapp.

Combining your remarks with John's and now Andrews, I'm satisfied that all I
really need to do to get everything working is put
commons-fileupload-beta-1.0.jar in the /common/lib and put the
commons-fileupload-1.0.jar in the /shared-lib and everything should work
correctly again.

Two small problems though:
1. Where do I find a binary of the commons-fileupload-beta-1.0.jar? I can
find the source for it but I don't have a C compiler so I need a binary. The
only binary seems to be the commons-fileupload-1.0.jar. Or would I be better
asking this on the commons-user mailing list?
2. Why is the Tomcat on my Windows box working? I've deleted the beta jar
from /common/lib and everything still works fine there. I don't have another
copy of either the beta or the 1.0 jar anywhere else in that copy of Tomcat.
Shouldn't Tomcat on the Windows box be failing the same way? Mind you, I
don't import WAR files on the Window box; Eclipse and Sysdeo take care of
everything for me.

I'm pretty confident now that everything will work again as soon as I put
the beta jar back in the /common/lib and put the current jar in the
/shared/lib. (I'll be doing that on both the Windows and the Linux boxes,
just to be safe, as soon as I find the binary of the beta jar.)

Even though things aren't actually working again yet, I really appreciate
all the help that you, John, and Andrew have rendered. It's much appreciated
guys!

Rhino


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



Re: Weird Problems installing servlets in Tomcat

2003-07-22 Thread Rhino

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 3:44 PM
Subject: RE: Weird Problems installing servlets in Tomcat



Howdy,

Combining your remarks with John's and now Andrews, I'm satisfied that
all
I
really need to do to get everything working is put
commons-fileupload-beta-1.0.jar in the /common/lib and put the
commons-fileupload-1.0.jar in the /shared-lib and everything should
work
correctly again.

| That's suboptimal.  Put the beta fileupload back where it was, and put
| the one you need in WEB-INF/lib.

It now turns out that the jar that needs to be put back in /common/lib is
*not* commons-fileupload-beta-1.0.jar; it is commons-fileupload.jar. The
Linux administrator is busy digging it out of the RPM and putting it back in
the /common/lib. I'm optimistic that this will finally solve the problem.
That is the file that I remember being there originally but when Andrew
suggested the beta, I just assumed I was having a minor memory failure about
the name and went with the beta; it didn't work though.

1. Where do I find a binary of the commons-fileupload-beta-1.0.jar? I
can

Download and reinstall tomcat 4.1.24.  Or download just fileupload from:
http://jakarta.apache.org/commons/fileupload/index.html

find the source for it but I don't have a C compiler so I need a
binary.

| It's a java program, not C.  You have a java compiler.  See above URL.

Now I know how Homer Simpson feels when he has one of those Doh moments!
For some reason, I've assumed that all the Tomcat code was written in C and
I never gave it another second's thought. What a moron I am - OF COURSE the
Tomcat code is written in Java! All I can do is blame it on too many years
playing with computers; almost everything else seems to be written in C so I
just assumed Tomcat was too. Arggh.

2. Why is the Tomcat on my Windows box working? I've deleted the beta
jar
from /common/lib and everything still works fine there. I don't have
another
copy of either the beta or the 1.0 jar anywhere else in that copy of
Tomcat.
Shouldn't Tomcat on the Windows box be failing the same way? Mind you,
I
don't import WAR files on the Window box; Eclipse and Sysdeo take care
of
everything for me.

| That's a problem with modern IDEs.  They take care of everything for
| you, but when it comes time to deploy/test without the IDEs, you're
| never quite sure where the right libraries are.  (By you I mean a
| generic you, not Rhino specifically)

How right you are! And most of the time I *like* the fact that I don't have
to deal with the minutae. But today is one of those days that it just bites
you in the ass.

Tell me, does this make sense to you? Last night, when I was first trying to
deploy the new version of my servlet, I used the Tomcat Project/Export to
War file option in Eclipse to refresh my War file before attempting to
install it on the Linux server. When things started misbehaving, I had a
look at the War file and noticed that it was putting the beta 1.0 version of
commons-fileupload in the jar. I thought that was messing me up so I
searched both Eclipse and my hard drive and renamed or deleted every copy of
the beta jar, every single one. When I renamed the jar, I added a .old to
the end of the name, thus breaking the file association. I thought that
would surely keep any program from mistaking it for a real jar file. Yet
despite that, each time I did an export to my War file, I kept getting the
beta version of the file upload in the War file despite the fact that no
file named commons-fileupload-beta-1.0.jar was anywhere on my computer. I
was baffled about how Sysdeo conjured up a file that didn't exist and put it
in my War file. Does that many any sense to you? I just noticed that I still
have one of the renamed files in my /server/lib directory on the Windows
box; it is called commons-fileupload-1.0-beta1.jar.old: is it possible that
Sysdeo was somehow grabbing that file and ignoring the .old suffix in
order to put it in my War file? I wouldn't have thought that would be
possible but I'm at a loss to think of any other explanation.

I don't really want to keep flogging this dying horse but understanding this
issue might give me some useful insights in understanding Tomcat in general,
which could be handy in further problem solving

Rhino





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



Re: Recycling Tomcat

2003-07-20 Thread Rhino
Sorry, I mis-stated my first problem slightly. Please see below for the correction.

  - Original Message - 
  From: Rhino 
  To: tomcat-user 
  Sent: Saturday, July 19, 2003 11:51 PM
  Subject: Recycling Tomcat


  Hi!

  We are running Tomcat 4.1.24 on a Mandrake 9.1 Linux box. 

  Occasionally we need to recycle Tomcat and the only way the administrator has found 
which works is to delete the lock file for Tomcat and then start Tomcat. I have to 
believe that there is a more elegant way to do it. 

  What I should have said is that the administrator has to delete the lock file 
manually in order to recycle Tomcat ONLY WHEN TOMCAT HAS CRASHED. The administrator 
has also told me While there is a restart available it does not work correctly. 
Essentially it tries to start Tomcat before it is finished  stopping it.  I can 
recycle Tomcat by stopping then waiting about a minute then starting Tomcat. Again, as 
long as Tomcat was running this works fine. 


  I would also love to be able to recycle Tomcat remotely. I am remote from the server 
but have access to it from SSH, which gives me a secure command line to the server. 

  Can anyone help with suggestions for either problem?

  Rhino
  ---
  rhino1 AT sympatico DOT ca
  If you want the best seat in the house, you'll have to move the cat.

Recycling Tomcat

2003-07-19 Thread Rhino



Hi!

We are running Tomcat 4.1.24 on a Mandrake 9.1 Linux box. 

Occasionally we need to recycle Tomcat and the only way the administrator 
has found which works is to delete the lock file for Tomcat and then start 
Tomcat. I have to believe that there is a more elegant way to do it. 

I would also love to be able to recycle Tomcat remotely. I am remote from 
the server but have access to it from SSH, which gives me a secure command line 
to the server. 

Can anyone help with suggestions for either problem?
Rhino---rhino1 AT sympatico DOT ca"If you want the best 
seat in the house, you'll have to move the cat."


How do I tell Jakarta Tomcat 3.2.1 to bind to the localhost interface only?

2001-08-27 Thread Albino Rhino

Hello,

I'm using Solaris 2.8, Apache 1.3.19, Jakarta Tomcat 3.2.1, and the mod_jk 
from the Jakarta distribution. Everything works fine, but Tomcat binds it's 
listening socket to the wildcard interface when I want it only to bind the 
localhost interface. I've looked long and hard for a way to have it bind to 
just the localhost interface, but have turned up empty handed so far. Can 
someone tell me how to configure this setup so that Tomcat binds only to the 
localhost interface? Or perhaps tell me that it can't be done (which I can't 
believe)?

Thanks,

OGG...


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp