Re: DataSource binding for JSP

2008-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, Jason Ling wrote: | the JDBC driver could not be found. I made sure the the jdbc jar | file was in place and rebooted the computer, and the same jsp file | worked. I'm glad you have solved your problem (though rebooting should not have been

Re: Logging in separate Thread

2008-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan and Matthias, Reich, Matthias wrote: | I think it is better to start one background worker thread and pass | the log requests to that thread with the help of a queue. Definitely. Otherwise, you could have threads piling up on one another if

Re: using a class from jar file

2008-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, polock wrote: | I just put a jar file in my webapps folder That's not the place to put it. | now I would like to write | some java files with classes that are available within jar file that will be | also part of a web

Re: Remote ip Address

2008-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ksh, [EMAIL PROTECTED] wrote: | Is it possible to programatically direct a servlet response somewhere | other than the remote ip address. Not using the servlet container in any usual way. You could email the response somewhere or something like

Re: Performance of Native library

2008-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: | Are there any web sites that show/compare the performance of a plain | install vs adding the native libraries for tomcat? How many of you guys | actually use the native libraries in production, ie is this common or |

Re: polish charset on tomcat server on linux system

2008-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raghuveer, Raghuveer wrote: | I cannot test on linux as it is in my customer place in Poland ..where as I | am working from a remote place locally on windows from india.. Get yourself a Linux box. Or, get yourself a VMware virtual machine. Linux is

Re: long initialisation time for Tomcat5.5.25 when compiled with Native libraries and JSVC

2008-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | I configured tomcat 5.5.25 with native libraries (openssl and APR) | for ports 8180 (http) and 8443(HTTPS) on Linux 2.6.22.9 #1 SMP x86_64 | | This is Intel Quad Core Zeon machine 64 bit | The OS is debian for amd64 | APR

Re: Problem with Tomcat5.5.25 when configured for JSVC

2008-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, There's no need to post a question twice in such a short time span. Please wait a little longer before you re-port a question to the list. Thanks, - -chris Neha Agrawal wrote: | Hello | I configured tomcat 5.5.25 with native

Re: Remote ip Address

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ksh, [EMAIL PROTECTED] wrote: | If you want to swallow output under certain conditions, why not use | a Filter or Valve? Much easier than trying to redirect output. | | Are you referring to filters and valves as defined in the server.xml? | If so,

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamed, Mohamed Mohamedin wrote: | I am using Tomcat 5.5.25 on SUSE Linux 10.1 (X86-64) and Java 1.5.0_10 from | Sun. | When I run Tomcat using catalina.sh start and watching the log it stop at | INFO: XML validation disabled and take about 15

Re: Remote ip Address

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ksh, [EMAIL PROTECTED] wrote: | | Not using the servlet container in any usual way. You could email | the | response somewhere or something like that, or POST it to | another URL or | whatever. I'm not sure why you'd want to do that, | though. | |

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | i tried two things to improve the startup time for | my Tomcat5.5.25 version compiled with native | libraries: Do you mean configured with native libraries? Recompiling Tomcat will not change anything... | Still it

Re: JASPER libraries incompatibilities

2008-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hitesh, Hitesh Raghav wrote: | I've web-app developed to run with Tomcat 4.2. It used to work perfectly | fine with Tomcat 4.2. 4.2? I don't think there was ever a Tomcat 4.2. Do you mean 4.1? | When same web-app is deployed on Tomcat v5.5.x or

Re: Why Tomcat take about 15 minutes to start?

2008-02-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | i recompiled my APR 1.2.7 with /dev/urandom Exactly how did you do this? Are you sure you did it correctly? If you were recompiling, why not upgrade to the most recent version (1.2.12)? | and hence recompiled Native

Re: OT: a java question - static initialization

2008-02-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth, Kenneth Westelinck wrote: | Did a quick test on 1.6.0 update 2 and the static block does get called. I | guess this is a bug. Er, this code doesn't look like it should compile: | class Foo { | | private static int; | Isn't there an

Re: running servlet from java

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Goran, Goran Jambrović wrote: | I would like to run a servlet(/FunPacmanServlet) from java. You should call it via HTTP. | This servlet | would then show a jsp page in web browser. That's going to be a problem, depending on your platform, the

