Re: Using servlet and mysql

2007-05-28 Thread Teh Noranis Mohd Aris
Dear All, I already put mysql database driver (jar file) in directory catalina_home\common\lib and changed 8080 to 3306 but I got the error "java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect". What should be the

Jasper compiler crashes

2007-05-28 Thread Berglas, Anthony
When I try to precompile I get a null pointer exception deep in .servlet.JasperLoader.loadClass. Happens for almost all of my .jsps. They work fine with incremental compile. They do use tags defined with JSTL .tag files. Tags call tags. tomcat-6.0.10-src If anyone knows of decent docs on p

Re: Web application receives request parameters sent to another application on Tomcat 6

2007-05-28 Thread Dejan Krsmanovic
I am aware of that. We are printing request parameters inside Servlet's doPost method. Dejan Len Popp wrote: > It is possible that Tomcat resuses request objects. I'm not sure it > does, but it might. For that reason, you're only allowed to use the > request object in your servlet's doGet or doPo

Re: Using servlet and mysql

2007-05-28 Thread Foo Shyn
Hi, You'll need to get the MySQL database driver and put them in the {catalina_home}\common\lib folder. The driver can be easily obtained through MySQL site. BTW, as far as i know, the default port for MySQL database is 3306, so you might wanna change that. 8080 is for Tomcat, not the database

Re: Installing ISAPI redirect for IIS

2007-05-28 Thread Mark Thomas
Al Sparks wrote: > Is there an even better way of doing this? http://tomcat.apache.org/connectors-doc/reference/iis.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error

2007-05-28 Thread Mark Thomas
Fabbris Pierluigi wrote: > Thank Bill, where I can find the patch? I've Apache on Windows xp. :-( The point Bill was making is there isn't any such patch and perhaps you would like to write one. Mark - To start a new topic, e-m

Re: Unconnected sockets not implemented

2007-05-28 Thread Mark Thomas
Nencho Lupanov wrote: > any idea? OS? Tomcat version? Steps you followed to configure SSL? Full stack trace? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Tomcat Netbeans Project... WildCat

2007-05-28 Thread Mark Thomas
Johnny Kewl wrote: > + One can dump the src into a Netbeans project, click compile and you have a > working Tomcat. Great. But you have no guarantee it will behave the same way as Tomcat built with the standard build script. It should be the same but be prepared for some odd, unexpected errors - p

Re: Using servlet and mysql

2007-05-28 Thread Zachary Grafton
On Tuesday 29 May 2007 01:14, Teh Noranis Mohd Aris wrote: > Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh > but I got the error java.lang.ClassNotFoundException: > com.mysql.jdbc.Driver. I'm very new to using mysql database and servlet. > Can you please explain to me h

Re: Using servlet and mysql

2007-05-28 Thread Teh Noranis Mohd Aris
Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh but I got the error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. I'm very new to using mysql database and servlet. Can you please explain to me how to create the database name and its fields? Should I install

Re: Using servlet and mysql

2007-05-28 Thread Foo Shyn
Hi, would be ur database port, xxx will be ur database name HTH FooShyn Teh Noranis Mohd Aris wrote: Hi, I would like to access mysql database from a servlet but I'm not sure what to initialize for the String connectionURL marked as "jdbc:mysql://localhost:/xxx" in the program b

Using servlet and mysql

2007-05-28 Thread Teh Noranis Mohd Aris
Hi, I would like to access mysql database from a servlet but I'm not sure what to initialize for the String connectionURL marked as "jdbc:mysql://localhost:/xxx" in the program below. I got this program from the internet which I would like to run in my computer. Can anyone please expl

Installing ISAPI redirect for IIS

2007-05-28 Thread Al Sparks
I've got a Windows 2000 server running IIS (IIS 5.x) and I've installed Apache Tomcat 6.0. I want to install the ISAPI redirector. I've accessed the following instructions: http://tomcat.apache.org/connectors-doc-archive/jk2/jk2/installhowto.html but according to one post I've read on this fo

