Michael Greer wrote:
List servers = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = (MBeanServer)servers.get(0);
ObjectName objName = new
ObjectName(Catalina:type=Manager,path=/contextPath,host=localhost);
String sessionIds =
I want to make an admin page in my application. I needs to be able to
get access to all the current Session objects to access their
attributes. Is this possible?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Antony Paul wrote:
You can put all the sessions in List or Map when they login or use
HttpSessionListener to listen to session events.
That was my fallback plan, if there wasn't an easier way.
-
To unsubscribe, e-mail: [EMAIL
Yup, that was it. I could have sworn I chwoned all the files but I
guess I didn't. Thanks.
Parsons Technical Services wrote:
The real problem is the lines above it. Either the server.xml is hosed,
missing, corrupted or Tomcat doesn't have rights to it.
What OS are you running on?
Doug
Using the out of box config files and webapps:
java version 1.5.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
This appears on catalina.out:
Feb 11, 2005 12:35:51 AM
Is this a redhat 9 box by any chance?
Steffen Heil wrote:
Hi
I have a situation, where a lot of threads seem to stop working right in my
servlet.
From debug output, I know they entered the servlet but never leave it.
My problem is that this never occurs on our development system, but only on
the
From the tomcat-devel list:
So is JK2 dead because of proxy_ajp? Why doesn't JK2 just replace JK?
JK2 is dead because (like mod_webapp before it :), it failed to attract a
community interested in maintaining it. You might as well ask 'why doesn't
mod_webapp just replace JK?'
For some reason the
No, this is a known bug and will not work. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=28758
Cox, Charlie wrote:
To avoid all confusion, I would remove your [uri: mappings from the
workers2.properties and then specify the mappings in your httpd.conf:
VirtualHost 1.1.1.1:80
YOu have to use LocationMatch instead because * won't match a /. I had
this problem myself.
Webmaster wrote:
Hi all,
I'm trying to upgrade a setup I was using with mod_jk to mod_jk2.
This setup has 2 workers. Here it is:
With mod_jk:
JkMount /webapp1/*.jsp worker1
JkMount /webapp2/*.jsp worker2
,
but the issue is still alive with RedHat 9.0. I am in the process probing
the linux boex's mepry to see what the is going on.
Nandish Rudra
ECI Conference Call Services, LLC
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 8:54 PM
To: Tomcat
Sunitha Kumar wrote:
Hey folks:
Would setting CATALINA_OPTS to -DLD_ASSUME_KERNEL=2.2.5 work?
No, this isn't a java option. It is an environment variable you want to
set at the shell level. In catalina.sh at the top:
export LD_ASSUME_KERNEL=2.4.1
See
http://www.blackdown.org/java-linux/[EMAIL
Nandish Rudra wrote:
Hello Everyone,
I am writing about this error from yesterday. I used JProfiler to monitor my
memory usage. And am now sure that each and every static object is trashed
when the application is undeployed and the profiler shows that memory is
free and all instance of the
The problem was that my notes said to use -with-apxs2= instead of
-with-apxs=
David Rees wrote:
Joseph Shraibman wrote, On 8/3/2004 7:29 PM:
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer
But the apxs does exist. This is apache
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 12:15 AM
To: Tomcat Users List
Subject: How do I manage the thread pool in 5.0.27?
After handling a lot of requests in 5.0.27 I'm left with a lot of
threads with names like TP-Processor245. How do
What is supposed to happen when a jsp:forward tag is encountered?
Logically when writing a jsp I would think that execution stops there
and the client goes ahead to the new url. Does jasper always do this?
Did it always do this?
jk2 has problems with virtual hosts. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=22045
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=18472
Alex wrote:
is this something that no one has had experience with?
On Wed, 21 Jul 2004, Alex wrote:
Date: Wed, 21 Jul 2004 09:39:15 -0400
# ./buildconf.sh
rm autom4te.cache
libtoolize --force --automake --copy
aclocal
autoheader
automake -a --foreign --copy
configure.in:8: `automake requires `AM_CONFIG_HEADER', not
`AC_CONFIG_HEADER'
configure.in: installing `scripts/build/unix/mkinstalldirs'
autoconf
rm autom4te.cache
Then
After handling a lot of requests in 5.0.27 I'm left with a lot of
threads with names like TP-Processor245. How do I make these go away?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Are you sure when you upgraded that you moved everything over, like jars
in lib/endorsed, you java.policy, etc?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hmmm...so is there any workaround? For example, using an older version of the
JK connector or some older combination of Tomcat/Apache and the JK connector?
Thanks,
Kevin
Not as far as I know.
-
To
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25367
[EMAIL PROTECTED] wrote:
Hi all,
I am having a problem getting Tomcat 5 to use Apache authentication. We
have an existing CGI application that is handled by Apache 2, and I am tring to
integrate some java stuff using Tomcat 5. Here is
I have a 404.jsp for logging broken links. I get the missing page by
doing this:
String url = request.getRequestURL().toString();
This works when the missing page is a jsp. When it is something else
like a .html, my url variable ends up with the url to my 404 handler. I
assume this is a
Akash Jauhar wrote:
Assuming that you have an apache in front of tomcat configure apache to
specify that 404.jsp is your custom page for handling 404 errors for
content that is served by apache. This should help you log all broken
links as well as missing images and other content
Hope this helps
Try this:
http://marc.theaimsgroup.com/?l=tomcat-userm=107976963131361w=2
I wasn't able to get it to work myself, but maybe you can.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I put this in my web.xml:
error-page
error-code404/error-code
location/404.jsp/location
/error-page
... and this in 404.jsp:
ErrorData ed = pageContext.getErrorData();
if (ed != null) url = ed.getRequestURI() ;
but it throws:
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
Joerg Baumgaertel wrote:
Hi all,
because often requested,
I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
You find the following documents
- How to scan a Java webapplication
http://jb2works.com/refscan/tomcat.html
- How to scan Jakarta-Tomcat full-space
java.lang.OutOfMemoryError is also thrown when java can't start up a
thread because it reached the system limit. Could that be your problem?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Jacob Kjome wrote:
At 11:47 PM 5/11/2004 -0400, you wrote:
Joerg Baumgaertel wrote:
Hi all,
because often requested,
I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
You find the following documents
- How to scan a Java webapplication
http://jb2works.com/refscan/tomcat.html
- How
I know, I ran a few hundred lynx's at a time.
Ralph Einfeldt wrote:
To your question: I don't know.
Having a delay in the jsp (or servlet) isn't enough to
enshure concurrent requests. You have to do something
on the calling site to enforce this.
If you just call lynx as in your example, lynx
Sounds like the same memory leak problem I've been having. The problem
is when new threads are created to handle concurrent connections.
Marco Pöhler wrote:
Hi,
I'm running tomcat 5.0.19 J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
really simple application, just one servlet and a few jsp
Ralph Einfeldt wrote:
That may be a bit to simple, as this is just performing one
request after the other. You may have to force concurrent
request:
Why are those message generated by a thread starting up or something?
If so I already have a jsp with a built in delay I can use to make sure
Robert Krüger wrote:
Hi,
we had the same problem (enormous memory leak which frequently made our
production system crash), downgraded to 5.0.18 and everything went back
to normal. Just yesterday a colleague of mine came to the conclusion
that it is not too unlikely that it is the problem
Put this in catalina.sh:
CATALINA_OPTS=$CATALINA_OPTS -Xmx512M;
armalai wrote:
Hi.,
I'm getting out of memory Error.
How do i know the current jvm memory?
I know the hardware memory details?
Please advise me which one is causing this error and how do i know the current
settings?
Thanks.,
Great, thanks for the info! But I already downgraded my production
machine to 4.1.18 to avoid this problem. I wish I knew how to reproduce
this on my development box so I can know for sure if this solves the
problem. Otherwise I can't justify trying this in productions.
My test to try to
Robert Hall wrote:
Joseph,
We're using Apache 1.3.27 on solaris with mod_jk2 to connect to two
JBoss/Tomcat instances
listening on separate ports. I experienced the same thing you
described, all requests going to
one of the jk2 ports.
However, if I shutdown the JBoss/Tomcat instance that was
So how do I reproduce these messages:
Mar 18, 2004 2:33:31 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 18, 2004 2:46:46 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
... which presumably are related to the memory leak?
Robert Hall wrote:
Hi,
Actually, I'm leaning towards a bug in mod_jk2 since a change in
workers2.properties resulted in everything (so far) working. The only
extra detail I had to add was explicit reference to index.jsp for both
app's.
Did you have a chance to try the config change I suggested?
Robert Hall wrote:
Hi,
No offense intended, but I have to ask:
o Does your jk2.log give any hints as to what is going on?
Nope.
o Did you try stopping the TC instance that is listening on 8009
to see if one or more of the others would respond?
No, when I have time I'll try that on my test
I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to
jk 2.0.2/tomcat 5.0.19. I'm having a horrible memory leak now and need
to restart tomcat frequently when it runs out of memory. I always had
set the max memory to 512m, now after running around 50 minutes memory
usage is
Shapira, Yoav wrote:
Hi,
Does the memory leak occur when you run tomcat standalone?
I can't run the production server in standalone, and I can't seem to hit
my test server hard enough to reproduce the problem clearly. I'll keep
trying.
Can you
point out its source e.g. by running with a
Seems strange that apache would complain about a file only tomcat should
deal with.
Chris Haines wrote:
Hello,
I am trying to start Apache with mod_jk. When I try starting apache, I
get the following error. I haven't modified the admin.xml file. If
anyone can help, I would greatly appreciated
I have multiple ip based virtual hosts, so in tomcat I configured three
seperate engines with connectors on different ports, and in the apache
VirtualHost I JkMount the worker that I configured in
worker.properties to connect on a specific port. This works fine for
mod_jk, but when I try
My tomcat rc script looks like this:
start)
echo -n Starting tomcat:
su - ${TOMCAT_USER} -c . ~/.bashrc ; CATALINA_OPTS=-Xmx512M
$TOMCAT_HOME/startup.sh
echo
;;
... but CATALINA_OPTS is not making it into startup.sh. What am I doing
wrong? I don't like
What I really want is more error messages, so I can figure out what is
going wrong with my webapps.
Bill Barker wrote:
You can get rid of the messages by setting:
request.registerRequests=false
in your jk2.properties file. However the error itself is harmless.
Joseph Shraibman [EMAIL
Oswald Campesato wrote:
Hello, Joseph:
Perhaps you can try starting with startup.bat debug and/or copying
some JSPs into webapps\ROOT or webapps\jsp-examples to see if
the problem occurs.
starting with startup.sh -debug doesn't produce any good error messages.
Copying my webapp to the
I set up tomcat 5 but when I try to view a jsp or servlet all I get is a
blank page and these unhelpful messages in catalina.out:
Feb 27, 2004 12:01:26 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:27 AM
Quick and easy way: cast to an int
Cui Xiaojing-a13339 wrote:
Hello All,
I need to format number 12345.00 to 12345, I use below code to do the format, but
the result is 12,345. Could please give some advice about how to delete the
separator. Thanks a lot.
NumberFormat nf=
I've discovered the problem is that I have a symlink to bsh-1.3b2.jar (beanshell) in
shared/lib. I don't know why that is a problem but it is. I tried both 1.3.0 and 2.0b1
and they both have the problem, but 1.2b7 does not
Joseph Shraibman wrote:
I've been running tomcat 4.1.18 on rh9
I've been running tomcat 4.1.18 on rh9 with jdk 1.4.2 for a while. Suddenly today trying
to start tomcat results in:
java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at
Even if that would cause a webapp not to load, it wouldn't keep tomcat from starting,
would it?
Filip Hanik wrote:
check your permissions on your libraries in WEB-INF/lib
did you copy them in under a different user?
Filip
-
To
Filip Hanik wrote:
actually looking at the stack trace,
looks like a tomcat classloader,
so this could be related to jar files in common/lib and server/lib
and yes, this would keep tomcat from starting :)
Filip
All of those have global read permission, and haven't changed recently. So why would
--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio. http://xis.xtenit.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
One of my classes creates a static ThreadGroup. I notice that when I update a class and
tomcat reloads that context the ThreadGroup is still around. If the ThreadGroup is still
around that means the old class is still around, which means that class loader is still
around. Why is it still
Sorry, forgot to mention: tomcat 4.1.18, jdk 1.4.1_01 on linux.
Joseph Shraibman wrote:
One of my classes creates a static ThreadGroup. I notice that when I
update a class and tomcat reloads that context the ThreadGroup is still
around. If the ThreadGroup is still around that means the old
Turner, John wrote:
Tomcat has an Alias element in server.xml. It goes under Host.
OK thanks for pointing that out.
Tomcat needs to do what it needs to do because a web app is
more than just a
directory that has content in it.
Right, but sometimes you might want to lump
Apache already supports dynamic virtual hosting. See
http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm talking about. The
problem is that when connecting apache to tomcat you can't map into a contect directly,
you only pass the request along to tomcat so somcat has to find the
Sorry, having a bad keyboard day. 'contect' should be context and 'somcat' should be tomcat.
Joseph Shraibman wrote:
Apache already supports dynamic virtual hosting. See
http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm
talking about. The problem is that when connecting apache
Turner, John wrote:
Hmmm...you lost me there. Yes, you do map to a Context directly, at least
you do with JK. That's exactly what having a JK block for /examples,
does, for example. With Apaches 'apachectl restart' or 'apachectl graceful'
you can pick up both new virtual hosts and new JkMounts
If I put the latest xerces and xalan in tomcat/common/endorsed, I get the following error
on startup. I don't get this with the xerces/xalan that comes with jdk 1.4.1. What is
causing this? What *file* is this?
Starting service Tomcat-Apache
Apache Tomcat/4.1.18-LE-jdk14
Parse Fatal Error at
trace.
Jerry wrote:
If it were me, I'd check server.xml carefully for nested comments, or an
extraneous !-- or --
Jerry
Joseph Shraibman wrote:
If I put the latest xerces and xalan in tomcat/common/endorsed, I get
the following error on startup. I don't get this with the xerces/xalan
Can tomcat do dynamic virtual hosts? I'm currently doing dynamic virtual hosts with
apache + Jserv but I don't know how to do that with tomcat.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The following is in the relase notes:
[4.1.15] FileDirContext:
allowLinking will also disable case sensitivity checks (which are
relatively similar).
What exactly does it mean when it says disable case sensitivity? Is that a windows thing?
--
To unsubscribe, e-mail:
My bean is in classes.
Cox, Charlie wrote:
is your bean in WEB-INF/classes(or lib) or in the same directory as
mail.jar?
did you review the classloading document to make sure your classses/libs are
in the correct places?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
I tried putting the javamail jar in tomcat/shared/lib, tomcat/common/lib, and in
myapp/WEB-INF/lib. I still get:
java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
at mybean.init(mybean.java:56)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Dodd Gatsos wrote:
Still using Tomcat 4.0.3, so don't know if this is valid.
I use Tomcat/lib
I tried that and that didn't work either.
Have to restart Tomcat after you place it in there though.
mail.jar
right?
Right
Don't know if you already had it working in 4.0.3 or something.
team is focusing on JK2, and ApacheConfig only works for JK,
I'm not sure they will give it much attention. Worth a shot, though.
John
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: jsps
Nevermind, I worked around it by playing with VirtualHost directives.
Now I want to create a standard conf file for including in VirtualHost directives to
enable ssl. One of the things I want to do is CustomLog logs/serveramegoeshere-log.txt
Is there any kind of macro expansion I can use?
--
I have a mod_jk.conf I include in my apache.conf
If it looks like this:
IfModule !mod_jk.c
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel warn
... I have no
Jerry Ford wrote:
With all due respect and recognition to the enormous efforts you
personally appear to have put into making Tomcat accessible, the
documentation is neither comprehensive nor adequate, for either Tomcat
or whatever is the connector du jour. There are pockets of good
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 7:36 PM
To: Tomcat Users List
Subject: Re: jsps and servlets don't work
Turner, John wrote:
Check the last error message: wc_get_worker_for_name ajp13. Your
workers.properties file has a worker
but they didn't change anything.
--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio. http://xis.xtenit.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
documented?
On Thu, 12 Dec 2002, Bill Barker wrote:
ApacheConfig is for use with mod_jk 1.x. It
doesn't work with jk2. With
jk2, you only need the 'LoadModule' statement in
httpd.conf. The rest of
the configuration is handled by the
'jk2.properties' file.
Joseph Shraibman [EMAIL
=/
worker.list=test1
worker.test1.type=ajp13
worker.test1.host=d1.selectacast.net
#worker.test1.port=8008
worker.test1.port=8009
==
Where can I find detailed information on the workers file (besides the howto) and the
autogeneration?
--
Joseph Shraibman
[EMAIL PROTECTED
, not test1.
Ah, I was wondering about that. Is there any way to get the autogenerated conf file to
have test1 instead of ajp13?
--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio. http://xis.xtenit.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
className=org.apache.catalina.valves.RemoteAddrValve
allow=real ip of the server/
--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio. http://xis.xtenit.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
But that doesn't explain why apache would be any better at that than tomcat.
James Higginbotham wrote:
That's probably the case if you were using cookies to track sessions.
The cookie spec mentions that the port is also part of the scope of a
cookie, so when you went from www.foo.com:80 to
Will apache create on connection to tomcat for each child server, or for each thread?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Turner, John wrote:
Using configure is familiar to most systems administrators.
once you find it.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/ is empty.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I have in my server.xml:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk2.so /
... which generated:
## Auto generated on Thu Dec 12 16:58:06 EST 2002##
IfModule !mod_jk.c
LoadModule jk_module
Bill Barker wrote:
One of the reasons that jk2 is a beta :-). It looks like it is trying to
jk2 is beta?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jacob Kjome wrote:
Hello Joseph,
Yeah, that is a problem. That line should be output as a relative
path, but I've never been able to figure out how to set up the
aut-generation in the Listener to do that for me without messing other
stuff up. What I do is auto-generate once, make a copy and
I finally got apache to connect to tomcat using mod_jk, but jsps and servlets don't work.
Going to a jsp just shows the source. Is having the web.xml in my conf directory enough,
or do I have to include in some other config file?
To see what is happening:
On http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html it talks about
configure scripts, but the actual source I downloaded from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/ doesn't
have configure scripts. It does have README.txt that says:
or even my own site at:
http://www.johnturner.com/howto
That said, building the Apache side of the connectors is fairly
straight-forward,
yeah, easy once you figure out you need to run the configure script in the native2
directory. Why isn't there a README in the tarball?
--
Joseph Shraibman
85 matches
Mail list logo