Re: JASPER libraries incompatibilities

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hitesh, Hitesh Raghav wrote: | Is there any URLs about these backward incompatibilities (i.e. | Servlet/JSP specs backward incompatibilities)? As Chuck suggests, the servlet specification has changed between versions, and the best reference for

Re: Form data refresh?

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alaska, Alaska Winter wrote: | what happens if user hits the back button to catalogue. Perfectly valid | thing to do. If they submit an old (expired) token, then you simply ignore the request. You will probably want to notify them why the request

Re: Java -Tomcat- compatability on linux and windows

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raghuveer, Raghuveer wrote: | Is there any difference in compatibility of Java-Tomcat Versions with | Windows system and Linux? | | Tomcat 5.5.25 and j2sdk1.4.2_07 are working on windows. | | We get some problems with same versions on RedHat

Re: Why Tomcat take about 15 minutes to start?

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | Exactly how did you [build APR]? Are you sure you did it correctly? | If you were recompiling, why not upgrade to the most recent version | (1.2.12)? | | APR 1.2.7 package i downloaded and compiled it using | ./configure

Re: Sharing session across IE windows

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Lipscombe wrote: | In my app I spawn a new IE window with window.open(). I want the new | window to share the same session as the parent, because it needs to | access some session data. If you are using cookies to track session ids, this

Re: Why Tomcat take about 15 minutes to start?

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | sorry , i checked, i did recompile APR with | /dev/urandom earlier..it just missed out from my last | eamil post..sorry about that.. Okay. That doesn't explain why you were able to grep (successfully) for

Re: Why Tomcat take about 15 minutes to start?--Solved

2008-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | I installed APR -1.2.12 and compiled it with | /dev/urandom. | and the problem is solved | tomcat now restarts in less than 1 second... Now, look back at my original post. We could have saved a lot of time, here.

Re: Custom URL handlers in Tomcat web app

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MK, MK wrote: | I have the following problem: | My Web application needs to handle Lotus Notes URLs which use the scheme | notes. However, since Java does not know this protocol by default, it throws a | MalformedUrlException when I construct a

Re: Problem during starting tomcat-Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sneha, Sneha Manohar wrote: | I have installed tomcat6.x. I have set the path of tomcat_home java_home. | when I start server , screen closes.I have used catalina out , I get follwing error | Exception in thread main

Re: FW: Certification Issue in production Tomcat server...

2008-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pranab, [EMAIL PROTECTED] wrote: | I am getting the security certification problem in a J2EE based | application which is running on our production Tomcat server [while attempting to contact LDAP server over SSL]. [snip] | Caused by:

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lessie, Lessie Z. Mitch wrote: | url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true Don't use autoReconnect=true... that parameter has been deprecated for years, and the effect is better achieved by using testOnBorrow=true along with

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | I've tried following the directions from the tomcat dist and from the | mysql dist but I always get can't connect exceptions when I start tomcat. Connection refused usually means that everything is configured

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | I tested mysql and it is using tcp/ip. mysql -h 127.0.0.1 -u javauser | -p works fine. | Also the MSQLAdmin program shows it is connecting to the correct port 3306 Okay, good. Any software firewalls enabled? The

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, [EMAIL PROTECTED] wrote: | Now for the issue at hand. I turned off my Windows firewall and this did | not fix the issue. Yeah, that was unlikely to change anything. Make sure you turn that back on! | I implemented the resource as you

Re: Custom URL handlers in Tomcat web app

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | Christopher Schultz chris at christopherschultz.net writes: | | How did you set the [Java] property? | | I am running my web app inside an Eclipse WTP server container project. So I set | the property as a JVM argument

Re: Why is session unbound called after cluster failover?

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Why is session unbound called after cluster failover? What value is being unbound? | Two more questions: -- In a scenario with two nodes, if I shutdown | one, the other is instantly ready to receive and respond to

Re: Custom URL handlers in Tomcat web app

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, Christopher Schultz wrote: | From the bug you mentioned in your original post, it looks like | putting it into your webapp just isn't going to work. Instead, you'll | have to install it into a ClassLoader that is higher-up in the chain

Re: Custom URL handlers in Tomcat web app

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | Actually I don't even call URL.openConnection, because I don't need it at all. | It's really just that the java.net.URL constructor requires that there exists an | object which implements this behavior just in case someone

