Re: decompiling classes

2006-09-08 Thread Filip Hanik - Dev Lists
if you are trying to connect to Oracle, why do you use the JDBC-ODBC bridge, its filled with problems. Download Oracles JDBC driver, they have a type 4 driver (pure Java), and use that Filip Propes, Barry L wrote: maybe I didn't look in the right places, but I didn't exactly find what I was

Re: Tomcat CLustering listening address

2006-09-14 Thread Filip Hanik - Dev Lists
cause your `hostname` resolves to 127.0.0.1 in /etc/hosts Filip Patrick Wang wrote: Hi all: I setup the TCPListner's IP address to be auto on 2 separate machines. Then I used the command netstat -nlp to verify what's listed and found out one actually bound to 127.0.0.1, The

Re: JSessionId and Google

2006-09-19 Thread Filip Hanik - Dev Lists
couldn't you simply create a HttpServletResponseWrapper object in a filter, this object could overwrite the method that encodes the URL and remove the JSESSIONID from it Filip Simon wrote: Hi, According to the Google Information for Webmasters page, it appears that Google will not

ANN] Apache Tomcat v5.5.20 Now Available

2006-09-28 Thread Filip Hanik - Dev Lists
The Apache Tomcat team is pleased to announce the immediate availability of version 5.5.20 of the Apache Tomcat server. This release contains dozens of important bug fixes and improvements to the Tomcat server. Release Notes: http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES Change Log:

Re: Tomcat 5.5.20 Internal error/crash.

2006-10-10 Thread Filip Hanik - Dev Lists
The best place to file bugs are in bugzilla http://issues.apache.org/bugzilla/ Filip j.random.programmer wrote: Hi: I'm getting these at random, tomcat version: 5.5.20 These looks like a serious coding bug (there should never be ArrayIndexOutOfBoundsExceptions), but it's not clear whether

Re: Tomcat Clustering SSH

2006-10-23 Thread Filip Hanik - Dev Lists
http://www.harding.motd.ca/autossh/ Filip Massimiliano Berruti wrote: You're perfectly right...the problem is we must do this because this is a sample application we're developping for our university and they asked to use ssh tunnel or something else to secure connection in the cluster...

Re: HttpSessionListener with session replication (cluster)

2006-10-23 Thread Filip Hanik - Dev Lists
lists can be pretty big). But we have to remove those cached ACLs when the HttpSession times out, using a HttpSessionListener. In a Servlet Container cluster, the ACLs would be computed and cached on each node on the fly, but also have to be flushed out of the cache on each node (hence, the question

Re: Replication warning with tomcat cluster FastAsyncSockerSender

2006-10-23 Thread Filip Hanik - Dev Lists
connection refused, simple the Tomcat instance is unable to open a connection to the other instance to send the replication data. your systems will continue to function, but if you fail over that other node might not have your data. You'll want to find out why it is failing to open a connection,

Re: Correct static member cluster configuration for Tomcat 6/JDK.1.6.0/Linux

2007-03-08 Thread Filip Hanik - Dev Lists
I will look into this for you Filip Gmail User wrote: I am trying to configure a cluster with static members, but so far no luck. Am I missing something or is it not meant to be tested with both members on localhost? Both instances create their own sessions and no session propagation is

Re: the cluster deployer can not work on 6.0.10

2007-03-09 Thread Filip Hanik - Dev Lists
That is correct, it's broken, You can still use other strategies to deploy to a cluster, Filip Li She wrote: Hello guys On tomcat 6.0.10 , I use FarmWarDeployer and set watchEnabled=true, but I always get the error 2007-3-9 10:47:51 org.apache.catalina.ha.deploy.FarmWarDeployer

Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

2007-03-09 Thread Filip Hanik - Dev Lists
you'll need the modified juli adapter, http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/extras/ Filip Philip Brusten wrote: Hello everyone, I've an unsolved issue with enabling tomcat logging with log4j. In previous versions of tomcat, version 5.5 I did the following things:

Re: Correct static member cluster configuration for Tomcat 6/JDK.1.6.0/Linux

2007-03-09 Thread Filip Hanik - Dev Lists
I've tested it, and it seems to work fine. Here is what you are probably missing Machine A Receiver port=4000. StaticMember port=4001 !--must match machine B receiver port-- Machine B Receiver port=4001 StaticMember port=4000 !--must match machine A receiver port-- As you

[ANN] Apache Tomcat 5.5.23 released

2007-03-09 Thread Filip Hanik - Dev Lists
The Apache Tomcat team announces the immediate availability of Apache Tomcat 5.5.23 stable. This release has numerous bug fixes and maintenance updates. It also includes the corrected source code for the JK CVE-2007-0774 issue. Please refer to the change log for the list of changes:

Tomcat 6 Scales

2007-03-09 Thread Filip Hanik - Dev Lists
I wrote a blog entry on how one of our connectors was developed the challenges you face doing that. Its not super technical as I'm saving the juicy details for ApacheCon And since no one reads my blog, I'll let you guys get it from here :)

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Filip Hanik - Dev Lists
add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip up the file that gets generated, make it available to us and I'll take a look at it Filip acec acec wrote: Hi, I tested tomcat 6.0.10 using jmeter. I found the following problem. I defined three thread groups:

