My setup is Win2k server, Tomcat 4.1.24 installed as a Windows Service, IIS 5, JSDK
1.4.1_02.
I'm using the JK2 connector and here's the copy of my workers2.properties.
#
change this to
Hi Yoav
One possible alternative is to have the properties file outside the
webapp (or better yet, change from properties file to a database?), and
configure the location of the file using one of the above approaches.
That way you can still deploy a packed WAR, write/update the properties
I think that there may be a bug in TC 5.0.18 when issuing a
RequestDespatcher.forward with an URL that has the jsessionid encoded in
the URL. My setup is RH 8, JDK 1.4.2_03 + Apache 1.3.29 + mod_jk + TC
5.0.18.
I have a servlet (mapped in web.xml to /home/*) which catches all URLs
starting with
Hello,
I have Tomact installed on a W2K server.
When I start the Tomcat service the service stops after a short time and
wrote some messages in the stderr.log file.
This is a copy of the stderr.log file
-
Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError
Hello Jacob,
Check your server.xml and look for Context ... It must be closed by either
Context... / or Context ... /Context
Cheers,
Johan
-Original Message-
From: Vries, Jakob de [mailto:[EMAIL PROTECTED]
Sent: 13 February 2004 11:35
To: [EMAIL PROTECTED]
Subject: IIS5 and Tomcat5
Without digging, I can't say if its a bug. BUT... There is no need to encode
the URL if the action is a RequestDispatcher.forward(). Only one session may
be associated with the live of a single request so once the session is there
in the request, its there no matter how many times in the same
The native JDK 1.4 is doing very well (and is fast) on FreeBSD. If you have the
time to compile it I would suggest you try that one.
I'm using it a lot, without problems.
See also the [EMAIL PROTECTED] for more info about this.
Greetings,
Ronald.
On Thu Feb 12 13:50:41 CET 2004 Thomas Cherry
How do you setup Tomcat for an ISP, that offers Tomcat
services to it's user?
o Have different Tomcat installations for each user.
That would cost lots of memory.
o Put Context configuration XML files for each user to
$TOMCAT_HOME/conf/Catalina/localhost
This should work, but there would only be
I'm using log4j in my web app - and that's all working fine - but strangely I'm also
getting some log messages in stdout. Do I need to set the level for the root logger?
If so - could someone show me how.
On a related issue - if I'm running Tomcat (on Windows) from the command line - is
There is no general answer to that.
It depends on the structure of the customers that use tomcat.
Just 2 completely different use cases:
You use a fixed set of applications and sell them as a service
to the costomers.
That may be case for one tomcat for several customers.
You sell webspace
Hi ,
I am working with tomcat4.1.29 standalone .I need to
run it on UNIX,Linux and Windows .
My webapplication has a servlet which loads on startup
.This servlet starts a thread
When i shutdown tomcat using shutdown.bat in windows or
using the
Start thread as deamon.
For details search the archive or google.
-Original Message-
From: MUKUND Premchander [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 1:52 PM
To: [EMAIL PROTECTED]
Subject: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
My
Hello Dan,
I finally got it to work.
The problem is that for directories in webapps a Context is
automatically created, even if it is already declared in server.xml. The
automatically created Contexts do NOT contain the context specific
configuration of server.xml. The outcome is that a) a
Howdy,
Make sure you interrupt and/or destroy your thread properly under all
circumstances. The destroy method of a servlet is one good place to do
this, so maybe there's a bug in the code you put there?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: MUKUND
Howdy,
What an amazing fountain of knowledge you are (!)
I have a special email rule just to highlight your messages, and I am
utterly humbled by your energy and goodwill on this site.
Wow ;) Thanks, and have a good weekend.
Yoav Shapira
This e-mail, including any attachments, is a
Howdy,
Just 2 completely different use cases:
You use a fixed set of applications and sell them as a service
to the costomers.
That may be case for one tomcat for several customers.
You sell webspace and let the user do what they wan't
(install applications, upload jsp's, ...)
For me, that's
Feb 12, 2004 2:41:59 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 360 column 9: The element type Context
must be terminated by the matching end-tag /Context.
org.xml.sax.SAXParseException: The element type Context must be terminated
by the matching end-tag
Howdy,
I'm using log4j in my web app - and that's all working fine - but
strangely
I'm also getting some log messages in stdout. Do I need to set the
level
for the root logger? If so - could someone show me how.
That's because not all of tomcat uses commons-logging. Some parts still
use
Howdy,
No. I've not been able to isolate the bug well enough to reproduce it,
so
there's nothing to test with. I have only observed the vulnerability in
our
current production server. I've since disabled access for the IP range
that was generating the problematic http requests.
Fair enough ;)
Hi,
Thank you for your inputs.
I have interrupted and destoryed the thread in the destroy method but
the shutdown does not happen completely and the console hangs .
I am not able to understand why I don't get this problem when I do not
use load on start up for the servlet.
-Original
Howdy,
I have interrupted and destoryed the thread in the destroy method but
the shutdown does not happen completely and the console hangs .
I am not able to understand why I don't get this problem when I do not
use load on start up for the servlet.
It's strange indeed ;) Tomcat doesn't do
Sorry was a little crazy yesterday with everything going on. I was able to
get the mod_jk and mod_jk2 source I have mod_jk1 compiled, just looking
around now to see if I need to or should switch from 1 to 2.
From: Charles Daniel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Tim Funk said:
Without digging, I can't say if its a bug. BUT... There is no need to
encode the URL if the action is a RequestDispatcher.forward(). Only one
session may be associated with the live of a single request so once the
session is there in the request, its there no matter how many
Path parameters are not defined in section 8 of the spec but query string
handling is. The ommision of discussing path parameters leads me to believe
(ok interpret) that path info is not allowed for RequestDispathers.
-Tim
John Sidney-Woollett wrote:
Tim Funk said:
Without digging, I can't
Good suggestions, but, no, didn't work.
There are no config issues preventing Tomcat from serving files from my
webapp---html and servlets all work. And I know Tomcat is serving jsp
files correctly; Tomcat's default examples work.
Tomcat simply will not serve my .jsp file regardless of
I have tried to change one of the jsp-examples JSP's to see if I can get the
recompile to work, and it does not. I am running 5.0.18 on WinXP. Here is
(what I believe to be) the relevant portion of the web.xml file:
servlet
servlet-namejsp/servlet-name
Hi all,
Do the logs give any indication as to where Tomcat is looking for the jsp
files?
A 404 error does not sound like a permissions problem. It sounds like a
context setting might be off somewhere.
Thomas
Jerry Ford [EMAIL PROTECTED]
02/13/2004 11:03 AM
Please respond to
Tomcat Users
Jerry Ford wrote:
Good suggestions, but, no, didn't work.
There are no config issues preventing Tomcat from serving files from
my webapp---html and servlets all work. And I know Tomcat is serving
jsp files correctly; Tomcat's default examples work.
Have you tried run your jsp file directly
Logs show class-not-found exception for open.jsp.
Which brings me back to my original question---what do I need to
configure to let Tomcat know about this jsp?
It already knows where my webapp is and is able to serve my servlets
just fine, as well as the html files that are in the same
I had a similar problem with my jsp files.
I included as the toplines in my jsp files :
%@ page contentType=text/html; charset=iso-8859-1 language=java
import=java.sql.* errorPage= %
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
These lines
Hmmm...when I go to http://localhost/mywebapp, it works fine.
When I bypass Apache and go to http://localhost:8080, I get Tomcat's
home page, and http://localhost:8080/examples/jsp, I get the Tomcat
examples.
But when I go to http://localhost:8080/mywebapp, I get 404, resource not
Do you have a JDK installed? Do you have a JAVA_HOME environment
variable set? Can Jasper find the java compiler (javac)?
--- Jerry Ford [EMAIL PROTECTED] wrote:
Logs show class-not-found exception for open.jsp.
Which brings me back to my original question---what do I need to
configure
Cut and paste your context settings.
Thomas
Jerry Ford [EMAIL PROTECTED]
02/13/2004 11:33 AM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
Tomcat Users List [EMAIL PROTECTED]
cc
Subject
Re: jsp deployment
Hmmm...when I go to http://localhost/mywebapp, it works fine.
When
Yes, yes, and yes...JDK 1.4, $JAVA_HOME is set to /usr/java/j2sdk1.4.0,
and Tomcat is able to compile the example jsps that come in the
webserver package.
Jerry
David Ramsey wrote:
Do you have a JDK installed? Do you have a JAVA_HOME environment
variable set? Can Jasper find the java compiler
Jerry,
Hang on for a minute. Have you tried to access this directly from the url?
http://localhost:8080/mywebapp/open.jsp
I missed in your original post that you were using javascript to access it.
Doug
- Original Message -
From: Jerry Ford [EMAIL PROTECTED]
To: Tomcat Users List
I am trying to get this running as well. Does Tomcat and IIS have to be
installed on the same box?
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
from server.xml (minus realm, user database resource and a couple of
extraneous contexts):
Server port=8005 shutdown=SHUTDOWN debug=0
!-- Service --
Service name=Tomcat-Standalone
!-- Port 8080 Connector --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
Jerry Ford wrote:
Hmmm...when I go to http://localhost/mywebapp, it works fine.
When I bypass Apache and go to http://localhost:8080, I get Tomcat's
home page, and http://localhost:8080/examples/jsp, I get the Tomcat
examples.
But when I go to http://localhost:8080/mywebapp, I get 404,
No, but you'll need to change the IP address in your workers.properties or
workers2.properties file to point to the computer that serves your tomcat
instance. I know in the workers2.properties (for JK2) you would to change
the
[channel.socket:localhost:8009] to
You have the EBook context nested inside the default (ROOT).
-Original Message-
From: Jerry Ford [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 11:50 AM
To: Tomcat Users List
Subject: Re: jsp deployment
from server.xml (minus realm, user database resource and a couple of
Hi, I am getting this a lot while debugging my application. It happens if I
restart Tomcat for after viewing a particular page. But if I restart it again,
I don't get this error. I have no clue why this is happening. I don't want the
sessions to be persistent in the first place, also I don't
Does anyone know where I can download mod_jk 1.2.5?
Jakarta doesn't seem to have it in there site anymore , unless I missed
it???
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Looking for the source or binary?
From: Dwayne Ghant [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp deployment
Date: Fri, 13 Feb 2004 09:05:12 -0800
Does anyone know where I can download mod_jk 1.2.5?
Jakarta doesn't seem
Looking for the source or binary?
I know source for both are there, rather then the link with binindex.cgi its
sourceindex.cgi
From: Dwayne Ghant [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp deployment
Date: Fri, 13
if you still cant find the source one for 1.25 I still have the tar.gz on my
machine.
From: Dwayne Ghant [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp deployment
Date: Fri, 13 Feb 2004 09:05:12 -0800
Does anyone know
Both .
Didier McGillis wrote:
Looking for the source or binary?
From: Dwayne Ghant [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp deployment
Date: Fri, 13 Feb 2004 09:05:12 -0800
Does anyone know where I can download
Jerry,
Hang in there. Most of us have been there. To me it felt like a game show
with everyone shouting out different answers all at once.
As for Didier and Dwanye, not nice. Think about when you were on the
other side and desperately looking for that one answer. How would you
feel about opening
Howdy,
I don't
want the
sessions to be persistent in the first place,
You need to configure tomcat not to persist sessions then. There is
advice on this on the Manager configuration reference page as well as in
this list's archives.
Yoav Shapira
This e-mail, including any attachments, is a
No, root context is defined in a single, self-closing tag: context... /
It's unchanged from Tomcat's default server.xml.
But...on second look, there is an extra closing tag after Ebook's
context in this cut-and-paste (I cut and paste in multiple steps;
couldn't get the whole thing in one vi
Bill is correct.
This portions seems off. Try separating them.
I dont think you should be seeing /Context followed by and another
/Context.
!-- ROOT context --
Context path=
docBase=ROOT
debug=0/
Sorry, that's a cut-and-paste error that does not appear in the real
server.xml. Only one /context end tag; the root context is closed
before the EBook context begins: context... /
Jerry
Thomas Tang wrote:
Bill is correct.
This portions seems off. Try separating them.
I dont think you
Is this default behaviour new in Tomcat5? Since I didn't do anything with the
Manager element, I am using the default StandardManager, right? I guess this
is the main reason why I couldn't understand why it's trying to write myVO
class, i.e., persist sessions.
Is there any other way to cause
it always tries to persist sessions across restarts and reloads of the
context.
it is what it does
if you want to disable it, you have to set the pathname=someinvalidpath in
a manager element in server.xml.
Filip
- Original Message -
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Tomcat Users
um, that's weird. I don't get the same exception in tomcat 4 though.
I did a stopstart, still I get the exception in tomcat 5. Maybe I have been
always getting this, except in 4, there is no console out? Shouldn't be though,
it's an exception.
-Original Message-
From: Filip Hanik
yes logging has changed a great deal between v4 and v5.
so you would always have that stuff
- Original Message -
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 13, 2004 10:32 AM
Subject: RE: session.ManagerBase tries to write
All,
I have recently encountered a bug in the interaction between mod_jk and Tomcat. In
brief, Tomcat does not get the POST data from mod_jk following failover from one
Tomacat node to another.
It appears that this bug is known, and has been posted to this list before:
On Fri, February 13, 2004 1at 1:03 am, Chris Pennock wrote:
I have recently encountered a bug in the interaction between mod_jk and
Tomcat. In brief, Tomcat does not get the POST data from mod_jk following
failover from one Tomacat node to another.
Also, here is a link to the bug in Apache's
Is this issue only in the binary release or all releases?
I have jk 1.2.4 with apache 1.3.29 compiled from source on solaris but
have not observed this problem.
David Rees [EMAIL PROTECTED]
02/13/2004 02:12 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
Tomcat Users List
Howdy,
Logging changed a lot between tomcat 4.x and 5.x. Default session
persistence behavior didn't.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 1:32 PM
To: 'Tomcat Users List'
Subject: RE:
i was wondering what the state of the checked in code is for mod_jk. the
last tag on jk was 1.2.5 after which (i assume) there have been several
checkins.
would you recommend pushing out a cvs built mod_jk to production (probably
unsafe, right) or should we wait for the next tagged,
I am using a binary:
jakarta-tomcat-connectors-jk2.0.2-solaris8-apache2.0.43
I downloaded it Feb 9. The file was modified Spet 29.
I'll try compiling from source (which Dave says should have a fix) and
report back.
Thanks all!
Chris
-Original Message-
From: Thomas Tang [mailto:[EMAIL
On Fri, February 13, 2004 1at 1:21 am, Thomas Tang wrote:
Is this issue only in the binary release or all releases?
I have jk 1.2.4 with apache 1.3.29 compiled from source on solaris but
have not observed this problem.
It's in all releases besides current CVS. The bug isn't that easy to
On Fri, February 13, 2004 1at 1:23 am, Apu Shah wrote:
i was wondering what the state of the checked in code is for mod_jk. the
last tag on jk was 1.2.5 after which (i assume) there have been several
checkins.
would you recommend pushing out a cvs built mod_jk to production
(probably
unsafe,
Hi,
Can anybody give a solution to the problem mentioned in the below Email
I am still struggling ..
Best Regards
Abhay Kumar
-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:27 PM
To: 'Tomcat Users List'
Subject: RE: NTLM
hello
we're running tomcat 4.0.3 (I know it's old, but I can't change it).
following problem occurs:
when invoking the Servlet from a client i get the error messages below. the
restart seems to be ok though. also it is interesting that the error
messages
depend wheter it the servlet is placed
Greetings,
I have finally pulled the last hair out of my head on this one. I'm running
Tomcat 5 on my Windows2000 desktop (for development purposes) and trying to
get JAAS to successfully integrate with it. I have successfully run the
examples from Sun's site for the JAAS tutorial and just trying
This one did the trick. It fixed something or caught something that I
missed. However, now I have to figure out why .jsp pages won't compile. It
complains no java compiler is installed even though I have path, classpath,
and javahome set to the java directory.
Anyone experience that problem?
Howdy,
First, as a general tip, I suggest putting all your classes in packages:
http://jakarta.apache.org/tomcat/faq/classnotfound.html.
- Root Cause -
java.lang.UnsupportedClassVersionError: Connect (Unsupported
major.minor
version 48.0)
This happens when a pre 1.4 JDK tries to run
Howdy,
JAVA_OPTS=-
Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf
You probably want
JAVA_OPTS='-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.
conf'
(one line, single equals signs, quotes containing the whole JAVA_OPTS
value.
Other than that, I can't help much
Jerry Ford wrote:
Sorry, that's a cut-and-paste error that does not appear in the real
server.xml. Only one /context end tag; the root context is closed
before the EBook context begins: context... /
The configuration seems okay then. BTW, can you run
http://localhost:8080/manager/list to
I keep getting:
No Java compiler was found to compile the generated source for the JSP. This
can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the
JDK to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please
Is Tomcat running as a service? Is that service running as a user that
has that path and environmental settings the same as you do? Can you
start Tomcat manually and access your jsp using something like?
http://localhost:8080/mywebapp/myjsppage.jsp
--- Alex L. [EMAIL PROTECTED] wrote:
This
Installed tomcat 5 on my linux box and it works no problem stand alone.
However I don't see that the auto/mod_jk.conf directory or file is being
created. Does anyone know what you have to do to get these files to auto
generate?
thanks
-Ryan
From the name of your classpath, I would guess you have the JRE installed.
To compile you need the SDK.
-Original Message-
From: Alex L. [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 4:40 PM
To: Tomcat Users List
Subject: Problems compiling new .jsp's with tomcat
I keep
[EMAIL PROTECTED] wrote:
Installed tomcat 5 on my linux box and it works no problem stand alone.
However I don't see that the auto/mod_jk.conf directory or file is being
created. Does anyone know what you have to do to get these files to auto
generate?
thanks
I don't know tomcat 5. But for
Yeah it doesn't seem to be producing it for me and i start up with no
errors. Unless it is creating it in a new location.
[EMAIL PROTECTED] wrote:
Installed tomcat 5 on my linux box and it works no problem stand alone.
However I don't see that the auto/mod_jk.conf directory or file is
I took out the last context element in my server.xml in
${tomcat_home}/conf, and I get this weird error. The context wasn't
even for /jsp-examples. Darn, it's kind of late in the day. Putting
the context element back(undo change) fixed the problem. Any idea on
this?
Thanks!
I've got Tomcat set up as the middle component passing heavy XML data between and
client and a backend and it is very very slow. I've set a filter up to log the time
it takes to process a request and loadtest with JMeter using 10 threads. Takes around
25,000ms to get a response from looking
Hi all,
I'm updating my Tomcat on Linux Step By Step for Tomcat 5
(http://cymulacrum.net/tomcat/tomcat_toc.html) and I need some
clarification on something:
I noticed that there are now 2 other packages available for download, in
addition to the base Tomcat package : a Deployer and an Embed
79 matches
Mail list logo