Hidden form fields not found in request

2007-10-25 Thread Ashok Venkat
Hello, In the below code, i am submitting a form to itself in the onload method and changing some hidden form field values. After the form is submitted, the hidden values are not available in the request object.As a result, the page gets into an endless loop. Thanks for any help Code: /

RE: [OT] Getting a pattern from a DateFormat object

2007-10-25 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: [OT] Getting a pattern from a DateFormat object > > Does anyone know if I can get the pattern for a DateFormat object? I don't think you can, since DateFormat is abstract; there's no guarantee there's even a pattern involved. > (I

[OT] Getting a pattern from a DateFormat object

2007-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Sorry for the off-topic post. Does anyone know if I can get the pattern for a DateFormat object? If I've got a SimpleDateFormat object, I know I can call toPattern() and get a String describing the pattern. Is there a way to do something simila

Re: tomcat and dir for writting

2007-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miren, Miren Urkixo wrote: > and from weblogic I can use this directory to write from all > applications > > But how can I accomplish this in tomcat? The CLASSPATH variable should have nothing to do with where your application can write. If you need

Re: Suggestions for connection pooling

2007-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: >Connection conn = ds.getConnection(); >try { >...do something... >} finally { >conn.close(); >} Might I further suggest: Connection conn = ds.getConnection();

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pedro, Pedro wrote: > I basically need to implement case insensitive user names, can this be > done with a servlet filter or do I need to subclass JDBC realm: Er, before you get too far on this, check to see if your database already does this without

Re: Suggestions for connection pooling

2007-10-25 Thread Len Popp
On 10/25/07, Tony Fountain <[EMAIL PROTECTED]> wrote: > Now, my goal is to utilize connection pooling. Does (a) this > implementation achieve that and (b) the close statement suffice to > return the object to the pool and not actually close the connection? Or > do I also need to set "conn = null;

RE: Suggestions for connection pooling