Re: [ANN] Apache Tomcat 6.0.10 released

2007-03-12 Thread Filip Hanik - Dev Lists
Tomcat 6.0.10 stable libraries, mavenized, can be found at: http://tomcat.apache.org/dev/dist/m2-repository/ Filip Remy Maucherat wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.10 stable. This release is the first stable release of the 6.0.x branch.

Re: Problem getting comet to work

2007-03-12 Thread Filip Hanik - Dev Lists
Mike Broadbear wrote: You could try Pushlets (and let me know how it goes!) pushlets, if made correctly, would be built on top of comet to get around the thread-per-connection limit Filip Date: Mon, 12 Mar 2007 05:32:25 -0700 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:

Re: Max number of contexts

2007-03-14 Thread Filip Hanik - Dev Lists
Diego Rodriguez wrote: Hi, I'm using Tomcat 5.5.20. In the docs says You may define as many *Context* elements as you wish I'm going to design a new web application that will act as a kernel for other lightweight webapps that will implement different services and may be hot

Re: Tomcat 6 Scales

2007-03-14 Thread Filip Hanik - Dev Lists
releases? Yes, I would take the NIO connector as it is today and use it, it has been greatly improved. svn co http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk cd trunk ant download ant then take tomcat-coyote.jar from output/build/lib and use that one Filip Filip Hanik - Dev Lists wrote

Re: Question on EAR files

2007-03-15 Thread Filip Hanik - Dev Lists
Savoy, Melinda wrote: I understand that Apache Tomcat 6 now supports the EAR file. Is that correct? Incorrect, Geronimo with Tomcat 6 does Filip Melinda Savoy Sr. Programmer Analyst Financial Applications - Enterprise Systems The information contained in this message and any

Re: Question on EAR files

2007-03-15 Thread Filip Hanik - Dev Lists
You have two, our own Geronimo and Sun's Glassfish Filip Savoy, Melinda wrote: Thanks for the response. We're trying to find an alternative to Jboss. Regards. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 12:00 PM

Re: Installing Tomcat as a Windows Service - JvmOptions semicolons

2007-03-15 Thread Filip Hanik - Dev Lists
you are better off using Java Service Wrapper, from http://wrapper.tanukisoftware.org/doc/english/introduction.html I've created a Tomcat specific install that lets you do thread dumps to the service, you can find that one here http://people.apache.org/~fhanik/wrapper.html This lets you

Re: Tomcat Administrator

2007-03-16 Thread Filip Hanik - Dev Lists
You'd download it http://tomcat.apache.org/download-55.cgi IMHO you're better off without it though Filip Fabian Arocena wrote: Hi All, I'm working with Tomcat 5.5.17 installed on a Solarix box, and have successfully accessed the Tomcat Manager console. However, when I try to go to the

Re: Tomcat Administrator

2007-03-16 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Administrator You'd download it http://tomcat.apache.org/download-55.cgi IMHO you're better off without it though For curiosity's sake, why do you say that? It's one of the things

Re: java.lang.OutOfMemoryError: Java heap space

2007-03-20 Thread Filip Hanik - Dev Lists
Add -XX:+HeapDumpOnOutOfMemoryError to your command line options, this will create a .hprof file when you get an OOM error, then simply analyze this file with a little tool called YourKit (www.yourkit.com) excellent profiler Filip Jean-Sebastien Pilon wrote: Hello, I have been

Re: OutOfMemoryError

