Re: Sharing compiled JSPs

2007-03-28 Thread Bernhard Fröhler
I believe you can configure the scratch directory of a host with its workDir attribute in server.xml. Hope this helps Bernhard Steve Vangasse schrieb: Yes but when you have multiple hosts, each one has it's own set of compiled JSPs under $CATALINA_HOME/work/Catalina/(hostname). I would like

Re: FileUpload to different machine

2007-03-28 Thread org
A long time now since I played with Debian, but if I remember correctly just make your java program be able to write to a linux folder /etc/whatever, then get SAMBA, it allows you to map linux drives to windows and visa versa, then you will simply map a windows share to a lnked drive on linux,

Configuring PoolMan for MySQL

2007-03-28 Thread Mohammed Zabin
Hi All I am wondering what is the steps to configure poolman to run with MYSQL Database over tomcat Apache? Regards

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread org
Ha ha... sounds like you looking for a magic function, which reminds me of my first computer program... got to tell you :) A million years ago in my 1st year I was walking past the varsity main frame, I'd heard all sorts of things about this amazing beast... so I walked in, watched someone

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread David Delbecq
En l'instant précis du 27/03/07 02:22, Berglas, Anthony s'exprimait en ces termes: Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because it

Re: Sharing compiled JSPs

2007-03-28 Thread David Delbecq
En l'instant précis du 28/03/07 00:14, Steve Vangasse s'exprimait en ces termes: My application has a large number of contexts under virtual hosts that use the same set of webapps. At present, all the JSPs are compiled to a different scratch directory under tomcat/work for each context. Is it

RE: Sharing compiled JSPs

2007-03-28 Thread Steve Vangasse
Sounds like one time pre-compilation is achievable. Thanks for the tips. On the perm gen saving issue, all shared jars and classes are under the shared class loader already (shared/lib). I see what you're saying about possible problems with the common class loader, but would it be possible to

RE: Paths in CSS files

2007-03-28 Thread Mike Quilleash
Thanks for all the replies. I will stick with the relative paths for now as that seems simplest. I also agree about keeping the css files clean. I would prefer not to use the JSP workaround for inserting the context path. I will look into the virtual hosts tho to see if it might be useful in

Re: request hangs

2007-03-28 Thread Chris Eldredge
Well, as I've stated I'm not aware of any resource contention. The UDP socket is being used in a daemon thread that is executing asynchronously with the standard Tomcat request processing threads and I don't see any blocks waiting for monitors etc. Even worse, I tried removing tc-native from

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Berglas, Anthony wrote: Thanks for the reply. The underlying issue is that when Role R is required for Page P then *TWO* things need to happen depending on whether the user is in role R. These are 1. Allow or block access to page P.

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, I was hoping that for what you need it would be possible to piggyback on that simple framework, even if it meant parsing the tomcat-users.xml to gray menu's, but it seems you have to work outside of that frame-work. Parsing

Tomcat 6.0.10 hangs on startup when APR enabled

2007-03-28 Thread Stefan Armbruster
Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: 28.03.2007 16:14:00 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.8. ...

Re: send access log to remote server

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring all other logging with log4j is pretty simple but it seems I can't do the same with the AccessLogValve. Do I

RE: Replacing tomcat-users.xml

2007-03-28 Thread Warren Lewis
Take a look at this HOWTO. It describes how to configure security/realms to fit your needs: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html cheers - Warren -Original Message- From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:08 AM To:

memory usage

2007-03-28 Thread samanth marisetty
Hi, I have configured the jvmoptions to have a higher perm size -XX:MaxPermSize=128m in the service.bat file and it is reflected in the tomcat6w.exe list of jvmoptions. Now I want to know if there is a way to know if tomcat is actually using rather set to specified amout of perm space? Can

Re: Configuring PoolMan for MySQL

2007-03-28 Thread Rashmi Rubdi
Are you referring to Connection Pooling: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html ? -Rashmi On 3/28/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Hi All I am wondering what is the steps to configure poolman to run with MYSQL Database over tomcat Apache?

Re: send access log to remote server

2007-03-28 Thread Brantley Hobbs
Martin, I have a filter that logs to a database table. It could easily be modified to make log4j entries, which can then be tied to any valid log4j appender. B. Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring

Re: send access log to remote server

2007-03-28 Thread Martin Strand
That sounds interesting, could you share the code? :) Martin On Wed, 28 Mar 2007 18:09:36 +0200, Brantley Hobbs [EMAIL PROTECTED] wrote: Martin, I have a filter that logs to a database table. It could easily be modified to make log4j entries, which can then be tied to any valid log4j

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

