best and simple way of login mechanism

2004-05-24 Thread Arora, Avinash
Hi, I want to provide a login page for my web applicatioin. I used the memory realm, by making changes in the server.xml. But it started giving me Connection errors, and I was not able to see the web pages. Then I commented the Memory realms tag and then I was able to see the web pages

error shutting down the tomcat

2004-05-12 Thread Arora, Avinash
Hi, I was making some changes to my server.xml (I was adding another context to it). I was also using the webpage of manager. But even after making changes I cannot see the newly context available in the manager window. I decided to restart tomcat using command line. But I am getting the

log in page using tomcat

2004-05-11 Thread Arora, Avinash
Hi, Does tomcat provides any help in creating the log in page. I want to create a login page, that will accept same username and password specified in server.xml particular data source context (for logging to database) in the ResourceParams tag. Thanks. Avinash Arora

closing the statement and result set object

2004-05-10 Thread Arora, Avinash
Hi, When we obtain the Statement object from the connection object is it necessary to close the statement object separately, when I am closing the connection object. I had an impression that when we close the Connection object the Statement and Result set objects get closed automatically. Am I

setting dbcp connection pool connections

2004-05-07 Thread Arora, Avinash
Hi, How do we set up the number of connections that we want, while using dbcp connection pooling provided by tomcat. I think we have to configure some xml file. But don't know what changes we have to make in which file. Can any body give a sample file. Thanks. Avinash Arora

RE: DB connection pool problem

2004-05-06 Thread Arora, Avinash
block? To me, the message tells that the web.xml and java code is fine. The server.xml is not edited correctly. in you server.xml, you put ResourceParams name=jdbc/conversion, but where is the resource jdbc/conversion? -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent

specifying location of confg file

2004-05-06 Thread Arora, Avinash
Hi, How can we specify the location of config file, so that we don't have to hardcode it in our code. Thanks. Avinash Arora Avinash Arora -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:27 PM To: [EMAIL PROTECTED] Subject: tomcat

RE: DB connection pool problem

2004-05-05 Thread Arora, Avinash
: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:29 PM To: Tomcat Users List Subject: RE: DB connection pool problem You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash

RE: DB connection pool problem

2004-05-04 Thread Arora, Avinash
, ResultSet.CONCUR_READ_ONLY ); rs = pStateSearch.executeQuery(); That's all. -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:10 PM To: Tomcat Users List Subject: DB connection pool problem Hi, I am

RE: DB connection pool problem

2004-05-04 Thread Arora, Avinash
you're mixing incompatible database access methods. Try doing dataSource.getConnection() after getting a valid datasource instead. You'll be happier with the result. Take a look at the javadocs for javax.sql.DataSource for more info. --David Arora, Avinash wrote: Hi friends

DB connection pool problem

2004-05-03 Thread Arora, Avinash
Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my application in following way-- #added to server.xml Context path=/DBTest

editing tomcat class path

2004-03-15 Thread Arora, Avinash
) Apache Tomcat/4.1.29 Avinash Arora Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

editing the class path w

2004-03-14 Thread Arora, Avinash
) Apache Tomcat/4.1.29 Avinash Arora   Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]