2007-03-20 Thread Filip Hanik - Dev Lists
java.lang.OutOfMemoryError: unable to create new native thread There is not enough space to create a new thread. Threads(stacks). if -Xmx solves your problem, then set it and be happy :) another tip is to decrease the value of your thread stack size using the -Xss parameter, for example

Re: OutOfMemoryError

2007-03-20 Thread Filip Hanik - Dev Lists
addendum to my previous post, Unable to create new native thread errors can also depend on heap fragmentation, since thread stacks are in the process heap, there might not be enough continuous space there. Filip Rahul Tandon wrote: Hi All, If I don't give -Xmx option in CATALINA_OPTS,

Re: Custom error page on Tomcat 6

2007-03-20 Thread Filip Hanik - Dev Lists
http://people.apache.org/~fhanik/ check out GlobalErrorReportValve Filip Peter Kennard wrote: At 16:58 3/20/2007, you wrote: From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Re: Custom error page on Tomcat 6 Can one make a class that spits out the error page that recieves the code

Re: Tomcat 6.0.10/Tomcat Native 1.1.8/Apache2 .0.59/Apache APR 1.2.8/Solaris 10

2007-03-21 Thread Filip Hanik - Dev Lists
John Minson wrote: Please be patient this is not my area of expertise (I am a JOATMON) I installed Apache2 2.0.59 Tomcat 6.0.10 mod_jk on Solaris 10. It all seems to work. Looking at the catalina.out log file I see 'INFO: The Apache Tomcat Native library which allows optimal

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread Filip Hanik - Dev Lists
your system returns .chemease.local as a hostname, and naturally that doesn't resolve to anything two options 1. fix your hostname 2. possibly add .chemease.local into /etc/hosts to trick the server, not sure how that is gonna work with the . prefix, but it just might Filip James liu wrote:

Re: Are there frameworks for in-cluster communication?

2007-03-22 Thread Filip Hanik - Dev Lists
Clemens Eisserer wrote: Hello, Terracotta? http://www.terracotta.org/ Thanks a lot for your answer. Wow teracotta really looks impressive and very powerful- however its too heavy for my use. It needs servers and clients started and so on which is problematic because I don't have any control

Re: Comet in tomcat

2007-03-22 Thread Filip Hanik - Dev Lists
Vincent Demay wrote: Hi all, I'm working on server side pushing integration in Wicket, and I saw Tomcat6 implements comet : http://tomcat.apache.org/tomcat-6.0-doc/aio.html Have you got a complete example of an application using cometProcessor? I'm writing an example as we speak, but won't

Re: How to run a .exe file from a web application in tomcat

2007-03-22 Thread Filip Hanik - Dev Lists
Jitendra Ch wrote: Hi to allI am new member to this group. I am having some problems in calling an .exe file for example notepad, from a web application using Tomcat.Is it possible to call an .exe file from a web application in Tomcat.With Regards,Jitendra

Re: tomcat/linux newbie can't connect to tomcat remotely

2007-03-22 Thread Filip Hanik - Dev Lists
your redhat/centos server is blocking port 8080, you must open that port up. or better, proxy through your httpd server in /etc/httpd/conf/httpd.conf add the following lines ProxyRequests Off ProxyPass /alfresco http://localhost:8080/alfresco ProxyPassReverse /alfresco

Re: 5.5.23 Download - Windows Service Installer - No Page at PGP Link

2007-03-23 Thread Filip Hanik - Dev Lists
thanks, I will fix that! Filip Day, Jeff wrote: Link is: http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23. exe.asc http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23 .exe.asc On page: http://tomcat.apache.org/download-55.cgi

Re: 5.5.23 Download - Windows Service Installer - No Page at PGP Link

2007-03-23 Thread Filip Hanik - Dev Lists
I've uploaded the .asc file, mirrors will synch during the day. the apache.org/dist should have it within an hour Filip Day, Jeff wrote: Link is: http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23. exe.asc

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
I'd recommend moving to mod_proxy_http, it will be easier for you to debug. the error below seems tobe more of a problem with apache (mod_proxy_ajp) then with tomcat, tomcat is simply trying to write a message, but the connection is no longer valid. Filip c. wrote: Hello, I'm using

Re: Http to https and viceversa without session losing

