Your problem is not reading the mailing list archives. This morning
several people were discussing this issue. The problem is a bug in Sun's
1.3 JVM on NT handles the user logoff event incorrectly. Sun has reported
this fixed in the 1.3.1 version and several users here had confirmed
The way that it has to be is that the Virtual Directory and the
Filter must both be installed for each virtual/default host that will
process JSPs. Your directory structure indicates that the jakarta virtual
directory is set up for www..nl. You need to make sure that you
installed
The JAR file for the com.sun...Provider class is in a JAR file that
is in the CLASSPATH environment variable, but not in your wrapper.properties
file's wrapper.class_path variable. (When the service starts the new JVM it
ignores the System's CLASSPATH environment variable)
When you start Tomcat (from the command line) what is your
classpath? Does tools.jar appear here? If so, then the problem isn't that
tools.jar isn't being included (obviously) and you probably want to post
your exact error message. If its not in the classpath, I would suggest
looking
Then most people have bad expectations of this mailing list. Many
responses don't come for at least a half an hour (many not until a few hours
later). Going to the Jakarta site, clicking on the link for the archive,
and then performing a search takes a few minutes at most (even with
Your problem is that IIS wants your username and password for
accessing the DLL. You need to:
1. (in IIS) For the virtual directory that holds isapi_redirect.dll
edit the security permissions to have only anonymous checked
2. (in File Explorer) For the directory
In the %TOMCAT_HOME% directory should be a directory named lib. In
this lib folder you should find webserver.jar, in which you will find
Tomcat.class.
The source is included in case you want to build it yourself, or
know what is going on in the code (sometimes it can be useful
It would appear that you have included an extra \ on the end of
TOMCAT_HOME and JAVA_HOME (JAVA_HOME should be c:\jdk1.3). Take these
ending slashes off and things should probably work fine.
Randy
-Original Message-
From: Jeff Gu [mailto:[EMAIL PROTECTED]]
Sent:
Read the readme included with your Tomcat distribution, I believe
that its section 5.11 (or maybe its 6.11). The problem is that you removed
the ROOT context.
Randy
-Original Message-
From: Chu J Tan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 03, 2001 12:20 AM
Only if you upgrade to Tomcat 4.
-Original Message-
From: Jason Pollack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 5:29 PM
To: Tomcat-Users
Subject: Does Tomcat3.2 support http/1.1?
Hello,
I've been trying to track down a curious browser caching
java.lang.Runtime.exec(...)
-Original Message-
From: Vinicio Llumiquinga [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 7:22 PM
To: [EMAIL PROTECTED]
Subject: help me!
Venkatesh Sangam wrote:
Hi,
I am using Tomcat with Apache ..
I have a java Program which
This is a guess, but have you disabled the servlet invoker in the
server.xml file? I believe that the servlet invoker will grab the request
for /servlet/* before the webapp will check its mappings. I would suggest
removing the servlet invoker from your server.xml file and see if this
This message means that Tomcat wasn't able to find the file. It
would appear that you are expecting the /images/qc.bmp file to be in the
root webapp. Check that its there and check your configuration that the
root webapp is where you expect it to be (look in server.xml file and look
Your problem is that you didn't import the class. When Tomcat
generates the classes, it puts them into packages according to your
directory structure. All classes therefore have a package and any classes
that are not in a package are not accessible unless each is explicitly
imported.
Either create a mapping in the web.xml file (using servlet and
servlet-mapping tags, or edit the server.xml file and change the
ServletInvoker's prefix. The first is definitely the preferred method since
its supported by the JSP Spec and doesn't affect any other servlets. The
second is
Your quandary is a mis-configuration. Remove the virtual
directories from IIS, add the appropriate entries to
uriworkermap.properties, and then restart the IIS process (using the
Services Control Panel, or perform a machine restart, not the stop/start
buttons in IIS Admin)
About the session numbers: it uses SecureRandom to generate the
numbers. More information can be found in Tomcat's source code for
org.apache.tomcat.session.StandardManager, the method getNewSession seems to
be particularly relevant.
About storage of JSessionID: the clients
First, I would suggest that you only use plain text email when
responding to the list - many people here don't have HTML enabled mail
readers and you don't want to limit the audience of your question.
Second, check all of the registry settings that you made. If you
are getting
From the Jakarta website, select the Source Code on the left side and then
select the version of Tomcat that you want to view the source for. Amazing
isn't it? An open source project with the source on its web page.
Randy
-Original Message-
From: Pablo Trujillo
] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/IIS Installation
I received the following reply message from Randy Layman in
response to my
original request for info.
I made his suggested updates, but it still doesn't work, in
fact
Your problem is that Tomcat is not starting correctly - if the DOS
window goes away then Tomcat has stopped. I would suggest trying to run
tomcat run instead of tomcat start so that you can see the error.
Randy
-Original Message-
From: [EMAIL PROTECTED]
I would guess that you are using the Oracle packages in
classesXXX.zip. Tomcat's automatic class loading only works on *.jar files
in the webapp or in $TOMCAT_HOME/lib.
Just an FYI as to why it wasn't working before.
Randy
-Original Message-
From: Daniel
Actually its Sun's bug. The Alexandria service just wrappers the
JVM and catches the appropriate signal and doesn't forward it on to the JVM.
Randy
-Original Message-
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 8:41 AM
To: '[EMAIL
First, I would suggest only sending plain text messages to this
mailing list - a number of subscribers can't/don't read HTML or Rich Text
messages and you don't want to limit your audience for a question.
Second, what do you mean it doesn't work? This is normal behavior.
The
I would suggest looking in the mailing list archive for this - I
wrote a very detailed explanation of why this happens before. The short
version, its harmless.
Randy
-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:17 PM
The message bouncing from netzero is for subscribed user
[EMAIL PROTECTED] and should be easy enough for someone to remove.
The second bouncing message, however, is more complicated. Looking
at the transcript that it includes, it would appear that the itreya.com mail
server
, then you are out
of luck and will have to rely on the network support of the people running
the computer to restart the service for you.
From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: admin question
Date: Fri, 18 May 2001 16:08:52
I believe that this is because the Ant project has reworked a number
of their tags. I would suggest using either the Ant that comes in the
Tomcat tgz file (should be lib/ant.jar) or download an older version of Ant
(I believe that 1.2 should work, but you might need to go all the way
Tomcat is not finding your JAVA_HOME correctly. Check that you are
actually setting this in the shell before you start Tomcat. Also check that
this is really a JDK and not a JRE (you must have a JAVA_HOME\lib\tools.jar
file for Tomcat to work).
Randy
-Original
I don't have this problem, I use index.jsp as my start page. Did
you start and stop Tomcat to make the change take effect? Did you remove
the index.html entry, or put index.jsp after it in the file?
Randy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
It seems like your mail program mucked with the to address:
To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
it shouldn't be breaking at the = sign. I would suggest trying
again making sure that there are no spaces between the = and usxx. If that
doesn't work, then
a Java program
thanks
Venkatesh
From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: admin question
Date: Mon, 21 May 2001 07:05:21 -0400
-Original Message-
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Friday
Are you sure your configuration is exactly the same? In the readme
file, item 6.11 (I believe) mentions how a mis-configuraiton can cause
infinite loops. If you changed your server.xml file, I would look at this.
Randy
-Original Message-
From: karthik g
They go in WEB-INF/lib
-Original Message-
From: Montgomery, Kendal L [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 9:27 AM
To: Tomcat-User (E-mail)
Subject: support classes in jar
If I have support classes in a .jar file. I have put it in
WEB-INF/classes.
The problem with this is, how to you restart Tomcat?
I see two basic choices:
1. Use some other package to remotely control the services. This
has been the methodology used here for 90% of our projects
2. Write an application that listens to a port for the
I would suggest you read the mailing list archives from last
December to understand why a lot of people don't want this to be a news
group.
Randy
-Original Message-
From: Dario Novakovic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 3:51 AM
To: tomcat user
1. I would suggest not posting using HTML - it limits your audience
and you want everyone who can to read the message.
2. This problem is usually because the filename in the registry for
the uriworkermap.properties file does not correspond to its actual location,
or all of
We did experience this. Our problem was a growing memory
consumption that was caused by a bug in our code. We did a lot of
experimenting and ran Tomcat inside of OptimizeIt to determine where the
memory was leaking.
Randy
-Original Message-
From: Cheong Takhoe
Just a thought - have you imported that class? You need to remember
that all generated classes are placed into a package corresponding to their
location in the webapp (prefixed by jsp, I believe), so classes that aren't
in any package aren't in the same package as the JSP file. I
4b2-b5)
Thanks a lot, it works! But I was thinking that tomcat
4b1 import(add to
classpath) all the classes for every .JSP from WEB-INF\classes.
Is it reasonable(why WEB-INF\classpath dir)?
- Original Message -
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
From the Jakarta Mailing List page, Turbine User and Ant Developer
are the only two other lists that are listed as high traffic. I seem to
remember seeing a posting to [EMAIL PROTECTED] listing the number
of subscribers to each list (not that subscribers has any bearing to
traffic), but
What seems to be your problem? All of this looks normal - The
redirector found a match for /examples/ to go to ajp12.
Randy
-Original Message-
From: LUN [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: Tomact 3.2.1
Here's a novel idea, why don't you try following the directions that
you got as part of the signup message? They are:
You can start a subscription for an alternate address,
for example [EMAIL PROTECTED], just add a hyphen and your
address (with '=' instead of '@') after the command
Check the permissions on the isapi_redirect.dll file. This is just
a guess, but IIS might be looking to the permissions of the file you are
about to execute to determine if you can execute it.
Randy
-Original Message-
From: COFFMAN Steven [mailto:[EMAIL PROTECTED]]
There is only one line in your program that is causing it to crash.
That is:
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
(copied from your program listing below). If you were to look at Sun's Bug
Parade for the ODBC Bridge you would find that there are about 4 bugs
I believe what you need to do is to run Tomcat behind IIS. Then, in
IIS set the password to challenge/response and set the default domain to
that of your users. Now, when users come to your web site using IE (not
Netscape), IE will perform the login for the user without their
And just for everyone's enlightenment, here's why you have to
restart the entire process:
The redirector is implemented as a DLL. The configuration is loaded
into the DLL on library load. When IIS restarts a single instance, it kills
and restarts threads, but not any DLLs and
In short, not very easily. In JSPs the includes must be other valid
JSPs. What you could do is to write a JSP include that makes a request back
to the web server (using some of the java.net classes) for the appropriate
file, passing the correct variables. Your included file would then
I think this error is pretty self-explanatory - the port that
Tomcat is trying to use (by default 8080 and 8007) are in use. Make sure
there are no other Tomcat's running. Also, you can use netstat to see what
they are connected to, and you can telnet to that port and try and determine
Its a well documented fact that the JK_NT_Service can't deal with
spaces in either the JAVA_HOME or TOMCAT_HOME directories. Either move your
JDK to a different directory, or use the short names (i.e. Progra~1).
Randy
-Original Message-
From: Michel COTE
All source is in CVS. To access the source for ISAPI_REDIRECT using
the web version of CVS, go to
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/native/mod_jk/
iis/ - it looks like the source is written for Visual C++.
Randy
-Original Message-
From:
I think an appropriation method would be for every request to send
back an error text stating the problem encountered during startup (i.e. This
servlet was unable to fulfill your request because config file not found.
Please notify the system administrator at admin@hostname) This way
One common mistake people make is to place the .zip files into the
WEB-INF/lib directory - this doesn't work. Tomcat only picks up the .jar
files. If you rename classesXXX.zip to classesXXX.jar Tomcat should
automatically load the files.
If this doesn't solve your problem, you
I don't see any error here. Everything looks normal to me (except
for an unusual connector name). What are your symptoms that makes you think
you have a problem?
Randy
-Original Message-
From: Ganasen Gounden [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001
There is a note in Tomcat's ReadMe file that details a bug about a
certain misconfiguration that causes 100% CPU utilization. Once you read
that, and remember that each thread handles one request, you will understand
why only one thread is using 100% CPU.
Randy
-Original
This error message is actually the JVM. What has happened is the
JVM has detected an error, but it can't figure out why it happened or how to
recover, so it gives up and asks you to file a bug report. You don't say,
but I would guess that you are using Sun's JVM on Linux or Solaris
I don't think that you really want to do this - remember that EACH
ACCOUNT has its own set of environment variables. If you run Tomcat as the
System Account (the default account), I don't know if you can set the
environment variables.
As the software is currently written, what
It is possible and its done through the server.xml file (although I
can't seem to remember how right now). One suggestion would be to not post
HTML-encoded messages, since a number of people on list can't easily read
them (thus the way you sent your message encouraged the people you
It sounds like one of three things:
1. When you ran jk_nt_service -i, you specified the wrong path to
the wrapper.properties file
2. You have installed Tomcat or your JDK into a directory that
contains spaces (a big problem with the service)
3. Your
Answers:
1. Yes
2. Lots of things, usually problems with your registry entries
3. Either the path to the uriworkermap.properties file is incorrect in the
registry, or the file doesn't contain any valid mappings (mapping are valid
when they map a URL or URL fragment to a valid connector defined
Let me see if I understand what your problem is:
You have IIS set up with Tomcat for some virtual server and
everything works fine. However, when you telnet to port 80 of the machine
and send GET /\n\n, you are getting the actual JSP code returned.
Is this correct? If
If you are using an applet (as in code that runs on the client
computer) then the class files of the driver must be downloadable by the
client. The client can never see anything outside of your webapp directory.
Therefore, unjar the jar file into
I think that these lines tells you exactly what your problem is:
[jk_isapi_plugin.c (452)]: HttpFilterProc
[/at/assettrade?a=login] is not a
servlet url
The filter doesn't recognize your URL as one that it should process. That
would be because you haven't told the filter to
An additional problem is people not knowing what address they are
subscribed as - it must be exact! When doing the translation mentioned in
the welcome message, people need to work with the address referenced in the
Delivered-To header field, not what they think their email address is!
Judging from the included email, I would guess that you sent a
message to
[EMAIL PROTECTED]@jakarta.apache.org, when you
wanted
[EMAIL PROTECTED], according to
the list signup message (which I've included part of below).
Randy
PS Don't forget to reply to the confirmation!
How about http://10.44.82.2:8080/run/pb? When you specify the
servlet-mapping you are telling Tomcat what URL in the webapp to handle -
/pb means "Any Request for pb in the root of my webapp". The
/servlet/className convention is a holdover from how the older containers
used to do
I don't believe that this is a Tomcat bug. I haven't seen any
memory leaks in my usage and no one else has reported anything that didn't
turn out to be their application.
Its common for developers who don't fully understand the Servlet
lifecycle to create memory leaks. You
like to do it the new current, specfull way. What
might that be?
-jim
Randy Layman wrote:
How about http://10.44.82.2:8080/run/pb? When you specify the
servlet-mapping you are telling Tomcat what URL in the
webapp to handle -
/pb means "Any Request for pb in the root of my w
Actually, IE's problem is that it doesn't trust its own web servers
(IIS). The HTTP protocol has request HEAD that will request the headers
associated with a particular request without returning the contents. Older
(I don't remember which) versions of IIS had problems with the HEAD
Possibilities I see:
1. You have disabled AJP12 in your server.xml file (needed to
shutdown)
2. Tomcat is only getting halfway shutdown - it stops accepting
AJP12 connections but still keeps the HTTP connection open. I've seen
reports of this happening on HP-UX (after
This is right - Tomcat implements the Spec to the letter, which
requires that "*.jsp" match any requests that are literally end with the 4
characters .jsp. The spec does not mention "*.jsp*" and so that URL mapping
is not possible with the current version of Tomcat. I believe that this
Instead of getResourceAsStream you can use getResource, which
returns a URL. You can then break down the URL to determine where it found
the resource (and what protocol it used, i.e. file, jar, http, etc).
Randy
-Original Message-
From: Jim Willeke [mailto:[EMAIL
Rename classes111.zip to classes111.jar (or any other name, just as
long as it ends in .jar - Tomcat only dynamically adds .jar to the web app's
classpath).
Randy
-Original Message-
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001
You are getting "Compiled Code" because the JIT engine has compiled
your code into machine native format and it can't trace back to a line of
.java code. I thought there was a command line option like -nojit, but
checking just now I can't seem to remember how to figure it out.
This is just a guess, but your JAR file name has src in it, usually
indicating a source of some sort. Tomcat (nor any other JSP/servlet engine
that I know of) will not compile source into class files with the exception
of JSP. You probably need to either download the binary version, or
In under 10 seconds of browsing jakarta.apache.org I found
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/, which contains both a mod_jk.dll and a mod_jk.zip.
IF YOU ASK STUPID QUESTIONS PEOPLE WILL IGNORE YOU. WE AREN'T HERE
TO DO YOUR WORK
As to the PIV - I am currently using one without problem, though Sun
does recommend only certain versions of their JDKs for the PIV.
As to your startup problem - instead of running "startup", try
running "tomcat run" - this will start Tomcat in the current DOS window
instead of
Add the mime-type mappings to the web.xml file in your webapp's
directory, not the one in conf.
Randy
-Original Message-
From: Steve G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Acrobat question clarification
Let
No, the Servlet Spec doesn't allow for any automatic startup other
than servlets. I believe that most people just create a special servlet
that doesn't handle any requests, it just processes an init (and perhaps
destroy) method.
Randy
-Original Message-
From: Vinoj
Yes. Most people have problems with their registry entries (check
the files to make sure that everything is correct, including the case) or
the service stops on logout (don't use JDK 1.3.0, see Sun's website for more
information).
Randy
-Original Message-
From:
When you create a process like this, its up to you to read and write
to the process. This means that any output from your batch file will be
lost unless you deal with is (Process has methods to get the input and
output streams for standard in/out/error).
I would suggest you try
d this time its able to fire the batch file
but that batch file itself giving error that "The name
specified is not recognized as an internal or external command"
The good thing is this option of running batch file is
working with standalone java application but not with servlet..
/
le already.. still its not working
did u find anyother solution
thanx.. for responding lot...
/sunil
--- Randy Layman [EMAIL PROTECTED]
wrote:
That sounds like the PATH environment variable isn't
set (as in it
can't find osql).
-Original Message-
From: Sunil
Something else is trying to use one of the ports Tomcat is trying to
use (by default its 8080 and 8007). I would suggest you use netstat to
determine what ports are available and reconfigure Tomcat, or stop the other
process.
Randy
-Original Message-
From: Chad
Yes. This is the second question today about this, I would suggest
reading the mailing list archives before posting to this list.
-Original Message-
From: Geofferey G Chen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: Does
Tomcat itself doesn't leak any memory as far as our systems
indicate. One thing to look at might be session usage - has the orginial
developer made the session never timeout (which means that the memory used
in it will never be recollected) or jave exceptionally long timeouts? Also,
My opinion, and its just that, is that unless there is a compelling
reason to use Apache (like its superior speed in static content, logging
abilities, support of PHP/SSI/mod_perl/whatever, or ability to gracefully
handle very large loads), don't use it. In most of today's systems, the
You can't install Tomcat as a service and use either TOMCAT_HOME or
JAVA_HOME with any spaces in it. You need to either use the non-spaced
version of the name (i.e. Progra~1 for Program Files).
Randy
-Original Message-
From: Colin Shreffler [mailto:[EMAIL PROTECTED]]
In the BugParade, bug #4113225 (at
http://developer.java.sun.com/developer/bugParade/bugs/4113225.html) details
what I believe to be your problem - concurrent access of ODBC crashes the
server. There is even sample code to reproduce the problem. Sun's
evaluation - Not supported, not to
Generally, getting a stack overflow in this situation indicates that
your error page has an error, which is handled by your error page, which has
an error I would suggest removing the error page directive and then
making a request for the error page. Once its working then add the
Is it possible that either the filter of virtual directory aren't
set up for the virtual host being used by the proxy but are for the virtual
host serving up the internal requests? (From my own experience, IIS is very
picky and sometime very odd in its choice of which virtual host to
The Work directory is where the compiled JSPs go. When tomcat
receives a request for a new JSP it checks the timestamp of the JSP file
against the timestamp of the compiled file and uses the newer. Since you
don't want to compile files every time the server (tomcat process) restarts,
Instead of running startup.bat, try running tomcat.bat run - this
will start Tomcat in the same DOS prompts as its launched from. You problem
is most likely one of two things:
1. Something is already using the ports Tomcat is trying to use
(8080 and 8007). Microsoft has
The server.xml file that you have is misconfigured - the class name
is org.request.SimpleMapper1. (Anyone know why the server.xml configuration
on recent downloads is wrong?)
Randy
-Original Message-
From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
Sent:
From the initial signup configmration message:
You can start a subscription for an alternate address,
for example "[EMAIL PROTECTED]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]
To stop subscription for this address, mail:
[EMAIL
I have a success story to the contrary - using Windows NT 4, Tomcat
3.2.1, and IIS 4 we are serving a decent sized application with no problems.
We've been averaging uptimes of about 5 - 6 days before the machine is
restarted because of other software on the machine. No detectable
Tomcat 3 doesn't do logging like other web servers (I'm not sure
about Tomcat 4). If you want those types of logs then you need to do one of
two things:
1. Run behind another web server to perform the logging
2. Implement it yourself in Tomcat (it would be a
IIS only runs on Windows 2000 Server, you need Personal Web Server
(PWS) for Windows 2000 Pro, which is available in the Resource Kit. IIS is
one the 200 Server CD (at least Advanced)
Randy
-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
The How-To for NT is the same as 2000 - all the same steps, all the
same variables and parameters.
Randy
-Original Message-
From: Guy Lubovitch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 2:41 PM
To: '[EMAIL PROTECTED]'
Subject: question about win2k
Also this is supposedly fixed in the 1.3.1 beta (haven't tried
myself yet).
Randy
-Original Message-
From: Nico den Boer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat on Win2k
What JDK are you using
401 - 500 of 738 matches
Mail list logo