Re: Why is session unbound called after cluster failover?

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Well, our class USER implements HttpSessionBindingListener, | Serializable and when failover happens valueUnbound is executed(public | void valueUnbound(HttpSessionBindingEvent event)) - valueUnbound is a | method of

Re: Why is session unbound called after cluster failover?

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | It happens on both. Valueunbound is executed on old server when | tomcat is stopped, and is executed on new server when I execute | logout (or if I shutdown tomcat). That behavior seems entirely consistent with what

Re: Session expiration and AJAX issues

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, What you need is to make a request without touching the session. Tomcat cannot do this by itself; you're going to have to either hack Tomcat to add a no-touch-session parameter to the session manager (which wouldn't be a bad TC enhancement

Re: Why is session unbound called after cluster failover?

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | I think you need to manage your events in a way that takes into account | the fact that valueUnbound will can be called by other members in the | cluster. | It is not a easy task, rigth? | Could you be more specific in

Re: Realms and Remote Address

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kerrin, Kerrin Hardy wrote: | I'm trying to create a Realm that authenticates a user and logs the | IP address they attempted from, but I am having trouble finding how I | get the IP address of the request (the Remote IP Address). This is not

Re: Why is session unbound called after cluster failover?

2008-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Well, valueUnbound is executed on both TC. You mentioned that. The valueUnbound is being propagated from the TC instance shutting down across the cluster, right? I can't seem to get a straight answer to that question.

Re: Tomcat plans for per-webapp session replication

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew R Feller wrote: | My apologies; let me clarify: | | Are there plans for session replication such that configuring server.xml | is unnecessary? So rather than configuring it at the server level and | simply marking a webapp as

Re: Custom URL handlers in Tomcat web app

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | Christopher Schultz chris at christopherschultz.net writes: | | As I'm reading more in the API, I can see that the URL class has a | constructor that takes a URLStreamHandler. Could you utilize this | constructor instead

Re: Custom URL handlers in Tomcat web app

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | actually I just realized that this is not gonna help if Tomcat does not honor | the java.protocol.handler.pkgs setting, because even if Tomcat can load the JAR | and knows where to look for it, it would still need to read this

Re: sessionID moves to other PC

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sascha, Sascha Monteiro wrote: | I now put % out.println(session.getId()); % in the page.. | I see my sessionID, but then navigate to another page and then see the | sessionID of the other user! | then I press reload in my browser, and I get my own

Re: JVM Uninstall

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pranab, [EMAIL PROTECTED] wrote: | ops...please find attached now. You will probably have to re-install your service (not Tomcat entirely... just the service) since Tomcat has moved. I think you can adjust the existing service in-place, but in your

Re: How to make Tomcat do not use /dev/random?

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Problems with /dev/random relate to waiting to generate enough entropy | after restart of the OS. Does this slow start up happen only after the | machine has been restarted or does it happen every time Tomcat is | started?

Re: Apache/Tomcat - mod_jk issues

2008-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: | 2. While I've not used the redirectPort attribute on the Connector | element, I'm assuming you are redirecting everything to HTTPS. If this | is the case, I'm curious as to why you don't define either |

Re: Realms and Remote Address

2008-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kerrin, Kerrin Hardy wrote: | I have investigated Security Filter, and I don't see how that gives | me access to the IP address of the client. You have to implement your own Realm. If you use FlexibleRealmInterface, you have access to the entire

Re: how to send http response in several chunked package with Tomcat

2008-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Han, Hanks Wang (hanwan) wrote: | But the question is, all these chunk and http header are in same frame | (get it from wireshark.). Then you need to increase the number of characters being sent. If you really are sending something long as a

Re: Does tomcat support multicores

2008-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Law wrote: | Os - WinXP | | CPU - Intel Quad Core | | Hi I'm running a tomcat server, and would like to know if Tomcat can | make use of multiple cores? When I max the server out, all 4 cores see | little usage however the java process

Re: Does tomcat support multicores

2008-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Law wrote: | We use a program called WAPT to ramp up the amount of requests sent | to Tomcat, probably not the best way going off what has been said. It | got to the point were it the Java process never go above 25% cpu | usage while