2007-03-23 Thread Filip Hanik - Dev Lists
you'd be walking in a security hazard, but you could probably set the cookie to secure even though it is running in http. in org.apache.catalina.connector.Request.java, the cookie is set, as you can see, last few lines, that the cookie is only set to secure if the request is considered secure.

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: I'd recommend moving to mod_proxy_http, it will be easier for you to debug. Bah! :( that sounds knowledgeable :) the error below seems to be more of a problem

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? That's a good question. In two successive messages, he recommended each over

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
SSLProxyEngine SSLProxyMachineCertificatePath SSLEngine on SSLProxyProtocol, SSLProxyCipherSuite Filip c. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: I'd recommend

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
? Is it the same basic setup as mod_proxy_ajp? Looking at the doc ( http://httpd.apache.org/docs/2.0/mod/mod_proxy_http.html) it doesn't give much info. c. On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-24 Thread Filip Hanik - Dev Lists
talking about SSL between the browser and the apache httpd server. if you don't need SSL between apache and tomcat (which you obviously don't need since you ran AJP before) then don't bother with SSL for mod_proxy either Filip On 3/23/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote

Re: Configure ssl support on my tomcat instance number 2

2007-03-24 Thread Filip Hanik - Dev Lists
try to specify a full path for keystoreFile, not a relative one. my guess is that it is trying to read TOMCAT_HOME/bin/ssl/.keystore Filip Cartman wrote: Hi, i install two tomcat intances on my machine; and i modified the server.xml file Connector port=8443 minProcessors=5

Re: A newbie question

2007-03-24 Thread Filip Hanik - Dev Lists
Most likely your router is blocking port 8080, or not forwarding it. to change tomcat to run on port 80 TOMCAT_HOME/conf/server.xml, just search for 8080 Filip S wrote: Hi, I am very new to Tomcat, and something I don't understand why is not working. After I installed Tomcat, I can access a

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-26 Thread Filip Hanik - Dev Lists
in server.xml, especially proxyName, proxyPort and scheme, maybe also secure. See. http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Regards, Rainer Filip Hanik - Dev Lists wrote: c. wrote: so would it make sense to assume that since SSL worked without any extra config changes when I

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-26 Thread Filip Hanik - Dev Lists
Mladen Turk wrote: Filip Hanik - Dev Lists wrote: or simply set a few headers in httpd when the request came in over SSL, and then have a filter read those headers OK, by now, I think everyone are aware that you don't like the AJP protocol. being on the support side of it has not been fun

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-26 Thread Filip Hanik - Dev Lists
sent it directly to your email address Filip c. wrote: seriously? if so can you send me the link? if not just call me gullible. On 3/26/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Mladen Turk wrote: Filip Hanik - Dev Lists wrote: or simply set a few headers in httpd when

Re: Apache and Tomcat bridging - Servlet enabled?

2007-03-26 Thread Filip Hanik - Dev Lists
Foo Shyn wrote: Hi, This question suddenly struck me when i'm trying to solve my server problem. Here goes: Server settings: Apache 2 as front, Tomcat 4.1 as back, J2SDK 1.4.2 Let say that i'd configure that Apache so that whenever a request for www.abc.com will be redirected to the Tomcat's

Re: Which Tomcat 5.5.23 file do I download for Windows?

2007-03-28 Thread Filip Hanik - Dev Lists
what I would do, download the .zip, then run it as a service using the java service wrapper http://people.apache.org/~fhanik/wrapper.html best of both worlds Filip Tim Lucia wrote: Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim

Re: Error importing SSL certificate

2007-03-28 Thread Filip Hanik - Dev Lists
I would google it, tons of info out there http://access1.sun.com/techarticles/Keytool.html Reis, Tom wrote: I receive the following error when trying to import a Verisign SSL certificate. Any ideas? keytool error: java.lang.Exception: Failed to establish chain from reply

Re: request hangs

2007-03-29 Thread Filip Hanik - Dev Lists
if you are on TC 6, you can always use the NIO connector as an alternative. There is a mem leak in 6.0.10, but fixed in SVN, new release around the corner take a look at http://tomcat.apache.org/tomcat-6.0-doc/config/http.html the protocol attribute tells you how to configure the different

Re: Tomcat HTTPS Help needed

2007-03-29 Thread Filip Hanik - Dev Lists
Martin Gainty wrote: just so Im clear..this would not work with keystore files but will work with APR connector and the Binaries must be compiled to JNI spec? exactly, to use APR and OpenSSL, you can use Apache style certificates, Connector

Re: Tomcat 5.5 and secure=true

