Hello,
yeah, I thought of this too. But I only get a null value for
request.getRemoteUser(). Any idea what could be wrong? My mod_jk
version is mod_jk 1.2.19.
Cheers,
Pete
-Ursprüngliche Nachricht-
Von: Christopher Schultz [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. April
From: Eqbal [mailto:[EMAIL PROTECTED]
What causes any performance overhead in using apache
with Tomcat, considering they will be on the same
server?
Each request must be (at least minimally) processed by Apache, the request
forwarded over the JK connector to Tomcat, Tomcat processing
Jeremy Cowgar wrote:
Is it possible to do a wildcard on the server alias? I have something
like username.hostname.com instead of hostname.com/~username/ ... I have
a wildcard in DNS so I do not define each host. In the current apache
version of the app, I have ServerAlias *.hostname.com which
Please post the log parts (debug log level) which appear when starting
apache. Those are the lines that show, how mod_jk parses your
workers.properties, and which internal objects it generates out of it.
-
To start a new
Hi,
Is it possible to configure Tomcat5 in a Linux cluster (Linux-HA (Heartbeat 2).
I want to configure it on SLES10. I have already checked the Tomcat FAQ at
Tomcat.apache.org, the How to at that location, Googling it returns nothing on
the subject. If a config/setup doc exists I cannot
Hi Rashmi!
StandardWrapperValve[action]: Servlet.service() for servlet action threw
exception
org.apache.jasper.JasperException: Array index out of range: 0
indicates that there's some code that is accessing the wrong index of
an Array , either the index is less than 0 or greater than or
Thanks for your help.
This is what I get in the mod_jk.log :
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c
(144): about to create instance server1-instance1 of ajp13
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c
(157): about to
Hi,
I have to integrate a web application in Tomcat. I am not working that long
with Tomcat so it could be a very trivial problem...
The whole application seems almost to work (you can log in the application etc)
but accessing some jsp's I get ClassNotFoundExceptions like the following. It's
Hi,
I am trying to setup JDBC connection pooling in Tomcat
5.5 using DB2 database and IBM RAD 7.0 IDE. Although
The setup described in JNDI Resources
HOW-TO(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html)
for creating JDBC Datasources did work, I would like
to work with real
Hi Tomcaters!
Just a quick query relating to Tomcat 5.5.20 on Win2K3 with SUN JVM
1.5.0_10 (64-bit)
What are the ideal JVM GC parameter settings for a system with two
dual-core processors and 4GB RAM (of which we've allocated a little over
3GB to the JVM)? Sometimes Tomcat pauses for
Hi,
I have tomcat 5.5.23 binary distribution Windows executable.
Environmental variable JAVA_HOME is set to C:\Program
Files\Java\jre1.5.0_06. When I try to start the Tomcat Service, I see
the below error in localhost.-xx-xx.log file. I am not able to
understand what can be the
I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile. Look further up the logs for the first
error message in the request process.
--David
Dirschnabel. Stefan wrote:
Hi,
I have to integrate a web application in Tomcat. I am not working that
I've fixed getting user info from apache by adding
tomcatAuthentication=false to the connector config in server.xml.
--David
Peter Neu wrote:
Hello,
yeah, I thought of this too. But I only get a null value for
request.getRemoteUser(). Any idea what could be wrong? My mod_jk
version is
Hm ... I deleted the logfiles and reproduced the error multiple times, but the
exception I showed you is the first I get. Furthermore, if it would be a
compile failure the error messages would appear randomly, wouldn't they? But
always exactly the same .jsp's can be found/ not found.
Stefan
Hello everybody,
I'm trying to move a global jdbc resource out of server.xml so it is
application specific. Following is the server.xml (which works fine)
?xml version=1.0 encoding=UTF-8?
Server port=8005 shutdown=SHUTDOWN
Listener className=org.apache.catalina.core.AprLifecycleListener/
All jsp's are in this directory (the one which work and the ones which don't):
webapps\spoke\app_AutoID\jsp\InventoryStatus.jsp
The web.xml:
webapps\spoke\WEB-INF\web.xml:
I am sorry man, but because of internal restrictions I am not allowed to paste
the whole files (would be pretty much too) -
Ah, OK, that completes the picture. I checked in tomcat code, that the
forwarded info is being used, but I saw, that only if some boolean flag
is not set. I didn't have the time to check where that flag comes from,
but your last post perfectly fits. So having that to false enables one
to read
Hi Anthony,
I exaggerated the less than 1 second on first load, I noticed that
some other pages take from 2 to 5 seconds to load on first compile in
the development environment.
Because of this first-time delay, it is important for me to
pre-compile the JSPs , in order to maintain a higher
I did some more testing, and discovered an error in my OP. See inline
below...
I already have a message into the makers of the jni package I'm using
with my standalone app to see if they have any input on this.
David Smith wrote:
And where is the class that can't find HttpServletRequest?
Seems pretty straight forward -- the user/host/password combo you
provided isn't valid on your mysql server. Keep in mind mysql doesn't
just check username and password, it also checks where you are logging
in from (the host). You can test the login credentials by using the
mysql command line
Hi Gabor,
Yes I did look at the full stack track you've posted. Is this stack
trace only from the JSP page?
Please look in the log files for additional stack trace, if there are any.
Otherwise this may be a Tomcat bug, and you can file a bug report on Bugzilla.
-Rashmi
On 4/20/07, Gabor
No it would be very reproduceable if the jsp isn't compiling for
some reason. I've seen this error when importing jsps that don't
compile/aren't found using the c:import url=/InventoryStatus.jsp /
tag. Can you verify that InventoryStatus.jsp is in the webapp or
optionally if using
Please post the jsps,servlets web.xml and directory structure as well
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please
I also noticed Struts in the stack trace and it could be a bug in Struts also.
-Rashmi
On 4/20/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
Hi Gabor,
Yes I did look at the full stack track you've posted. Is this stack
trace only from the JSP page?
Please look in the log files for additional
JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above
System). Given your need for running this code standalone and in a
webapp, I think a refactoring is in order. The parts that have to live
in JAVA_HOME/lib/ext should not refer to the servlet api. They should
just return data
And don't forget to use the -h flag to specify the host you are connecting
to on mysql command line.
That might be different, having a FQDN or localhost.
Try logging on your mysql database and very the mysql.user and mysql.dbtables.
Orlando
On 4/20/07, David Smith [EMAIL PROTECTED] wrote:
Hi,
I want to use JNDIRealm.
I write this in the server.xml :
Realm className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionName=uid=tomcat,ou=xx,dc=xx,dc=fr
connectionPassword=g72jfacc
connectionURL=ldap://ldapmasta:1389;
On Fri, 20 Apr 2007, Rainer Jung wrote:
Please post the log parts (debug log level) which appear when starting
apache. Those are the lines that show, how mod_jk parses your
workers.properties, and which internal objects it generates out of it.
Hi Rainer,
Ok, thanks for your help. This is
Thanks, that will do the trick!
Jeremy
On Apr 20, 2007, at 3:10 AM, Pid wrote:
Jeremy Cowgar wrote:
Is it possible to do a wildcard on the server alias? I have
something like username.hostname.com instead of hostname.com/
~username/ ... I have a wildcard in DNS so I do not define each
Im getting a HTTP Status 503 Error occurring every other time i start and
stop Tomcat Embedded and launch a browser.
I have been told that HTTP Status 503 error is due to overload.
does anyone know how to catch this error?
i would like to check if this error is to occur, if it is, then do
From: Gupta, Medhavi (GE Healthcare)
[mailto:[EMAIL PROTECTED]
Subject: Starting Tomcat 5.5.23 gives error in
localhost.-xx-xx.log
I have tomcat 5.5.23 binary distribution Windows executable.
java.lang.ClassFormatError: Extra bytes at the end of class file
From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat deployment question
When tomcat is started and starts reading htdocs.xml,
I get the following message:
Warning: a docBase w:\INM\Apache\htdocs\htdocs inside the
host appBase has been defined and will be ignored.
The easy way in my opinion is to abstract the common stuff to a
superclass and then subclass to servlet vs. standalone. The servlet
subclass goes in WEB-INF/lib, the standalone subclasses can be in the
standalone application jar.
--David
David Kerber wrote:
David Smith wrote:
Ok, I found the mistake at last. Problems were wrong servlet mappings (to not
existing pre compiled jsp's) in the web.xml because of a mistake in the build
script. Big thx for all help
Stefan
-Ursprüngliche Nachricht-
Von: David Smith [mailto:[EMAIL PROTECTED]
No it would be
that last block of code looks correct.
I could send you my xml file config offline, FWIW, but just be warned I am
using 4.1.31.
-Original Message-
From: dimos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 4:45 AM
To: users@tomcat.apache.org
Subject: Tomcat 5.5 Connection
Hi,
I'd like to apply a security constraint for a webapp through a LDAP
server. But I don't want to take account of eventual roles associated
with a user.
Here is a part of my web.xml :
### web.xml : BEGIN ###
!-- Security constraints --
security-constraint
web-resource-collection
There is a good documentation about this at:
http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html
Its for Java 6 but I think it's appliable for Java 1.5 also.
I made some test running 1.6_u1 with the: -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode and it's a lot slower but the
Thanks for the suggestion!
David Smith wrote:
The easy way in my opinion is to abstract the common stuff to a
superclass and then subclass to servlet vs. standalone. The servlet
subclass goes in WEB-INF/lib, the standalone subclasses can be in the
standalone application jar.
--David
Tomcat : 5.5.23
Java :
Hi everybody,
i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:
The
And where is the class that can't find HttpServletRequest? If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to test
a theory). I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it above the
common
David Smith wrote:
JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above
System). Given your need for running this code standalone and in a
webapp, I think a refactoring is in order. The parts that have to
live in JAVA_HOME/lib/ext should not refer to the servlet api. They
Move the admin webapp to server/webapps right along side the manager and
host-manager webapps. Also make sure the provided admin.xml is in the
%CATALINA_HOME%/conf/Catalina/localhost directory.
--David
[EMAIL PROTECTED] wrote:
Tomcat : 5.5.23
Java :
Hi everybody,
i've downloaded the
I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid password.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Thank you very much David, it's OK
Best regards
David Smith
Hello Barry,
i did just the way David said to me and it's OK ; the user and password I
gave were: admin , admin. It's the default values.
Bye
ok, thanks.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 11:19 AM
To: Tomcat Users List
Subject: Réf. : RE: Administration Tomcat
Hello Barry,
i did just the way David said to me and it's OK ; the user and password I
gave were:
I just got it to work.
Here's what you need to do:
1) Unzip the file to a temporary directory (temp_dir).
2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to
%tomcat_home%\conf\Catalina\localhost directory.
3) Copy the %temp_dir%\server\webapps\admin directory to the
many thanks
Best Regards
David Short
Good Afternoon David--
Ive implemented admin package at least a dozen times so having a script to
perform this is certainly helpful..Thanks for suggesting a solution to
automate this common procedure..
Thanks again,
Martin--
This email message and any files transmitted with it contain
In regards to
Bug#:
29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at
Faheem Mitha wrote:
Ok, thanks for your help. This is the portion of the log generated by
mod_jk, which I presume is what is relevant. The formatting is not
optimal, but I can try to wrap it if desired.
The server wide directives:
JkWorkersFile, etc must not be defined inside VirtualHost
Try jar -h at the command line or WinZip will know how to extract it. You
should have access to jar.exe if you installed a JDK.
Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255
FAX
I have already extracted the files. Now, where do I place these files
(folders)?
-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:16 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException
Try jar -h at the
One more try at this. I have been working on getting a DataSource to work with
DB2. At this point I am using a DataSource I configured with the admin web
page.
I have a new question. I found that I am getting an inconsistent result. I
get one of two results, without changing anything. One
Hello Glen,
What is the version of Tomcat? I'm asking for the version because the
JNDI Datasource configuration is different for different version of
Tomcat. The one for 4.x is different from the one for 6.x for example.
-Rashmi
[quote]
Download the news mx4j 2.1.1 http://mx4j.sourceforge.net/
and copy mx4j.jar to your catalina.home/bin. Then delete existing
jmx.jar and move mx4j.jar to jmx.jar.
[/quote]
In my case Catalina.home = C:\Program Files\Apache\Tomcat5.0. So I would
apply the patch to C:\Program
On Fri, 20 Apr 2007, Mladen Turk wrote:
Faheem Mitha wrote:
Ok, thanks for your help. This is the portion of the log generated by
mod_jk, which I presume is what is relevant. The formatting is not optimal,
but I can try to wrap it if desired.
The server wide directives:
JkWorkersFile,
Thanks Robert. I'll give that a try.
-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:40 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException
[quote]
Download the news mx4j 2.1.1 http://mx4j.sourceforge.net/
Hi
I'm trying to understand if I'm doing something inherently wrong in my
current code, which is working, but which may give me troubles later
on :
I have a custom jsp tag, and instead of writing its rendering logic
inside its doStartTag/doEndTag methods (I'm using JSP 1.2, not 2.x), I
let its
Faheem Mitha wrote:
On Fri, 20 Apr 2007, Mladen Turk wrote:
Faheem Mitha wrote:
Ok, thanks for your help. This is the portion of the log generated by
mod_jk, which I presume is what is relevant. The formatting is not
optimal, but I can try to wrap it if desired.
The server wide
It always depends on...
if the focus is on the servlets (meaning around 70% of the requests
are satisfied by your servlets), maybe you want to give a
tomcat-only-setup a try.
however, if the focus is on static / php / perl-content an less than
50% of the requests are satisfied by servlets, i'd
On Fri, 20 Apr 2007, Mladen Turk wrote:
So, have you tried to put the JkWorkersFile outside the vhost?
I've moved everything outside except the JkMount stuff. The worker is now
seen, and I'm now seeing a different error message, so that's progress.
Thanks very much for your help.
Hi,
I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4.
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache
through the connector. Tomcat and Apache reside on the same machine.
I want to force apache to drop prot 8080. Since we're behined a
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Subject: Re: performance with apache and tomcat
i'd do it the apache way with mod_jk2.
we are running two hardware-loadbalanced servers each having
apache-httpd / mod_jk2 / tomcat 55-setup, and it runs like charm.
You do realize that
I've been searching all over the internet for similar problems. I'm running
this on Windows XP to start.
It's a Pentium 4 3.6 GHz with 1 GB RAM. I'm using Apache 2.2.4, Tomcat
5.5.20, and mod_jk 1.2.21.
Here is a portion of my httpd.conf (If you need more to answer my question
please ask):
I have a Windows 2003 machine running IIS 6.0. I need to be able to
reverse proxy this to another machine running Tomcat. Which version of
isapi_redirect.dll should I use?
-
To start a new topic, e-mail: users@tomcat.apache.org
Khalil wrote:
Hi,
I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4.
I have read and re-read the docs on http://tomcat.apache.org/connectors-doc and
googled
If you did all that you claim you would read from:
http://tomcat.apache.org/connectors-doc/news/20041100.html
Swaroop George wrote:
I have a Windows 2003 machine running IIS 6.0. I need to be able to
reverse proxy this to another machine running Tomcat. Which version of
isapi_redirect.dll should I use?
Stable version of course ;)
http://tomcat.apache.org/download-connectors.cgi
Regards,
Mladen
Sorry for the confusion. I meant to say JK 1.2.22 which is packaged in a
file called mod_jk-apache-2.2.4.so which I downloaded form
http://apache.osuosl.org/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.22/
My problem is I want to drop 8080 form the url. How do I do that?
- Original
argl - sorry, chuck, you're right: the 2 just dropped from my
fingers, i'm talking about mod_jk (this one:
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html)
thanks for the correction!
greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp:
Hi,
I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22.
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache
through the connector. Tomcat and Apache reside on the same machine.
I want to force apache to drop prot 8080 form the url when it
Hi, I'd appreciate some tips here! This is my first Tomcat install,
and I'm new to Java in general.
My setup:
Windows Server 2003, Web Edition, Service Pack 2
32-bit X86 CPU, 2 GB RAM
Apache httpd 2.0.59
mod_jk 1.2.22 for Win32
Apache Tomcat/5.5.23
Sun JVM 1.5.0_09-b01
My problem is that
Avi,
Take a look at this article
http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_jk
Regards,
Khalil
- Original Message -
From: Avi Flax [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, April 20, 2007 3:23 PM
Subject: Tomcat + jk + Apache httpd on
Thanks Khalil. I've just read through the article, and it looks good.
But I'm pretty sure that my setup matches the one described there, as
far as I can tell. And it doesn't say anything about way slow
performance with JK. I think I may need some troubleshooting tips.
Thanks!
Avi
Greetings!
I have domain.com and my app uses hosts under that domain, like
abc.domain.com, def.domain.com... When the user logs in, the session
is valid only on domain.com... How can I make that session also valid
under the other hostnames?
Thanks,
Jeremy
I found the solution here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=40909
- Original Message
From: Joe L [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, April 20, 2007 3:08:07 PM
Subject: Apache and Tomcat CPU Usage 100% with mod_jk
I've been searching all over the
Thanks Mladen, and sorry for jumping in that late: yes JkWorkersFile is
global. Most others can be used in VHosts, but for Apache 2.0 most of
this was completed only recently in version 1.2.20. Before 1.2.20 (you
are using 1.2.18) some things worked in vhosts (like JkMount) even
before, but
If you can reproduce your problem without high load, you can use
JkLogLevel debug to understand, which of the steps take the most time.
This might give an idea about the root cause.
The log contains time stamps and you can post log parts around the
moments, where you seem to loose most of the
Khalil wrote:
Hi,
I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22.
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache
through the connector. Tomcat and Apache reside on the same machine.
I want to force apache to drop prot 8080 form the
I've also got problems to understand the question. I guess, he is
getting back responses with links (or redirects) which have an appended
port 8080, although he is starting with port 80. If so, it sounds a
little like a bug in his webapp.
Khalil: can you please comment?
Mladen Turk wrote:
Yes, exactly. When I type this url in the browser:
examples/servlets/servlet/RequestInfoExample
I still see port 8080 in the url. I want all the urls in my webapp not to
include 8080. Please tell me if you still don't understand.
Thank you!
- Original Message -
From: Rainer Jung
One of the servlets in my webapp parses and constructs objects based on XML
configuration using the Commons-digester. This happens in the servlet's
init. The code to parse the XML and construct objects works fine when I
invoke it from a standalone app. However when I invoke the same code from
Hi Khalil,
I cant see anything wrong off hand, and I cant think of how this
configuration can cause this behaviour...
The only way I can see this happening is that there is an HTML page in
apache that is redirecting to 8080
Or if the programmer who made the webApp did a redirect to another
Actually... on a second look, the configuration doesnt look right either...
I mean you clearly NOT load balancing you just trying to use a JK
connector... the worker should just look something like this
# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
84 matches
Mail list logo