only see the problem when using the SSO layer is consistent with our
understanding of that bug.
Mark
On 16/02/2023 08:37, Mark Thomas wrote:
On 16/02/2023 00:42, Dan Armbrust wrote:
Are there any known regressions / open issues with 9.0.70 or 9.0.71 that could cause
something like the
Are there any known regressions / open issues with 9.0.70 or 9.0.71 that could cause
something like the below?
We encountered a very odd issue today, where after upgrading the version of spring-boot
for one of our rest microservices (and getting a newer tomcat) it stopped processing our
calls
Yep.
JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom
prevents the hang.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
On Mon, Mar 12, 2012 at 2:34 PM, Caldarale, Charles R
wrote:
>> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
>> Subject: Hanging on startup?
>
>> Startup, and it hangs on app deploy:
>
> Waiting for entropy to build up? Take a few thread dumps with jstack
Ok, I must be doing something silly... I've deployed tomcat hundreds
of times, and never had something like this happen.
Just needed to test something simple on a new system.
Grabbed tomcat 7.0.26, unzipped it.
Configured it to run with my local java:
java version "1.6.0_30"
Java(TM) SE Runti
On Thu, Aug 18, 2011 at 2:13 PM, Christopher Schultz
wrote:
> The JVM should not launch more than one AWT thread, so you should be
> okay. The only issue would be whether or not it inherits the webapp's
> context ClassLoader which would really represent a memory leak if you
> do live webapp reloa
>> (If I can't figure out how to
>> fix all my issues) I can't ship code to the customers that logs
>> "SEVERE" errors on shutdown.
>
> All the leaks should be fixable / possible to workaround.
>
> Mark
If I could update all of my dependencies... I'm guessing many would
just go away. Unfortunate
So, yesterday, I finally start working on upgrading on old application
set to a current 6 release of Tomcat.
(Sigh, behind the truck already, seeing the announcement of the next
version today bad timing by me... beside the point)
Some of my web applications are using JFreeChart to generate image
Thanks for the thoughts... few things inline
>
> 2. Does your unexpectedError.jsp use sessions? Does it have <%...@page
> session="false"%>?
No, I don't think so. I'll have to check into this.
> 3. If the response was already partially sent to the client and you
> receive an "unexpected" e
On Thu, May 27, 2010 at 12:54 PM, laredotornado wrote:
>
> You mean for me to put this at the top of my error page (500.jsp), correct?
> If so, I tried that, but still got the partially rendered page outlined in
> the Tomcat bug mentioned earlier.
>
There is no way around that. Once you have f
On Wed, May 26, 2010 at 12:26 PM, laredotornado wrote:
>
> I tried your suggestion, and sadly it didn't work.
>
> What is the difference between what the errorPage directive does and what
> the web.xml error-page clause does? - Dave
>
I don't think this is directly related, but see
https://issue
I have a webapp running in Tomcat 6.0.20.
One of my testers caused this to appear in the logs:
May 11, 2010 2:23:14 PM org.apache.jasper.runtime.JspFactoryImpl
internalGetPageContext
SEVERE: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the res
On Fri, May 7, 2010 at 9:01 AM, Karthick Ragunath
wrote:
> Some other applications using Java requires 32bit always. (Eclipse requires
> 32 bit JVM which otherwise would result
> in JVM termination error during Eclipse startup).
>
That's not true either. Once again, you need to match your eclip
On Tue, Mar 16, 2010 at 4:46 PM, Carl wrote:
> My approach is to get something (a JVM) that works and then gradually change
> until it breaks. Then, I know what is causing the problem. To date, I
> haven't been able to get a JVM that works.
>
I have had a lot of issues finding stable JVMs since
>> and what specific files do i need to reconfigure withe the new port
>> address say, 8088?
>
> conf/server.xml
>
Don't forget to change these other ports (in the same file) as well to
something non-default:
port="8005"
port="8009"
port="8443"
-
> 1. I had always used top to see memory used until I saw the system monitor
> tools in Slackware. Had not compared the two. At this moment, the system
> monitor is reporting .96GB of memory used while top and vmstat are reporting
> 3.6GB... quite a difference. From now on, top/vmstat it is. F
> Since the failures occurred before the print options were used, I guess that
> rules out any possibility of the OS getting upset at the JVM calling for
> timing information. Back to square one, where the most likely culprit is
> still the Linux OOM killer.
>
> - Chuck
Have you checked:
/va
On Tue, Feb 2, 2010 at 3:23 PM, Caldarale, Charles R
wrote:
>> From: Richard Sickler [mailto:richard.sick...@avagotech.com]
>> Subject: Re: Problem on Tomcat 6.0.20
>>
>> I removed a file and a directory named WebApplication2, and that
>> cleared up that problem. On to the next undocumented featu
Nope, but I'm not an expert with these (at all).
I use something pretty similar, the only real difference is that I
haven't turned on the CMSIncrementalMode. My apps haven't shown an
issue with long pause times, so I haven't researched/tested it yet.
Dan
On Tue, Feb 2, 2010 at 1:55 PM, Carl wr
FYI - look out for this WRT MaxNewSize and NewRatio:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862534
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apac
>
> Well, as I said, Tomcat is working much more stable now than it did before.
> However, once in a few days it still becomes unresponsive, while CPU usage
> stays incredibly low.
Unresponsive, meaning what, exactly? If the CPU is idle, but your
webapp isn't returning a response... it seems to i
Carl,
Maybe I missed it, but you still haven't clarified what you mean by
tomcat stops.
Does Tomcat do an orderly shutdown?
Does Tomcat appear to freeze (stop answering new requests)
Does the JVM hosting Tomcat crash?
Assuming you have a JVM crash issue here... you should try other JVMs
(32 bit,
>>
>> 1) - Is Tomcats handling of an error page defined in web.xml broken
>> when a response has already been committed?
> Inconsistent? Yes. Broken? Maybe.
>
>> 2) - Is there anything I can do to force the browser to a proper error
>> page after a response has been committed?
> No. Adding the erro
After content has been committed?
Is there a proper way to write an error page, so that it will work
even when the response has already been committed?
There seems to be a bug or inconsistency in how tomcat handles the error page.
In Tomcat 6.0.20, if I define my error page like this in web.xml
On the page: http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html
It talks about:
"genStringAsCharArray - Should text strings be generated as char
arrays, to improve performance in some cases? Default false."
In the web.xml of Tomcat 6.0.20, the parameter name is:
"genStrAsCharArray Shou
Thanks for all the tips. I'll have to put something together with a filter.
Just wanted to make sure there wasn't an easier way that I was missing.
Dan
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additiona
.
>
> Of course, you could simply add instrumentation to the system to detect
> that this servlet didn't do its thing, and route every request to a
> holding page.
>
> Joe
>
> -Original Message-
> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
> Sent: Thursd
If I have a servlet which fails during init() for whatever reason -
the example below takes a null pointer
public class MyServlet extends HttpServlet
{
private static final long serialVersionUID = 7997991143724219371L;
@Override
public void destroy()
{
The simplest way to do this is to learn the Timer API:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html
Then put your timer code into a new servlet that you add to your
webapp. Or add your code to an existing servlet in your webapp.
There are plenty of other open source scheduling A
> Did you write your application?
>>> there are team of 200 Engineers wrote that application so i dont know
> where the problem is
One (or more) of them made a mistake, and has left a non-daemon thread
running.
You need to find out what thread is running. One way to do this is to
get a thread du
On Thu, Apr 23, 2009 at 3:59 PM, Anthony J. Biacco
wrote:
> This is a little OT, but I'm interested to see if oracle decides to
> merge their BEA acquisition jrockit product with sun's JDK or just picks
> one of them to represent.
Hopefully they at least merge together the developers. I get the
>
> How is Tomcat meant to determine that data in the URL is a password and
> needs to be filtered?
>
>> I imagine there are all sorts of places that (rightfully) have
>> policies against storing a clear text password anywhere.
>
> The only reason you are seeing the password in the access logs appe
JVM crashes seem to be a common issue lately. We tried to move our
main apps from JRE 1.5 to 1.6 about 6 months ago, and had to give up
and revert because we couldn't find any 1.6 or early 1.7 JVM's that
were stable. They all had random crashes on hardware that runs the
same software perfectly fi
Sounds like a good enhancement request to me. It's certainly
reasonable that one should be able to ask Tomcat to never ever log a
password in clear text. In fact, it seems like that should be the
default setting.
I imagine there are all sorts of places that (rightfully) have
policies against sto
Your stack trace seems to show several things that are not fine with
your application.
First, you appear to have a DB issue:
Exception while establishing connection
com/iris/util/dbConnectionOracle.java ==
>> ORA-00020: maximum number of processes (400) exceeded
And possibly related to your DB
Something else on your OS is using more RAM that it was previously.
The JVM will only start if it can reserve a contiguous block of RAM as
large as you request.
I'd be rather surprised if you needed to go all the way down to 512
before it would start, however.
See what else is using memory on th
> If you deploy more than one
> webapp, log4j doesn't attempt to self-configure in the second or any
> subsequent webapps.
>
Just to close out this thread - no big surprise here - I found the bug
in a library that I was deploying in one of my webapps that caused
this behaviour.
Some code was exec
On Sat, Apr 4, 2009 at 9:08 PM, Caldarale, Charles R
wrote:
> I think I figured out what's going on. Tomcat 5.5 uses an unmodified
> LogFactory from commons-logging, which pokes around for logging mechanisms -
> and finds your log4j.jar inside your webapp. Tomcat 6.0, on the other hand,
> us
On Fri, Apr 3, 2009 at 8:32 PM, Caldarale, Charles R
wrote:
>> From: Caldarale, Charles R
>> Subject: RE: How to debug Error: listenerStart?
>
>> To close out this thread
>
> Or maybe not.
>
>> I've reopened bug
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=34110
>> and attached a war file
To close out this thread, I've reopened bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=34110 and attached
a war file which demonstrates the problem.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additio
On Thu, Apr 2, 2009 at 9:55 PM, Caldarale, Charles R
wrote:
>> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
>> Subject: And even further into the black magic of logging configuration
>> within tomcat...
>>
>> So, why didn't log4j try to find t
So, after my long thread to figure out the missing stack traces from a
bad listener configuration, I _thought_ I knew what I needed to
correct.
It seemed that Tomcat was trying to use log4j shipped with my webapp,
before my webapp had configured log4j.
Supplying a log4.properties file in the WEB-I
>> What would I need to do to make log4j within my webapp
>> have a temporary configuration which would log to the
>> console until the point when my webapp executes it's
>> dynamic configuration?
>
> Create a log4j.xml or log4j.properties file in WEB-INF/classes.
>
Bingo. That makes my log4j war
On Thu, Apr 2, 2009 at 1:00 PM, Caldarale, Charles R
wrote:
>> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
>> Subject: Re: How to debug Error: listenerStart?
>>
>> There is obviously some interaction going on between my webapp
>> and tomcat's log
I got a brand new copy of tomcat 5.5.25, and tested it. Some of the
provided apps, such as balancer - create entries in the localhost log
file. I used kdiff to compare the entire tomcat folder hierarchy to
my tomcat distribution, and I can't find any significant difference
that could cause my mis
> What are you using on the command line to start Tomcat? In particular, what
> is the value of the following system properties?
>
> java.util.logging.manager
> java.util.logging.config.file
>
> The default values are org.apache.juli.ClassLoaderLogManager and
> ${catalina.base}/conf/logging.prop
>>> Yup, although Chuck's example is a missing filter, not a
>>> missing listener.
>>
>> The OP's original problem *was* a missing filter:
>> http://marc.info/?l=tomcat-user&m=123862274508212&w=2
>
> I trust error messages more than I trust posters' assertions:
>
>> SEVERE: Error listenerStart
>
>
>> log4j:WARN No appenders could be found for logger
>> (org.apache.catalina.startup.TldConfig).
>> log4j:WARN Please initialize the log4j system properly.
>
> This indicates that you /have/ made changes to Tomcat's default logging
> configuration. Tomcat doesn't use log4j by default. Do you have
>
Here is the non-commented out bits of my server.xml:
My logging.properties file is exactly what came with tomcat 5.5.25.
-
To unsubscribe,
>
> Any idea what I should check, to figure out why I don't have a log
> file?
>
Correction. I have a log file - but it is always blank. Size
0. I tried the starting it up with a missing filter, and a missing
listener, and neither case gives me anything in the log file.
I haven't made any
On Wed, Apr 1, 2009 at 5:02 PM, Caldarale, Charles R
wrote:
>> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
>> Subject: Re: How to debug Error: listenerStart?
>>
>> Why doesn't tomcat log a stack trace
>
> It does, in the log associated with the
Ok, I've finally tracked down my specific problem.
When a filter is declared in the web.xml file:
requestCounter
com.foo.bar.FancyFilter
And the class com.foo.bar.FancyFilter is missing from the war file
that you deploy, Tomcat 5.5.25 prints this to the console:
INFO: Deplo
I have a filter somewhere in a webapp that has gotten broken through
my own packaging process, likely due to a missing class.
But I can't figure out how to make tomcat actually tell me what the
problem is. All that I get is the dreaded, nearly useless
SEVERE: Error listenerStart
on the console.
Is there a way to get the values of variables from the server.xml file
from a webapp running within tomcat?
Specifically, my webapp would like to know what the current value of
the Connector acceptCount.
Even more specifically, my webapp is serving pages, and answering SOAP
requests. I need to p
Well, I don't know about always. I have yet to find a 1.6 JDK from
Sun that is even close to stable. With heavy use (especially heavy
multithreaded use), we have found that all of the available 1.6 JDK's
segfault.
The latest JDK (1.6 update 10) is less than a month old - and it is a
huge change
My guesses:
Your application has bad sync locking between some threads, which is
causing one thread to block the others.
Your application has bad database access code, which allows one thread
to block others while waiting on the DB.
Your application is disk bound, and the single long process is
On Mon, Jul 7, 2008 at 8:43 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have my application in production for a month now. I've some problem of
> memory leak that force me to restart TC each few days.
Or, you know, you could fix the actual problem - the memory leak.
Go get you
What kind of work is Tomcat doing for each request that WAPT sends in?
For example, if you were doing something that had to go back to a
database, and you had a bad sync block in your code somewhere, or
didn't have enough connections in your DB pool, that could cause it to
behave like it is single
To answer my own question, it looks like jfreechart.
http://sourceforge.net/projects/jfreechart
On Mon, Feb 25, 2008 at 8:50 AM, Dan Armbrust
<[EMAIL PROTECTED]> wrote:
> Does anyone happen to know what package Lamda Probe uses to create its
> graphs? They look really nice.
> > If there are any other legitimate reasons - such as - you needed to
> > fix some bugs in the code that weren't being addressed in dbcp, then
> > you should just put the code in your source control system.
>
> If this was the problem, the right way to fix it would be to go and help
> out DB
> Did it occur to you that no-one would go to all this trouble unless there
> was a good reason for the re-factoring? Apparently not. If your tone had
> been more reasonable I would have taken the time to explain the reasoning.
> Since it wasn't - STFW.
It was a sarcastic rant, because I was f
So, I have an issue with tomcat's database connection pool. Namely,
my connections keep getting closed, instead of reused.
I figured that the easiest way to figure out what was going wrong was
to put this in my debugger, so I could follow the close() call which
should release the db connection ba
I need to correct this point:
>
> Now, I think that is happening because struts is using
> commons-digester to read its xml config files, and commons-digester
> includes log4j logging.
>
commons-digester actually uses commons-logging, not log4j.
So, what can I do to find out more how the digest
Allright, the deeper I dig, the more confused I get.
I think there is a bug here, bug I still can't pinpoint how it happens.
Let's say I'm deploying 2 web applications - both use struts, and
therefor have dependencies on commons-digester.
App A starts up. A includes a log4j jar file. As A star
On Jan 25, 2008 9:28 PM, Konstantin Kolinko <[EMAIL PROTECTED]> wrote:
> What exactly tomcat, log4j versions are you using?
Tomcat 5.5.23
Log4j 1.2.15
> Do those warnings affect the rest of your application?
No, but my customers notice them and file issues
> Is you
> configuration read a
We have an issue in log4j where the tomcat shutdown sequence is
causing null pointers.
Could someone take a look at this bug, and provide input if possible?
http://issues.apache.org/bugzilla/show_bug.cgi?id=43867
Thanks
-
To st
This seems to be a fairly common problem, but doesn't appear to have a
common solution. Any help appriciated...
When I launch a webapp, which includes log4j, I get the following warning:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Plea
On Dec 14, 2007 4:17 PM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Dan Armbrust [mailto:[EMAIL PROTECTED]
> > Subject: Re: directory listings per webapp
> >
> > Thanks a lot. I'll see if I can get access to
> > http://wiki.apache.org/tomca
> Probably not. You specified a docBase of /dir/foo for the foo webapp,
> but appear to have been editing webapps/foo/WEB-INF/web.xml, which is
> not where you've told Tomcat the app is deployed. It's extremely bad
> practice to have a directory under the appBase that's the same as
> one for an
Looks like you have an invalid / missing server.xml file.
Dan
On Dec 12, 2007 3:35 AM, marsulein <[EMAIL PROTECTED]> wrote:
>
> System configuration is as follow:
> OS : Windows 2003 Server
> Tomcat: 4.1.36
> JSDK: 1.4.2.13
>
> Attached are the error logs generated by tomcat.
> http://www.nabble.
les R
<[EMAIL PROTECTED]> wrote:
> > From: Dan Armbrust [mailto:[EMAIL PROTECTED]
> > Subject: directory listings per webapp
> >
> >
> >
>
> Broken record: take out the path attribute; it's not allowed (but it's
> not this problem).
>
> >
There is a typo in the below.
This
> tomcat/server/webapps/billing/WEB-INF/web.xml
Should have been
tomcat/server/webapps/foo/WEB-INF/web.xml
So thats not the problem.
Dan
On Dec 14, 2007 3:10 PM, Dan Armbrust <[EMAIL PROTECTED]> wrote:
> I want to create a webapp that ju
I want to create a webapp that just lists the content of a directory -
but I don't want to turn on directory listing globally.
I've seen lots of people say it can be done, just do but I've yet
to find a working example. Can someone tell me what I'm missing here?
I have a file:
tomcat/conf/
Finally - I understand most of what is wrong! I finally got access to
the system again, and after pulling off the debug log from the service
launcher, things became clear.
It turns out that on this system, the command that was actually being
run to register the service was:
%TOMCAT_HOME%\bin\tom
jvm.cfg contains the following:
-client KNOWN
-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERROR
I don't think that there is a JAVA_OPTS variable set, but I will
verify that on the problem machine.
Thanks,
Dan
On 10/26/00, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
I am using this version of java:
C:\NetProvision\jre\bin>java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)
The jvm.dll version that I am using reports
File version: 5.0.70.3
Full
I have a difficult but severe problem with the tomcat service launcher
on windows server 2003.
Our application installs itself, tomcat, and a jvm, and then runs a
bat file which registers the tomcat server, using our provided jvm.
I _know_ this code works fine almost everywhere - it has been in u
Actually, you have no idea how much your code actually increased it.
You just think it increased 50%, because that is what the OS sees.
If you were using 190 MB of memory before, the JVM may have left your
system usage at 200 MB.
Then, when your app bumps the memory up to 201 MB, the JVM needs to
Pease add a ex.printStackTrace() call to your exception catch block,
and then post the results. That will give more information as to what
went wrong.
You may need to take this question to the postgres mailing lists.
Dan
On 9/5/07, Chris Baty <[EMAIL PROTECTED]> wrote:
> I'm not sure. The code
A simple cron job that points to a URL using lynx, and greps the
output for what it should see will do the trick...
Dan
On 8/20/07, Kim Albee <[EMAIL PROTECTED]> wrote:
> Hello --
>
> We have a load balanced situation, and we have a JSP that runs and checks
> our application to ensure it's up and
That was the next thing I looked into after I solved this bug. I
"fixed" it by commenting out the line in
the server.xml file.
My take on the native APR stuff (which is likely completely wrong
since it consists of what I learned in about a 2 minute skim of some
documentation) was that it was rea
When I was upgrading tomcat, I had a jar file hang around in source
control that shouldn't have been there.
I had both commons-modeler.jar and commons-modeler-2.0.jar in my
server lib folder.
All better now,
Thanks,
Dan
On 8/14/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Dan-
>
> did you ch
I just upgraded from 5.5.9 to 5.5.23, and now, when I shut down
tomcat, I get these errors.
Any idea whats going on? Looks like I have an out of date jar file on
the classpath - but as far as I know, these are tomcat only jar
files...
Thanks
INFO: Server startup in 8284 ms
Aug 14, 2007 12:30:
83 matches
Mail list logo