troubles with error pages

2007-01-10 Thread reno
hello, i 've got this exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De

What is the command to set servlet.jar in Linux Fedora Core 2.6.9-1.667

2007-01-10 Thread Teh Noranis Mohd Aris
Dear All, So far, I've been using Windows XP operating system to run my servlets. Now, I want to change to Linux Fedora (2.6.9-1.667). The operating system was installed for me by someone and he had already set JAVA_HOME for me. I'm actually very new to Linux Fedora and not familiar with t

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Bob Hall
Mike, You missed the essence of Chris's suggestion: "3. Throw an exception in your catch(SQLException) block." In other words, your catch block would "swallow" the SQLException should one occur. As written, the code cannot be compiled because there is no explicit return statement in the catch{}

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Michael Ni
hmmm there is a sqlexception in my catch block, unless i'm doing it wrong. mike From: Christopher Schultz <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: [OT] a Collection of beans to store sql data Date: Wed, 10 Jan 2007 21:15:50 -0500 -BEGIN PGP SI

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Len Popp
On 1/10/07, Michael Ni <[EMAIL PROTECTED]> wrote: thanks for the quick reply, by the way everyone is telling me to make my functions return objects instead of resultset. why is returning resultset bad? Because of this line: try {if (rs != null) rs.close();} catch (SQLException e) {} Your

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Michael Ni
thanks for the quick reply, by the way everyone is telling me to make my functions return objects instead of resultset. why is returning resultset bad? From: Christopher Schultz <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: [OT] a Collection of beans

Re: [OT] a Collection of beans to store sql data

2007-01-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Ni wrote: > My problem is i get > > PersonNew.java:48: missing return statement > } [snip] > public Collection getPersondata( String alias, String password ) { > >Connection conn = null; >PreparedStatement stmt = null; >

Is it possible to deploy a war file which gives a different context name?

2007-01-10 Thread Aaron Chai
Is it possible for Tomcat to deploy war files where the context name is not the same as the original war file name, e.g. deploying webapp.war and the context name is /mainApp instead of /webapp. How would this be achieved if it is possible? Thanks.

a Collection of beans to store sql data

2007-01-10 Thread Michael Ni
I was wondering if anyone could help with this. As recommended by forum members, I am using a Collection of beans to store the data from sql query. My problem is i get PersonNew.java:48: missing return statement } ^ I found some information on the subject on http://forum.java.sun.com/threa

context

2007-01-10 Thread tarakarajendra prasad
hello sir, Please tell me how to create context under host from administration tool af= ter editing tomcat-users.xml and logging as admin&manager. regards, Prasad DTR ___ All New Yahoo! Mail – Tired of unw

Re: Documentation nits in tc6's logging.html

2007-01-10 Thread Mark Thomas
Erik Bertelsen wrote: > Looking through the Tomcat 6 docs, I noticed the following in > logging.html about how to use log4j for logging with > extras/tomcat-juli.jar: the 4th step about replacing tomcat-juli.jar > is ok, but the 5th step about adding tomcat-juli-adapters.jar looks > like it has bee

Re: Issue with Changing sessionid values -- please help...

2007-01-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kim, Kim Albee wrote: > Client Config: > AOL Version 9 web browser. How are you managing sessions? Is the container doing it for you, or are you doing them yourself? Cookies or URL rewriting? Is the server and/or session configuration sensitive to th

Re: Creating a custom session manager -- SOLVED

2007-01-10 Thread Bryan Basham
Oops... I had some bugs in the code. Here's the latest source. -Bryan/ / TestSharedSession.tar.gz Description: GNU Zip compressed data - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROT

Issue with Changing sessionid values -- please help...

2007-01-10 Thread Kim Albee
Server Configuration: Linux Fedora Core 3, Apache 2.0, Tomcat 5.0.30 session sharing and load balanced (with session persistence on a server) across two servers (not using tomcat / JK load balancing). Client Config: AOL Version 9 web browser. When users come in to the site and login, then move

