I'm running Apache 1.3.23/Tomcat 4.0.3 (jdk1.3.1)
on Solaris 7 connected with mod_jk. Sometimes I
I find that the CPU on the web server box is pegged
at 100%. It's a dedicated server and I am bouncing
Apache and Tomcat once a week to help alleviate the
problem. If I didn't restart every week,
I forgot to mention... Even when the CPU is pegged,
the site functions normally.
Jeff
- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 12:02 PM
Subject: Apache + Tomcat sometimes pegs CPU
I'm running Apache
):
% telnet webserver 80
POST /somepage.jsp HTTP/1.1
Host: webserver:80
Connection: Close
Content-Type: application/x-www-form-urlencoded
Content-Length: 200
PutStuff here and kill telnet session before 200 chars
-Tim
Jeff Larsen wrote:
I
to it!!!
**
***
Jeff Larsen wrote:
Thanks, I figured that I wasn't the first one to see
this. Is my current mod_jk going to need upgrading also?
Jeff
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 12
I've been developing a web application in JBuilder using Tomcat 3.2
with great success. Now it's time for the real world. I'm deploying
my app on Tomcat 4.0.3 on Solaris and I'm having problems with my
web.xml. When Tomcat starts, it gives me the following error:
2002-03-20 10:47:48
Tomcat 4.0.3 is NOT unpacking my WAR file and my application
is not getting loaded. Is this a bug or is there a configuration
issue that I am missing.
If I run without unpacking the war (i.e., docBase=online.war), the
application runs just fine, but then I can't have Apache httpd serve
my
Let me clarify: Tomcat NEVER unpacks the war, not when it's restarted,
and even if the directory is not there. On restart, Tomcat complains
that it can't start the application, because the directory does not
exists.
- Original Message -
From: Daniel Bruce Lynes [EMAIL PROTECTED]
To:
Solaris will not allow an unprivileged user (i.e., not the root user) to open
a server on a port number below 1024. You must run as root or use a higher port
number.
Jeff
- Original Message -
From: Scott Purcell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002
I've experimented with several versions (3.2, 3.3, 4.0) of Tomcat and
none of them have handled updating of application files with any grace.
The documentation on this is pretty sparse so I've never been sure whether
it's a bug or the intended behavior.
The only way to make sure things get
It all depends on the relevant Alias and JkMount directives in your Apache
configuration.
You'll need to post them in order for us to make any useful analysis. Here's an
example of
my config
where Apache serves the static content. The servlet context is /online.
# tell Apache where my app
Actually, changing java versions is easier than changing Tomcat versions.
I've made it my policy to NEVER use a Java 1.x.0 version. It never pays
to be on the bleeding edge. If you've ever spent any time hanging out in
the Java Developer's Connection 'Bug Parade', you'll know that they rarely
get
You haven't said anything about your Tomcat configuration. What version? Are you
running it standalone or through Apache?
Basically, it sounds like you need to create a Context in your server.xml which maps
the root (/) to your servlet. In the default
Tomcat config, look at how they map the
-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2002 18:34
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: RE : java.lan.OutOfMemoryError
Actually, changing java versions is easier than changing Tomcat versions.
I've made it my policy to NEVER use a Java 1.x.0
willing to ignore it if everything else is ok, but
I'm concerned that I've got some sort of configuration error somewhere that's going to
bite me later on.
Thanks again!
Cindy
At 12:25 PM 3/22/02 -0600, Jeff Larsen wrote:
It all depends on the relevant Alias and JkMount directives in your Apache
I'm using servlets on Tomcat that must access one of
four remote JBoss servers depending on the web user login.
Basically, you have to tell the client where the JBoss
server is running. Here's the java code from the servlet side...
Properties props = new Properties();
Oops, I mistyped factory in one of the lines of sample code.
- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 25, 2002 11:26 AM
Subject: Re: JNDI/EJB: looking for some references
I'm using servlets on Tomcat
Hi!
Thanks for the suggestions.
I'm actually able to invoke the remote EJB setting either the properties
you mentioned in the call of the codenew InitialContext/code or
setting them in the codeSystem/code properties and then calling
codenew InitialContext/code without parameters ;
You may also want to try
META http-equiv=Expires content=0
However, I don't really trust META tags. Browser implementations
of META tags are not always reliable. Write to the response headers
directly. I embed the following at the top of every jsp page.
%
response.setHeader(Cache-Control,
If you haven't done so already, try posting this question to the
appropriate newsgroups at http://www.borland.com/newsgroups. I've
found them to be very helpful on issues like this.
Jeff
- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL
If 'b' is not protected, then Apache will neither ask for
authorization nor include authorization info in the request
headers when a document in 'b' is requested.
One thing you could try is to use a symbolic link to 'b'
from 'a' so that /htdocs/a/b points to /htdocs/b. Then
a request for
Look at javax.servlet.http.HttpSessionBindingListener.
Say you have a class MyClass that implements HttpSessionBindingListener.
When you call HttpSession.setAttribute(name, myClass), the valueBound()
method of MyClass gets called. Likewise when the session expires or the
object is explicitly
What is the nature of the instruction? Are you teaching
the students how to install and configure tomcat or are
they just going to be creating webapps for tomcat?
If they are going to be configuring tomcat, then each
student should have his own tomcat installation directory,
and (assuming they
The XML parser in Tomcat 4.0.3 requires STRICT adherence
to XML standards. I struggled for a while myself before
I discovered that XML sub-elements must appear in the SAME ORDER
as they are listed in the DTD. That was news to me, because I
had never seen a parser that required it.
So... make
I'm not entirely sure I understand your problem, but I'll
take a stab at it anyway
Typically, you don't need to worry about where the sessionid comes
from. Anywhere you send a redirect or put a link in a JSP or servlet
generated html, you should ALWAYS use HttpServletResponse.encodeURL() or
Assuming you have a controller servlet that could load
the hint text from the database, why not have a static
hashtable in your servlet code that is initialized with
the values from the database in the init() method. Then
as each session is initialized, you could put a reference
to the hashtable
I'm not 100% sure about this, but I'm sure someone will
correct me if I'm wrong
Isn't the manager app limited to apps within the same
virtual host? So have your sysadmin create a tomcat
virtual host just for your web app. Install the manager
app in your virtual host under a unique context
I'm having the same problem with unpacking updated
war files when the directory already exists.
Anyone out there know what's up?
Jeff
- Original Message -
From: Michael Teter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 11:03 AM
Subject: manager/remove
functionality
This has NEVER worked for me, I don't think it will if the directory
exists...
todd
http://www.wiserlabz.com
collaborative effort to promote Novell and Open Source solutions
Jeff Larsen wrote:
I'm having the same problem with unpacking updated
war files when the directory
Applications without manager and without reloadable=true
The role must be 'manager'. The manager app currently does not let you
specify the role to use.
Charlie
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 2:14 PM
To: Tomcat Users
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
This request object can then be used just like in a servlet.
Jeff
- Original Message -
From: Zsolt Koppany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 31, 2002 3:21 AM
Subject: taglib and
You need separate webapp directories for each virtual host. Otherwise
Tomcat will autodeploy everything it finds in your webapp directory, even
if the app is supposed to belong to another virtual host.
Jeff
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To:
to only have access to their own app.
Charlie
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:34 AM
To: Tomcat Users List
Subject: Re: Reloading Web Applications without manager and without
reloadable=true
Not true. I've
Here's the deal with unpacking of war files: It only
happens when Tomcat starts and autodeploys apps that
do not otherwise have a Context element in server.xml.
If you manually define the context, it won't unpack the war file!
If you update the war file and reload, it won't re-unpack the war
: Jeff Larsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 5:19 PM
Subject: Re: Process for using Manager reload of war file?
Here's the deal with unpacking of war files: It only
happens when Tomcat starts and autodeploys apps that
do not otherwise have
Netscape 4.x has been working for me in this type of situation,
but the value of .x might make a difference. Do you have cookies
enabled? If not, does your javascript for opening the popup window
use a correctly encoded URL so the popup window's request has the
session id built in? For
cookies option is selected.
I will try your suggestion and see what it will do.
Thanks.
PS. how do you correctly encode URL?
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 06:29 PM
To: Tomcat Users List; Huy K. Dung
Subject: Re
I share your frustrations, but at this time I believe
that our only recourse is to write our own subclass of
org.apache.catalin.logger.FileLogger. At this point, I've
got bigger fish to fry, so I haven't even looked at this
yet. If you come up with something, post it!
Jeff
- Original
Since your running on Windows, make absolutely sure your
WEB-INF directory for your app is in all-caps. Use a DOS window
to verify this. Windows Explorer will always convert things to
title case, so you can't tell from there.
Jeff
- Original Message -
From: Jason Johnston [EMAIL
Make sure your CLASSPATH under which Tomcat runs is not
still referencing any jars (most likeley tools.jar) from
the JDK1.3 installation.
- Original Message -
From: Bedia, Bharat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 05, 2002 2:42 AM
Subject: JSP compilation
- Original Message -
From: Bedia, Bharat [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, April 05, 2002 9:50 AM
Subject: RE: JSP compilation exceptions thrown for Tomcat4 and JDK1.4
--snip--
Can the opposite be true? Is there an issue with JDK1.4 being
Could be several things. Since some details about your setup are,
missing, please don't take offense if I state the obvious.
Are you using Tomcat standalone or with Apache? Have you successfully
gotten the Tomcat examples to work?
If your homepage.class has a 'package' directive in the source,
There is NO way to know when a client kills their
browser. HTTP is a stateless protocol. The only time
we know that the browser is alive is during a request.
After that, we don't know if the browser gets closed or
if the user just navigates elsewhere.
If you need to close down resources, just
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/
Choose the jakarta-tomcat-connectors zip or tar.gz file as needed. Note
that mod_jk is just one part of this collection.
Jeff
- Original Message -
From: Duane Gran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc:
The error message looks more like your page just has some
mismatched brackets and not a problem with exceptions.
If you have a hard time finding it in your source jsp. Look
at $TOMCAT_HOME/work/host/context/yourfile$jsp.java.
This is the compilable java source for your jsp.
Jeff
-
Part of the problem may be that you're grabbing a session object
that you have stored in your own data structure. Tomcat doesn't
know anything about your monitor HashMap and is not going to update
it when it invalidates a timed-out session.
Why don't you do this:
try {
Just do it!
mytaglib:mytag data=%= someVectorObject %
You need to support the object type in your getter and setter
methods for the tag attribute...
public Class MyTag extends TagSupport {
private Vector data;
public void setData(Vector newData) { data = newData; }
public Vector
this in the
archives some months ago to someone elses query about this same issue.
But when I do this. The exception is still passed to my error page.
Do you know of anyway to prevent that?
Thanks for the help.
Rick
Jeff Larsen wrote:
Part of the problem may be that you're grabbing a session
Depending on server load, you may want to increase minProcessors, so
the server doesn't have to create new threads on the fly.
Jeff
- Original Message -
From: Ken Anderson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, April 27, 2002 12:55 PM
Subject:
Under what context path is your servlet deployed? The
context path is typically the name of the directory
under $TOMCAT_HOME/webapps in which your app resides.
Unless your app is deployed in the ROOT context, your
URL should be http://localhost:8080/context/seating.
Jeff
- Original
Since you are using the manager app to deploy your war files, there is no
need to keep the war files in the webapps directory. Make a separate
directory outside of /www/webapps, perhaps /www/war. Then Tomcat
won't find them when it starts up.
Jeff
- Original Message -
From: bryan
What path does the Manager display for your app?
If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating
If you are using a Context
How about using some kind of command line driven web URL grabber
(e.g. webgrab for UNIX, or write your own java version) launched
at the appropriate time (via cron or Task Scheduler) which asks
for a URL which will cause the servlet to load and do it's thing.
Of course, you need to be reasonably
I was just perusing the source code for org.apache.catalina.logger.FileLogger
because, like many of you, I don't like the clutter of daily log file rotation.
I noticed that even if timestamps are turned off, the FileLogger class still
calls System.currentTimeMillis() on every log call!! It does
I'm running out of hair to pull out here...
My ultimate goal is to server dynamically generated
PDF documents generated with iText. I've got it working
just fine with MSIE. However, I was just getting blank
pages with Netscape (and it wasn't even showing the toolbar
for Acrobat). With NS6 I
It's a feature. Sucks, huh?
- Original Message -
From: James Turner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 2:23 PM
Subject: WAR files don't unpack if the webapp is already there
I'm going through the standard compile-edit-test look on some
applications
: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 3:44 AM
Subject: Problems serving PDF to Netscape browsers
I'm running out of hair to pull out here...
My ultimate goal is to server dynamically generated
PDF documents generated with iText. I've got
Not sure what you mean by new ones, but TC 4.0.3 does
NOT unpack wars if the directory already exists regardless
of the reloadable flag.
Jeff
- Original Message -
From: Rick Fincher [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 2:57 PM
Subject:
What's your request URL?
I do it by using a servlet mapping that ends in .csv
to fool the browser into thinking it's actually downloading
a file. I set the content-type header to application/csv which
isn't really a universal standard, but if I remember right, the
mime mapping you listed will
for investigation.
Andy
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2002 19:45
To: [EMAIL PROTECTED]
Subject: Problems serving PDF to Netscape browsers
I'm running out of hair to pull out here...
My ultimate goal is to server dynamically
I pack it up in a war file, ftp it to the server (UNIX), create an
at job for late at night which runs a script that stops tomcat,
unpacks the war file and restarts tomcat.
I've had spotty results with reloading a newly unpacked app while tomcat
is still running.
Jeff
- Original Message
-83d3-3cbe8fd8
Accept-Ranges: bytes
Content-Length: 33747
Connection: close
Content-Type: application/pdf
%PDF-1.2
%âãÏÓ
Andy
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2002 22:33
To: Tomcat Users List
Subject: Re: Problems serving PDF
apxs requires perl. You must have perl installed prior to installation
of apache httpd in order for the apache install to correctly configure
apxs. Otherwise, I believe you are on the right track.
Jeff
- Original Message -
From: Peter Choe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Put the dependent external jar files in /application1/WEB-INF/lib
and /application2/WEB-INF/lib.
Jeff
- Original Message -
From: Ryan P. Davidsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 4:14 PM
Subject: Multiple webapps, multiple classpaths
I am currently
Tomcat 4.0.3 on Sun Solaris 7.
Most of the time, the manager app successfully reloads
my application. But sometimes when I make changes to a
class that is packaged in a jar file in WEB-INF/lib, the
reload fails with a java.lang.NoClassDefFoundError for
some of the classes in that WEB-INF/lib jar
I was whining about this too about a month ago, but I failed
to spark a discussion on this list. So I went to Bugzilla
and entered it as a feature request. Apparently, somebody
agreed with me. If you look at the nightly build source code,
you will see that LoggerBase is now public and FileLogger
to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.
- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers
I'm running out of hair to pull out
on the local HDD and opens the file
with Acrobat Reader. Of course you need to check whether the file is already
there, open etc.
HTH
-Original Message-
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, May 14, 2002 12:01 PM
Subject: REPOST
for
writing jobs which do clean up tasks.
This is of course undesirable, but sometimes you just have to do what it
takes to make something work... :-(
Good luck,
Andy
-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2002 17:01
To: [EMAIL
Look at the configuration fo the ROOT context that is included
in the default installation of tomcat.
- Original Message -
From: Donie Kelly [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 9:26 AM
Subject: Running a webapp and accessing from
I don't have MS Outlook myself, so I can't do any testing on this. But
I have a customer who has been running a browser session from within
Outlook.
Some of my pages have javascript links that open a new browser window
to view a page. When she accesses one of these popups from within
Outlook,
I develop with JBuilder 4 Pro which has support for Tomcat 3, but
not Tomcat 4. So I did a little digging and discovered the class
org.apache.catalina.startup.Embedded. Download the source and look
at the main() method in this class. It will show you how to use the
Embedded class to run Tomcat
I just upgraded my production server to tomcat 4.1.27
running on Solaris 7 with java 1.4.2_01. I am using Ajp13
connections to Apache 1.3.23 with mod_jk 1.2.0. I was
running 4.0.4 on java 1.3.0 without incident.
It ran fine for a day and a half, but then over a period of
about 10 minutes I got a
I don't know how to creat a test case for this.
Everything ran fine on my test box. It only gets
out of control under load. I don't have any tools
for load testing. I was hoping that the clues
about the fix between 4.0.3 and 4.0.4 would help
because the symptoms are identical. I also didn't
expect
I don't see why they wouldn't play nice. I use them both, but on
separate boxes. The can be memory pigs however. Each uses around
128Mb on Solaris 7. I haven't done it myself, but JBoss can be
configured to run Tomcat within it's JVM. This might save some
overhead. Neither one is a processor hog
74 matches
Mail list logo