database connection pooling

2005-11-22 Thread Khawaja Shams
Hello, when using connection pooling, i get a connection from the context. I am curious if I am supposed to close this connection when I am done using it. To me, it seems like closing it would defeat the purpose of connection pooling. Any guidance would be appreciated. Thanks in advance. Best

Re: database connection pooling

2005-11-22 Thread Rémi Flament
You still have to call the close() method but I will not actually close it, it will just mark it as free in the pool. Khawaja Shams a écrit : Hello, when using connection pooling, i get a connection from the context. I am curious if I am supposed to close this connection when I am done using

manager for some users

2005-11-22 Thread Alex Moreno
Hello everybody, i´m working in a university where we have a tomcat server running some different aplications developed by ourselves. We have different people working on each application and each one of them needs to restart at some different moments their applications. The problem is that the

Re: database connection pooling

2005-11-22 Thread Caroline Jen
Hi, you should definitely close the connection right after the method that is invoked. The connection should be closed in the 'finally' block. May we know the reason why you think the closing would defeat the purpose of connection pooling? --- Khawaja Shams [EMAIL PROTECTED] wrote: Hello,

Re: manager for some users

2005-11-22 Thread Alex Moreno
The problem is that some partners has said me that this is insecure and should only be used on beta application servers. At least this is what the department says us to deny this petition. On 11/22/05, Kyle [EMAIL PROTECTED] wrote: If you set which ever server.xml parameter it is that

Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Scott Purcell
I did that, but when I call my url, it goes to the url, and never picks up the context? I was hoping I would call www.myurl.com and it would call www.myurl.com/unique. Why is that the appBase? - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List

enable log4j

2005-11-22 Thread Nehal Sangoi
Hi, I want to enable log4j logger in one of my tomcat instances. I copied log4j-1.2.12.jar to my webapps - war file. This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, copied log4j.properties. Later, re-sreated warfile and started my tomcat instance. log4j.properties :

Re: enable log4j

2005-11-22 Thread Dhaval Patel
Hi Nehal, Do you want to enable log4j in your application or you want to enable log4j inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE logging utility so that you can configure tomcat loggin in log4j. Regards, D --- Nehal Sangoi [EMAIL PROTECTED] wrote: Hi, I want

RE: database connection pooling

2005-11-22 Thread KEREM ERKAN
When pooling on Tomcat, the connection must be closed. I think, by saying closing would defeat the purpose of connection pooling, Khawaja may be thinking about pooling in Tomcat as some persistent connection method, and while it is a persistent connection with Tomcat and the DB server which it

RE: enable log4j

2005-11-22 Thread Dhaval Patel
Hi Nehal, I dont know how to work with multiple tomcat instances. The way I configured my tomcat (single user) to use log4j is different then yours. I followed guide from http://tomcat.apache.org/tomcat-5.5-doc/logging.html . Basically it says, 1. Create a file called log4j.properties with

Re: url to search mailing list

2005-11-22 Thread Dhaval Patel
Hi, This is the site where you have all archives : http://mail-archives.apache.org/mod_mbox/ You can click on perticular email and you will get archives for that perticular email address. For example, http://mail-archives.apache.org/mod_mbox/tomcat-users/ For search, you can use google,

Re: url to search mailing list

2005-11-22 Thread Mike Fowler
Hi, I personally find http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 the most usable, if it's of any help. Thanks, -- Mike Fowler Registered Linux user: 379787 I could be a genius if I just put my mind to it, and I, I could do anything, if only I could get 'round to it -PULP 'Glory

Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Rob Hills
Hi Scott, Scott Purcell wrote: I am completely lost in trying to configure my Tomcat 5.5. I have read the docs under Context, Engine, Host, and am having trouble putting the information to use. I have one webapp that I need to configure to a DNS Entry. I believe the technical term for this

Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Hassan Schroeder
Scott Purcell wrote: I have one webapp that I need to configure to a DNS Entry. Below is my server.xml. My DNS is www.theuniquepear.com and it lives under webapps/unique. But with the below configuration, and when I try and hit the url it goes here: http://www.theuniquepear.com/ and does

RE: database connection pooling

2005-11-22 Thread ALEX HYDE
Khawaja, Just to add to what the others said. When you close the connection it doesn't actually close the connection, it returns it to the pool. You close it to return it, not to actually close it. It doesn't mean literally terminate the connection, otherwise you're right, there would not be much

RE: Help Configuring Engine/Host/Context

2005-11-22 Thread Caldarale, Charles R
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: Re: Help Configuring Engine/Host/Context I was hoping I would call www.myurl.com and it would call www.myurl.com/unique. That is exactly what will happen if you replace the Tomcat ROOT app with your own. Read the rules for the Context