2007-03-29 Thread Filip Hanik - Dev Lists
With tomcat 6, you could do this: 1. For non SSL traffic Just ProxyPass to tomcat like always (set ProxyPreserveHost On) Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=8080 proxyPort=80 2. For SSL traffic Proxy pass to another connector setup like this

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread Filip Hanik - Dev Lists
the problem you are having is because you didn't shutdown the java process. invoking shutdown.sh when your tomcat instance has suffered a memoryleak doesn't guarantee that it will stop, or how long it takes to stop it. you must ensure the process is killed properly Filip Bryce Nesbitt wrote:

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Filip Hanik - Dev Lists
it's blocking on initialization of SSL, did you set the correct Connector attributes for APR/SSL (they are not the same as the java connector) Filip Stefan Armbruster wrote: Hi, thanks for the responses so far. I removed all libapr* deb packages and installed apr 1.2.8 from source, but

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-04-02 Thread Filip Hanik - Dev Lists
shutdown and start in the same thread (so shutdown completes before the startup happens). AFIK, shutdown actually does shut down the java process. If shutdown is not meant to shut down the java process, what does it do? Filip Hanik - Dev Lists wrote: the problem you are having is because you

Re: Tomcat 6 web root directory

2007-04-02 Thread Filip Hanik - Dev Lists
Host name=somehost appBase=c:/www.web Context path= docBase=c:/www.web/myapp/ /Host Filip Hoa Doan wrote: Hi, I am trying to direct Tomcat to my own web root director, and I know you can do that by changing the host tag in server.xml. But Tomcat wont read any of my web file unless they are

Re: Tomcat 6.0.10 Comet question

2007-04-03 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, Thanks for all the answers! :-) It's good to know the way the events should be treated and interpreted. It's quite different from how it's described on http://tomcat.apache.org/tomcat-6.0-doc/aio.html, and the JavaDoc does not really describe the spec either.

Re: connection pool

2007-04-04 Thread Filip Hanik - Dev Lists
Martin Gainty wrote: MG-- You want to make sure your abandoned connections are properly re-cycled e.g. To configure a DBCP DataSource so that abandoned dB connections are removed and recycled add the following paramater to the ResourceParams configuration for your DBCP DataSource Resource:

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-04 Thread Filip Hanik - Dev Lists
Mladen Turk wrote: Stefan Armbruster wrote: Hi finally I did this: rm /dev/random; ln -s /dev/urandom /dev/random ... and Tomcat starts up fine. Wow, that something. You are very brave and root ;) awesome! Try with setting: $ export RANDFILE=/dev/urandom then start Tomcat. or create a

Re: Tomcat 6.0.10 Comet question

2007-04-04 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/3/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: yes, a proposal is coming up, my guess is that you will do a {public int write(ByteBuffer)} on the CometEvent object. returns number of bytes written, but nothing is set in stone yet I hope that your proposal

Re: session replication

2007-04-04 Thread Filip Hanik - Dev Lists
Yerramsetti, Naga wrote: Hi, What happens if we use session replication and we try to store in session an object that is not serializable? throws an error, probably an IllegalArgumentException on session.setAttribute you can also take a look at www.terracotta.org, as they don't require

Re: High cpu on Apache 2.2.3/Tomcat 5.5.20/APJ1.3 - Windows Server 2003 R2 SP1 SE

2007-04-04 Thread Filip Hanik - Dev Lists
if you are already using mod_proxy, why use AJP, mod_proxy in particular, has a more solid implementation in HTTP than AJP Filip Mirko Viviani wrote: Hi, We are using Tomcat 5.5.20 with Apache 2.2.3/ssl/svn and jdk 1.6.0-b105 on a Windows Server 2003 R2/SP1 SE with 4 Xeon cores and 4GB

Re: How to trace successful ssl handshake?