2007-03-28 Thread Jayson Enriquez
Tim - Thank you for replying. We currently run Documentum (Webtop) utilizing catalina.bat on Tomcat 5.0.28. When installing webtop, it errors out and says cannot find file catalina.bat or its path (which should be C:\Program Files\Apache Software Foundation\Tomcat5.5\bin I was hoping that someone

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

2007-03-28 Thread Tim Lucia
Well then, you aren't downloading the correct file. You need the zip which contains Catalina.bat. Tim -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 1:08 PM To: Tomcat Users List Subject: RE: Which Tomcat 5.5.23 file do I download

RE: Error importing SSL certificate

2007-03-28 Thread Reis, Tom
Keytool -import -alias tomcat -trustcacerts -file c:\tomcat50\cert.cer -keystore c:\tomcat50\.keystore -Original Message- From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:42 PM To: Tomcat Users List Subject: RE: Error importing SSL certificate

Re: Is it possible somehow for Tomcat to serve ASP.NET pages?

2007-03-28 Thread org
Easy to simulate, Add Thread.Sleep(1) and then print a blue screen ha ha, dont shoot me, just kidding. No, I dont think it will ever happen, I think the problem will always be that programmers on .NET dig into the win32 system too much and use add-on stuff like MS transaction

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-03-28 Thread Mladen Turk
Stefan Armbruster wrote: Hi, Tomcat hangs on startup when I try to enable the APR native library. After setting java.library.path to /usr/local/apr/lib/, catalina.out gets just these two lines: You will need apr 1.2.x The generic path for that looks like /usr/local/apr-1/lib The

Re: increase the backend idle connection timeout or the connection_pool_minsize

2007-03-28 Thread Babu Satasiya
Hi, I think in mod_jk 1.2.20 these old parameters changed with new parameter names, these old paramter does not take effect into your mod_jk. Please change them with new name. Please refer URL for more details changes in new mod_jk:

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: Which Tomcat 5.5.23 file do I download for Windows?

2007-03-28 Thread Jayson Enriquez
Filip and Tim - I will work on this asap. Thank you again for your help. Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:20 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows?

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

2007-03-28 Thread David Kerber
The way I've always done a windows installation is to install from the .exe file to get my services set up, and then unzip the .zip version right on top of the installation, so I have the extra support files from the zip, without having to manually do the service installation. Jayson

Session Problems Apache httpd - tomcat

2007-03-28 Thread Nelson D. guerrero
Hello everyone, I'm new to the list and I've been using tomcat for quite some time now and have a little question. Any help would be greatly appreciated. I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I move it to an apache httpd server with mod_jk connected to the same

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Nelson D. guerrero
On Wed, 2007-03-28 at 16:14 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: I've made a little jsp to show me the current session I'm on, when using it on a standalone tomcat server the session never changes, when I move

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

2007-03-28 Thread Jayson Enriquez
Thank you for the tip David. I'll give it a shot. Jayson -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:33 PM To: Tomcat Users List Subject: Re: Which Tomcat 5.5.23 file do I download for Windows? The way I've always done a windows

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some particular object in your sessions to see if that has changed? I'm

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Nelson D. guerrero
On Wed, 2007-03-28 at 16:32 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: How are you checking to see if the session has changed? Are you looking at request.getSession().getSessionId()? Or are you looking at some

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: Are you using cookies or URL-rewriting in order to track sessions? No, the developers are using cookies or URL-rewriting, is this the only way that the sessions can replicate between them? Assuming that Tomcat

Tomcat manager console not appearing

2007-03-28 Thread Fabian Arocena
Hi All, I have enabled the tomcat manager console in a Solaris box by adding the necessary roles and usernames in /opt/apache-tomcat-5.5.17/conf/ tomcat-users.xml. Everything goes fine when I log in to one of them ( manager console ( by going to this link: https://151.193.178.113/manager/html

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Pid
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: Are you using cookies or URL-rewriting in order to track sessions? No, the developers are using cookies or URL-rewriting, is this the only way that the sessions can replicate

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Nelson D. guerrero
On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. I'm sorry, I'm not following.

Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh
Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! I have Windows 2000 Professional (German). Tomcat 5.5.20. Running Java 1.5. Can anyone here tell me what I'm doing wrong? I tried the keystore in my user directory - but

RE: Tomcat HTTPS Help needed

2007-03-28 Thread Zhan, Jimmy
Hi, If you connect to http://localhost while https://localhost:8443, what happen? Make sure http://localhost works first. Jimmy Cash America -Original Message- From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 4:23 PM To: Tomcat Users List Subject:

Re: Session Problems Apache httpd - tomcat

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or

Re: Characters prepended to index.jsp

2007-03-28 Thread orn amental
But how come it shows up in the browser? On 3/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: These characters  are normally not visible in regular text editors like jEdit or Eclipse etc. One way to get rid of the characters is to create a new file, press Ctrl A and copy everything from the

Re: Characters prepended to index.jsp

2007-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Orn, On 3/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: These characters  are normally not visible in regular text editors like jEdit or Eclipse etc. orn amental wrote: But how come it shows up in the browser? Probably because your server is

Re: Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh
http://localhost worked before and still works. I also checked the firewall settings. It definitely isn't a problem here - I even tried setting up a different connector http://localhost:8443 (not https) and this worked - so I'm 100% sure its not a firewall issue. Any other ideas? b.t.w.

Re: Tomcat HTTPS Help needed

2007-03-28 Thread Martin Gainty
did you enable SSL on Port 8443 in server.xml??? e.g. !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100

Re: Tomcat manager console not appearing

2007-03-28 Thread Martin Gainty
Fabian- in $TOMCAT_HOME/conf/tomcat-users.xml check your username you are using to access the manager has these roles defined roles=admin,manager M-- --- This e-mail message (including attachments, if any) is intended for

Re: Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh
I sure did - heres a little bit of my server.xml Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true

Re: Characters prepended to index.jsp

2007-03-28 Thread Rashmi Rubdi
On 3/28/07, orn amental [EMAIL PROTECTED] wrote: But how come it shows up in the browser? I don't know. All I know is that even though they *exist* they don't appear on IDEs , but until you get rid of them ( by following one of the above 2 methods or perhaps other methods) , they will

How to verify crossdomain.xml in Tomcat

2007-03-28 Thread Hitesh Raghav
Hi, In one of my application, I've to deploy crossdomain.xml file in my Tomcat (i.e. Tomcat 5.x). Could you please guide me regarding location (i.e. directory) and how to verify the same on my Tomcat web serever. Please let me know in case any other details are needed. Thanks and

Re: How to verify crossdomain.xml in Tomcat

2007-03-28 Thread Mark Thomas
Hitesh Raghav wrote: Hi, In one of my application, I've to deploy crossdomain.xml file in my Tomcat (i.e. Tomcat 5.x). There is no such file in a Tomcat installation. Maybe it is part of an application you are trying to deploy? Mark

RE: How to verify crossdomain.xml in Tomcat

2007-03-28 Thread Hitesh Raghav
Hi Mark, I'm trying to deploy the Flex based app on my Tomcat5 web-server. To allow cross-domain resource access, crossdomain.xml file need to be deployed. Pl look into below article for more details: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Pl visit to below URL for

Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Teh Noranis Mohd Aris
Dear All, I hope all of you can still remember me. I had the problem of writing the file content from an applet to a servlet. Now, I'm using JSP and it works. However, from JSP code examples, I always see only one submit button to the server. I would like my system to have several submit

Re: How to verify crossdomain.xml in Tomcat

2007-03-28 Thread Mark Thomas
Hitesh Raghav wrote: Therefore, I need the help rgd crossdomain.xml deployment directory and verification mechanism in Tomcat scenario. It would appear that this is a static file that needs to be deployed in the top level directory of the ROOT web application. Google or search the archives if

Re: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Hassan Schroeder
On 3/28/07, Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: I would like my system to have several submit buttons This is a basic HTML question, nothing to do with JSP. Yes, a form in an HTML document can have multiple submit buttons; reading the appropriate recommendation is, uh, recommended

Re: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Teh Noranis Mohd Aris
Dear All, Maybe my question is not that clear. What I mean, is that there are 2 buttons that read data from the server and write data to the server using one textarea. If anyone have the code or come across the code, please e-mail it to me. Thank you. TEH Hassan Schroeder [EMAIL

Re: Tomcat HTTPS Help needed

2007-03-28 Thread Mladen Turk
Martin Cavanagh wrote: Hi everyone. I'm quite embarrassed - but inspite following the Apache guide, I just can't set up HTTPS via Tomcat! C:\keytool -list -keystore c:\.keystore Geben Sie das Keystore-Passwort ein: Keystore-Typ: JKS Keystore-Provider: SUN The logs don't seem to show

Re: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Hassan Schroeder
On 3/28/07, Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: Maybe my question is not that clear. What I mean, is that there are 2 buttons that read data from the server and write data to the server using one textarea. OK, so? It's basic webapp stuff. Is there an actual technical question here

Re: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Foo Shyn
Thanx. Regards, FooShyn - Original Message - From: Teh Noranis Mohd Aris [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 29, 2007 12:21 PM Subject: Re: Is it possible to have more than one submit button in a JSP file? Dear All, Maybe my