2007-10-25 Thread Propes, Barry L
that should work for you Tony. I have a similar setup and mine works properly. -Original Message- From: Tony Fountain [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 3:59 PM To: Tomcat Users List Subject: RE: Suggestions for connection pooling Ok - I think I have my answer bu

tomcat and dir for writting

2007-10-25 Thread Miren Urkixo
Hello i have my tomcat into the /usr/share/tomcat5 directory i have some (10) applications running into this tomcat. I have one appache and using the jk connector i am runnig the apache + tomcat. well. i have into my server one dir /tmp/files for wriiting the apllications, my java applications

RE: Suggestions for connection pooling

2007-10-25 Thread Tony Fountain
Ok - I think I have my answer but I'm going to pass it by the community to verify. First, my setup is: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server Apache is installed in C:\Apache\Tomcat. The location of the XML files is C:\

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Pid
[EMAIL PROTECTED] wrote: > I get to tomcat manager screen now through https://cemcp62:8080/ . what is > the user name and password you use to login ?I tried to login as root but > it doesn`t take it. Thx It depends on your server.xml configuration. If you have a new install, and haven't confi

linux FC5 and tomcat autodeploy

2007-10-25 Thread robert rowntree
expected behavior using default http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html is that when you authenticate to manager application and Post a url asking to undeploy a /Context that the root directory of that context will be deleted and all the files will be deleted. what we have o

Configuring Tomcat 6 with Hibernate 3 MBean for JAAS LoginModule

2007-10-25 Thread Andrew R Feller
Has anyone set up Hibernate's org.hibernate.jmx.HibernateService as a JNDI resource in Tomcat 6? I am currently using Tomcat 6.0.14 from binaries, which doesn't appear to use MBeans as I cannot find anything relat

RE: Suggestions for connection pooling

2007-10-25 Thread Tony Fountain
Thanks for the reference. This looks like what I need. Now to go read up a bit more to grasp the concept. Tony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2000 2:30 PM To: Tony Fountain Subject: Re: Suggestions for connection pooling

Validation of certificates through OCSP

2007-10-25 Thread David
Hello, There was some traffic regarding OCSP and the possibility to implement it (there's even a thread dealing with JDK-native support ) Is anything done in this respect? Otherwise , I don't know what are the options I can follow. I found the package "jGuard" which apparently provices OCSP valid

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Shekhar . Dhotre
I get to tomcat manager screen now through https://cemcp62:8080/ . what is the user name and password you use to login ?I tried to login as root but it doesn`t take it. Thx Pid <[EMAIL PROTECTED]> 10/25/2007 12:38 PM Please respond to "Tomcat Users List" To Tomcat Users List cc Subjec

Need help diagnosing 500 error in 5.0.28

2007-10-25 Thread Karr, David
I'm trying to deploy a simple SOAP service handler (written by someone else) to an ancient version of Tomcat (5.0.28). This app is also running on a production server with the same Tomcat version. I have a command-line tool that I use to send a test message to the server. When I send it, it says

RE: Help with Tomcat & IIS

2007-10-25 Thread Tony Fountain
Why don't you run Apache Tomcat and IIS on the same box? I do here (our IIS pages written in ASP.NET serve content from the Apache Tomcat app via frames). I'm using 5.5.23 and the default windows installation has it listening on port 8080 for non SSL requests and 8443 for SSL requests. Tony ---

Suggestions for connection pooling

2007-10-25 Thread Tony Fountain
Platform: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server We are running software on this platform that we purchased and integrated into our product. We replaced the default authentication class of the product with our own implementation. This resulted

Re: NIO connector in Tomcat 6.0.14

2007-10-25 Thread Filip Hanik - Dev Lists
browser don't work the way you might it expect to, firefox for example, will not display anything until the entire request is complete. so the chat example is no good that way. write a client application for your comet, to test how it works Filip javaxmlsoapdev wrote: I am trying to use NIO co

Re: disable HTTP Methods DELETE, PUT

2007-10-25 Thread Hassan Schroeder
On 10/25/07, Lori Ronning <[EMAIL PROTECTED]> wrote: > So the DELETE and PUT methods reach the application, which I assume should > not happen with the configuration I have below. Maybe it does have to do > with Spring, however I haven't found anything yet pointing to that. I just dropped your s

RE: disable HTTP Methods DELETE, PUT

2007-10-25 Thread Lori Ronning
Yes in our application log is this message for DELETE and PUT. org.springframework.web.servlet.support.RequestMethodNotSupportedException: Request method 'DELETE' not supported So the DELETE and PUT methods reach the application, which I assume should not happen with the configuration I have belo

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Pid
[EMAIL PROTECTED] wrote: > After installing JDK, and adding the following in the startup.sh script > file: export JAVA_HOME=/usr/java6_64/sdk/. It started . How to test it > > [cemcp62]/usr/apache-tomcat-6.0.14/bin>./startup.sh > Using CATALINA_BASE: /usr/apache-tomcat-6.0.14 > Using CATALINA

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Gabe Wong
[EMAIL PROTECTED] wrote: [cemcp62]/usr/apache-tomcat-6.0.14/bin>./startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program [cemcp62]/usr/apache-tomcat-6.0.14/bin>echo $PATH /usr/java6_64/sdk/bin:/u

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Shekhar . Dhotre
After installing JDK, and adding the following in the startup.sh script file: export JAVA_HOME=/usr/java6_64/sdk/. It started . How to test it [cemcp62]/usr/apache-tomcat-6.0.14/bin>./startup.sh Using CATALINA_BASE: /usr/apache-tomcat-6.0.14 Using CATALINA_HOME: /usr/apache-tomcat-6.0.14 Us

NIO connector in Tomcat 6.0.14

2007-10-25 Thread javaxmlsoapdev
I am trying to use NIO connector for getting comet chat example work. Here is what I have in server.xml. I commented out original connector on 8080 (as you can see below) and added NIO on port 8080. I don't above is setup correctly due to two things 1)It takes forever (may be un

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Shekhar . Dhotre
Gabe , Downloaded java and installed it , path is set as per IBm doc and is showing . Still catalina.sh and startup.sh is complaining about the path . [cemcp62]/usr/apache-tomcat-6.0.14/bin>which java /usr/java6_64/sdk/bin/java [cemcp62]/usr/apache-tomcat-6.0.14/bin>java -version java versio

pretty dumb question, please help

2007-10-25 Thread Demetris Zavorotnichenko
Hi guys. I have a simple question I have Apache Tomcat 6 runing on Windows Server 2003 IIS I have a .*WAR application that I run from /webapps So I would run it like this: http://localhost/myapp/Myapp My application has to get Google map Keys from Google. In order to get the Key I have

RE: WAR problems

2007-10-25 Thread Demetris Zavorotnichenko
Well, I found the problem. It was an Access issue with the file. -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 6:12 PM To: 'Tomcat Users List' Subject: RE: WAR problems > From: Demetris Zavorotnichenko [mailto:[EMAIL PROTECTED] > I am

RE: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Shekhar . Dhotre
yes i exported JAVA_HOME on the command line itself. how do u install tomcat-apache or is it just untar of the file? is there any install docs ? Thx "Caldarale, Charles R" <[EMAIL PROTECTED]> 10/25/2007 11:08 AM Please respond to "Tomcat Users List" To "Tomcat Users List" cc Subject

Re: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Gabe Wong
[EMAIL PROTECTED] wrote: All, I downloaded apache-tomcat-6.0.14 .trying to install it on AIX5.3 . I am not able to locate any install doc . So I have untarted tar file which created directories below . I`m guessing that`s how u install it ? when i try to start it I get java error Neither the

Re: Adding NTLM Auth to the Entire tomcat instance

2007-10-25 Thread Pid
Peter Kahn wrote: > Can someone let me know how to setup NTLM authentication such that all > access to tomcat is restricted to users in a specific group? > > I have an instance of tomcat and it is serving several opengrok web apps. > Each opengrop app is pointing at a different source tree. I wan

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Pid
Pedro wrote: > Thanks for stating the obvious Tim, in 5.5 the 'server' directory is > supposed to be the correct place! the question is if the implementation > is valid. You referred to ClassNotFoundException's - his answer is therefore valid. Perhaps you can elaborate on when you're getting this

Re: Service on Windows Server 2003

2007-10-25 Thread Dan Armbrust
jvm.cfg contains the following: -client KNOWN -server KNOWN -hotspot ALIASED_TO -client -classic WARN -native ERROR -green ERROR I don't think that there is a JAVA_OPTS variable set, but I will verify that on the problem machine. Thanks, Dan On 10/26/00, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

RE: WAR problems

2007-10-25 Thread Peter Crowther
> From: Demetris Zavorotnichenko [mailto:[EMAIL PROTECTED] > I am having problems running .WAR applications. > > I have Tomcat 6 through IIS > > Is there something I should know about this ? Divide the problem. If you use a direct connector in Tomcat (i.e. contact Tomcat directly, not through II

RE: help with apache-tomcat-6.0.14 install

2007-10-25 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: help with apache-tomcat-6.0.14 install > > Neither the JAVA_HOME nor the JRE_HOME environment > variable is defined. it`s in the path . Did you read the RUNNING.txt file? Did you set either of JAVA_HOME or JRE_HOME, as the mess

WAR problems

2007-10-25 Thread Demetris Zavorotnichenko
I am having problems running .WAR applications. I have Tomcat 6 through IIS Is there something I should know about this ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Tim Funk
In that case - (I think) it probably won't work - override instead: protected PreparedStatement credentials(Connection dbConnection, String username) protected synchronized PreparedStatement roles(Connection dbConnection, String username) Wh

help with apache-tomcat-6.0.14 install

2007-10-25 Thread Shekhar . Dhotre
All, I downloaded apache-tomcat-6.0.14 .trying to install it on AIX5.3 . I am not able to locate any install doc . So I have untarted tar file which created directories below . I`m guessing that`s how u install it ? when i try to start it I get java error Neither the JAVA_HOME nor the JRE_HOM

Re: Tomcat fronted with apache best practices?

2007-10-25 Thread Jim Jagielski
On Oct 25, 2007, at 7:17 AM, Dragan Jotanovic wrote: Mark Thomas wrote: It all depends on your application. You need to profile it, understand what resources are required per user / session / request (which ever makes sense for your application) and then scale the system appropriately.

RE: Help with Tomcat & IIS

2007-10-25 Thread Propes, Barry L
you can either piggyback Tomcat on IIS like I do, or reroute port 80 requests through Tomcat. I don't do that. I just keep it at port 8080. People have to have a link there anyway to get to the pages or app. I don't understand the big deal of just leaving it there myself. But some people may ha

Adding NTLM Auth to the Entire tomcat instance

2007-10-25 Thread Peter Kahn
Can someone let me know how to setup NTLM authentication such that all access to tomcat is restricted to users in a specific group? I have an instance of tomcat and it is serving several opengrok web apps. Each opengrop app is pointing at a different source tree. I want to restrict access to all

Re: Service on Windows Server 2003

2007-10-25 Thread Dan Armbrust
I am using this version of java: C:\NetProvision\jre\bin>java -version java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode) The jvm.dll version that I am using reports File version: 5.0.70.3 Full

Re: disable HTTP Methods DELETE, PUT

2007-10-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lori, Lori Ronning wrote: > If I make requests to the application running at "/cp" I get a 500 error > back from the app for DELETE and PUT, not the 403 I would assume. Do you get any errors in your log files? - -chris -BEGIN PGP SIGNATURE-

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Pedro
Thanks for stating the obvious Tim, in 5.5 the 'server' directory is supposed to be the correct place! the question is if the implementation is valid. Tim Funk wrote: The dir structure changed from 5.5 to 6 so you need to place your files in different directories depending on the version. See

Re: JDBC Realm with case insensitive user name

2007-10-25 Thread Tim Funk
The dir structure changed from 5.5 to 6 so you need to place your files in different directories depending on the version. See the version specific docs details. -Tim Pedro wrote: Hi all, I basically need to implement case insensitive user names, can this be done with a servlet filter or d

JDBC Realm with case insensitive user name

2007-10-25 Thread Pedro
Hi all, I basically need to implement case insensitive user names, can this be done with a servlet filter or do I need to subclass JDBC realm: public class CustomJdbcRealm extends JDBCRealm { public CustomJdbcRealm() { super(); } public Principal authenticate(String

RE: Help with Tomcat & IIS

2007-10-25 Thread Demetris Zavorotnichenko
I finally made it work guys. Don't ask me how , I don't remember after all that I have done :) -Original Message- From: Milanez, Marcus [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:28 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RES: Help with Tomcat & IIS De

RES: Help with Tomcat & IIS

2007-10-25 Thread Milanez, Marcus
Just to make things clear, the "Web Services Extension" item is located above "Web Sites" item and not under, as I've mentioned... Sorry! -Mensagem original- De: Milanez, Marcus [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 25 de outubro de 2007 09:28 Para: Tomcat Users List; [EM

RES: Help with Tomcat & IIS

2007-10-25 Thread Milanez, Marcus
Demetris, Have you taken all the required steps to integrate IIS and Tomcat? If so, IIS under Windows 2003 requires an extra one which consists on adding a "Web Service Extension". Note that now there is an item named "Web Service Extensions", under "Web Sites" folder. Just right click on it and

Re: Apache2 mod_jk segfault

2007-10-25 Thread Neil Wilson
Mark Thomas wrote: Well, it isn't working now so what have you got to lose? I'd try the latest mod_jk and see what happens. You can always go back to 1.2.14. Mark True, it's only the web app part of scalix that's broken, so hopefully it won't interfere with anything else if I upgrade it. Th

Accept compresed requests in tomcat

2007-10-25 Thread wakeup
I have tomcat configurate to send responses compresed with gzip if the cliente send me the Accept-encoding:gzip http header. But how allow tomcat to accept compressed request with Content-encoding: gzip header? Thanks - http://www.hhdirecto.net Rap http://www.dechiste.com Humor http://www

RE: Tomcat fronted with apache best practices?

2007-10-25 Thread Dragan Jotanovic
Mark Thomas wrote: > It all depends on your application. You need to profile it, understand what resources are required per user / session / request (which ever makes sense for your application) and then scale the system appropriately. Thanks for the reply Mark. But could you tell me at least abo

Re: Tomcat fronted with apache best practices?

2007-10-25 Thread Mark Thomas
Dragan Jotanovic wrote: > Now, my question is, what would be the optimal configuration for tomcat > connector and Thread sPerChild in apache? How much would it be safe to > increase number of threads for this kind of machine? It all depends on your application. You need to profile it, understand

Tomcat fronted with apache best practices?

2007-10-25 Thread Dragan Jotanovic
Hi there, I have Tomcat 6.0 fronted with Apache 2.2 through AJP1.3 connector serving 3 applications on Windows 2003. They are both running on machine with 4 dual-core intel processors with 4 Gb of RAM. In my httpd.conf I have: ThreadsPerChild 250 MaxRequestsPerChild 0 And in

Re: Apache2 mod_jk segfault

2007-10-25 Thread Mark Thomas
Neil Wilson wrote: > apache2-prefork-2.0.59-1.1 > mod_jk/1.2.14 > > I can't upgrade the packages, they all came prepackaged as RPMS with my > current Scalix version and I can't be sure that if I upgrade some of > them that the Scalix will continue working. Well, it isn't working now so what have

Re: Restrict users from the /manage/ application

2007-10-25 Thread michaeltwozero
Thanks Mark, That looks like what I need I will try it on a test system first, and then apply to the actual server if succesfull Regards, Mike. Mark Thomas-15 wrote: > > michaeltwozero wrote: >> Is there a way I can configure the management application to only respond >> to >> requests fr

Re: Tomcat error, with Scalix

2007-10-25 Thread Neil Wilson
Christopher Schultz wrote: You might want to re-post your error with a new subject: something like "mod_jk seg fault". I'm no mod_jk expert, and it doesn't look like any of the mod_jk folks are reading this thread. Once you get Mladen or Rainer to look at this, they'll have some good ideas. Th

Apache2 mod_jk segfault

2007-10-25 Thread Neil Wilson
Hi guys, I'm getting a segmentation fault in my apache2 error.log and I think it's related to my mod_jk. When I restart apache2 I see the following errors. [Thu Oct 25 11:14:33 2007] [error] (13)Permission denied: apr_global_mutex_lock(jk_log_lock) failed [Thu Oct 25 11:14:33 2007] [notice]

Re: Confused about startup

2007-10-25 Thread Lyallex
Hi Thanks for this and thanks to those that replied about this off list. Sometmes I struggle to make myself understood, this is one such time I think. All I really wanted to know was why Bootstrap.main() had the line "Main method, used for testing only" In it's comment block. As far as I can se