Re: Web application receives request parameters sent to another application on Tomcat 6

2007-05-28 Thread Len Popp
It is possible that Tomcat resuses request objects. I'm not sure it does, but it might. For that reason, you're only allowed to use the request object in your servlet's doGet or doPost method, you can't stash it somewhere (e.g. in the HttpSession) and access it later. (This is mentioned in the ser

Re: Excluding JSP compiler from Tomcat

2007-05-28 Thread Len Popp
Well, you didn't say what version of Tomcat you're using. Those files do indeed exist, in Tomcat 5.5. For Tomcat 6, in the lib directory you'll see 3 Jasper jars. Try removing those. I don't know if it'll cause any problems, but you'll only save a couple of MB of disk space, and no runtime memory

Re: Web application receives request parameters sent to another application on Tomcat 6

2007-05-28 Thread Dejan Krsmanovic
Rashmi Rubdi wrote: > It is hard to tell what could be the problem without knowing full > details of how the 2 projects Host, Context etc are configured. > > Are they at the ROOT context, or other Context? No, they are on different contexts (not ROOT). > > Are they on a virtual host or all of them

Re: Tomcat Native Library Breaks SSL

2007-05-28 Thread Mike Grandmaison
You might try following the real documentation: http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS - Chuck Thank you, actually I found an old message from you when I searched the archive and that is how I thought to remove the native library in order to get my install to work again. I d

Tomcat 6.0.13 issue with web.xml generated by Eclipse

2007-05-28 Thread Michael Hoffman
I allow Eclipse to generate and update my web.xml file for me as part of a dynamic web project. When it generates the web.xml, it uses project facets to add namespaces to my web.xml file as below: http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web=

Re: Excluding JSP compiler from Tomcat

2007-05-28 Thread Rashmi Rubdi
On 5/28/07, lightbulb432 <[EMAIL PROTECTED]> wrote: Thanks for your response. For the first of the two options you presented, what exactly happens during the web.xml autogeneration? Will it simply change only the elements but leave everything else as is in my current web.xml, including ? Is the

RE: Configuring Tomcat 5.5 and IIS 6

2007-05-28 Thread rcgeorge23
Hi Chuck, Thanks for that. I've now downloaded and attempted to set up the jk connector - I think I've got a little further but I'm still not seeing the page that should be served up by Tomcat. I've set up a simple set of config files (essentially just grabbing them from the jakarta how-to and c

Re: Web application receives request parameters sent to another application on Tomcat 6

2007-05-28 Thread Rashmi Rubdi
On 5/28/07, Dejan Krsmanovic <[EMAIL PROTECTED]> wrote: We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recently we have upgraded to Tomcat 6.10 and start experie

RE: Tomcat Native Library Breaks SSL

2007-05-28 Thread Lakshmi Venkataraman
Also, use tcnative-1.1.9. I also encountered problems with 1.1.10. --Lakshmi -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 7:38 AM To: Tomcat Users List Subject: RE: Tomcat Native Library Breaks SSL > From: Mike Grandmaison [mailto

Reload keystore

2007-05-28 Thread Samuel Scheidegger
If I add a new client-certificate to the keystore, how can I force Tomcat to reload the keystore without restarting tomcat? Can I set a timer to say tomcat has to reload the keystore every xx-seconds? Or is there any way to program this? Thank you for your help Sam -

Re: Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error

2007-05-28 Thread Fabbris Pierluigi
Thank Bill, where I can find the patch? I've Apache on Windows xp. :-( Fabbris Pierluigi Bill Barker ha scritto: The Tomcat auto-config was originally designed for Httpd 1.3.x (yes, it's that old :). It hasn't really kept up with Httpd, so some of the directives are now out of date. Patches ar

Re: Admin config

2007-05-28 Thread Mikolaj Rydzewski
Albert Shih wrote: I've install from ports (FreeBSD) the tomcat 5.5 (need by my web-applications). Forget this one. The best and easiest way is: 1. install java ;-) 2. create account dedicated for tomcat 3. download tar.gz from tomcat website, unpack, configure according to guide

Re: Excluding JSP compiler from Tomcat

2007-05-28 Thread lightbulb432
Thanks for your response. For the first of the two options you presented, what exactly happens during the web.xml autogeneration? Will it simply change only the elements but leave everything else as is in my current web.xml, including ? Is there anything else it changes? The less it changes, the

Re: Excluding JSP compiler from Tomcat

2007-05-28 Thread lightbulb432
I can't seem to find either of those two files in the Tomcat 6 distribution...interesting. Bill Barker-2 wrote: > > > "lightbulb432" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> The JSP spec says that if you precompile JSPs you can reduce the JSP >> container footprint

Admin config

2007-05-28 Thread Albert Shih
Hi all I've a very very newbie on tomcat (first day I try to configure tomcat)... I've install from ports (FreeBSD) the tomcat 5.5 (need by my web-applications). The applications I need to run is configured by admin tomcat. Well for this I've install admin module and it seem everything working (

RE: Tomcat Native Library Breaks SSL

2007-05-28 Thread Caldarale, Charles R
> From: Mike Grandmaison [mailto:[EMAIL PROTECTED] > Subject: Tomcat Native Library Breaks SSL > > Windows XP > Tomcat 5.5.23 > http://tomcat.heanet.ie/native/1.1.10/binaries/win32/ > > I followed the openssl instructions at > http://www.galatea.com/flashguides/tomcat-ssl-5-unix > to setup my s

Re: Is there opportunity to replicate configuration files for nodes of cluster?

2007-05-28 Thread Filip Hanik - Dev Lists
nope, not at this time Filip Corobitsyn Roman wrote: Hello list Is there opportunity to replicate configuration files for nodes of cluster? Thx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Tomcat Native Library Breaks SSL

2007-05-28 Thread Mike Grandmaison
I am working with Windows XP Tomcat 5.5.23 http://tomcat.heanet.ie/native/1.1.10/binaries/win32/ I followed the openssl instructions at http://www.galatea.com/flashguides/tomcat-ssl-5-unix to setup my ssl. When I start tomcat and try to connect to localhost:8443 the browser sits there l

Web application receives request parameters sent to another application on Tomcat 6

2007-05-28 Thread Dejan Krsmanovic
We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recently we have upgraded to Tomcat 6.10 and start experiencing strange behavior. After a lot of debugging, we have

Re: session timeout

2007-05-28 Thread albrecht andrzejewski
Quoting Pierre Goupil <[EMAIL PROTECTED]>: Hello all ! I'm using a Tomcat-based authentication. How do you do to set the session timeout time ? I mean, the time of inactivity after which one the user must re-login. You can set the http session-time into the Web.xml file of you webapp:

Is there opportunity to replicate configuration files for nodes of cluster?

2007-05-28 Thread Corobitsyn Roman
Hello list Is there opportunity to replicate configuration files for nodes of cluster? Thx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: session timeout

2007-05-28 Thread Pierre Goupil
Pretty straight-forward : thanx a lot ! Pierre 2007/5/28, Olivier Bouchereau <[EMAIL PROTECTED]>: Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set this in a specific webapp web.xml so t

Re: session timeout

2007-05-28 Thread Olivier Bouchereau
There is a spelling mistake in what i wrote : 60 This should work better i guess ;) 2007/5/28, Olivier Bouchereau <[EMAIL PROTECTED]>: Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set

Re: session timeout

2007-05-28 Thread Olivier Bouchereau
Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set this in a specific webapp web.xml so that it would be the only one with a 60 minutes session timeout. Olivier Le 28/05/07, Pierre Goupil <[EM

Unconnected sockets not implemented

2007-05-28 Thread Nencho Lupanov
Hi all, I have tomcat ssl configured ant tried to access it with a jsse client but i get the following error: [java] Exception in thread "main" org.apache.axis2.AxisFault: Unconnected s ockets not implemented; nested exception is: [java] java.net.SocketException: Unconnected sockets