2007-04-04 Thread Filip Hanik - Dev Lists
-Djavax.net.debug=handshake,ssl Filip Julien Gaulon wrote: Dear Tomcat Users, I'm using a tomcat 5.5 on win XP. My servlet uses 2 secure connectors (different cipher suites and protocol SSL and TLS) on 2 ports. I have already found a way to have in my servlet a trigger when a ssl handshake

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Filip Hanik - Dev Lists
Elias Naur wrote: Hi, I'm experimenting with the new tomcat 6 NIO connector to get a CometProcessor servlet running. I've run into a problem that I hope you guys can help me with. I'm testing a servlet that looks like this: public final class QueryEvent extends HttpServlet implements

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/6/07, Rémy Maucherat [EMAIL PROTECTED] wrote: On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: Hi, I'm experimenting with the new tomcat 6 NIO connector to get a CometProcessor servlet running. I've run into a problem that I hope you guys can help me with. I'm testing

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-08 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/7/07, Rémy Maucherat [EMAIL PROTECTED] wrote: On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: I'm aware that a correct implementation must empty the buffer on a READ event, but as I stated in the original post, a READ event is never received (not even when the client

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-08 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/8/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Elias Naur wrote: On 4/7/07, Rémy Maucherat [EMAIL PROTECTED] wrote: On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: I'm aware that a correct implementation must empty the buffer on a READ event, but as I stated

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-09 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/9/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Elias Naur wrote: On 4/8/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Elias Naur wrote: On 4/7/07, Rémy Maucherat [EMAIL PROTECTED] wrote: On 4/6/07, Elias Naur [EMAIL PROTECTED] wrote: I'm aware

Re: my webapp is crashing the JVM intermittently

2007-04-09 Thread Filip Hanik - Dev Lists
I would take a hint from this line Current thread (0x099aedf8): GCTaskThread [id=18292] My guess is that you have enabled parallel and concurrent GC/mark/sweep, remove all the GC options from your command line and try again I've seen this error before Filip Randy Paries wrote: Hello, I am not

