Hi
> > I am not sure that this related, be we were having issues after
> > updating from 1.8.0_31 to 1.8.0_72 with certificates signed by
> > root-cas that have a md5 signature. While the CA signature in the CA
> > certificate does not provide any security, a bug in the jre rejected
> > the
Hi
> With jdk 1.8.0.45 our ldap communication is giving results. As soon as we
> change tomcat to use jdk1.8.0_51, I am getting below
> exception. I am not sure security changes in jdk 1.8.0_51 preventing the ldap
> certificate loaded in cacerts in java not communicating
> properly to our ldap
8.0.26
> -Ursprüngliche Nachricht-
> Von: Mark Thomas [mailto:ma...@apache.org]
> Gesendet: Montag, 18. Juli 2016 13:37
> An: Tomcat Users List <users@tomcat.apache.org>
> Betreff: Re: SocketTimeoutException in CoyoteInputStream
>
> On 18 July 2016 1
Hi
I am getting the following exception:
2016-07-18 07:46:52.667 /http/httpmodule WARN null - error during upload
| java.net.SocketTimeoutException
| at
org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:202)
| at
Hi
> > Here, the log. I am quite sure how to go about troubleshooting it.
> > Any help is greatly appreciated.
> The application has a memory leak. You need to get it fixed.
> > catalina.out.prob:SEVERE: The web application [] appears to have
> > started a thread named
> >
Hi
I just got the following NPE in tomcat:
java.lang.NullPointerException
at org.apache.tomcat.websocket.Util.getGenericType(Util.java:217)
at org.apache.tomcat.websocket.Util.getMessageType(Util.java:171)
at
Hi
> It is a dirty Tomcat specific trick that will only work as long as the code
> is the way it is but if you throw a ClientAbortException wrapped
> in a ServletException you shouldn't see that log message.
Thanks a lot, this was just what I was looking for.
Regards,
Steffen
Hi
> throw new ServletException();
That was the difference. I threw a IllegalStateException(), so tomcat sent
"0\r\n".
I changed my code to throw a ServletException() and now it works.
Thanks for that.
One very little thing left: Is there a way to suppress the logged exception:
Jun 03, 2016
Hi
> > Yes, we thought about that. However it still leaves the problem of a
> > lot of storage on the server that is used for no reason and increasing
> > the time to download the backup..
> So it's better to buffer the huge download in memory instead of on the disk?
> Maybe I don't understand
> > That's another story.
> > I tried that. And the internet explorer as well as curl report an error, if
> > the download stops without the ending 0\r\n.
> >
> > But I had to set "Connection: close" and "Transfer-Encoding: chunked"
> > myself and encode the chunk headers myself.
> > If I leave
Hi
> I believe that, while the HTTP specification supports what you want to do,
> neither servers nor clients support it. For example, you can
> use "trailers" (headers end the end of the response) to tell the client what
> happened, but I suspect that no client will actually read
> them or
Hi
> We had a similar problem. We just added a "preparation" step before the
> actual download.
>
> 1. User clicks on "request download" link 2. jQuery sends a request to
> servlet and instructs it to prepare the download 3. Meanwhile
> the request download link has been changed with
Hi
I am streaming a huge file from a servlet to the browser.
It can easily be multiple gigabytes.
Currently the data is prepared on the server, stored in a file and then sent to
the client with a "Content-Disposition: attachment" header, so the browser
handles it as a download. After the
Hi
> > Which means I have to either buffer all incoming messages until I am
> > ready to process them (might occupy lots of memory) or I have to drop
> > them. Both is not really ideal.
> I'm largely ignorant of the asynchronous world, but I do have a question
> about what you're asking. Are
terminator) or by closing the connection (inbound only)
after the data. However, even if the inbound connection is closed, the response
should still be sent to the client, so in that case the client even expects
some answer after he sent FIN...
-Ursprüngliche Nachricht-
Von: Steffen Heil
Hi
Is there a way to tell tomcat to stop receiving data for a certain
websocket?
(Not to close it, but not to read from inputstream for some time.)
Sorry, no.
The best you can do is a no-op branch in the message handler.
Which means I have to either buffer all incoming messages until I
Hi
The equivalent code for NIO is in
org.apache.coyote.http11.InternalNioOutputBuffer
Thanks for the reference. I took a short look at it.
As soon as I have a little time left, I will analyze it in more depth, as I am
very interested in NIO...
For now the assertion that write are indeed
Hi
Make sure you are using the latest 8.0.26 release. There have been some fixes
around async dispatch. If you still see the issue then
we'll need a test case (as simple as possible) that reproduces the issue for
us to investigate.
I just upgraded to 8.0.26. But I see the same exception
a lot of guessing about the interactions
between the 3 different callbacks.
Is there any documentation on how they interact?
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Steffen Heil (Mailinglisten) [mailto:li...@steffen-heil.de]
Gesendet: Mittwoch, 26. August 2015 10:04
Hi
Is there a way to tell tomcat to stop receiving data for a certain websocket?
(Not to close it, but not to read from inputstream for some time.)
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
When using async servlets with timeout set to 0, tomcat seems not to detect, if
the client closes the connection.
At least the servlet listener is not notified.
I expected AsyncListener.onComplete or AsyncListener.onError or
AsyncListener.onTimeout, but none of these are called.
The only
Hi
I am using servlets with startAsync to be able to read and write asynchronously.
However from time to time the following is logged:
Aug 25, 2015 5:52:32 PM org.apache.catalina.connector.CoyoteAdapter
asyncDispatch
SCHWERWIEGEND: Exception while processing an asynchronous request
Hi
Thanks for assuring me, that it really is asynchronous. That was a blocker for
us.
archive? I'm guessing you mean achieve.
Yes, I did. Sorry, not a native English speaker...
No, it will buffer it all in the SocketWrapper. You won't get another
notification until the buffered data
Hi
I am investigating, how I can archive asynchronous writes with tomcat.
For servlets I came up with code like this:
final AsyncContext context = request.startAsync();
final ServletInputStream input = request.getInputStream();
final ServletOutputStream output =
Hi
I have several servlets with mappings such as
/a/*
/b/*
/c/*
And so on.
One of these mappings was for the old Tomcat 7.0.27 websocket implementation:
/ws/*
That worked.
Now, with the new JSR version in Tomcat 8, I cannot get this to work.
The problem is, that all of the following
Hi
My tomcat installation offers pages through https only. So when accessing these
pages, an ssl connection is established.
Later on, a user may decide to log in, hence hitting a page, that requires
client certificates, and the browser pops up a selection dialog for a
certificate.
Once
Hi
I am creating several components for my web application in java code instead of
the xml files.
For this I am using a privileged servlet that (besides other things) creates a
Connector and a Realm.
That's working fine.
As I can do context.setRealm(...) I can use a Realm that is loaded in
Hi
Okay, I must have overlooked the keystoreProvider attribute completely.
Sorry for that and thanks a lot for the hint.
However that only solved the loading part of the problem.
The certificate is still unusable.
When I try to connect, the browser reports an error.
I set javax.net.debug=all
Hi
I am using tomcat with the NIO connector, so I load the ssl certificate and
private key from a keystore in pkcs12 format.
This works fine using RSA.
Now I want to switch to a certificate using ECC and that EC is not supported by
the JRE. It IS however supported by bouncycastle.
In my own
Hi
I think this should be discussed on the users' list. I'm cross-posting this
message one time for that purpose. See below.
Sorry, as I assumed that in a state where tomcat does not start connectors
defined in server.xml it should also not start other connectors, I regarded
this as a bug.
Hi
I looked into the source of tomcat 7 (7.0.x trunk) to extend it to support
wildcard aliases (such as *.example.com).
I found the class org.apache.tomcat.util.http.mapper.Mapper.
Looking at it, I found a small bug (lines 210-213):
if (pos 0) {
log.error(No host found: +
Hi
I need to start and stop a connector inside a servlet.
That works with the following code:
final org.apache.catalina.connector.Connector nioConnector =
new org.apache.catalina.connector.Connector(
org.apache.coyote.http11.Http11NioProtocol );
Sorry, I already posted this question with the wrong subject.
(I started the mail earlier, when I had another problem...)
Hi
I need to start and stop a connector inside a servlet.
That works with the following code:
final
Hi
Currently I need to find a way to replace the ssl certificate used by a
(nio) connector at runtime.
It also needs to be done by the (only) webapp.
Is there a way to do this?
Soon we will need a way to change the ip address a connector is listening
on.
Both could be solved by removing a
Hi
I cannot reproduce it, but I've seen the following error in my logs a few
times now:
SEVERE: Error reading request, ignored
java.lang.NullPointerException
at
org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java
:193)
at
Hi
What should happen when catalina.out is deleted? Please, I need to
resolve this question.
So far as I know it's just a logfile and all that happens is that you
lost the log output. The file should be created on the next start of
the server.
Even when the server is running and the
Hi
See if this fixes if for you:
http://people.apache.org/~markt/dev/tomcat-7/v7.0.33-r1397089/apache-
tomcat-7.0.33-r1397089.tar.gz
Preliminary tests look promising.
Everything worked (using a few single click tests so far).
Thanks!
This is not an official release. Use it at your own
Hi
We have a web application that makes more and more use of websockets.
(In fact we emulate websockets with comet servlets for older browsers and
want to use real websockets for current ones.)
We implemented our websocket support using tomcat 7.0.30 and a servlet
extending
Hi
Check to see if the WebSocket examples that ship with Tomcat work with
your configuration. If they don't compare the differences between the
default configuration and you configuration to and find the change that
breaks stuff.
First, thanks for the reply.
I downloaded tomcat 7.0.32
Hi
I just took a look at this. The examples work out of the box for HTTPS
with
BIO but not with NIO. This looks like a Tomcat bug at this point.
I'll take a look.
What would I need to do to switch to BIO for now?
And does Comet work with BIO?
Regards,
Steffen
smime.p7s
Description:
Hi
I have a server with several websocket connections.
(Or at least I will have at some time, see thread about ssl problems...)
Now just as in the chat example, I need to send some data from time to time
so some (but not neccessarily all) of those connections.
Now, what happens if one of the
Hi
Short question: How can I prevent tomcat to receive the complete post
data?
Stop sending the data before it's all been sent.
Sorry, I don't understand what you mean.
If you mean to send only small parts and only those that are wanted, that's
nothing I can do.
I need to support the
Hi
Actually, I'm not entirely correct and I am now remembering this has been
discussed before on either this list or the tomcat-dev list.
Do you remember anything else about that thread? Something that might help
me find it... ?
Are you throwing an exception, or closing the inputstream?
I
Hi
Short question: How can I prevent tomcat to receive the complete post data?
Long question:
I have a servlet that uses apache commons fileupload to process incoming
uploads using the streaming api.
Short version of the code:
InputStream inputStream;
try {
ServletFileUpload upload =
Hi
If you have only 1 ip address then you might have a problem. The problem
with name based virtual hosts under https/ssl is that ssl handshake (which
involves server sending a certificate for some
domain) happens after tcp/ip connection is established - before the HOST
part of the http
Hi
Perhaps I don't understand, but I agree with Pid's suggestion: just use
defaultHost -- that's what it's for, right?
Yes, if you have only one.
However we have the following setup:
App1: domain1.tld, www.domain1.tld
App2: domain2.tld, www.domain2.tld, additional.domain2.tld
App3:
Hi
We have a web application which usually runs on a certain host all alone -
it is the only context for that host.
However, it allows to use different hostnames and therefore we use aliases
in our server.xml per host.
Now more and more users of those application want to use more subdomains and
Hi
I am sorry, I am asking something not really related to tomcat here.
While this may sound like a beginners question, I think I really what I am
doing in java, but this time I suspect I have found a scenario where the
sun/oracle VM exposes a bug with pure String handling.
So anyone who can
could be of any help solving this mystery, I will
provide any information needed.
Regards,
Steffen
On Mon, Aug 30, 2010 at 3:38 PM, Steffen Heil li...@steffen-heil.de
wrote:
Hi
I am sorry, I am asking something not really related to tomcat here.
While this may sound like a beginners
Hi
Which 6u21? Just to be confusing, Sun/Oracle has released two 6u21
levels:
b06 and b07.
java version 1.6.0_21
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
So I should update, right?
Hi
From your original post
The exception is only thrown under 64bit Linux Server-VM, within tomcat.
It
is neither thrown under 64bit Windows, nor on the very same Linux VM as
standalone testcase, nor when a debugger is remotely attached.
Sounds like you're saying it only happens within
: Steffen Heil [mailto:li...@steffen-heil.de]
Gesendet: Dienstag, 31. August 2010 01:46
An: 'Tomcat Users List'
Betreff: AW: OFFTOPIC: Java String problem - possible VM bug
Hi
Which 6u21? Just to be confusing, Sun/Oracle has released two 6u21
levels:
b06 and b07.
java version
Hi
You're right, it doesn't, at least on Windows.
Just verified that:
r...@www:/opt/java/jdk1.6.0_21# ./bin/java -server -version
java version 1.6.0_21
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Hi
I just read that reply and noticed that I have the same fault in my code.
How can I measure the length of the utf8-Encoding?
The only way I can think of is to convert the String to byte[] and the take
its length. However at that point it does not make any sense to use a
writer, it would be
You are using the wrong util (at least in a wrong way).
md5 -s apache-tomcat-6.0.26.zip
MD5 (apache-tomcat-6.0.26.zip) = d0892b5662287d18c06b167c4bba249d
This command seems to hash the argument instead of the file.
This IS the hash of the string.
Try
md5sum apache-tomcat-6.0.26.zip
Regards,
Hi
Assuming you need to redirect everything except /index.html, then the
following will probably work:
servlet-mapping
servlet-namedefault/servlet-name
url-pattern/index.html/url-pattern
/servlet-mapping
servlet-mapping
Hi
Looks fine, no direct pointers...
Only one strange thing:
root 13234 0.1 2.5 4484708 412636 pts/0 Sl Mar30 1:12
/usr/local/jdk/bin/java
-Djava.util.logging.config.file=/usr/local/jakarta/tomcat/conf/logging.prope
rties
Hi
Can you post:
- `uname -a` inside both your dom0 as well as your domU
- the config file for your domU
- `ps aux | grep java` inside your domU
- `free` inside your domU
- `xm list` inside your dom0
Maybe there will be hints to help you.
I am running lots of tomcats in domUs (actually all
And maybe `xm info` in the dom0.
-Ursprüngliche Nachricht-
Von: Steffen Heil [mailto:li...@steffen-heil.de]
Gesendet: Mittwoch, 31. März 2010 00:12
An: 'Tomcat Users List'
Betreff: AW: Virtualization (Xen, vmware) + Tomcat
Hi
Can you post:
- `uname -a` inside both your dom0 as well
Hi
I am thinking about a strategy to iterate over all running threads and
interrupt (and if absolutely necessary stop) all threads started by a
certain classloader (not sure if it is possible, but I suspect so -
might
require instrumention though.)
Tomcat can already do this.
Great.
Hi
How does tomcat unload classes?
It doesn't, at least not directly. Tomcat simply eliminates all
references to the classes; the actual unloading is done by GC at some point
in the future.
Is there even a way in java to do this?
Just the above. But making the classes unreachable should
instrumention though.)
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Gesendet: Sonntag, 28. März 2010 16:39
An: Tomcat Users List
Betreff: RE: Shutdown hook for correctly unloading drivers
From: Steffen Heil [mailto:li
Hi
I would like to know, if there is a shutdown-hook for Tomcat
available. Or what the prefered way is, to correctly unload drivers
like JDBC drivers.
Tomcat has unloaded the driver. That won't be causing your memory leak.
How does tomcat unload classes?
Some (especially some pool
While this may be an unsupported version of Tomcat, version support is not
an issue for us here.
Support is not an issue for you, still you are asking for support?
smime.p7s
Description: S/MIME cryptographic signature
That's another discussion, but it could really make sense, if you use a
connector bound to a non-public interface (or even localhost) just for
administration.
Which is what the RemoteAddrValve is for.
Yes, I know.
Still some people might prefer complete separation (instead of hiding) and
Hi
As Pid pointed out, this doesn't work: the scope of the manager webapp is
the Host it's deployed under.
I didn't realize that part of his last line...
The whole idea smacks of security through obscurity - which means you've
accomplished nothing.
That's another discussion, but it could
Hi
Is it possible to set the port for tomcat manager to 8080 and root port
80???
Yes.
You need to define TWO service / nodes, each with its own connector /
(using different ports) an its own engine /, each with its own host /,
one with the manager as context /, one with the other web
Hi
I know (from this list) that there is work going on for tomcat7.
However it is not even listed on the homepage as alpha/beta.
Can someone comment on the status of development for tomcat 7 and some
propable timeframe (in years or months) for a beta or stable version?
Note: I don't expect
Hi
I am using a ConcurrentHashMap on event.getHttpServletRequest() and this
works quite well.
- I am not sure, if this is by occasion or by design though.
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Animesh Sonkar [mailto:akson...@gmail.com]
Gesendet: Montag, 15. März 2010 15:30
Hi
I'm not using XP, but a Unix server OS, and my domains are radically
different - so the wildcard cert won't work either. sigh
This is not about the OS the tomcat is running on, but about the OS the
client browser is using...
There are certificates with multiple names (even radically
Hi
So, static members are stored outside the heap? Where are they stored?
PermGen?
For sure, no.
ALL persistent java objects are on the heap. With optimization some very short
living objects may reside on the stack only.
References to static objects ARE probably stored in PermGen, but the
to write sample applications against this, it turned out to
be very complex programming.
You can check out that branch and build it and see if its something we
should still pursue
Filip
On 01/18/2010 09:06 AM, Steffen Heil wrote:
Hi
I am using comet connections for some time now in a server
Hi
I am using comet connections for some time now in a server push manner:
Whenever the server needs to inform the client about some event, it sends a
packet to the client and waits for a reply in the same connection.
As soon, as a READ event is triggered, that reply is read and the next
message
Hi
I need to setup tomcat to use https certificates for client authentication.
Does anyone have a working example for this?
Which certificates does tomcat accept in that case?
Which way can be used by the appliaction to detect which certificate was
used?
Regards,
Steffen
Hi
Once a year I spend some days trying to figure out, how to used embedded
tomcat.
I didn't find a working (real live) example so far.
Can anyone help?
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
Good afternoon. My company, Centocor, is in the process of upgrading its
operating System from Windows 2000 to XP/Vista and its Office 2000 to
Office 2007. They have installed on, I'm not sure how many, some computers
Apache Tomcat, version 5.5. Please answer the following questions at
Hi
The method yielding the problem is the following one:
private static PageLifecycleFactory getDefaultInstance()
{
if (defaultInstance == null)
{
defaultInstance = new DefaultStrutsPageLifecycleFactory();
}
return defaultInstance;
}
Make
Hi
If you are on linux, do the following:
killall -3 java
Then look into catalina.out.
It will print all stack traces, including monitors being hold and waited for.
Regards,
Steffen
-Original Message-
From: Fredrik Tolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01,
Hi
Sorry to ask again, but this is a common feature that I
cannot find any
documentation for...
I think the answer is google like hell, that what we ended up
doing a long while ago...
Its not that no one uses it, its everywhere... like inside
every application server out there. But
Hi
Sorry to ask again, but this is a common feature that I cannot find any
documentation for...
Is there really no documentation for tomcat embedded nor anyone who uses it?
Regards,
Steffen
-Original Message-
From: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15
Hi
I am searching for some documentation about tomcat embedded.
I am trying to convert a very simple setup (configuration below) to java
code, not using any xml file.
Any link, hint, etc. would be helpful.
Could someone give me a hint?
Regards,
Steffen
=== server.xml
Hi
I would suggest investigating several different MUAs and
deciding which one best balances the capability you need with
the pain of configuring it. Properly setting up an MUA,
*any* MUA, is not simple.
I agree with this, if you replace MUA with MTA...
However, my personal preference
Hi
I am searching for comet clients for java, perl and C.
(I know, this is basically the wrong list, but I expect to find people here
who had the same problem and maybe solutions...)
In Java HTTPClient, which is my favorite http client for java doesn't seem
to support tranfer-encoding: chunked
Hi
This symptom occured only after their host suspended their
account ...
They propably changed the configuration thatfor.
Are they sure, the configuration is the same again?
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
That's the way You should go:
http://www.linux.org.mt/article/tomcat-ports
I totally disagree.
First, it would surely be best to update to 6.0 and run it using jsvc
However, let's look at the solution in the link above.
1. The Apache solution. (Which should be called the httpd
Hi
First, 5.5.9 is definitly outdated. Update.
[This might help.]
Second, if tomcat is not reaction to kill -9, then it's you VM or even the
OS that has a problem.
Javacode can never to anything against kill -9, which is only handled by the
OS.
[This is only about symptoms.]
Regards,
Steffen
Hi
Description :
right after system(tomcat) is started, the top command show
that tomcat process will use 210M memory, the heap size
(using Jprofiler) is 58m/20m(total/used). there is a 150M gap
between total process memory size and java heap size.
There needs to be some memory for the
Hi
I downloaded Wireshark and I think you are absolutely right.
The packets are not even reaching my machine in this situation.
Something in between is stopping them.
So this is not a Tomcat question at all.
Can you offer me any suggestions as to how I can track down
the problem?
My
Hi
The URL of my servlet is
http://www.noveleditions.com/gaaradio/servlet/GAARadioServlet.
My servlet does read from the input stream of the http
servet request, and doesn't use FileUploadBase directly. The
servlet lives in a webapp directory called gaaradio. The
servlet mapping is set
Hi
Apparently the reason Apache rejects this request is that
there is a Content Length check for -1 in the FileUploadBase
class.
BTW, this makes me think about your setup. Do you have apache in front of
tomcat?
Then try tomcat standalone first.
Regards,
Steffen
smime.p7s
Description:
Hi
I currently have PWS running in '98se with ASP pages.
I don't expect to expand the web pages.
These two sentences make me think the following:
PWS is basically nothing different than IIS, but compiled for Windows 98.
As Windows XP comes with IIS this is propably the best chiose for you.
Hi
Sorry, but 5 answers of the kind RTFM are simply not nice.
It's just a sentence, so here it goes:
If you use
java -Djava.security.manager -Djava.security.policy==someURL SomeApp
(note the double equals) then just the specified policy file will be used;
all the ones indicated in the
Hi
2) User places our clean database file in the recommended
location on the server machine. i.e c\databse\ourfile.gdb
A off-topic side note on this:
The c and the backslashes suggest you are using windows.
The gdb extension suggest you are using firebird or interbase.
My recommendation:
)
Sorry and regard,
Steffen
-Original Message-
From: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 23, 2006 3:27 AM
To: 'Tomcat Users List'
Subject: Tomcat 5.5.17 has max 40 KB / sec
Hi
I use tomcat 5.5.17 and want to upload files. As this was
*very* slow
Hi
I use tomcat 5.5.17 and want to upload files. As this was *very* slow in
some cases, I wrote a benchmark servlet. Code is below.
I get the following statistics:
1. Running server on debian linux it accepts about 8.5 MB / sec. (Could
slowed down by VM overhead.)
2. Running server on windows xp
95 matches
Mail list logo