RE: TC Apache integration

2005-07-28 Thread Caldarale, Charles R
 From: Paul Wallace [mailto:[EMAIL PROTECTED] 
 Subject: RE: TC  Apache integration 
 
 Unless you are saying that TC 5.5 is as robust as Apache.

I have difficulty conceiving of a situation where adding non-redundant
componentry can improve robustness.  I suppose it's theoretically
possible, but, in general, adding complexity pretty much always degrades
mean-time-to-failure.

 If that is the case, where does that leave httpd? 

Load balancing, routing, possibly a more familiar security configuration
(not necessarily better, just better known), and of course, a fast basic
web server.  CGI and PHP should be more efficient with httpd - it all
depends on what your predominant traffic is along with other
site-specific requirements.

 - Chuck


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

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



RE: TC Apache integration

2005-07-28 Thread Caldarale, Charles R
 From: Paul Wallace [mailto:[EMAIL PROTECTED] 
 Subject: RE: TC  Apache integration 
 
 So, can someone point me towards Tomcat (5.5) and 
 Apache integration documentation

If you go to the main 5.5 doc page
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html
you'll see a link to JK 1.2 Documentation in the left column under
Reference.  You probably also want to look at Apache Tomcat
Configuration.  And, of course, Google and the archives for this mailing
list are your friends.

 - Chuck


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

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



RE: TC Apache integration

2005-07-27 Thread Caldarale, Charles R
 From: Paul Wallace [mailto:[EMAIL PROTECTED] 
 Subject: TC  Apache integration 
 
   I am following the resource -
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html 
 to try and achieve the above.
 
 I have added the line Include
 C:\dev\tomcat5\jakarta-tomcat-5.5.9\conf\jk\mod_jk.conf-auto to my
 httpd.conf file. 

I can't answer your questions, since, in general, Tomcat 5.5.9 has
outgrown the need to be front-ended by httpd, so I don't use it.
However, I do have a question for you:  why would you think the 3.2
Tomcat doc has any relevance to the 5.5.9 release?  Have you tried
perusing the 5.5 doc?

 - Chuck


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

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



RE: attributes in servletcontext and servletrequest

2005-07-26 Thread Caldarale, Charles R
 From: Marten Lehmann [mailto:[EMAIL PROTECTED] 
 Subject: attributes in servletcontext and servletrequest
 
 within the init() of a filter, I'm storing a reference to the 
 servletContext:
 
 filterConfig.getServletContext().setAttribute(servletContext, 
 filterConfig.getServletContext());

Perhaps I'm reading this out of context, but the above fragment seems to
be storing the servletContext attribute in the servlet context itself,
not in the request.

 - Chuck


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

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



RE: how to get the original requestURI after jsp:forward()

2005-07-25 Thread Caldarale, Charles R
 From: Schwarz [mailto:[EMAIL PROTECTED] 
 Subject: AW: how to get the original requestURI after jsp:forward()
 
 set a session bean with the original uri.

I don't think you want to put a request-specific data item into the
session - if there's more than one request being processed
simultaneously, you won't know to which the data item applies.

 - Chuck


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

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



RE: RAM limity

2005-07-21 Thread Caldarale, Charles R
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
 Subject: Re: RAM limity
 
 I'm using TC559 and JVM 1.5.x with Win2003 / 2GB RAM.
 I'd like upgrade to 4GB RAM...is there any JVM or Tomcat limit here?
 
 I think JVM cannot use more than 1.6 GB of RAM - dunno why.

It's a Windows limitation.  Windows normally provides only 2 GB of
virtual address space per process, and this is somewhat fragmented by
various DLLs that are scattered about in it.  The JVM requires
contiguous space for its heap (at least it did in 1.4, haven't looked
inside 1.5 yet), and the biggest chunk it can get is about 1.6 MB.
There is a bootstrap option (sorry, I can't remember the tag) for some
versions of Windows server that allows 3 GB of address space per
process, but it reduces the amount of memory available for kernel
control structures, so there are tradeoffs in using it.  Also, the
32-bit JVM did have a problem with heaps over 2 GB due to sign handling
errors; this may be fixed in current levels (haven't tried it in a
while).

In any event, putting 4 GB on the system will help some, since that
would eliminate the risk of doing any paging, assuming you're not
running much else other than Tomcat.

 - Chuck


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

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



RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Caldarale, Charles R
 From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] 
 Subject: FW: OutOfMemoryError  
 WebappClassLoader.openJARs(WebappClassLoader.java:1544)
 
 Problem is every now and then we will see an OutOfMemoryError 
 on the box that looks similar to this:
 
 java.lang.OutOfMemoryError
   java.util.zip.ZipFile.open(Native Method)

Unfortunately, OOME is used as a catch-all for many OS-related resource
problems.  My guess is in this case that you've exceeded the limit on
file descriptors for the process.

 - Chuck


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

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



RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Caldarale, Charles R
 From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] 
 Subject: RE: OutOfMemoryError  
 WebappClassLoader.openJARs(WebappClassLoader.java:1544)
 
 Any pointers in terms of how I should approach this problem...?

I'd raise the limit on the number of open file descriptors and see what
happens.

 - Chuck


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

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



RE: What parser does Tomcat 5.5 use by default?

2005-07-20 Thread Caldarale, Charles R
 From: Dewey, John [mailto:[EMAIL PROTECTED] 
 Subject: What parser does Tomcat 5.5 use by default?
 
 Hi all this is a simple question. I'm trying to figure out what parser
 tomcat 5.5 uses by default after a fresh install. Does anyone know?

Parser for what? XML? JSP? ???

 - Chuck


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

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



RE: tc4 tc4

2005-07-19 Thread Caldarale, Charles R
 From: Chris Pat [mailto:[EMAIL PROTECTED] 
 Subject: Re: tc4  tc4
 
 The log complains that it needs jdk1.5, of course I 
 knew that but was still thinking that there was a 
 way to run it on jkd1.4.  Is there? 

Yes, just download and unzip the compatibility package from the main
Tomcat download page.

 - Chuck


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

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



RE: The servlet that would not die.

2005-07-18 Thread Caldarale, Charles R
 From: Nathan Roy [mailto:[EMAIL PROTECTED] 
 Subject: The servlet that would not die. 
 
 My servlet (I do not own the source code) is randomly getting 
 hung while servicing requests, but Tomcat will not timeout these 
 threads.

You have a bug in the servlet, and you need to fix it, live with it, or
stop using it.  The timeout value is for a connection, not an active
request.  Once a request has been handed off to a thread to process,
it's up to the application code to insure that the request finishes.
There's nothing Tomcat can do for this.

 - Chuck


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

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



RE: Where is default logon.jsp for Tomcat Admin webapp?

2005-07-17 Thread Caldarale, Charles R
 From: ohaya [mailto:[EMAIL PROTECTED] 
 Subject: Re: Where is default logon.jsp for Tomcat Admin webapp?
 
 As I indicated in my original msg, on my installation of Tomcat
 (5.0.27), there is no login.jsp file in that location, or 
 anywhere else on my hard drive.

For the admin app, jsps are pre-compiled.  The class of interest is
inside catalina-admin.jar, called login_jsp.class.

 - Chuck


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

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



RE: Tomcat 5.5 with Java 1.42

2005-07-15 Thread Caldarale, Charles R
 From: Dewey, John [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5 with Java 1.42
 
 As I said before I haven't been able to find the referenced
 compatibility package so I'd appreciate a friendly link or 
 instructions.

It's the one cleverly disguised with the name Compat on the regular
Tomcat download page:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

All you have to do is unzip it.  You should remove any other jars you
have manually scattered into the Tomcat directories, since they are not
needed and are likely to annoy the classloaders.

 - Chuck


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

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



RE: Is anyone receiving this? Messages bouncing

2005-07-15 Thread Caldarale, Charles R
 From: ohaya [mailto:[EMAIL PROTECTED] 
 Subject: Is anyone receiving this? Messages bouncing
 
 Since last night, I have been getting delivery failed messages when
 sending to the mailing list.  If anyone sees this message, would you
 mind responding to let me know?

Yes, the messages are getting through.  You can see them in the archives
- e.g.,
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

The bounce messages sometimes come out several hours after the message
makes it to the list.  I assume the Apache mail servers are acting up
again.

 - Chuck


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

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



RE: Session Mixup

2005-07-14 Thread Caldarale, Charles R
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Subject: Re: Session Mixup
 
 Ok. One other thought that's burned me once -- servlet instances are 
 recycled between requests without resetting any of it's field 
 members. 

Actually, a given servlet object may be accessed by multiple
request-processing threads simultaneously.  You always have to think
about the scope of any field before deciding what object it should be
placed in.  E.g., you normally don't want to put request-specific data
in a servlet or session object.

 - Chuck


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

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



RE: config commands for apache

2005-07-12 Thread Caldarale, Charles R
 From: Spotted Elk Lance [mailto:[EMAIL PROTECTED] 
 Subject: config commands for apache
 
 I am trying to setup Apache Tomcat 5.5.9 and am following the 
 instructions from the following website:

Why do you want to install Apache httpd?  Try running Tomcat standalone
first and make sure you have that working.  Only if you decide you
really need httpd features should you bother with that complication.

 - Chuck


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

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



RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Caldarale, Charles R
 From: Woodchuck [mailto:[EMAIL PROTECTED] 
 Subject: obscure tomcat 5.5 text file display bug?
 
 however in Tomcat 5.5 links to the same .txt files would also display
 within the browser, but the formatting is stripped because the text
 file contents are being displayed in a non-fixed width font 
 (looks like courier true type) and all the spaces are stripped away.

Can't help you with the missing spaces, but all forms of Courier are
fixed-pitch fonts, by definition.

 - Chuck


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

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-05 Thread Caldarale, Charles R
 From: Woodchuck [mailto:[EMAIL PROTECTED] 
 Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
candidate?]
 
 here is the relevant header info from Tomcat 4.1:
 
 HTTP/1.x 200 OK
 Etag: W/1706-1120587147968
 Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
 Content-Type: text/plain
 Content-Length: 1706
 Date: Tue, 05 Jul 2005 20:59:46 GMT
 Server: Apache Coyote/1.0
 Proxy-Connection: Keep-Alive
 
 and here is the relevant header info from Tomcat 5.5:
 
 If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
 If-None-Match: W/1706-1120416178619
 HTTP/1.x 304 Not Modified
 Server: Apache-Coyote/1.1
 Date: Tue, 05 Jul 2005 19:57:35 GMT

You've got apples and oranges here.  The 1st response actually includes
the text, whereas the 2nd just tells the browser to use what it has
already cached.  You need to try it again with the cache cleared prior
to each request.

 - Chuck


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

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



RE: Virtual hosts with standalone tomcat 5.5.9

2005-06-26 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: Virtual hosts with standalone tomcat 5.5.9
 
  I tried simply going like this
  Host name=www.mysite.com
  Context path= docBase=/var/www/server1 reloadable=true
debug=0 /
  /Host
  Host name=mail.external.mysite.com
  Context path= docBase=/var/www/server2 reloadable=true
debug=0 /
  /Host
 
 I believe you are only allowed to have one Context path= 
 because this defines the default webapp - where the requests 
 go if they don't match any other context path.

There is a default webapp per host, not per Tomcat.  (However, the path
attribute must not be used unless the Context/ entry is in server.xml,
and that is strongly discouraged these days.)  To quote from the Tomcat
server reference doc for the path attribute:

The context path of this web application, which is matched against the
beginning of each request URI to select the appropriate web application
for processing. All of the context paths within a particular Host must
be unique. If you specify a context path of an empty string (), you
are defining the default web application for this Host, which will
process all requests not assigned to other Contexts. The value of this
field must not be set except when statically defining a Context in
server.xml, as it will be infered from the filenames used for either the
.xml context file or the docBase.

 I'm not sure how you could implement real virtual hosts on Tomcat

Now that's an interesting turn of phrase: real virtual hosts.

 - Chuck


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

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



RE: configure HTTP1.1 pipline depth on Tomcat 5.0

2005-06-25 Thread Caldarale, Charles R
 From: charly [mailto:[EMAIL PROTECTED] 
 Subject: Re: configure HTTP1.1 pipline depth on Tomcat 5.0 
 
 AFAIK the pipeline length cannot be more than one by design.
 No client will send another request before it received the 
 response from the last.

To quote from RFC 2616 (section 8.1.1):

HTTP requests and responses can be pipelined on a connection.
 Pipelining allows a client to make multiple requests without
 waiting for each response, allowing a single TCP connection to
 be used much more efficiently, with much lower elapsed time.

And in 8.1.2:

A significant difference between HTTP/1.1 and earlier versions of
HTTP is that persistent connections are the default behavior of any
HTTP connection. That is, unless otherwise indicated, the client
SHOULD assume that the server will maintain a persistent connection,
even after error responses from the server.

 And so TC will also not accept another request before it 
 processed the last

Can you tell us where in the Tomcat code such a restriction is
implemented?  I haven't been able to find it, although I'm certainly not
an expert on Tomcat internals.

 - Chuck


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

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



RE: configure HTTP1.1 pipline depth on Tomcat 5.0

2005-06-25 Thread Caldarale, Charles R
 From: Caldarale, Charles R 
 Subject: RE: configure HTTP1.1 pipline depth on Tomcat 5.0 
 
  And so TC will also not accept another request before it 
  processed the last

 Can you tell us where in the Tomcat code such a restriction 
 is implemented?  I haven't been able to find it, although I'm 
 certainly not an expert on Tomcat internals.

To answer my own question, the serialization of requests occurs in:
org.apache.coyote.http11.Http11Processor
where there's a loop in the process() method that insures each pipelined
request is responded to before starting on the next.  Note that this is
a serialization of processing, not accepting, so there does not appear
to be any limit on the number of requests that can be pipelined together
in a single transmission.  There is a configurable limit on the number
of keep alives that will be tolerated on an otherwise idle connection.

 - Chuck


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

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



RE: Embedded Tomcat SSL

2005-06-23 Thread Caldarale, Charles R
 From: Diarmuid McDonald [mailto:[EMAIL PROTECTED] 
 Subject: RE: Embedded Tomcat  SSL
 
 Unfortunately I havent found a solution. If anyone has done 
 Java Embedded Tomcat using SSL, could they post a simple test program.

Can't really comment about how it's done, but it is possible, since
JBoss supports SSL with its embedded Tomcat.  Perhaps you could browse
through the JBoss doc and code.

 - Chuck


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

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



RE: Tomcat 5.5.9 and jdk 1.4.2

2005-06-21 Thread Caldarale, Charles R
 From: Carlos Bracho [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5.9 and jdk 1.4.2
 
 I could not see the compatibility package in the tomcat 
 download page...

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

It's the download cleverly hidden under the name Compat...

 - Chuck


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

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



RE: Possibly a dumb question.

2005-06-21 Thread Caldarale, Charles R
 From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] 
 Subject: Possibly a dumb question.
 
 Am I wrong in thinking that I may get better performance from 
 Tomcat by building it from source rather than using a binary? 

Yes, you're wrong - unless you happen to have a truly miraculous
optimizing Java compiler at your disposal.  However, real Java
performance largely depends on the quality of the JIT buried inside the
JVM you're using.

 My thought is that I will be able to more tightly integrate 
 the connector and Tomcat by doing this...



No idea which connector you're referring to, but your building of the
relevant products can't really be any different than the developers'
builds, can it?

If you're referring to the AJP connector between Apache httpd and
Tomcat, you might want to try just eliminating httpd - Peter Lin's
recent testing shows that current versions of Tomcat are nearly the
equal of httpd for delivering static content, and removing the front end
eliminates that overhead for dynamic pages.

 - Chuck


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

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



RE: Location of backwards compatibility patch

2005-06-21 Thread Caldarale, Charles R
 From: Scott, Brian [mailto:[EMAIL PROTECTED] 
 Subject: Location of backwards compatibility patch
 
 I'm curious if anyone can guide me to the Tomcat
 compatibility patch that will allow me to run Tomcat 5.5 
 under jdk 142_05.

(Second time this has come up today.  Why is this so hard for some
people?)

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

It's the download cleverly hidden under the name Compat...

 - Chuck


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

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



RE: Tomcat, windows and more memory

2005-06-20 Thread Caldarale, Charles R
 From: Charl Gerber [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat, windows and more memory
 
 I take it if you run Tomcat 4.x from the Start Menu,
 you there is no way to set options then? *sigh*

The JVM options are kept in the registry when Tomcat runs as a service.
I don't know about Tc 4, but in 5.0 and 5.5, there is a utility program
(tomcat5w.exe - part of the download) that lets you manipulate these and
other options with dialog boxes rather than regedit.

 - Chuck


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

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



RE: Compression doesn't work :(

2005-06-19 Thread Caldarale, Charles R
 Fra: smmarrt [mailto:[EMAIL PROTECTED] 
 Emne: Compression doesn't work :(
 
 I try setting compression-related properties on Connector, but it 
 doesn't compress anything :(
 
 Connector port=8080 maxHttpHeaderSize=8192
snip
compression=on compressionMinSize=2048 /

How did you determine that compression was not being applied?

It would help if you told us what Tomcat level you're using.
Unfortunately, the comments in server.xml appear to be left over from
some past life, so actually reading the documentation is a necessity.
There is no compressionMinSize attribute identified in the 4.1, 5.0, or
5.5 docs (or the code, as far as I can tell); if you're using a level
older than that, you've got other problems to worry about.

For 5.5, the actual description for compression is:

--
The Connector may use HTTP/1.1 GZIP compression in an attempt to save
server bandwidth. The acceptable values for the parameter is off
(disable compression), on (allow compression, which causes text data
to be compressed), force (forces compression in all cases), or a
numerical integer value (which is equivalent to on, but specifies the
minimum amount of data before the output is compressed). If the
content-length is not known and compression is set to on or more
aggressive, the output will also be compressed. If not specified, this
attribute is set to off.
--

The doc fails to say what the default minimum compression size is, so I
tried compression=force, and all the content now appears properly
garbled in Ethereal.

Also, take a look at compressableMimeType:

--
The value is a comma separated list of MIME types for which HTTP
compression may be used. The default value is
text/html,text/xml,text/plain.
--

Note that trying to compress some static content (e.g., jpg, pdf) is a
waste of time.  

 - Chuck


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

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



RE: Possible bug in request parameter decoding

2005-06-16 Thread Caldarale, Charles R
 From: Chris Burdess [mailto:[EMAIL PROTECTED] 
 Subject: Possible bug in request parameter decoding
 
 According to
   http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars
 request parameters are encoded in UTF-8.

Well, that's not quite how I read it.  By definition (RFC 2396), URIs
are not supposed to contain non-ASCII values.  The HTML 4.0 appendix
referred to above makes the somewhat contradictory suggestion to use
UTF-8 to handle non-ASCII, ignoring the fact that UTF-8 encoding
produces byte values outside of the ASCII range.  Since the discussion
in this area of the appendix is related to browser, not server,
behavior, it's not really relevant to what Tomcat should do when it
encounters illegal (non-ASCII) values in a URI supplied on a browser
request.

In any event, as Tim noted, you can configure how the connector should
interpret non-ASCII bytes by specifying a value for URIEncoding in your
server.xml file.  I suspect that the default value of ISO-8859-1 is
there largely for historical reasons, since it was the predominant
encoding before UTF-8 became popular.

 - Chuck


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

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



RE: Tomcat memory question

2005-06-14 Thread Caldarale, Charles R
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat memory question
 
 But class definitions (IIRC) do not go onto the heap so you 
 could have a lot of classes without any worries.

Actually, an instance of java.lang.Class is created for each
classloader/class combination, and these are in the heap - in the
Permanent Generation for HotSpot-based JVMs.  Besides the dozen or so
Java fields in each instance of java.lang.Class, the JVM keeps quite a
bit of additional information (e.g., method table pointers) in each
instance that is visible and accessible only to the JVM itself, not any
Java code.  Running a large number of webapps in Tomcat will often
require increasing the portion of the total heap that is assigned to the
PermGen.  You can find some discussions about this in the archives.

 - Chuck


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

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



RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Caldarale, Charles R
 From: Charl Gerber [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat and Runtime.freeMemory()
 
 But why does the free memory not remain consistant if
 there is no server activity?

There is _always_ some server activity, if for nothing else than
listening for comm traffic and various timing operations.  If you turn
off things like development and autoDeploy, you can reduce this
background activity, but you can never completely eliminate it.

 - Chuck


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

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



RE: Tomcat file activity every 10 seconds

2005-06-14 Thread Caldarale, Charles R
 From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat file activity every 10 seconds
 
 Tomcat still accesses winnt\system32 every 10 seconds for 
 some reason, but I can live with it.

You must be running Tomcat as a service, and that's the default working
directory.  You can change it in the service properties dialog box.  I
don't know why Tomcat might be looking in there, unless it has something
to do with logging.

 - Chuck


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

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



RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Caldarale, Charles R
 From: Charl Gerber [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat and Runtime.freeMemory()
 
 So there is no way to determine how much memory you
 *really* have free?

The base of the sawtooth shown by a heap profiler is it.
Programattically, it can be a bit tricky when capabilities such as
Concurrent GC are in use.  You can try to force a garbage collection,
but that's a rather expensive action to take just to see a number.

 - Chuck


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

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



RE: Admin Package

2005-06-14 Thread Caldarale, Charles R
 From: J R [mailto:[EMAIL PROTECTED] 
 Subject: Admin Package
 
 Does anyone have a link to the step by step guid;e to 
 install this package?

Not to be too facetious, but:
1) Download.
2) Unzip.

That's really all there is to it.  Just make sure you use the same base
directory for the admin unzip that you did for the main Tomcat download.
The admin unzip will attempt to overwrite a couple of text files as it
goes; the contents are identical, so it doesn't matter.

You will also need to set up the admin role and associated userid in the
conf/tomcat-users.xml file.

 - Chuck


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

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



RE: compatibility package

2005-06-14 Thread Caldarale, Charles R
 From: Ricardo Miguel Machado Marques 
 [mailto:[EMAIL PROTECTED] 
 Subject: compatibility package
 
 I'm probably asking something already asked before so Sorry 
 in Advance.

Several times; did you try the mailing list archives or even Google?

 I've installed Tomcat 5.5 and have JRE 1.4.2

 I can't star a service because of the compatibility issue.

 My problem is that I can't seem to be able to find what should I
 download and where to save it in order to solve this situation.

The 1.4 compatibility package is right there on the main Tomcat download
page:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
under the name Compat.

 - Chuck


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

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



RE: Servlet threading Issue. Unexpected behaviour.

2005-06-13 Thread Caldarale, Charles R
 From: nitin dubey [mailto:[EMAIL PROTECTED] 
 Subject: Servlet threading Issue. Unexpected behaviour.
 
 Only after the response of either of the first two
 requests is complete then it shows me doGet() and
 then doPost() msg.

As has been discussed before on this list, you're probably encountering
the client (browser) limitation of two open requests to a given server
at a time.  This is the recommended behavior as described in the HTTP
RFC.  Try using multiple clients and see what happens.

 - Chuck


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

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



RE: [OT] Help/Examples setting up security settings

2005-06-13 Thread Caldarale, Charles R
 From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
 Subject: Re: Help/Examples setting up security settings
 
 Having just spent a couple of weeks integrating a new 
 security framework into an existing app, a framework 
 that works in concert with J2EE security, let me see 
 if I can help... Hang on, this is going to be a long
 post!...

Frank -

I've been perusing this list for some time now, and I have to say that
you provide some of the most concise and lucid explanations I've ever
seen.  It's a pleasure to read them.  Thank you very much.

 - Chuck


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

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



RE: Can't get tomcat-5.5.9 to talk SSL

2005-06-13 Thread Caldarale, Charles R
 From: Rob Tanner [mailto:[EMAIL PROTECTED] 
 Subject: Can't get tomcat-5.5.9 to talk SSL
 
 I try to access port 8443 (https://www:8443) and Firefox pops up a 
 dialogue box with the message Firefox and www cannot communicate
 securely because they have no common encryption algorithms.

Do you have the following in the connector?
sslProtocol=TLS
Although this is supposed to be the default, there's a bug in 5.5.9 that
doesn't establish the default properly, so you have to specify the
protocol explicitly.  I believe the fix is already in CVS and will be
part of the 5.5.10 release.

If you did specify the sslProtocol explicitly, then I don't know what to
tell you, since following the SSL instructions worked for me on several
different platforms.

 - Chuck


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

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



RE: Tomcat file activity every 10 seconds

2005-06-13 Thread Caldarale, Charles R
 From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat file activity every 10 seconds
 
 Does anybody know why Tomcat scans my website directories and 
 its own webapp directories every 10 seconds?

Do you have autoDeploy enabled in the Host/ entry in conf/server.xml?
(It's on by default.)  Turning this off gets rid of the repeated
directory scans for me.

 - Chuck


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

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



RE: Can't get tomcat-5.5.9 to talk SSL

2005-06-13 Thread Caldarale, Charles R
 From: Rob Tanner [mailto:[EMAIL PROTECTED] 
 Subject: Re: Can't get tomcat-5.5.9 to talk SSL

(Please use plain text, not HTML, for list messages.  Makes everybody's
lives easier and safer.)

 The other thing I wonder about because it's not clear to me:
 the certs file, /usr/java/security/cacerts, contains both the
 Thawte root certificate (already included in the jvm) and the
 certificate signed by Thawte.  Is that correct or should they
 be two separate files and how are they declared?

Can't say, especially since we don't know how you created this file.
Have you tried the simple, self-signed certificate described in the SSL
how-to?  You might want to make sure you can get that working before
advancing to commercial certificates.

 - Chuck


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

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



RE: Problem with security?

2005-06-10 Thread Caldarale, Charles R
 From: Gagnon, Joseph M (US SSA)
[mailto:[EMAIL PROTECTED] 
 Subject: Problem with security?
 
 I have a situation where I want to be able to provide user access
 to an application by determining the identity of the requesting
 user, without them having to go through a login procedure.

Those seem to be rather contradictory requirements.  How do you expect
to determine identity without some form of login?

 - Chuck


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

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



RE: Using appelts with different clients

2005-06-08 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
 Subject: AW: Using appelts with different clients
 
 - I've deployed all files to BEA weblogic. The page loades 
 fine on IE and firefox.
 - I've deployed all files to tomcat. The page loads on IE, however, it
 doesn't on firefox. 
 
 Therefore, I assume that this is either a bug, or tomcat just doesn't
 support different clients.

There must be an echo in here.  Here's a portion of an e-mail from less
than 24 hours ago about the IE vs. the specs problems.  The last
referenced link is most illuminating.

 -Original Message-
 From: Joe Plautz [mailto:[EMAIL PROTECTED] 
 Sent: 2005 June 06, Monday 09:57
 To: Tomcat Users List
 Subject: Re: IE-Page not found problem
 
 Here's a link to a html validator, http://validator.w3.org/
 
 Here's a link that explains a lot of the known issues,
 http://www.howtocreate.co.uk/wrongWithIE/

 - Chuck


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

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



RE: war redeployment problem

2005-06-07 Thread Caldarale, Charles R
 From: Sergey Pariev [mailto:[EMAIL PROTECTED] 
 Subject: war redeployment problem
 
  message = invalid LOC header (bad signature)
 at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430)
 
 I'm using Tomcat 5.0.29 

But what OS and JDK level are you using? I have a vague memory of a
problem in early Sun 1.4 JDKs with zip file handling.

 - Chuck


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

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



RE: Buggy .war in 5.5.9 binary distribution

2005-06-07 Thread Caldarale, Charles R
 From: Alexander Fairley [mailto:[EMAIL PROTECTED] 
 Subject: Buggy .war in 5.5.9 binary distribution
 
 I've been playing around with the samples in the 5.5.9 distribution,
 and the .war available from the internal link:
 http://localhost/tomcat-docs/appdev/sample/sample.war
 doesn't autodeploy when placed in webapps. Furthermore, attempting to
 extract it with jar (fastjar) 0.92-gcc throws the following java.zip
 exception:
   created: META-INF/
 extracted: META-INF/MANIFEST.MF
 java.util.zip.ZipException: invalid entry size (expected 975 
 but got 470 bytes)
 at 
 java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)

I just downloaded a fresh copy of the 5.5.9 zip distribution, installed
it, examined sample.war, and extracted everything from it - with no
problems.  Did you verify the checksums of your download?

 - Chuck


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

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



RE: Servlet Concurrency Issues

2005-06-07 Thread Caldarale, Charles R
 From: Michael Pasko [mailto:[EMAIL PROTECTED] 
 Subject: Servlet Concurrency Issues
 
 I started allowing other users on it, I stumbled on some problems.
 Basically what happens, when user A submits the form, and then 2 
 seconds later user B submits the same form.  User A stops getting 
 results, and User B receives the output for his request as well as
 the end of User A's request.

Probably not a configuration problem but rather implementation errors in
your servlet or some related object (such as the DB connection).
There's normally only one copy of the servlet object, and it will be
used concurrently by multiple threads.  Make sure you're not storing
request-specific information in there.

 - Chuck


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

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



RE: sslProtocol default value in 5.5.9 - broken?

2005-06-05 Thread Caldarale, Charles R
 From: Paul Singleton [mailto:[EMAIL PROTECTED] 
 Subject: sslProtocol default value in 5.5.9 - broken?
 
 Am I missing something, is this a documentation bug
 or a Tomcat bug?

Can't really answer your question, but I did verify the same apparently
erroneous behavior on one of our TC 5.5.9 installations just now.

 - Chuck


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

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



RE: binding 5.5.9 HTTP connector to specific IP address

2005-06-05 Thread Caldarale, Charles R
 From: Paul Singleton [mailto:[EMAIL PROTECTED] 
 Subject: binding 5.5.9 HTTP connector to specific IP address
 
 When I configure it with the extra attribute
address=195.108.201.212
 (not the real address) then Tomcat seems
 to start up happily
snip
 but requests to that IP address fail with 
 connection refused.

Just tried it with TC 5.5.9 on our proprietary platform with JRE 1.4.2
and it seemed to work fine (except for a problem with the Admin app
trying to display the connector address info - have to look into that).
Do you have a firewall or iptables setting that might be blocking
access?

 - Chuck


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

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



RE: Number of running threads

2005-06-02 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: Number of running threads
 
 Why only two rather than maxThreads?

How many separate clients are you using to test this with? Browsers
typically honor the HTTP RFC recommendation of no more that two
concurrent requests to a given host at a time.

 - Chuck


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

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



RE: Error java.lang.String.replace

2005-05-31 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: Error java.lang.String.replace
 
 Error message  
 java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/Ch
 arSequence;)Ljava/lang/String;
 Exception typejava.lang.NoSuchMethodError
 
 I'm not a coder, so I try to figure out what's the problem 
 and in my research I read that these crashes appear when the 
 code uses some method which didn't exist before JDK 1.5.

Yes, the replace() method with two CharSequence arguments is new with
1.5.  Looks like your choices are to either modify the open source
routine or install the newer JDK.  Since you admit to not being a
programmer...

 - Chuck


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

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



RE: garbage collection problem with class sun.reflect.GeneratedMethodAccessor

2005-05-26 Thread Caldarale, Charles R
 From: dharshana vanderbona [mailto:[EMAIL PROTECTED] 
 Subject: Fwd: garbage collection problem with class 
 sun.reflect.GeneratedMethodAccessor
 
 After running the system for sometime with around 50 users I noticed
 that the system is starting to fillup the memory. But strangely even
 after all the users have disconnected, the amount of used memory did
 not change (see below)..
 
 Thereafter I put %System.gc();% inside a jsp and called it, and I
 was able to see that it freed up all the memory and brought the
 application to normal state again...
 
 Can someone please let me know what is going wrong here..

Nothing's going wrong - all that you've described is perfectly normal
and expected behavior.  Garbage collection does not run until it has to,
or it's forced, via the System.gc() call.

 - Chuck


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

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



RE: tomcat on the SGI

2005-05-26 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Murad Nayal
 Subject: tomcat on the SGI
 
 [4]/local/jakarta-tomcat-5.5.9 65# java -version
 java version 1.4.1_06
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06)
 Java HotSpot(TM) Client VM (build 1.4.1_06, mixed mode)

Did you install the compat package which is required to run with a 1.4
JRE?

Do you have port conflicts?

 - Chuck


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

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



RE: confused about simple logging

2005-05-23 Thread Caldarale, Charles R
 From: Lane [mailto:[EMAIL PROTECTED] 
 Subject: confused about simple logging
 
 where on earth will a hit be recorded when I navigate to 
 http://localhost/helloworld/index.jsp ? 

See if this is what you want:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

 - Chuck


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

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



RE: Tomcat vs Apache

2005-05-18 Thread Caldarale, Charles R
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat vs Apache
 
 I think there is not much question that the Apache server is far more
 efficient serving static html.  Is there really any issue on that?  If
 so, things sure have changed.  I thought the comparison was like 5 to
 1.  Is that no longer true?

That is definitely no longer true - search the archives for Peter Lin's
test results.  It's not quite parity, but it's close.

 - Chuck


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

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



RE: Tomcat 5.0.30 OutOfMemory error

2005-05-15 Thread Caldarale, Charles R
 From: Jack Park [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.0.30 OutOfMemory error

It would be helpful if you told us what OS you're using, along with what
version of the JDK you have installed.  Did you check your logs for any
pertinent diagnostic information?

 The java process is calling up 66,500k of heap so it strikes 
 me that the OutOfMemory issue isn't related to the heap.

Highly likely that it's not complete heap exhaustion.  If you've
searched the archives at all, you should have found the following:

1) The OutOfMemoryError is a catch-all for exhausting not only the heap,
but also pretty much any system resource, such as the number of open
files.  You need to look at the stack trace in the logs to find out what
was being attempted at the time.

2) You can run out of Perm Gen space rather easily in any app server.
Look at the JVM documentation and the archives for details.

 If I try to place
   set CATALINA_OPTS= -Xms256m -Xmx512m -Xss512k
 in catalina.bat, Tomcat won't start at all.

Exactly what errors are displayed?

 - Chuck


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

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



RE: Recompiling jsp; Problems with Access Denied errors after I edit a file in a webapp; Admin app

2005-05-14 Thread Caldarale, Charles R
 From: Karr, David [mailto:[EMAIL PROTECTED] 
 Subject: Recompiling jsp; Problems with Access Denied 
 errors after I edit a file in a webapp; Admin app
 
 First of all, what is the admin app?

The admin app lets you view and manipulate nearly all Tomcat
configuration values.  It's a web-based interface to the myriad of .xml
files.

 it says I must download and install the admin package.

The admin package is the .zip file called, cleverly enough, admin on
the Tomcat download page.  Just download and unzip it, using the same
base directory in which Tomcat is installed.

 Is it feasible to have the actual webapp location be outside of the 
 Tomcat distribution?

Yes, read the how-to on deployment.

 that seems to cause Tomcat to fail with Access denied errors on the 
 files that I edited.

I suspect you're running Tomcat as a service, with its own account (by
default, SYSTEM).  When you edited the file under your account, the
ownership changed, and Tomcat no longer had access.  You should be able
to fix this by specifying the proper security on the directories and
files you want Tomcat to use.

 - Chuck


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

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



RE: SSL on multiple IP addreses?

2005-05-12 Thread Caldarale, Charles R
 From: David Wall [mailto:[EMAIL PROTECTED] 
 Subject: Re: SSL on multiple IP addreses?
 
 How will you configure multiple IP addresses on a single NIC? 

IP addresses are a figment of the software TCP stack's imagination.  All
real operating systems provide the capability of assigning multiple
arbitrary IP addresses to a NIC.

  Normally, you have one NIC per IP address.

Depends on the requirements of the implementation.

But to get back to the original question, I think the OP will need
multiple .keystore files, although that may well depend on how the
certificate is created.  Take a look at:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html
especially the Certificates and General Tips sections.

 - Chuck


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

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



RE: classpath problem?

2005-05-11 Thread Caldarale, Charles R
 From: Bagus [mailto:[EMAIL PROTECTED] 
 Subject: classpath problem?
 
   echo $CLASSPATH
 .:/www/my_tomcat_apps:/usr/local/jakarta-tomcat-5.4.4/
^
|

Want to make that 5.5.4 and see what happens?

 - Chuck


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

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



RE: question about load-on-startup in web.xml

2005-05-11 Thread Caldarale, Charles R
 From: Annie Wang [mailto:[EMAIL PROTECTED] 
 Subject: Re: question about load-on-startup in web.xml
 
 any one know if there's a way to make webappY get installed before
 webappX?

As far as I can tell, the intent of the JSP and servlet specs is for web
applications to be independent of both the container and each other.
Since Tomcat is the reference implementation for the spec, the
developers seem to avoid introducing many Tomcat-unique features that
would reduce application portability.  The load-on-startup tag is part
of the servlet spec, defined to control instantiation of servlets within
an app, not across apps.

If you want to synchronize application deployment, I think you're going
to have to do that within the app itself, possibly with context
listeners to minimize inter-app dependencies.  You'd probably want to
use reflection to make references to whatever class or object you
synchronize on, otherwise you're going to have problems independently
updating the apps without taking Tomcat down.  Another option, of
course, is to extend the existing deployOnStartup mechanism to do what
you want.  After all, this is open-source.

Or maybe there's some neat trick I haven't found yet.

 what determines the install order?

These references only partially answer the question:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html#Depl
oying%20on%20Tomcat%20startup
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automat
ic%20Application%20Deployment

My somewhat less than rigorous experimentation seems to indicate that
apps are deployed serially, not in parallel, but I haven't tried to
figure out what determines the order.

 - Chuck


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

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



RE: Connecting Tomcat5.5.9 + Apache2.0.54

2005-05-10 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

 Subject: Connecting Tomcat5.5.9 + Apache2.0.54
 
 However, I am stuck with connecting the two so that I don't 
 have to type in localhost:8080 in my browser

Well, the easiest way is to remove Apache httpd and configure Tomcat to
use ports 80 and 443.  (Look at the Connector tags in the
conf/server.xml file.)

 - Chuck


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

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



RE: Apache+Tomcat

2005-05-10 Thread Caldarale, Charles R
 From: Praveen KUMAR [mailto:[EMAIL PROTECTED] 
 Subject: Apache+Tomcat
 
 What would be difference in both the scenarios in terms of 
 performance and reliability?

Reliability: (very) generally, the fewer moving parts, the less chance
of problems.

Performance: only you can answer that question by measuring how your
application runs on both configurations on the target hardware and OS.
Note that the Tomcat 5.5 branch is noticeably faster than 5.0.

 - Chuck


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

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



RE: Common vs. Shared

2005-05-05 Thread Caldarale, Charles R
 From: Michael Oliver [mailto:[EMAIL PROTECTED] 
 Subject: Common vs. Shared
 
 What is the difference between the /common/ and /shared/ 
 
 I understand this is a class loader issue, and I have read 
 the comments in catalina.properties.

But have you read the actual documentation?  In particular:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
including this rather descriptive diagram:

  Bootstrap
  |
   System
  |
   Common
  /  \
 Catalina   Shared
 /   \
Webapp1  Webapp2 ... 

 If a jar is in /common/lib/ and a different version of that 
 jar is in /shared/lib/ what will be the effect?

Trouble, usually.  Anytime you have the same class files in multiple
places in a single path in the hierarchy, you run the risk of conflicts
and lots of NCDFE problems.  Very, very bad practice.

 - Chuck


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

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



RE: Tomcat Administration problem

2005-05-01 Thread Caldarale, Charles R
 From: Nir Tayeb [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat Administration problem
 
 I have created a user with a role of manager, and I login with his.
 but yet, the server prompt me for a username and password.

The manager role is for the manager app; you must have an admin role
to use the admin app.

 - Chuck


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

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



RE: Non-Sequitor Stack Trace with no log entry

2005-04-30 Thread Caldarale, Charles R
 From: Mark Leone [mailto:[EMAIL PROTECTED] 
 Subject: Non-Sequitor Stack Trace with no log entry
 
 However, the method I'm calling does not throw that exception,
 and I looked at all the relevant source code over and over 
 again, and it's simply not possible to hit any code that 
 references SOAPException by invoking newDocument().

The NoClassDefFoundError exception can be generated without any explicit
references in the path you're taking.  For example, try the following
test program:

class TestReference {
   static public void main(String args[]) {
  System.out.println(starting up);
  if (args.length  0  args[0].equals(testing)) {
 System.out.println(calling testmethod);
 try {
testmethod();
 } catch (Exception e) {
System.out.println(Caught  + e);
 }
  } else {
 System.out.println(ignoring testmethod);
  }
   }
   static void testmethod() throws MyException {
  throw new MyException(testing);
   }
}
class MyException extends Exception {
   public MyException(String message) {
  super(message);
   }
}

If you compile this and then delete MyException.class or make it
otherwise unavailable at run time, you get the NCDFE message during the
linking of TestReference - regardless of any argument specified and
before any code in the TestReference class is actually executed.  The
point to note here is that the referenced exception class must be
available at run time, even if that exception is not actually going to
be thrown.

The class of interest (javax.xml.soap.SOAPException) is located in
saaj.jar (part of the Axis download); you'll need to put at least that
in the same directory as axis.jar.  There are other jars included with
Axis, so you may need those as well.

 - Chuck


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

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



RE: Tomcat on Mac Stops Unexpectedly

2005-04-29 Thread Caldarale, Charles R
 From: Mark Leone [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat on Mac Stops Unexpectedly
 
 Is there a simple way to run Apache and Tomcat on the same 
 machine without integrating them

Just comment out the AJP connector in Tomcat's conf/server.xml file.

 - Chuck


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

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



RE: Admin WebApp 5.5.9

2005-04-29 Thread Caldarale, Charles R
 From: Scott Carr [mailto:[EMAIL PROTECTED] 
 Subject: Admin WebApp 5.5.9
 
 I just downloaded the Admin webapp, and each of the directories where 
 jsp files are supposed is blank.

There are no source JSPs in the admin app.  They're all pre-compiled and
distributed inside catalina-admin.jar which is in
server/webapps/admin/WEB-INF/lib.

 - Chuck


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

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



RE: How to run tomcat without specifying a JDK location?

2005-04-29 Thread Caldarale, Charles R
 From: Lakshmi Narayanan K. [mailto:[EMAIL PROTECTED] 
 Subject: Re: How to run tomcat without specifying a JDK location?
 
 1) What is the role of the tools.jar file? Does it help in compilation
 of JSP's? I mean, is tools.jar enough to compile JSP's without a JDK?

Among other things, tools.jar contains the various class files that
comprise javac, so that's all you need to compile .java files.  In order
to translate JSPs into Java source, you need jasper, and that's already
part of the Tomcat distribution.  I think you can just put tools.jar
into common/lib, but I haven't actually tried it.  You can also just
create a lib directory under the directory JAVA_HOME points to, and put
tools.jar there (I have done that).

 Can we modify the service parameters (using tomcat5w) to point 
 to the JRE's jvm.dll? Is that just enough?

I think that's all that's needed, but I don't have a 5.0.x level
installed on any of my Windows boxes any more to verify that.  I seem to
recall that the executable was just tomcatw in 5.0.x, but I'm not sure.
Why don't you just try it?

 - Chuck


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

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



RE: :AW: Jk and IIS 6 slow (resent)

2005-04-28 Thread Caldarale, Charles R
 From: Yuval Zantkeren [mailto:[EMAIL PROTECTED] 
 Subject: RE: :AW: Jk and IIS 6 slow (resent)
 
 But how can you run asp files when you use only Tomcat?

You can't.  But I think you might have missed this previous comment from
the OP:

 We hadn't noticed this before because we don't use the IIS 
 for anything else than for the Tomcat redirect.

 - Chuck


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

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



RE: Jk and IIS 6 slow (resent)

2005-04-27 Thread Caldarale, Charles R
 From: Michael Südkamp [mailto:[EMAIL PROTECTED] 
 Subject: AW: Jk and IIS 6 slow (resent)
 
 We hadn't noticed this before because we don't use the IIS 
 for anything else than for the Tomcat redirect.

Then why use IIS at all?  Just configure Tomcat for ports 80 and 443 and 
eliminate the extra unnecessary software.

 - Chuck


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

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



RE: (Fwd) Session attributes disappear between .jsp pages

2005-04-27 Thread Caldarale, Charles R
 From: Greg Vilardi [mailto:[EMAIL PROTECTED] 
 Subject: RE: (Fwd) Session attributes disappear between .jsp pages 
 
 Yes, Chuck. The app is set to be reloadable in the Context. 

Turning off reloadable should prevent the behavior you're seeing, but it
won't help to explain why you're seeing it.  Removing reloadable from
all your webapps will also reduce overhead slightly.

 - Chuck


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

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



RE: What is max value for MaxThreads

2005-04-26 Thread Caldarale, Charles R
 From: Darek Czarkowski [mailto:[EMAIL PROTECTED] 
 Subject: What is max value for MaxThreads
 
 How many threads can tomcat handle?

There's no single answer to this.  The limit is a function of your
operating system and, to a lesser extent, your JVM heap parameters.

 - Chuck


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

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



RE: Why 8080 and 8443 ..?

2005-04-26 Thread Caldarale, Charles R
 From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
 Subject: Re: Why 8080 and 8443 ..?
 
 Which are ??? Please feel free to elaborate ;-)

As Jason mentioned, running Tomcat in production requires configuring
the desired connectors and the various internal and external resources,
and also stripping out the excess apps and other demo parameters.
Configuring appropriate security (not plain-text passwords) for the
manager and admin web apps, and using a non-default shutdown key are
also highly recommended.

Beyond that, at least these attributes (in various .xml files) may need
to be changed to reduce overhead or better fit a production environment:
autoDeploy
input
listings
output
classdebuginfo
development
keepgenerated
mappedfile
trimSpaces
suppressSmap

Several of the above apply to JSP compilation, so if you're doing
precompilation (desirable for production), your ANT scripts should
set/clear the corresponding parameters.

Be certain that the enableLookups attribute under any Connector
elements you're using hasn't been removed or set to true.  Also check
that the reloadable attribute hasn't been left at true in any of your
Context declarations.

 - Chuck


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

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



RE: apache + tomcat + JK connector configuration

2005-04-26 Thread Caldarale, Charles R
 From: anshul shrivastava [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache + tomcat + JK connector configuration
 
 I'm using Tomcat Apache Tomcat/5.0.16

Why such an old level?  If you want to use the 5.0 branch, at least get
the current version.  Better yet, use 5.5.

 I read, it is better not to process .html requests by Tomcat, 

Although this was often true in the past, the performance of the current
Tomcat levels is such that it can handle static content quite
effectively.  Avoiding use of Apache httpd also eliminates a significant
amount of complexity.

 - Chuck


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

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



RE: (Fwd) Session attributes disappear between .jsp pages

2005-04-26 Thread Caldarale, Charles R
 From: Greg Vilardi [mailto:[EMAIL PROTECTED] 
 Subject: (Fwd) Session attributes disappear between .jsp pages 
 
 For the record, I figured this out. Our webapp was 
 automatically reloading every 15 seconds

Only guessing, but:

Is the reloadable attribute in this webapp's Context element enabled?

Is there possibly a timestamp on some file or jar entry that's in the
future?

 - Chuck


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

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



RE: Why 8080 and 8443 ..?

2005-04-25 Thread Caldarale, Charles R
 -Original Message-
 From: Parsons Technical Services
[mailto:[EMAIL PROTECTED] 
 Subject: Re: Why 8080 and 8443 ..?
 
 So there are two of the possible reasons that an upper port 
 was chosen. 

Also, Tomcat is distributed in a more-or-less development configuration,
rather than a production one.  There are several parameters in addition
to the ports that should be changed before putting it into a production
environment.

 - Chuck


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

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



RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-22 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 However, if you add a reference to the actual jar file (eg, 
 shared.loader=${catalina.home}/shared/lib/velocity-dep-1.3.1.j
 ar) you will not be able to use any classes from it but 
 rather will get ClassNotFoundException. This is the actual problem!

This appears to be the same situation described in Bugzilla entry 23344
(see
http://issues.apache.org/bugzilla/show_bug.cgi?id=23344
for details) which was marked as fixed in September 2003 in level
5.0.12.  Apparently, individual jars should be added as URLs rather than
normal file system paths.  I suppose that means using
file:///path/file.jar, but I haven't tried it.

 - Chuck


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

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



RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-22 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 Please let me know what you think

It doesn't really matter what I think - I'm not a Tomcat developer.  If
you believe the area needs changing, you'll need to submit a Bugzilla
report and convince Remy.  Best if you report it against the 5.5 leg,
since that's the one under active development.

 - Chuck


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

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



RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Subject: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 ClassLoaderFactory#createClassLoader(File unpacked[], File 
 packed[], URL urls[], ClassLoader parent) is the actual 
 method that creates class loaders. The very first argument to 
 this method contains jar files or directories ( that is where 
 the name unpacked comes from ). 

From what I can tell, it's the _second_ argument that should contain
.jar files; the first is for directories only.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
 Subject: RE: OutOfMemoryError - 100 thread limit?
 
 So let me get this straight, LeeAnn is specifying a maximum 
 heap size of 512MB and a minimum size of 128MB.  It looks 
 like the heap doesn't get adjusted up when the servlets are 
 initializing?  Thus she needs to increase her minimum heapsize, 
 so something like -Xms512m should fix it?

Probably not, since I suspect she's running out of perm gen space.
IIRC, the perm gen size is calculated from -Xmx, which is already at
512m.  Using the PrintGCDetails will tell us for sure.  If that shows
perm gen space to be exhausted, then adjusting -XX:MaxPermSize should
fix it.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
 Subject: RE: OutOfMemoryError - 100 thread limit?
 
 Peter Lin reproduced and fixed the problem LeeAnn is seeing, 
 and said If I set my heap to -Xms256m -Xmx512m I'm able to 
 load the 18 webapps just fine. the total memory used after 
 all the webapps are loaded is 152Megs.  He didn't mention 
 anything about adjusting the perm gen space.

Nor is he running the same webapps that LeeAnn is using (as far as I
know), so that's a bit of an apples and oranges comparison.  Also, his
conjecture that the JVM couldn't keep up doesn't fit with my
understanding of object allocation and GC in a HotSpot JVM.  If needed,
the JVM simply suspends all the application threads and does a full GC.
Again, the -XX:+PrintGCDetails will tell us what's really going on.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: Peter Lin [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
  if it doesn't work, then back to square one :)

It would be even better to get some real data with the
-XX:+PrintGCDetails, so we can stop speculating...

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: LeeAnn Pultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 It had -XX:MaxPermSize=128m  in the process description.

Ahah, as they say.

 Can anyone give me any information on what this does?  Is 
 this the perm gen that Chuck mentioned before?

Yes, this controls the size of the permanent generation.  The permanent
generation portion of the heap is where class objects (instances of
java.lang.Class) are allocated.  If you have a lot of classes - which
app servers frequently do - the size of this space needs to be
increased.  A quick scan of the 1.4.2 HotSpot source shows the default
value to be 64m.

 Are there any caveats to setting this memory option?

Other than it subtracts from the total heap space for normal object, no.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: Peter Lin [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 I'm just guessing here, but by forcing the maxPermSize to 128, it
 leaves more space for the eden and prevents classes from getting
 promoted to perm.

I think you're confusing tenured with perm.  Nothing is ever promoted to
perm - only known long-lived objects (primarily instances of
java.lang.Class) are allocated in there, and no objects ever migrate to
or from perm space.  Regular objects are normally allocated in eden
space (young gen), and if they live long enough, are migrated to the
tenured area (old gen) during a GC.

Increasing the perm size actually reduces, not increases, the amount of
eden space available since the total of all three generations (young,
old, perm) must come from the -Xmx setting.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: Peter Lin [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 so it would appear by setting the PermSize, the jvm is pushing all
 java.lang.Class instances to Perm rather than loading them in eden and
 then promoting them to tenured.

Instances of java.lang.Class are always allocated in the perm gen, never
in an eden space, regardless of any heap or gen size settings.

 I can't think of any real trade-offs of setting Perm to 128 
 other than using more RAM.

Unless you increase -Xmx correspondingly, enlarging perm space will
reduce the amount available for regular objects.  Generally, if you have
the memory, increase -Xmx to whatever you can before swapping starts.

 If I remember correctly Perm is also where static stuff goes.

I believe that's true, since static data is associated with
java.lang.Class instances.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-21 Thread Caldarale, Charles R
 From: Peter Lin [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 the default Perm is 64M. If LeeAnn's webapp have a large number of
 classes, maybe there's too many; therefore forcing the VM to resize
 the perm.

IIRC (haven't looked at core HotSpot code in detail since 1.4.1 days),
the virtual address boundary between perm and the other generations is
fixed at JVM initialization and never moves.  The perm gen does go
through GC just like the other gens, but no memory ever moves between
the perm and any other space, and the perm gen maximum virtual address
range never changes.

The HotSpot JVM allocates, but does not commit, all of the -Xmx space at
startup in one contiguous block (although there were rumors of that
changing in later JVMs).  Only the -Xms portion is committed, split up
into three regions - young, old, and perm.  When a region fills and GC
doesn't reduce the usage significantly, additional pages are committed
in whichever region needs expanding.

I think what was happening is that LeeAnn simply had more classes than
would fit in 64 MB.  Nothing to do with threads, just the total number
of classes in all the applications added together.

 - Chuck


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

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



RE: Problem with the classloader in jakarta-tomcat-5.0.28 - cannot add a jar file to class repository

2005-04-21 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] [mailto:[EMAIL PROTECTED]

 Sent: 2005 April 21, Thursday 19:48
 Subject: RE: Problem with the classloader in 
 jakarta-tomcat-5.0.28 - cannot add a jar file to class repository
 
 I still think it is a bug!!! 

Read the javadoc for the class in question.  (The full URL is
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/ap
ache/catalina/startup/ClassLoaderFactory.html#createClassLoader(java.io.
File[],%20java.io.File[],%20java.net.URL[],%20java.lang.ClassLoader).)
The first parameter is for directories, the second for jars, which is
why they're named unpacked and packed, respectively.  

 Please try the following: add a jar file (eg, foo/bar.jar) as 
 a class repository in the catalina.properties

The standard catalina.properties already has several jars and several
directories specified for the various class loaders, and they all seem
to work fine in the levels I'm using (5.0.28 and 5.5.7) - otherwise
Tomcat wouldn't even be able to start up.  What specifically did you
change in catalina.properties that led you to believe there's a problem?

 - Chuck


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

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



RE: Running two tomcat in the same time

2005-04-20 Thread Caldarale, Charles R
 From: Dani Al-Hasan [mailto:[EMAIL PROTECTED] 
 Subject: Running two tomcat in the same time
 
 We have tomcat 5.0.24. It is installed on Solaris 8 under 
 user root using the port 80; we installed another tomcat 
 instance under different directory and different user 
 (username: tomcat) and new port 8080.

You also have to configure a different shutdown port (the port attribute
at the beginning of the Server part of server.xml).

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-20 Thread Caldarale, Charles R
 From: LeeAnn Pultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 Perhaps this will trigger some ideas? The stack trace we get 
 when we get the OutOfMemoryError is :
 
 
 - Root Cause -
 java.lang.OutOfMemoryError

It's what comes after this spot in the trace that might be really
interesting...

Unfortunately, OOME is somewhat of a catch-all - the JVM issues it
whenever any OS-based resource is exhausted, as well as when out of heap
space.  Could be something simple like the limit on the number of open
file descriptors being reached.  It's also possible you're running out
of perm gen space, which is not unusual if you have a lot of classes.
Might want to turn on -verbose:gc just to see.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-20 Thread Caldarale, Charles R
 From: LeeAnn Pultz [mailto:[EMAIL PROTECTED] 
 Subject: RE: OutOfMemoryError - 100 thread limit?
 
 I turned on verbose:gc and ran the test again:
 [Full GC 48357K-47096K(129792K), 0.6358540 secs]

This shows you've given the JVM only 128 MB to work with; looks like you
really are out of heap space.  You probably want to increase the maximum
(-Xmx) considerably.

 - Chuck


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

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



RE: OutOfMemoryError - 100 thread limit?

2005-04-20 Thread Caldarale, Charles R
 From: LeeAnn Pultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: OutOfMemoryError - 100 thread limit?
 
 [Full GC 47271K-47262K(129792K), 0.7056980 secs]

 If anyone has any suggestions on other things that I could 
 check for ? 

It still looks like your heap size is too small - 128MB isn't much these
days.  Assuming you're using a Sun 1.4 JVM or later, try specifying
-XX:+PrintGCDetails on the command line to see data about the individual
generations of the heap to see which one is becoming exhausted.

 - Chuck


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

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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Caldarale, Charles R
 From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
 Subject: Re: Running Tomcat on multiple processors on Windows 2003
 
 I thought Java used native threads by default, or at
 least green threads on top of native threads
 (one-to-one), so Im not sure how this fits in...

The green thread mechanism is not used in the 1.4 and beyond JVM
itself - that was a holdover from the very early JVM days and was
thankfully not carried forward into HotSpot.  I'm not familiar enough
with Linux threading to know if there's some mode where underlying
native libraries might simulate the green thread behavior.

 - Chuck


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

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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Caldarale, Charles R
 From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
 Subject: RE: Running Tomcat on multiple processors on Windows 2003
 
 ...  so if we can get to 100% CPU usage on both CPUs with 
 one tomcat running under load, that would be great.

How about trying a simple two-thread Java program, where each thread
sits in an infinite loop?  Does this drive both CPUs to the limit?

 - Chuck


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

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



RE: Tomcat Won't Start When 1024Mb JVM Memory Specified

2005-04-18 Thread Caldarale, Charles R
 From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat Won't Start When 1024Mb JVM Memory Specified
 
 Is there a 1Gb limit on the JVM?  On Tomcat? 

Not on those, but Windows normally provides only 2GB of virtual space
for each process.  (There's an initialization switch that can change
this to 3GB, but that introduces some other issues.)  Unfortunately,
this space is fragmented, and the JVM heap is allocated in one
contiguous chunk (at least it was in 1.4.1).  I'm a bit surprised you
ran out at 1GB.

 Should I configure by editing startup.bat/catalina.bat instead?

Definitely makes it easier to fiddle with the values until you find the
maxima.  You don't need to start Tomcat to play with -Xmx and the other
heap settings - a simple HelloWorld will suffice.  Always set -Xms and
-Xmx to the same value when you're trying to find the limit.

 - Chuck


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

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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-18 Thread Caldarale, Charles R
 From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
 Subject: Re: Running Tomcat on multiple processors on Windows 2003
 
 I dont know of an answer to that one.  I think it is
 impossible unless you have a JVM that will use 4
 procs...  Sun doesnt seem to do this.

Huh?  The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of the CPUs on our
systems quite nicely.  What may be going on is that some administrator
has set Windows' CPU affinity to restrict all threads of a given process
to a single CPU.

 - Chuck


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

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



RE: What version of Tomcat, Apache to Install

2005-04-18 Thread Caldarale, Charles R
 From: Daxin Zuo [mailto:[EMAIL PROTECTED] 
 Subject: What version of Tomcat, Apache to Install
 
 What version of Tomcat, and Apache is the best match?

Are you sure you really need the additional complexity of Apache httpd
on the same box as Tomcat?  The current level of Tomcat (5.5 series) is
adequte for most web server purposes.

 - Chuck

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



RE: Help needed: Setting Tomcat5.5 to run with security manager in Windows XP

2005-04-16 Thread Caldarale, Charles R
 From: Nikolay Karasev [mailto:[EMAIL PROTECTED] 
 Subject: Help needed: Setting Tomcat5.5 to run with security manager
in Windows XP
 
 however there is no file named catalina.bat in this directory.

The .bat files are only in the zip download.  If you're running Tomcat
as a service, there is no .bat file to edit; instead you can use the
Tomcat5w.exe program to set additional parameters (under the Java tab),
or edit the registry.

 - Chuck


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

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 Now compiling
 c:/javacodejavac 
 -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java 
 it said - Access Denied

Where are these angle brackets coming from?  They should not be present.

 - Chuck


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

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



RE: class path (UNCLASSIFIED)

2005-04-13 Thread Caldarale, Charles R
 From: S M [mailto:[EMAIL PROTECTED] 
 Subject: RE: class path (UNCLASSIFIED)
 
 see this... no errors... but no class file for the same 
  
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar
HelloWorld.java
 C:\javacodejavac HelloWorld.java

Is the HelloWorld class part of a package?  If so, javac will create a
directory tree under your current directory using the components of the
package name, and you class will be at the end of it.  If you still
can't find the output class, use -verbose with javac for more
information.

 - Chuck


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


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



RE: Major Install Problems

2005-04-09 Thread Caldarale, Charles R
 From: asdasd sdfsdfsd [mailto:[EMAIL PROTECTED] 
 Subject: Major Install Problems
 
 Been trying to install on Ubuntu for ages, this is the latest error:

What happens if you try the tar or zip file from the real Tomcat
download area
(http://archive.apache.org/dist/jakarta/tomcat-4/v4.1.31/bin/jakarta-tom
cat-4.1.31.zip)?

While you're at it, why not use the current level (5.5.7)?

 - Chuck


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

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



RE: Locked jar during Ant undeploy on Tomcat 5.5.3

2005-04-08 Thread Caldarale, Charles R
 From: Quinten Verheyen [mailto:[EMAIL PROTECTED] 
 Subject: RE: Locked jar during Ant undeploy on Tomcat 5.5.3
 
 could someone please help me with this ? It's really 
 time-consuming and I'm making no progress.

There have been several locking issues resolved in later versions of
Tomcat.  (See
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html.)

Does the problem exist on the current level (5.5.9)?

 - Chuck


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

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



RE: Help !!! Tomcat 5.5.7 - cannot start

2005-04-08 Thread Caldarale, Charles R
 From: Anoop kumar V [mailto:[EMAIL PROTECTED] 
 Subject: Re: Help !!! Tomcat 5.5.7 - cannot start
 
 The jars that have been added to the classpath are shown - 
 ensure that u have catalina.jar or j2ee.jar.

Sorry, but that advice is simply wrong and following it can produce
serious Tomcat classloading problems.  If you are using the standard
startup and shutdown scripts supplied with the Tomcat download, the
CLASSPATH environment variable is not used.  Instead, the scripts set
the -cp parameter based on CATALINA_HOME, and the only item that should
be specified there is bootstrap.jar from $CATALINA_HOME/bin.

Tomcat does not need the j2ee.jar at all, and placing it within the
Tomcat environment can cause duplicate class problems with the subset of
J2EE that is already included in the Tomcat download.

 - Chuck


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

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



RE: Help !!! Tomcat 5.5.7 - cannot start

2005-04-08 Thread Caldarale, Charles R
 From: Parveen Pasha [mailto:[EMAIL PROTECTED] 
 Subject: RE: Help !!! Tomcat 5.5.7 - cannot start
 
 The output from catalina.out is :
 java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Catalina
 at
 java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at
 java.security.AccessController.doPrivileged(Native Method)

Does the user doing the shutdown have proper access to the Tomcat files?
That particular class comes from catalina.jar in the
$CATALINA_HOME/server/lib directory.

 - Chuck


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

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



<    1   2   3   4   >