Hi Martin,
I have the same implementation as a servlet please find the servlet code i
used blow.
public class CometServlet extends HttpServlet implements CometProcessor {
protected ArrayList connections = new
ArrayList();
protected MessageSender messageSender = null;
public void i
Hi
I have an issue whereby on a windows installation of Tomcat; I have a
mysterious seflt signed certificate displayed within the browser.
Despite the fact that I have created a new keystore and imported the
relevant root certs and SSL cert and then redirected server.xml to point
to the keystore
Redirect prefix
With redirect-prefix, instead of executing baz action's execute() method (by
default it isn't overriden in struts.xml to be something else), it will get
redirected to, in this case to www.google.com. Internally it uses
ServletRedirectResult to do the task.
str
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ashoknan,
On 5/6/2009 5:43 PM, ashoknan wrote:
> This app was running fine in Weblogic but after migrating to Tomcat
> 6+ DBCP we are seeing the below exception.
Which version of TC 6 are you using? Are you using the stock DBCP or
Filip's new-fangled
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gregor,
On 5/6/2009 2:56 PM, Gregor Schneider wrote:
> I've suggested a patch to issues.apache.org which might be helpful if
> Sid wants to implement his own Valve.
>
> My patch is a new valve, which diverts the call to a pre-defined URL
> if j_secur
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Guojun,
On 5/6/2009 3:05 PM, Guojun Zhu wrote:
> We had a small web application on tomcat 5.5. We use tomcat realm
> (MD5 digest) with the form-based login. I have a few questions on
> this.
>
> 1. When we use http, does the form-based login page
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
J,
On 5/6/2009 1:20 PM, J Channel wrote:
> Hi.
> My tomcat periodically generate pages with links like
> /image/hotel3455.jpg;jsessionid=0D42C72326D97D8E32C950562B8DDA46
> And send me cookie with JSESSIONID even for images request
> http://mysite.com/
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jacob,
On 5/6/2009 3:00 AM, Jacob Bergöö wrote:
> final Resource resource = iterator.next();
> final Context cx =
> ContextFactory.getGlobal().enterContext();
> final StringBuilder stringBuil
> From: Jack, Brandy [mailto:bj...@quiktrip.com]
> Subject: RE: Weekly restart of Tomcat service
>
> The tomcat version seems to be 5.5.26.
> It is running on Windows Server 2003 SP2.
JVM version?
> Can I get a thread dump from the command line on the server?
Yes, if you're running on a 1.5 or
We are getting below exception in production randomly..Using Spring(2.5) JDBC
for all our DB related functionality.We don't handle any DB resources
directly.everything thru Spring JDBC template. This app was running fine in
Weblogic but after migrating to Tomcat 6+ DBCP we are seeing the below
exc
Following are the versions of software I have installed on Windows2003 Server
SP2
Tomcat-6.0.18
Java - Version 6 Update 13
IIS - 6.0
Tomcat Connector - 1.2.28
I have done the configuration consulting the tomcat site.Here is how
isapi_redirect.properties looks like:
extension_uri=/jakarta/isapi_r
Sorry, I'm new to this.
The tomcat version seems to be 5.5.26.
It is running on Windows Server 2003 SP2.
Can I get a thread dump from the command line on the server?
Brandy Jack
I/S Dept
Database Management
ofc: (918) 615-7743
cel: (918) 527-4027
-Original Message-
From: Caldarale, Cha
> From: Jack, Brandy [mailto:bj...@quiktrip.com]
> Subject: RE: Weekly restart of Tomcat service
>
> If we don't restart, the users cannot access the application.
If you can reproduce the problem in a test environment, that would help.
Regardless, take a thread dump of Tomcat when the situation
On Wed, May 6, 2009 at 1:52 PM, Jack, Brandy wrote:
> If we don't restart, the users cannot access the application.
They get a 404, or ___?
> It is java based (I think) and they blame it on the SQL server (of
> course) which is an entirely different server.
If I were you I'd install Lambda
AJAX requests would each be treated as separate requests - and (unless you are
using sticky sessions) they could get routed to any node. They could also fire
off independently within the code javascript code on the page - depending on
how they are coded.
--
Robin D. Wilson
Director of Web Devel
Interesting Things are happening with my Tomcat.
Points to Note:
1. I am installing tomcat version 6.x and than running it by clicking
startup.bat file and it is running fine as when I check in browser typing
http://localhost:8080/ it shows me the Apache Foundation Welcome pages
sayi
If we don't restart, the users cannot access the application.
It is java based (I think) and they blame it on the SQL server (of
course) which is an entirely different server.
I am looking in the tomcat log files from days past.
But I'm not sure which log files contain the errors I should be looki
On Wed, May 6, 2009 at 1:35 PM, Jack, Brandy wrote:
>
> We currently have a 3rd party application that isn't stable and we have
> to restart Tomcat at least once a week to keep the application running.
>
> We have nagged the 3rd party vendor so much about other application
> fixes that asking them
We currently have a 3rd party application that isn't stable and we have
to restart Tomcat at least once a week to keep the application running.
We have nagged the 3rd party vendor so much about other application
fixes that asking them to fix this would require some information and
statistics that
Caldarale, Charles R wrote:
From: lightbulb432 [mailto:veerukrish...@hotmail.com]
Subject: RE: Cluster session sync question (from documentation)
Request 1 goes to node 1. Am I correct in saying that as long
as Request 2 reaches node 2 before the session from node 1 has
fully replicated over, th
> From: lightbulb432 [mailto:veerukrish...@hotmail.com]
> Subject: RE: Cluster session sync question (from documentation)
>
> Are AJAX requests treated any differently from regular
> requests, whereby multiple AJAX requests from one page
> would somehow always be routed to one node even in the
>
Hi,
We had a small web application on tomcat 5.5. We use tomcat realm
(MD5 digest) with the form-based login. I have a few questions on
this.
1. When we use http, does the form-based login page send the username
and password plainly or in the digested form?
2. We set up the ssl in 8443 port
I just thought of something with regards to multiple requests from a given
page - let's assume the browser doesn't generate multiple requests for
dynamic content by way of frames or images. Are AJAX requests treated any
differently from regular requests, whereby multiple AJAX requests from one
pag
I've suggested a patch to issues.apache.org which might be helpful if
Sid wants to implement his own Valve.
My patch is a new valve, which diverts the call to a pre-defined URL
if j_security_check is called (I had to circumvent the fact that after
j_security_check Tomcat is always forwarding to th
> From: lightbulb432 [mailto:veerukrish...@hotmail.com]
> Subject: RE: Cluster session sync question (from documentation)
>
> Request 1 goes to node 1. Am I correct in saying that as long
> as Request 2 reaches node 2 before the session from node 1 has
> fully replicated over, the the inconsistent
Let me see if I understand this correctly, in the case of non-sticky
sessions. Request 1 goes to node 1. Am I correct in saying that as long as
Request 2 reaches node 2 before the session from node 1 has fully replicated
over, the the inconsistent session problem exists?
Am I also correct in thi
> From: lightbulb432 [mailto:veerukrish...@hotmail.com]
> Subject: Cluster session sync question (from documentation)
>
> How, for example, would a client be able to access the same session
> simultaneously?
If a page includes multiple resources (e.g., frames, pictures), a browser will
normally
> From: J Channel [mailto:jchann...@gmail.com]
> Subject: Tomcat generate pages with links like
> /image/hotel3455.jpg;jsessionid=0D42C72326D97D8E32C950562B8DDA46
>
> My tomcat periodically generate pages with links like
> /image/hotel3455.jpg;jsessionid=0D42C72326D97D8E32C950562B8DDA46
> And send
Hello Leo:
Thanks for the suggestion. There is no other program listening on the port.
Take care,
Dianne
-Original Message-
From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov]
Sent: Tuesday, May 05, 2009 6:51 PM
To: 'Tomcat Users List'
Subject: RE: IIS 6 Tomcat Connector
Thanks for letting us know.
On 06.05.2009 19:32, Dmitry Beransky wrote:
> We were finally allowed to upgrade to Tomcat 5.5.27 and that seemed to
> have done away with the symptoms (I'm reluctant so say that upgrading
> fixed the problem, since I don't even know what it was in the first
> place ;-)
We were finally allowed to upgrade to Tomcat 5.5.27 and that seemed to
have done away with the symptoms (I'm reluctant so say that upgrading
fixed the problem, since I don't even know what it was in the first
place ;-)
Thanks for the help, everyone.
d.
> The chunk length message seems pretty weir
I have a question about the section from the documentation below:
Distributed locking and pages using frames Tomcat does not keep session
instances in sync across the cluster. The implementation of such logic would
be to much overhead and cause all kinds of problems. If your client accesses
the s
Hi.
My tomcat periodically generate pages with links like
/image/hotel3455.jpg;jsessionid=0D42C72326D97D8E32C950562B8DDA46
And send me cookie with JSESSIONID even for images request
http://mysite.com//image/hotel3455.jpg. Is this ok?
How can i prevent session generation for static content kind of i
Hello.
I have a specific page in my site that uses ssl client certificates
for authentication and the application itself does the cert
validation. As the rest of the site does not use them I have
clientAuth="false" in my connector otherwise the browsers keep asking
for client certificates
Hi Chuck,
The jakarta_service_20090505.log was just saying 'Attempting to start the
service'. Anyway I figured out the problem. The JMX remoting port was
the same in both the JVMs which was causing the issue where no 2 JVMs could
run in parallel. Lesson learnt : When running multiple JVMs on t
On 06.05.2009 16:37, Arne Riecken wrote:
> Thank You very much, that seems to be the point for me. With mpm-prefork
> there is only one connection and if that cannot be closed due to timeout, I
> have a problem with firewall dropping. I posted already on this list on
> howto configure ajp keepalive
Also, you can have the browser 'install' the certificate from your self-signed
system - and it will no longer give you the error. This is only useful if you
_know_ the certificate is valid (as in, you are the one who created it).
Otherwise, you get into some serious security issues if you just s
>>What "two versions"?
The version in which I can retrieve the j_username/j_password values is 5.5.27.
This doesn't work in version 6.0.18.
When using Tomcat Version 6.0.18, I monitored the app using a proxy(Charles
Proxy), I see the j_username and j_password in the request but when I do a
Hi again,
I solved it. I just changed the
final InputStream resourceStream =
this.getClass().getClassLoader().getResourceAsStream(resourcePath);
to
final InputStream resourceStream =
this.getClass().getResourceAsStream(resourcePath);
and then it works!
Thanks to this article [1] I managed to
I've never used getResourceAsStream() from a class loader.
The one thing I can point out is that by specification, the
ServletContext.getResourceAsStream() requires that the file name start
with /. If you're getting Tomcat's class loader that would explain the
problem.
Jacob Bergöö wrote:
Thank You very much, that seems to be the point for me. With mpm-prefork
there is only one connection and if that cannot be closed due to timeout, I
have a problem with firewall dropping. I posted already on this list on
howto configure ajp keepalive, as an alternative. But on the other hand it
see
thanks for answers, JkUnMount forward to my apache2, and mod_rewrite
does its job then.
Thanks to the list !
Christophe Dumonet
Centre de Ressources Informatiques
Institut Francais de Mecanique Avancee (IFMA)
Campus des Cezeaux
BP 265
63175 AU
Thanks for all of your time on this problem.
I found the issue..!!!
It was a page caching issue with the browser. It seems the page was cached
and so not creating a new session for the Post button on Login.
I put the following in my login page and now it works great. The new session
is create
code Servlet to implement CometProcessor
http://www.mbaworld.com/docs/aio.html
Martin
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de
déni et de confidentialité
This message is confidential. If you should not be the int
Not 100% sure, whether this is part of the problem, but the changelog
contains:
Changes with Apache 2.2.10
*) Allow for smax to be 0 for balancer members so that all idle
connections are able to be dropped should they exceed ttl.
PR 43371 [Phil Endecott ,
Jim Jagielski]
Since mo
Hi All,
Is it possible to use HttpClient as a client to comet servlet when i tried
a simple HttpClient the response is never returned back. below is my comet
client code...
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("http://localhost:8080/serverpus
I need to either close the ajp connections or send keepalive messages
because there is a firewall with a timeout of 1h between the mod_proxy_ajp
(Apache 2.2.9) and the JBoss Server with ajp connector and
in server.xml.
Setting
BalancerMember ajp://hostname status=-H ping=3 smax=0 ttl=600
did
> From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk]
> So you mean this error cannot be fixed?
> All self-signed certificates have this problem when a browser
> accesses the page using ssl?
If the browser doesn't trust the root certificate that certifies the
self-signed cert, it will give a
Hi Antonio,
So you mean this error cannot be fixed?
All self-signed certificates have this problem when a browser accesses the page
using ssl?
thanks
--- On Wed, 6/5/09, Antonio Vidal Ferrer
wrote:
> From: Antonio Vidal Ferrer
> Subject: RE: invalid certificate
> To: "'Tomcat Users List'"
Hi,
At the company I work we are doing this for a couple of years already with
Tomcat 4, 5 and now 6. Works very well. And makes threaddumps more easy to read.
A filter is very ease to make.
public class ThreadNameFilter implements javax.servlet.Filter {
public void doFilter(ServletRequest re
Hello,
question about keepalive for mod_proxy (via ProxyPass directive) AJP
connections:
"This flag will tell the Operating System to send KEEP_ALIVE messages on
inactive connections (interval depends on global OS settings, generally
120ms)"
(http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#pr
Melanie:
Your certificate is invalid, as your navigator does not know the Certificate
Authority who issued your server certificate (In this case, you). It's not
related to expiration dates. You can find nice guides (using openssl :( )
here: http://www.tc.umn.edu/~brams006/selfsign.html and he
Hi,
I generated a new certificate according to
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
First step:
keytool -genkey -alias tomcat -keyalg RSA -keystore /usr/local/tomcat/.keystore
Second step:
in servers.xml:
I am getting an error that the certificate is not valid when I acc
Hi,
I occassionally have to analyse thread dumps of tomcat servers which serve up
to 25 instances of the same (quite complex) web service application. All
custom threads have names that contain the instance id, but it is impossible
to see which HTTP processor threads serve which application ins
I just created a simple example implementing the CometProcessor interface
and seems the request is calling event method. i just need to work furthour
on this. sorry for the trouble.
Thank you,
bala.
On Wed, May 6, 2009 at 12:43 PM, balachandra maddina
wrote:
> Hi All,
>
> Im trying to implemen
On 05.05.2009 22:17, nohacks wrote:
> 1) Which component should respond to this request, Apache or Tomcat?
>
> Tomcat should answer all. I am not using Apache to server any Static
> content.
OK, and I assume you actually checked, that it *is* Tomcat that produces
the answer in the 404 case.
I fo
Hi All,
Im trying to implement the comet chat example that is provided in tomcat
docs. its said that when a servlet implements CometProcessor interface then
when this servlet is called instead of calling the service method the event
method will be invoked. but after implementing the interface if
Hi,
my code looks like this:
...
final Resource resource = iterator.next();
final Context cx =
ContextFactory.getGlobal().enterContext();
final StringBuilder stringBuilder = new StringBuilder();
58 matches
Mail list logo