Re: How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Barrie Selack
>There is no way currently. I have a patch on my local machine which >allows add this functionality for FileDirContext. >http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html > > docBase="/usr/local/crap"> >aliases="/a1=/mypath/images;/a2=/foopath/images" /> > > >But I ha

Re: Problem with auto-deploy

2007-01-10 Thread David Rush
I have further evidence that the problem has to do with my new .war file being copied in when the background processor (auto-deploy) cycle "hits" and tries to reload. I've slowed the process to every 30 seconds rather than the apparent default of every 10 seconds (by setting backgroundProcesso

Re: Creating a custom session manager -- SOLVED

2007-01-10 Thread Bryan Basham
Hello again, Chuck Caldarale solved my configuration problem. I then created the code to solve the "shared session" manager problem. I created a test (see attached JAR file) with the solution code which I thought I would share with the Tomcat community in case someone else needs to solve thi

Apache Tomcat issue

2007-01-10 Thread Sharpless, Frank
Hello, I have a very strange issue regarding my Apache/Tomcat configuration. The symptom is that when a user is trying to connect to a non balanced web application (i.e. /setup or /stech) the initial request can take up to 120 seconds to respond; any request after that replies very quickly,

RE: CPU Spike Every 10 seconds

2007-01-10 Thread Caldarale, Charles R
> From: Ashraf Mohamed [mailto:[EMAIL PROTECTED] > Subject: CPU Spike Every 10 seconds > > What does Tomcat do that could cause a cpu spike of almost exactly 50% > almost exactly every 10 seconds? It's most likely the background processor thread for the Catalina engine; look at the description f

CPU Spike Every 10 seconds

2007-01-10 Thread Ashraf Mohamed
Hi, We are running Tomcat 5.5.9 on Windows 2000 Server. Our test involves 500 plus clients sending periodic jsp requests. Performance logs show that the tomcat process spikes up to 50% every 10 seconds even AFTER the test has ended and the clients have stopped sending requests. Tomcat logs show

Re: How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Tim Funk
There is no way currently. I have a patch on my local machine which allows add this functionality for FileDirContext. http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html But I haven't had time to see if my patch is secure or compliant if someone uses the WebDav servlet. In the m

How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Barrie Selack
I am converting from Resin and there I can map a directory not inside the webapp to one which can be reached via a URL and translated by Resin as below: /files/* /realdir/files I can't seem to find a way in Tomcat to do that. Do I have to write my own filter? Any tips or help apprec

Re: running tomcat invisibly

2007-01-10 Thread David Kerber
Roger Simmons wrote: Is it possible to run tomcat invisibly (that is without any console being displayed) if you check "Allow Service to Interact with the Desktop" in Windows services? (I'm using tomcat 5.5) Probably not, but if you *uncheck* that option, the only place you'll see it is in t

Re: Can APR use verisign certs ?

2007-01-10 Thread Mladen Turk
robert lazarski wrote: On 1/10/07, Bill Barker <[EMAIL PROTECTED]> wrote: https://dpt.alphatheory.com/ +1 Mozilla/5.0 (X11; U; Linux x86_64 ... +1 GNU Wget 1.10.2 (Red Hat modified) So, it looks fine to me. Regards, Mladen. --

Re: Securing Tomcat Article for Review

2007-01-10 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/01/2007, at 11:50 AM, Mikolaj Rydzewski wrote: Leon Rosenberg wrote: Sure, I could write my own filters and pass the static content through them first, but that'd slow down the whole app (tested). Could you explain this a little more? Ho

RE: JK 1.2.20 - Sticky session doesn't work properly

2007-01-10 Thread Henk Fictorie
mod_jk tries to find the best worker as you said for: * searching worker for session route jmv_web1 Thus the jvmRoute is set to jmv_web1, there is no match for jmv_web1 in the workers.properties. So it gets a best worker by using the loadbalancing algorithm. Which will result in a roundrobin as

RE: JK 1.2.20 - Sticky session doesn't work properly

2007-01-10 Thread Matteo Turra
Sorry, Finally I got it.. I misspelled jvm_web1 with jmv_web1. Now it works! -Original Message- From: Matteo Turra [mailto:[EMAIL PROTECTED] Sent: mercoledì 10 gennaio 2007 17.28 To: Tomcat Users List Subject: RE: JK 1.2.20 - Sticky session doesn't work properly I did not. Here is my wor

RE: JK 1.2.20 - Sticky session doesn't work properly

2007-01-10 Thread Matteo Turra
I did not. Here is my workers definition: JkWorkerProperty worker.list=wlb, jvm_web1, jvm_web2 JkWorkerProperty worker.wlb.type=lb JkWorkerProperty worker.wlb.balance_workers=jvm_web1, jvm_web2 JkWorkerProperty worker.wlb.sticky_session=True JkWorkerProperty worker.jvm_web1.type=ajp13 JkWorkerPr

Re: urgent : unsubscribe please

2007-01-10 Thread David Delbecq
I see that your sending addresse is not exactly the same as the one in your signature. Could it be the mailing list tool messed-up with the uppercase? (Yeah i know stupid suggestion, but let's be sure) En l'instant précis du 01/10/07 16:58, [EMAIL PROTECTED] s'exprimait dans toute sa noblesse: > He

RE: debugging Servlets under Tomcat 5.5 on Windows XP

2007-01-10 Thread Caldarale, Charles R
> From: Heiko Petzsch [mailto:[EMAIL PROTECTED] > Subject: debugging Servlets under Tomcat 5.5 on Windows XP > > - the FAQ "How do I debug a Tomcat application?" tells me to modify > 2 environment variables JPDA_ADDRESS and JPDA_TRANSPORT, > and then to start Tomcat via the catalina.bat script

mod_jk - WARNING: processCallbacks status 2

2007-01-10 Thread walt
Hi, I'm having a problem with Apache,Tomcat, and mod_jk. Apache - 1.3.33 Tomcat - 5.5.12 mod_jk - 1.2.20 We have a jsp web page which calls a servlet to load images. The servlet gets the image by connecting to a java application running on a seperate file server. Every now and then we get the e

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread David Uctaa
In server.xml, within GlobalNamingResources, include something like this: Within the context.xml in your application's META-INF folder, include this underneath the element: Within your appilcation code, include something like this: InitialContext initCtx = new InitialContext(); Context ctx

Re: Problem with auto-deploy

2007-01-10 Thread David Rush
Chuck: Thanks for the tip. I played a bit with both attributes, with no luck (but admittedly I don't fully understand them, so I was playing somewhat blind). I was able to get different errors, but no joy. Here's what I've since discovered My normal mode of operation is to copy my .war

AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-10 Thread Andy.Scherzinger
Hi Filip, Thanks for your answer. I also thought about this solution of just setting all objects again at the end of the doGet method. But if possible I would like to use a tomcat replication mechanism since I do not want to "manage" session since I have a tomcat-built-in session manager :) And

Re: urgent : unsubscribe please

2007-01-10 Thread Christopher . Lee
Hello, Just so you know and maybe the list owners know as well. I have tried to unsub about 5 times sending to the correct email address and it fails. Never get a response and I am still on the list. Great list, lots of help, just the volume is high and hard to keep up with sometimes. -chrisl

Re: the best method to secure Apache/tomcat communication

2007-01-10 Thread Filip Hanik - Dev Lists
take a look at autoSSH http://www.harding.motd.ca/autossh/ Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lmk, lmk wrote: I have a question concerning the use of Apache server in front of tomcat, at the present time, we use tomcat 4, AJP, apache 2.2 and mod

Re: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-10 Thread Filip Hanik - Dev Lists
to achieve what you want, although slower, you can create a filter, and in that filter simply set all the attributes again Enumeration e = session.getAttributeNames(); while ( e.hasNext() ) { String name = e.next(); Object value = session.getAttribute(name); if ( value != null ) session.setAt

debugging Servlets under Tomcat 5.5 on Windows XP

2007-01-10 Thread Heiko Petzsch
Hi, I want to debug servlets running under Tomcat 5.5.20 (freshly installed) on Windows XP, but I can't get the JVM to open the debug port in order that Eclipse can attach to it (as verified by running "netstat -a"). It seems to me that the documentation on how to enable debugging is outdated

RE: Can APR use verisign certs ?

2007-01-10 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: Can APR use verisign certs ? > > with firefox 2.0 on x86_64 linux works fine. > same with mozilla 1.7.13 > even koqueror says the certificate is valid. Looks like something changed overnight. I now have no problems getting to the m

Re: Can APR use verisign certs ?

2007-01-10 Thread Leon Rosenberg
with firefox 2.0 on x86_64 linux works fine. same with mozilla 1.7.13 even koqueror says the certificate is valid. regards Leon On 1/10/07, robert lazarski <[EMAIL PROTECTED]> wrote: On 1/10/07, Bill Barker <[EMAIL PROTECTED]> wrote: > > In all the gory details, it seems that at the moment the

Re: Can APR use verisign certs ?

2007-01-10 Thread robert lazarski
On 1/10/07, Bill Barker <[EMAIL PROTECTED]> wrote: In all the gory details, it seems that at the moment the app in question is only sending it's own cert back to the browser (instead of the entire chain). However all browsers recognize Verisign's cert as a signer, so they don't care. Older bro

Re: JK 1.2.20 - Sticky session doesn't work properly

2007-01-10 Thread Henk Fictorie
The session cookie is set to .jmv_web1 while your worker is set to jvm_web2. I guess you've go jmv and jvm mixed up. Henk Matteo Turra wrote: > > I upgraded my apache+jk+tomcat configuration with new JK connector > 1.2.20 > > > > My system is one Apache http server and two tomcat runni

[ANN] Apache Tomcat v6.0.7-beta

2007-01-10 Thread Remy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.7 beta. This release is the second beta release of the 6.0.x branch. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a refactored

Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-10 Thread David Delbecq
Just a simple question. Is it a problem for you that java reclaim unused memory space instead of consuming more OS memory? In general, there is a garbage collection thread that keep running in low priority when you start the jvm, that's why it starts to GC even when your limit is not reached yet.

RE: running tomcat invisibly

2007-01-10 Thread Caldarale, Charles R
> From: Roger Simmons [mailto:[EMAIL PROTECTED] > Subject: running tomcat invisibly > > Is it possible to run tomcat invisibly (that is without any console > being displayed) if you check "Allow Service to Interact with the > Desktop" in Windows services? Maybe I'm misinterpreting your question,

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread Greg Foulks
David, Any chance you could share with me your connection pool configuration? I've been struggling with trying to setup my own connection to our DB2 using the jt400 jar and have not been able to find any documentation for doing this with a DB2 connection. Thanks, Greg On 1/10/07, David Uctaa <[

worker.properties

2007-01-10 Thread Vinicius Carvalho
Hello there! Does anyone have an example of worker.properties with values set for a high load server? For parameters like connection_pool_timeout, socket_timeout and etc... Any suggestions are really appreciated Best regards -

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread David Uctaa
Possible. I'll give it a try... On 1/10/07, Varley, Roger <[EMAIL PROTECTED]> wrote: > > I agree that is probably what is happening, since the application has > gone idle. However, with garbage collection, while it will only > reclaim memory when necessary, there is a way to force garbage > c

RE: Getting Tomcat5.exe to run with server JVM

2007-01-10 Thread Caldarale, Charles R
> From: Sascha Wehnert [mailto:[EMAIL PROTECTED] > Subject: AW: Getting Tomcat5.exe to run with server JVM > > This is already the case. Used path for JVM is > C:\app\java\jre\bin\server\jvm.dll Then it should already be using the server mode. You can check which mode it's in by looking at the

RE: How to forcibly close abandoned database connections?

2007-01-10 Thread Varley, Roger
> > I agree that is probably what is happening, since the application has > gone idle. However, with garbage collection, while it will only > reclaim memory when necessary, there is a way to force garbage > collection. I am looking for a similar process with abandoned > database connections. >

AW: ISAPI_redirect, IIS6.0 vs TomCat 5.0.28 - multiple websites!

2007-01-10 Thread Florian Nahnsen
I don't know if somebody's interested in this topic, but I found my mistake: I forgot to set the "Script and Executables" permissions of the jakarta virtual folder. Best regards, Florian -Ursprüngliche Nachricht- Von: Florian Nahnsen [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 8. Dezemb

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread David Uctaa
I agree that is probably what is happening, since the application has gone idle. However, with garbage collection, while it will only reclaim memory when necessary, there is a way to force garbage collection. I am looking for a similar process with abandoned database connections. On 1/10/07, ED

Re: the best method to secure Apache/tomcat communication

2007-01-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lmk, lmk wrote: > I have a question concerning the use of Apache server in front of tomcat, at > the present time, we use tomcat 4, AJP, apache 2.2 and mod_jk to manage load > balancing. it work roughly fine; but new security rules require [encrypting

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread EDMOND KEMOKAI
It is possible that whatever procedure is responsible for checking for abandoned connections only does so when there is actual need for a connection, similar to how a garbage collector works to reclaim memory. If there is no seeming stress on the connection resources then it would make sense not t

Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-10 Thread EDMOND KEMOKAI
use visualGC, you'll see that there are various generations of objects depending on the expected lifetime of those objects. The GC would run on those regularly even if all your allocated memory hasn't been utilized. If you have an app that uses lots of memory or that has a memory leak (which I hav

Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-10 Thread Suresh babu
Hi, Just for your information .. Memmory is divided in young and old generation as object life increasing it will occupy space i old generation, Please refer SUN JVM documentation. GC will keep happening once the memmory (Young generation )reached threshold. Young generation again divided in

JK 1.2.20 - Sticky session doesn't work properly

2007-01-10 Thread Matteo Turra
I upgraded my apache+jk+tomcat configuration with new JK connector 1.2.20 My system is one Apache http server and two tomcat running on two different machines (say web1 and web2) I put sticky session in my load balancer worker (I can see it from Jk Status Manager page) but request jump betw

Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-10 Thread Andy.Scherzinger
Hi everybody, I have a Tomcat 5.5 cluster with 2 nodes on SLES8 and want to replicate the complete session before the response is send. According to the Tomcat Clustering documentation the example with the DeltaManager does this since the ReplicationValve triggers the replication after the requ

Re: How to forcibly close abandoned database connections?

2007-01-10 Thread David Uctaa
Perhaps I was unclear what it is I'm trying to do. I have a connection pool set up under Tomcat 5.5, connecting to DB2 on an iSeries box using Tomcat's DBCP. It is set up for 30 connections. I am using Lambda Probe (a great open source Tomcat monitoring app) to monitor the datasources. It is s

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
That's 16GB, and I wouldn't consider it cheap. Besides, our company is renting the servers since we don't just put some machines down in our private "bunker" ;) Bute Leaon, we#re eally getting off-topic here, so if you want to discuss this isse further, feel free to drop me a line on my private e

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Darren <[EMAIL PROTECTED]> wrote: > but if you remember how this thread > started, the author of the article and OP suggested in his article to > put an apache / iis in front of tomcat to INCREASE security No I didn't, but if that's how you interpreted the section on 'running on port

Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-10 Thread starki78
Hi I'm profiling my application with -verboseGC. My maximum heap-size is XMS is 1.5GB but the garbage collection always is executed when about 1GB is reached. Why is it so early? Is there anything to control this? I'm using Sun 1.4.2 Thanks and nice greetings Starki -

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Gregor Schneider <[EMAIL PROTECTED]> wrote: > hmm, haven't you said you have 300.000 files? I don't know how large > your files actually are, but assuming 100K a fairly large size you 'll > need ~30 Gb of RAM to cache them all. Now a machine with 32 Gb of RAM > is pretty cheap nowerda

Re: Securing Tomcat Article for Review

2007-01-10 Thread Darren
but if you remember how this thread started, the author of the article and OP suggested in his article to put an apache / iis in front of tomcat to INCREASE security No I didn't, but if that's how you interpreted the section on 'running on port 80' then it needs to be reworded accordingly. h

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
Markus, Therefore - IMO - a claim like "i'm just saying that nobody should worry about this combination" is useless (maybe even dangerous) without the "ifs" you've come up with now, full stop. OK, we absolutely disagree on that one - so can we leave it at that? You got the honor of the final w

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
Hi Leon, I think we both now can agree that there are millions of absolutely valid reasons to run a httpd-tomcat combination, but that security isn't among them :-) Ok? Absolutely! hmm, haven't you said you have 300.000 files? I don't know how large your files actually are, but assuming 100

Tomcat 4.1.30/5.0.28 empty responses - return code "200 -"

2007-01-10 Thread Andreas Deller
Hi Sporadically, I experience that the layout of my application is messed up. I found out that this is based on missing GIFs and CSS. In the access logs, there are a number of entries with the HTTP status code "200 -". So the response is OK, but no content length is logged, and no content is sent

Re: Updating the jvm path with procrun does not work

2007-01-10 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: > I configure my tomcat with the procrun.exe but only setting jvm path does > not work. > > What I do is this: > > "C:\FPS\Tomcat 5.5\bin\tomcat5.exe" //US//TC5FPS > --Jvm=C:\Programme\Java\jre\bin\client\jvm.dll > > but this does not work. When I look in the monitor the i

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: > Still, since you can guarantee that everything is in memory if you > customize your webapp, and apache httpd simply relies on the file > system cache which has it's own behaviour, not designed for your > webapp, a si

running tomcat invisibly

2007-01-10 Thread Roger Simmons
Is it possible to run tomcat invisibly (that is without any console being displayed) if you check "Allow Service to Interact with the Desktop" in Windows services? (I'm using tomcat 5.5) Thanks Roger - To start a new topic, e-ma

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Gregor Schneider <[EMAIL PROTECTED]> wrote: Hi Leon, On 1/10/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > Aehm, > the original thread was about security, and now you wrote "performs" > better, which I assumed referred to "performance". If not - my fault > :-) > Well, we moved ki

Re: Securing Tomcat Article for Review

2007-01-10 Thread Markus Schönhaber
Mikolaj Rydzewski wrote: > Leon Rosenberg wrote: > >> Sure, I could write my own filters and pass the static content through > >> them first, but that'd slow down the whole app (tested). > > > > Could you explain this a little more? How can it be that if you write > > out something from memory it's

Re: Securing Tomcat Article for Review

2007-01-10 Thread Markus Schönhaber
Gregor Schneider wrote: > On 1/10/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: > > Gregor Schneider wrote: > > > that's definately not the case. > > > > "Definitely"? Hm, again such an absolute claim of yours for which you > > provide no facts to back it up. > > Markus: > As I stated above: I

Re: Cannot create object of class

2007-01-10 Thread Stephan Schöffel
i took the example from the head first ooa&d book. i now created separate classes for timertask and runnable. works fine. thanks for the help stephan Caldarale, Charles R wrote: From: Stephan Schöffel [mailto:[EMAIL PROTECTED] Subject: Cannot create object of class java.lang.NoCla

Re: Securing Tomcat Article for Review

2007-01-10 Thread Mikolaj Rydzewski
Leon Rosenberg wrote: Still, since you can guarantee that everything is in memory if you customize your webapp, and apache httpd simply relies on the file system cache which has it's own behaviour, not designed for your webapp, a single filesystem "miss" will cost more time than you'll ever win b

the best method to secure Apache/tomcat communication

2007-01-10 Thread lmk
Hello, I have a question concerning the use of Apache server in front of tomcat, at the present time, we use tomcat 4, AJP, apache 2.2 and mod_jk to manage load balancing. it work roughly fine; but new security rules require crypting the trafic between 2 web servers. we cant use solution like IPS

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
Hi Leon, On 1/10/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote: Aehm, the original thread was about security, and now you wrote "performs" better, which I assumed referred to "performance". If not - my fault :-) Well, we moved kinda of-topic here, sou you got me right. What I actually wanted t

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
Hmm, interesting reading. Still, since you can guarantee that everything is in memory if you customize your webapp, and apache httpd simply relies on the file system cache which has it's own behaviour, not designed for your webapp, a single filesystem "miss" will cost more time than you'll ever

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Gregor Schneider <[EMAIL PROTECTED]> wrote: Hi Leon, On 1/10/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > In *our* scenario I rather have Apache http in front because > > > > - it performs better > > What? > You can argue that httpd doesn't decrease security, but talking about >

Re: Securing Tomcat Article for Review

2007-01-10 Thread Mikolaj Rydzewski
Leon Rosenberg wrote: Sure, I could write my own filters and pass the static content through them first, but that'd slow down the whole app (tested). Could you explain this a little more? How can it be that if you write out something from memory it's slower than ask the filesystem which could e

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
Hi Leon, On 1/10/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > In *our* scenario I rather have Apache http in front because > > - it performs better What? You can argue that httpd doesn't decrease security, but talking about it being fast??? Come'on you're kidding :-) Sorry, but I don't get

Re: Advanced War deployment

2007-01-10 Thread Leon Rosenberg
well create a directory on the clients machine called home/something and put all files you'd have in your war file there. (like in jar -xf myapp.war). Than if you want to update anything, you just update the part you need in this directory; same for the client, if he wants to update some html fil

Re: Securing Tomcat Article for Review

2007-01-10 Thread Leon Rosenberg
On 1/10/07, Gregor Schneider <[EMAIL PROTECTED]> wrote: > > OTOH, i'd rather have apache in > > front than running tomcat on port 80 via jsvc or as a service. > > I'd like to repeat Chuck's question: why? > Plain and simple: You also can misconfigure jsvc (ok, chances are pretty small...) In *o

Advanced War deployment

2007-01-10 Thread Vlasov Igor
Vlasov Igor wrote: > > I have one commercial project and want to deploy it throw .war deployment > process. > My application uses external libs (10 mb) which must presents in > WEB-INF\lib dir. All app size is 12mb. > > How can i avoid of putting all that libs in .war file and transfer only >

Re: Advanced War deployment

2007-01-10 Thread Vlasov Igor
Leon Rosenberg-3 wrote: > > hmm, > > why don't you put the expanded web-app structure on the client's > machine somewhere else than under tomcat, put your new files therein > and repackage the .war on the machine directly? > > regards > Leon > Please give me the detailed explanation ot you

Re: Securing Tomcat Article for Review

2007-01-10 Thread Gregor Schneider
Hi Marcus, On 1/10/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: Gregor Schneider wrote: OTOH there a very good reasons to use a httpd-Tomcat combination. Alas, the "only reason" there "usually" is, as you said, I wouldn't count amongst the good reasons. Tomcat serves static content just fin

Updating the jvm path with procrun does not work

2007-01-10 Thread OJAY78
Hi, I configure my tomcat with the procrun.exe but only setting jvm path does not work. What I do is this: "C:\FPS\Tomcat 5.5\bin\tomcat5.exe" //US//TC5FPS --Jvm=C:\Programme\Java\jre\bin\client\jvm.dll but this does not work. When I look in the monitor the is still the use default option f

Re: Advanced War deployment

2007-01-10 Thread Mikolaj Rydzewski
Vlasov Igor wrote: All libs MUST be in WEB-INF/lib. And i want to use standart procedure of detecting new .war and its deployment process BUT a want to manually control what files to undelpoy during this process Thus i can prevent that libs ant CLIENT UPLOADED FILES to delete from unpacked dir

Re: Advanced War deployment

2007-01-10 Thread Leon Rosenberg
hmm, why don't you put the expanded web-app structure on the client's machine somewhere else than under tomcat, put your new files therein and repackage the .war on the machine directly? regards Leon On 1/10/07, Vlasov Igor <[EMAIL PROTECTED]> wrote: Mikolaj Rydzewski-2 wrote: > > Vlasov Ig

Re: AW: Advanced War deployment

2007-01-10 Thread Vlasov Igor
Markus Döring wrote: > > Hi, > Don't know if there is a better way to do, but you can place the lib files > into one of the following directorys instead of into the .war file: > > /tomcat/common/lib > /tomcat/server/lib > /tomcat/shared/lib > > Greetings > Markus > > I have no rights to ace

Re: Advanced War deployment

2007-01-10 Thread Vlasov Igor
Mikolaj Rydzewski-2 wrote: > > Vlasov Igor wrote: >> I have one commercial project and want to deploy it throw .war deployment >> process. >> My application uses external libs (10 mb) which must presents in >> WEB-INF\lib >> dir. All app size is 12mb. >> >> How can i avoid of putting all that l

Re: Can APR use verisign certs ?

2007-01-10 Thread Bill Barker
Since I can't get the cert tree, I'm guessing the same problem: Only this time with the JDK's stored certs. Configuring the to force sending the good intermediate cert should solve all of the problems. In all the gory details, it seems that at the moment the app in question is only sending i

AW: Advanced War deployment

2007-01-10 Thread Döring Markus
Hi, Don't know if there is a better way to do, but you can place the lib files into one of the following directorys instead of into the .war file: /tomcat/common/lib /tomcat/server/lib /tomcat/shared/lib Greetings Markus > -Ursprüngliche Nachricht- > Von: Vlasov Igor [mailto:[EMAIL PROT

Re: AW: deploying war files

2007-01-10 Thread Vlasov Igor
what I do is to deploy the war file as zip file, then extract it and reload the applicataion. It's not very nice, but it's working automatically in an ant script, I did it because the war file deployment was to unstable. How do you automatically run this ant script? -- View this message in c

Re: Advanced War deployment

2007-01-10 Thread Mikolaj Rydzewski
Vlasov Igor wrote: I have one commercial project and want to deploy it throw .war deployment process. My application uses external libs (10 mb) which must presents in WEB-INF\lib dir. All app size is 12mb. How can i avoid of putting all that libs in .war file and transfer only actual content of

Advanced War deployment

2007-01-10 Thread Vlasov Igor
I have one commercial project and want to deploy it throw .war deployment process. My application uses external libs (10 mb) which must presents in WEB-INF\lib dir. All app size is 12mb. How can i avoid of putting all that libs in .war file and transfer only actual content of my app in one file?

AW: Getting Tomcat5.exe to run with server JVM

2007-01-10 Thread Sascha Wehnert
Hi Chuck, > -Ursprüngliche Nachricht- > Von: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 9. Januar 2007 18:19 > An: Tomcat Users List > Betreff: RE: Getting Tomcat5.exe to run with server JVM > > > From: Sascha Wehnert [mailto:[EMAIL PROTECTED] > > Subject: Getti