RE: Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hills Subject: Re: Help Configuring Engine/Host/Context The way I achieve what you're trying to do is to create virtual hosts in my servlet.xml file That's completely unnecessary, unless you want a different set of webapps for each

suppress tomcat version numbers

2005-11-22 Thread Kiarna Boyd
Hi I'm trying to suppress the version number Tomcat gives in its headers. Maybe I'm not looking online for the correct phrasing of this issue for either version 4.0.6 or 5.0.28. Could someone please point me in the right direction? Thank you. -Kiarna

RE: suppress tomcat version numbers

2005-11-22 Thread Caldarale, Charles R
From: Kiarna Boyd [mailto:[EMAIL PROTECTED] Subject: suppress tomcat version numbers Hi I'm trying to suppress the version number Tomcat gives in its headers. Read the doc on the Connector tag. You're looking for the server attribute (the description mentions something about being

RE: Calling EJBs

2005-11-22 Thread Duan, Nick
I don't know the JBoss mailing list. But it should available at http://www.jboss.org BTW, the approach I suggested was not just JBoss specific, but a generic solution applicable to all J2EE apps. ND -Original Message- From: Milan Tomic [mailto:[EMAIL PROTECTED] Sent: Monday, November

Servlets (total beginner)

2005-11-22 Thread Milan Tomic
I have compiled my first servlet and copied it into apache-tomcat-5.5.12\webapps\servlets-examples\WEB-INF\classes but when I navigate my browser to http://localhost:8080/servlets-examples/DemoServlet or http://localhost:8080/servlets-examples/servlet/DemoServlet I got an HTTP 404 error

RE: Servlets (total beginner)

2005-11-22 Thread Allistair Crossley
Have you added the servlet and servlet-mapping elements to your web.xml file for this servlet? -Original Message- From: Milan Tomic [mailto:[EMAIL PROTECTED] Sent: 22 November 2005 17:18 To: 'Tomcat Users List' Subject: Servlets (total beginner) I have compiled my first servlet and

RE: Servlets (total beginner)

2005-11-22 Thread Milan Tomic
No, I wasn't. Now I have added it and it works fine now. Thank you, Milan -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 6:27 PM To: Tomcat Users List Subject: RE: Servlets (total beginner) Have you added the servlet and

Re: manager for some users

2005-11-22 Thread erh
On 11/22/05, Kyle [EMAIL PROTECTED] wrote: If you set which ever server.xml parameter it is that auto-reloads an application (I think it's reloadable=true, or something like that) and just have your users recompile their entire app each time and then ftp it into the relevant directory,

JDK Date version 49.0 vs 48.0 problem

2005-11-22 Thread Daxin Zuo
I recently download jdk 1.5. When I compile the java code with JBuilder 9, I get the error: CreateCustomer.java: cannot access java.util.Date,bad class file: C:\Sun\AppServer\jdk\jre\lib\rt.jar\java\util\Date.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it

FTP Was: Re: manager for some users

2005-11-22 Thread Steve Ochani
On 22 Nov 2005 at 14:14, [EMAIL PROTECTED] wrote: On Tue, Nov 22, 2005 at 01:17:56PM +0100, Alex Moreno wrote: The problem is that some partners has said me that this is insecure and should only be used on beta application servers. At least this is what the department says us to deny this

RE: JDK Date version 49.0 vs 48.0 problem

2005-11-22 Thread Carl Olivier
It appears you are running the 1.4 javac using 1.5 rt.jar library. Ensure that you have your compiler (JDK home) set up correctly. Regards, Carl -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: 22 November 2005 20:26 To: Tomcat Users List Subject: JDK Date version

RE: JDK Date version 49.0 vs 48.0 problem

2005-11-22 Thread Carl Olivier
Hmm sorry, but just thought of another option/potential cause here. Try and clean out your cimpilation directory (the classes output location) - may be classes there that are already compiled which require 1.4 rt libs - clear that all out and rebuild your entire source tree from scratch using

RE: Servlets (total beginner)

2005-11-22 Thread Suresh Nair
You must have send this to me by mistake. Please delete me from your message list. Thank you. SURESH NAIR (o) [EMAIL PROTECTED] (h) [EMAIL PROTECTED] (h) [EMAIL PROTECTED] Caldarale, Charles R [EMAIL PROTECTED] Caldarale, Charles R [EMAIL PROTECTED] 23/11/2005 01:34 AM Please

Re: Servlets (total beginner)

2005-11-22 Thread Suresh Nair
You must have send this to me by mistake. Please delete me from your message list. Thank you. SURESH NAIR (o) [EMAIL PROTECTED] (h) [EMAIL PROTECTED] (h) [EMAIL PROTECTED] Milan Tomic [EMAIL PROTECTED] Milan Tomic [EMAIL PROTECTED] 23/11/2005 01:18 AM Please respond to Tomcat

RE: JDK Date version 49.0 vs 48.0 problem

2005-11-22 Thread Daxin Zuo
Thanks for the reply. I use JBuilder 9. I cleaned the old classes, and set the jdk at tool/Config JDK... The error still occurs. It may because the JBuilder 9 does not support JDK 1.5. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 12:45

Re: JDK Date version 49.0 vs 48.0 problem

2005-11-22 Thread Kennedy Roberts
Use the unsubscribe directions at the bottom of the message. Thanks. - Original Message - From: Suresh Nair To: Tomcat Users List Sent: Tuesday, November 22, 2005 3:53 PM Subject: Re: JDK Date version 49.0 vs 48.0 problem You must have send this to me by mistake.

SSL Handshake before parameters sent???

2005-11-22 Thread John MccLain
We have a servlet that is served by Tomcat. IIS is employed to redirect ot Tomcat via AJP. IIS is also SSL enabled as our data is sensistive. I wish to call a servlet and pass SSL encrypted data. BUT, to start the SSL handshake off, I am making a servlet request with the data I wish to be SSL

RE: SSL Handshake before parameters sent???

2005-11-22 Thread Gary Evesson
Depends how they are sent. Parameters sent in a POST will be encrypted using SSL. No user interaction required. Parameters sent using GET will not be encrypted unless you do it yourself. Gary Evesson Decentrix Inc -Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent:

Starting the apache tomcat 4.05 servlet engine on windows xp

2005-11-22 Thread Aaron Bortman
Hello, In my job I recently have been assigned to work with Cocoon. In order to be able to use cocoon I need to be able to deploy it on a servlet engine. The book I am reading to learn Cocoon has chosen tomcat 4.0.5 as the servlet engine to use. I am having a problem getting tomcat to

servlet-mapping question

2005-11-22 Thread hv @ Fashion Content
I am trying to figure out a little headache I am having with the servlet-mapping servlet-nameportalapp/servlet-name url-pattern*.topic/url-pattern Should catch all of the following if I am not mistaken, not just some of them right?

RE: servlet-mapping question

2005-11-22 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion Content Subject: servlet-mapping question Should catch all of the following if I am not mistaken, not just some of them right? http://www.domain.com/ZoA+xaeoHh6s,$EnterPromotionCode.$Form.topic

Re: servlet-mapping question

2005-11-22 Thread hv @ Fashion Content
Good point, but I am not trying to adhere strictly to the URI rfc, as it is generated by the server to refer to the server. Caldarale, Charles R [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion Content Subject:

RE: servlet-mapping question

2005-11-22 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion Content Subject: servlet-mapping question Good point, but I am not trying to adhere strictly to the URI rfc, as it is generated by the server to refer to the server. I don't think it matters who or what generates the URI. If

path attribute for Context element in tomcat 5.5

2005-11-22 Thread Akoulov, Alexandre [IT]
Hi all, I am in the process of upgrading from tomcat-3.3 to tomcat-5.5.12. One of the changes in tomcat 5.5 is the configuration of contexts (ie web apps) is now being done in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory ( rather than

How to get getContextPath() to return

2005-11-22 Thread hv @ Fashion Content
How to you get getContextPath() to return blank for a webapp ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

JSTL

2005-11-22 Thread Behrang Saeedzadeh
Hi, Isn't JSTL a standard part of the J2EE 1.4 Web containers? Shouldn't it be available to Web apps out of the box with no need to include the JAR files in the WEB-INF/lib and referencing to their tlds in the web.xml? Thanks in advance, Behi -- Science is a differential equation. Religion is a

Re: How to get getContextPath() to return

2005-11-22 Thread Hassan Schroeder
hv @ Fashion Content wrote: How to you get getContextPath() to return blank for a webapp ? Make that webapp the default Context for the applicable Host. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com

default logging in tomcat 5.5

2005-11-22 Thread Akoulov, Alexandre [IT]
Hi all, I am in the process of upgrading from tomcat-3.3 to tomcat-5.5 and would greatly appreciate if you could let me know whether I understood tomcat-5.5's default logging correctly. As of tomcat 5.5 Context element does not have a Logger sub-element. Logging can be configured with log4j