Re: Does tomcat support multicores

2008-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Caldarale, Charles R | Subject: RE: Does tomcat support multicores | | From: James Law [mailto:[EMAIL PROTECTED] | Subject: Does tomcat support multicores | | Hi I'm running a tomcat server, and would like

Re: Realms and Remote Address

2008-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kerrin, Kerrin Hardy wrote: | Thanks for all your help so far. No problem. | I have the Security Filter working now (I had never used filters | before, so I had a lot of reading to do), and my bespoke realm is now | inheriting from

Re: Does tomcat support multicores

2008-02-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | XP Home only supports one core - however, that would hardly be an OS for | a production web server (grin) Unless XP sees an Intel ht processor as something other than two cored, this is BS. I have XP home on one of my

Re: Does tomcat support multicores

2008-02-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: | (Please excuse the boring licensing details, but I've seen a lot of | misinformation on this topic.) Thanks for setting the record straight. I didn't want to call Alan a liar, but I knew that his assertions were in conflict

Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: | However it is usually linked, I'm obviously not an expert on this subject. | Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work? Apache can be linked to Tomcat using either HTTP or AJP protocols.

Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: | It is a Tomcat 404 error. Okay, good. That means that Tomcat is handling the request (rather than Apache handling it) so we are probably not talking about fixing httpd configuration or your connector (mod_whatever).

Re: Tomcat on Windows in India and Poland

2008-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: | From: Raghuveer [mailto:[EMAIL PROTECTED] | I have deployed a struts web application on Windows 2003 | Server in Poland and India. | | Application needs to display Polish language coming from SAP. | | This is working

Re: post data lost when redirecting from http to https

2008-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: | From: J. Zach [mailto:[EMAIL PROTECTED] | | When page2.jsp is secured in web.xml via security-constraint | - transport | confidential, the posted data from page1.jsp is lost on | submit (it's simply missing missing in

Re: Request.getContextPath() after RequestDispatcher.forward()

2008-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, ciAnd7 wrote: | Context ... path=/ / Perhaps you meant: Context path= - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: Using a custom method of session-id propagation

2008-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Tom van Wietmarschen wrote: | I've been looking at a way to do this but I can't find a solution, | filters seem to be too late in the chain: a request object is already | created and there is no way to even instantiate a session object from a |

Re: mod_jk question

2008-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sury, In addition to what Rainer has said... Sury Balasubramanian wrote: | I am getting an 404 when i try to | access any tomcat url..http://leonardo/examples (for e.g.) [snip] | JkMount /examples/* worker1 Your JkMount line matches

Re: Using a custom method of session-id propagation

2008-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Stavrinides wrote: | Tom this is 100% correct there is no way to even instantiate a session | object from a self-supplied session-id let alone replace the current | session object in the HttpRequest. That depends on your definition of

Re: Using a custom method of session-id propagation

2008-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Tom van Wietmarschen wrote: | What I want to change is how the session id is communicated to the | client and back. Basically, I want to change the object that retrieves | the session ID from the HTTP request and feeds it to the session |

Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smithson wrote: | I was wondering if | someone could have a look at [the graph] and tell me if I can | conclude that the performance directives in server.xml do not need to be | modified. That depends on your target performance. If you

Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smithson wrote: | Hi, Christopher. Thanks for your reply. This is a typical hour on | any given day. What other things should I be looking at in Tomcat | and Java? I've got plenty of metrics from other parts of the | operating

Re: Nio related problem - all threads are stuck

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, Kaderabek, Kevin (TS) wrote: | On Linux, I have to create a virtual display with Xvfb This is very unlikely to be the problem. If the application needs X, you'll get an exception when you try to do something that requires it. - -chris

Re: Nio related problem - all threads are stuck

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, Kaderabek, Kevin (TS) wrote: | Understood. My point was more to see if startup.sh had been modified in | previous tomcat version and those changes needed including in the new | tomcat startup.sh. The DISPLAY variable was the one that's

Re: sym link to serve documents within web application.

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, Maffitt, David wrote: | We have a different problem with this. Tomcat will follow the link | and delete the contents of the linked-to directory when the app is | redeployed. We have to be sure that the link is deleted before | redeploying.

Re: mod_jk or mod_proxy_ajp - encryption benefits?‏

2008-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Ellis wrote: | I have done some goog'ling on IPSec and VPN and I have found three | possibilities: | | 1) OpenSSH and Port Forwarding | | 2) OpenVPN | | 3) Stunnel (thanks little voice) | | What concerns me about all three options is

Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smithson wrote: | Do you know of a better way of getting heap numbers out of Java? | Right now I've got three metrics: jvm_mem_free; jvm_mem_max; | jvm_mem_total. Java has multiple heaps (okay, one heap segmented into several

Re: interrupting a multipart post request?

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian, Christian Kindler wrote: | I want to interrupt a multipart post request (e.g. if the content-length | exceeds a given limit). The problem is, that the client seems to | continue sending the data to the server and gets no response from the

Re: Reloading an application when threads are running

2008-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric Daniel wrote: | In short: should I expect running threads to finish processing their | requests, when I reload an application? Yes. Check the servlet specification which, well, specifies this behavior. | Long story: we use tomcat as an

Re: Context information outside of server.xml

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jake, Jake Alley wrote: I've read that META-INF/context.xml only works with WAR files, and I don't use those. Nope. If you are using auto-deploy (will do WAR files or directories), then TC will respect the META-INF/context.xml file in either case.

Re: OutOfMemory exception when deploying using manager app / catalina-ant

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Jölly wrote: removing and deploying the war works, but after a few removals/deployments the vm reports an java.lang.OutOfMemory exception and stops deployment of the application. if i increase the memory size of the tomcat vm then

Re: Image problem on tomcat

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, Zilberstein Yuval wrote: I am trying to display the image on a special mobile browser, by requesting it from a jsp on the tomcat server, But the browser can not display it. Does this image render properly on a normal web browser (like

Re: Keeping busy site responsive

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Clinton, Parham, Clinton wrote: What you suggested initially was that one system be the traffic controller and depending on how busy the enrollment server is, either send users to it or redirect them to a static 'busy' page elsewhere. How were

Re: Entry level help needed

2007-06-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hao, Hao Jiang wrote: If I want to develop a servlet of my own which handles user management in basic authentication model, such as add user, add role, etc, how can I do in my own servlet? Do you want to write a single servlet that /configures/

Re: unzip a jar file from a war file to tomcat/webapp

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Hammes wrote: I have to unzip the jar at the time of deployment because of the size of the war file. the jar file contains 20mb of images. So I can safe several mb to transfer to the server where the application will run. What types of

Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Li, Li wrote: Defaultly tomcat 5.5 only support up to JDK5. If you wanna run your application which was written by JDK 6, you can use Tomcat 6 + JDK 6. Still, Tomcat shouldn't segfault the VM due to a version incompatibility. My guess is that

Re: An unrecoverable stack overflow has occurred.

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Tim Miller wrote: I gave that a shot, it didn't seem to matter. after a couple of minutes of normal flow through the app, it crashed again. Wow, you're talking about a REAL crash: # # An unexpected error has been detected by HotSpot

Re: How do I set maxage on the JSESSIONID cookie?

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Jesse Barnum wrote: Well, you can set the max age on a cookie to something 0, which means that it will persist for that amount of time, even if the user's browser window is closed. I'm just trying to figure out if there is a way to tell

Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Tim Funk wrote: What you'll really want is to ditch the transport guarantee clause in web.xml and create a filter which will be smart enough to force/unforce you from SSL. Why do this when the security-constraint already allows you to

Re: Old Chestnut (http - https) causing some confusion

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Tim Funk wrote: security-constraint only works to say I want pages to be encrypted. Not the latter. Oh, of course. I hadn't really thought of that ;) The typical complaint is a developer wishes to encrypt the login process and nothing

Re: Form authentication with captcha...

2007-07-03 Thread Christopher Schultz
David and Ricardo, David Delbecq wrote: 2) Don't rely on container security and provide your own security with you own whatever forms. Securityfilter (http://securityfilter.sourceforge.net) is a drop-in replacement for container-managed security that is implemented as a filter and can be

Re: Character encoding

2007-07-07 Thread Christopher Schultz
Lightbulb, lightbulb432 wrote: Why is the URIEncoding attribute specified on the connector rather than on a host, for example? Because the host doesn't handle connections... the connectors do. Does this mean that the number of virtual hosts that can listen on the same port on the same box

Re: Tomcat Version problem

2007-07-07 Thread Christopher Schultz
Hanasaki, hanasaki wrote: When you get things working... Please post the solution to the problem so we can all learn. I believe the solution was already posted by Jon Wingfield on 2007-07-05 at 06:09: You are using jdk1.5 features (autoboxing, for example ) in your JSP pages. Early versions

Re: How to use connection pool with tomcat 1.2.9

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thai, Nhut Thai Le wrote: Servlet decument says: getDatasource(HTTPServletRequest) is used to get the default datasource, getDataSource(HttpServletRequest, String) get the selected datasource. This appears to be a Struts method, not anything

Re: [OT] Re: Character encoding

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lightbulb, lightbulb432 wrote: POST requests always use the request's body encoding, which is specified in the HTTP header (and can be overridden by using request.setCharacterEncoding). Some broken clients don't provide the character encoding

Re: Hide 501 error message

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 climbingrose, climbingrose wrote: I'm configuring Tomcat 6.0.10 behind Apache 2.0 using mod_jk 1.2.3. Everything is working beautifully but I want to hide 501 error when malicious user try to access the server. I assume you always want to hide

Re: [OT] Paging

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: There's no JDBC setting. Sure there is: Statement.setFetchSize(int size) Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. The number of rows

Re: Advice about Tomcat on x86_64 architecture..

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prt, Please do not post more than once. We forgive spelling and grammar mistakes. There is no reason to re-post your question with trivial changes. prt wrote: I have Dell PE 2950 with tow Intel xeon dual core 5130 processors. I have three tomcat

Re: Connection-Pools, MySQL and 8 hours

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, Filip Hanik - Dev Lists wrote: The JDBC realm doesn't use the connection pool you've specified below, The JDBC realm uses a single connection, never closes it unless an exception happens. Might I suggest using a JNDI Realm so you can

Re: APR/HP-UX startup problems

2007-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Pederzolli wrote: I am having issues using APR in an HP-UX environment; Ive successful built/installed APR in multiple Linux environments so am I bit lost what is happening in HP-UX... I don't have any HP-UX experience, but this error

Re: Advice about Tomcat on x86_64 architecture..

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Titi, Titi Wangsa wrote: we have 3 instances on the same hardware we did this due to a memory/thread constraint correct me if i'm mistaken, but i've read that the more memory you allocate for you Heap, the less thread you have, we want a lot of

Re: How to use connection pool with tomcat 1.2.9

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thai, Nhut Thai Le wrote: Thanks for the info about the struts 1.3. If you didnt say that, i would pack everything up and deploy on a school server for my demo next week. So now I gotta change back to container-managed dataSource. You can

Re: Duplicate jsessionid in cookies

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hugo, LASSIEGE Hugo wrote: I trace the request between client and server and I see that the jsessionid is set twice. Here is the trace : Request : POST /appli/server/servlet/appliservlet HTTP/1.1 [snip] Response : HTTP/1.1 200 OK [snip]

Re: filtering early

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vitale, Christopher Vitale wrote: I'd like to create a filter very, very early in the processing pipeline. I'm running tomcat 5.5.23 with jre 1.5.0. If a request comes in looking like this: POST /path;jsessionid= HTTP/1.1 cookie:

Re: Tomcat - All threads (200) are currently busy

2007-07-12 Thread Christopher Schultz
Ingo, Ingo Krabbe wrote: Am Donnerstag, 12. Juli 2007 19:12 schrieb André Vila Cova: http-8085-Processor24 daemon prio=1 tid=0x082f1378 nid=0x19c6 in Object.wait() [0xde118000..0xde118e20] at java.lang.Object.wait(Native Method) - waiting on 0xe619f748 (a

Re: memory tomcat

2007-07-12 Thread Christopher Schultz
Alvaro, alvaro tovar wrote: i am trying of configure my tomcat, but i have 2 questions. [1)] is [it] possible to configure tomcat for use 3 gb? Maybe. Most 32-bit JVMs can't actually give you 3GB of heap space. You'll probably be limited to somewhere between 1.5 - 2.0GB. If you have a 64-bit

<    2   3   4   5   6   7   8   9   10   11   >