Re: [Fwd: [Fwd: Re: [Fwd: Can't run jsp pages on tomcat 6.0.10]]]

2007-04-09 Thread Filip Hanik - Dev Lists
this is the list that goes into Tomcat lib annotations-api.jar jasper-el.jartomcat-dbcp.jar catalina-ant.jar jasper-jdt.jar tomcat-i18n-es.jar catalina-ha.jar jasper.jar tomcat-i18n-fr.jar catalina-tribes.jar jsp-api.jar tomcat-i18n-ja.jar catalina.jar

Re: Tomcat 6.0.x OpenEJB

2007-04-11 Thread Filip Hanik - Dev Lists
http://geronimo.apache.org they did it :) filip José Perdigão wrote: Hi, has anyone been able to integrate OpenEJB with Apache-Tomcat 6.0.x? Or is it just impossible to do it? - To start a new topic, e-mail:

Re: Tomcat 6.0.x OpenEJB

2007-04-12 Thread Filip Hanik - Dev Lists
David Blevins wrote: On Apr 11, 2007, at 8:21 PM, Filip Hanik - Dev Lists wrote: http://geronimo.apache.org they did it :) filip :) Just as a general note, as with OpenEJB 1.0 and before (0.9.x, 0.8.x, etc) you can once again plug OpenEJB 3 into Tomcat. OpenEJB 3 is the EJB 3.0 version

Re: Log4j with Tomcat 5.5 on JRockit

2007-04-12 Thread Filip Hanik - Dev Lists
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.defaultlog=error you are forcing commons-logging to not use log4j Filip Pranas Baliuka wrote: Hello, Can some one help me problems in starting TomCat 5.5 on JRockit with

Re: NullPointerException after approx 3000 comet requests

2007-04-24 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a CometProcessor which handles a large number of requests in a very short time, and after about 3000 requests I consistently get the following two errors: Apr 18, 2007 12:09:19 PM

Re: Any documentation/example about org.apache.catalina.Comet* ?

2007-04-24 Thread Filip Hanik - Dev Lists
Benjamin Larchevêque wrote: Hello, I saw that Tomcat proposes some interfaces to use Comet like Servlet from version 6.x. Even(t) if I get the main idea I was not able to reuse the pseudo code servlet ChatServlet provided on the following page: http://tomcat.apache.org/tomcat-6.0-doc/aio.html

Re: Memory Leak with Comet

2007-04-24 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. Why don't you enable -XX:+HeapDumpOnOutOfMemoryError and send us a link where we can download the HPROF files that get generated. Also send us your config

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. Filip Reich, Matthias wrote: So far, I have the feeling that I am the only one who has

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/25/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. He

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
definitely a bug, I will work on a fix right away. Filip Sebastiaan van Erk wrote: Hi, I have the following problem with Comet. I have a long request, and I asynchronously write data to the output stream of the response while the request is between the BEGIN and END/ERROR events. However,

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding -Dorg.apache.tomcat.util.net.NioSelectorShared=false to your command line Filip Filip Hanik - Dev Lists wrote: definitely a bug, I will work on a fix right away. Filip

Re: Building from source

2007-04-25 Thread Filip Hanik - Dev Lists
1. dont use folders with spaces, in theory they should work, in practice, who knows 2. building is easier than that, follow these steps a) svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x b) cd tc5.5.x c) edit build.properties.default (the base.path parameter is where it will

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. I want to find out if my understanding of the comet api in tomcat is right concerning how connections are handled and event are triggered. I have a

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
/ response model. As soon as the response is closed you would expect an END event. That's pretty much how it is Filip Filip Hanik - Dev Lists wrote: Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
- Dev Lists wrote: Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding -Dorg.apache.tomcat.util.net.NioSelectorShared=false to your command line Filip Filip Hanik - Dev Lists wrote: definitely a bug, I will work on a fix

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/26/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Sebastiaan van Erk wrote: Hi, The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention And it was committed before tagging, not 5 minutes after as usually happens. I

Re: comet: missing initial READ event?

2007-04-26 Thread Filip Hanik - Dev Lists
Yes, this is an interesting use case, I usually issue a read on the BEGIN event. These events are IO related, ie, triggered by IO events and that is what they are. Since the data already has been read in with the request headers, there will be no following IO event. You could issue a read() in

Re: how to close a comet request outside of an event?

2007-04-26 Thread Filip Hanik - Dev Lists
Correct, an asynchronous close doesn't go all the way down to the IO layer, it just marks the request closed. remember event.close doesn't mean TCP.socket.close, it means that this event/request sequence is done There are still many enhancements to be done to the Comet API, such as non

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: I don't understand why the client does not get an immediate -1 (EOF) on the read() as soon as I do this. The socket itself does not need to be closed, but the output stream close should

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, If the body of the POST request is not present at the time of the getParameter() call, it returns null even if the parameter value is set. Things don't work like this, obviously.

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, * Is it possible, somehow, to end a request asynchronously (that is, outside the event method)? Because I keep getting Out of file descriptor errors since the END events come so terribly late after I do the close(). you'd still get too many open files errors

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/27/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: GET parameters, ie parameters in the URL will work. However, using Comet you shouldn't rely on parameters in the body, the body if for you usage, and your usage alone. Seems to me that this is a pretty common use

Re: Issues concerning Tomcat clustering

2007-04-29 Thread Filip Hanik - Dev Lists
Vinícius Paiva wrote: Hi, In the tomcat clustering documentation it's not even mentioned the problems concerning applications with the usage of critical sessions/semaphores (concurrency) and in-memory caching of data. Has anybody any suggestion of reading about how to deal with

Re: Tomcat 6 sending only header for first chunked http response

2007-04-29 Thread Filip Hanik - Dev Lists
[EMAIL PROTECTED] wrote: Tomcat 6 Http Connector will first send only the header during a large chunked response. This causes problems for some of our client processors. In 5 and 5.5 with the same code, the header is sent along with some of the body content. We are doing no flush until all

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Filip Hanik - Dev Lists
working directory is the bin directory Filip [EMAIL PROTECTED] wrote: In the working directory of the process. Of course you need enough free disk space. working directory means something like: /TomcatServer/work/Catalina/localhost/webapp_name/ ? because there is nothing there :( and

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-02 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 7:24 PM To: Tomcat Users List Subject: Re: Comet: problem with request.getParameter() in Comet POST requests GET parameters, ie parameters in the

Re: Comet and Async Servlets - Architecture Question

2007-05-03 Thread Filip Hanik - Dev Lists
Praveen Balaji wrote: Thanks Sebastiaan. I came to about the same conclusions as you listed out here. I also saw your post on parsing POST parameters and I think it's going to create problems for me as well! I am unsure the API would be improved. I simply think, as Filip pointed out

Re: NIOSelector busy wait

2007-05-03 Thread Filip Hanik - Dev Lists
it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro so far I haven't seen the behavior you've explained. Filip Sebastiaan van Erk wrote: Hi, I have a problem that sometimes the NIO selector goes into a

Re: comet: async close exceptions

2007-05-04 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, Due to the latest changes (r535030) to the Comet code I'm getting the AsyncCloseExceptions again, meaning that my synchronization which worked before is not correct anymore. What I am doing is synchronizing all access to the response output stream and

<    5   6   7   8   9   10   11   12   >