Re: How to get user name after login

2005-09-15 Thread Caroline Jen
I think it is getRemoteUser(); --- ±ç¬±³õ [EMAIL PROTECTED] wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For

The connection was refused when attempting to contact localhost:7001

2005-08-10 Thread Caroline Jen
I am using the Tomcat 5.0.28. I have two browsers: Netscape and IE. I have been testing my JavaServer Faces (JSF) applications. I put JSF example war files (I tested many examples) under the webapps directory, started my Tomcat, and typed http://localhost:7001/X in the browser's address bar.

Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-15 Thread Caroline Jen
I had exactly the same problem when I tried to configure the Tomcat 5.0.27. At that time, a number of people reported the difficulty. Finally, we put the configuration code in between the realm .../ element and the Host element of the $TOMCAT/conf/server.xml. Please e-mail me if you still have

Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-15 Thread Caroline Jen
/ -- !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- !-- The DefaultContext segment and its elements below are added by Caroline Jen -- DefaultContext Resource name=jdbc/OracleDB auth=Container type=javax.sql.DataSource

Re: FW: My very first servlet cannot be run

2005-01-28 Thread Caroline Jen
Hi Patrick, I suppose that your compiled Log4jTester in the test package is under this directory: C:\tomcat-5.x/webapps/ROOT/WEB-INF/classes The mapping in the web.xml file should be: servlet servlet-namelog4j/servlet-name servlet-classtest.Log4jTester/servlet-class

Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread Caroline Jen
Please take a look at http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat It gives instructions on the installation of Tomcat and compiling and testing simple Servlets and JSPs. Please let us know if you still run into problems. --- K thiruthuvadas [EMAIL PROTECTED] wrote:

Re: Sending email with zip file attach problem

2005-01-24 Thread Caroline Jen
It is an example of sending bulk mails with attachment. You have to write the uploaded file into a temporary directory. See the attachments. I hope the example could be useful. -Caroline --- Daxin Zuo [EMAIL PROTECTED] wrote: Hi, Please help. Any sugestion is welcome. In my web page,

Re: File upload

2004-10-28 Thread Caroline Jen
Are you following the struts-upload.war example that comes with the Struts 1.1? In that example, the uploaded file size is checked. If a file is stored somewhere under the AppName/WEB-INF directory, you have to use the stream to read the file. --- Derrick Koes [EMAIL PROTECTED] wrote:

RE: Loading Oracle Driver Problems

2004-09-22 Thread Caroline Jen
You have the same problem that a number of people stumbled on last week. Finally, the problem was solved after days of struggle. Please find the Tomcat configuration procedure in the attachment. Contact me if you have further questions. --- David Short [EMAIL PROTECTED] wrote: Copy the Oracle

RE: Help on database and server configuration

2004-09-21 Thread Caroline Jen
Please find the Tomcat 5.0.27 connection pool configuration procedure in the attachment. --- Ben Souther [EMAIL PROTECTED] wrote: If you have a specific question, or can't figure out an entry in your log files, feel free to ask. On Tue, 2004-09-21 at 09:33, Shanti Priya wrote:

RE: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Caroline Jen
Hi, Yoav. I have not yet solved my Tomcat 5.0.27 CP configuration problem. Yesterday, you said that the Tomcat log should not show it looked for MySQL driver when I am trying to connect to the Oracle 9i driver. It turned out that there is another application in the webapps looking for the

RE: Server.xml configuration problem

2004-09-16 Thread Caroline Jen
Hi, yours is working now. Mine is not. I missed the steps. Could you post your server.xml file please? Thanks. --- LINGALA, AMARESHWAR G (SBCSI) [EMAIL PROTECTED] wrote: It is working now, All I have to do is put the resource params inside of the DefaultContext Thanks for all your

Att Is Needed Badly: (Several People Are Reporting exactly the Same Problem)Tomcat 5.0.27 CP Configuration

2004-09-15 Thread Caroline Jen
, is this the most recent version of the Oracle JDBC driver? --David Caroline Jen wrote: I have been struggling with this problem for more than a week. I did follow the JDBC datasource howto. And I posted all the steps that I have taken to configure the Tomcat 5.0.27 connection pool

Tomcat Connection Pool Configuration Problem (Cannot Establish the Connection)

2004-09-14 Thread Caroline Jen
Sorry about my previous posting. Now, I have got better trace of my JDBC connection problem. I am using the Tomcat 5.0.27, j2sdk1.4.2, Oracle 10i, Windows XP. The error message is: == root cause org.dhsinfo.content.exceptions.PageDAOSysException:

Re: Tomcat Connection Pool Configuration Problem (Cannot Establish the Connection)

2004-09-14 Thread Caroline Jen
-0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: When I configured the Tomcat 5.0.27, I did put the driver and URL in the C:\jakarta-tomcat-5.0.27\conf\server.xml file (The That's great, but did you actually put the driver in a location that tomcat could find it ? Like here

Re: Tomcat Connection Pool Configuration Problem (Cannot Establish the Connection)

2004-09-14 Thread Caroline Jen
Kwok [EMAIL PROTECTED] wrote: On Tue, 14 Sep 2004 13:56:48 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: When I configured the Tomcat 5.0.27, I did put the driver and URL in the C:\jakarta-tomcat-5.0.27\conf\server.xml file (The That's great, but did you actually put the driver

Re: Tomcat Connection Pool Configuration Problem (Cannot Establish the Connection)

2004-09-14 Thread Caroline Jen
Help may be truly needed. A couple of more people are reporting the exactly the same problem with the Tomcat 5.0.27 at http://java.sun.com -- Forums -- JDBC I am not the only one having this problem. --- Caroline Jen [EMAIL PROTECTED] wrote: I have been struggling with this problem for more

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Caroline Jen
I saw your Tomcat connection pool class. Your class opens and gets a 'conn' object from the connection pool. Where in your code returns the 'conn' object for use? Should there be a statemenet like: return conn; somewhere? 1. Declaration of private global variables: code private

RE: Tomcat Connection Pool

2004-09-09 Thread Caroline Jen
. Yoav Shapira Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 5:26 PM To: [EMAIL PROTECTED] Subject: Tomcat Connection Pool I do not know what is going on. I am using the Tomcat 5.0.27

RE: Tomcat Connection Pool

2004-09-09 Thread Caroline Jen
Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 9:17 AM To: Tomcat Users List Subject: RE: Tomcat Connection Pool I do not quite understand the message A Context element will not get you far, no matter

Tomcat Connection Pool

2004-09-08 Thread Caroline Jen
I do not know what is going on. I am using the Tomcat 5.0.27 in the Windows XP environment. I insert the following code right before the /Host element in the $TOMCAT/conf/server.xml file; i.e. inside the Host element and right before its closing tag. I re-boot my computer, and then, I cannot

Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see

Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
I am sort of stuck with configuring the server.xml file under the $TOMCAT\conf directory for JNDI. For the Tomcat 4.x, I put the following block of code; i.e. DefaultContext right after the ending /context element and before the ending /host element in the server.xml file. However, I do not see

RE: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database)

2004-09-03 Thread Caroline Jen
Millennium Research Informatics -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 3:09 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat 5.0.27 for JNDI (with the McKoi Database) I am sort of stuck with configuring the server.xml file

Tomcat 5.0.27 and the McKoi Database

2004-09-02 Thread Caroline Jen
The web server that I use is the Tomcat 5.0.27. I have been working with the MySQL database all the time. All of a sudden, I am told to use the McKoi database. Do I need a connector to establish JDBC connection? How do I configure the Tomcat to use connection pool?

Re: security-constraint question

2003-11-04 Thread Caroline Jen
First of all, I am not sure that you need realm-name in teh web.xml if you user form-based authentication. You may use getRemoteUser() to get the name of the user. --- Giselle Dazzi [EMAIL PROTECTED] wrote: Hi everybody, Im using the security-constraint feature of Tomcat. Everything works

Re: JDBC Connection question

2003-10-22 Thread Caroline Jen
/connection_pooling_with_connectorj.html (Caroline Jen) I read it all. Connection pooling looks like the solution for all my problems. But, i had to configure server.xml to put it working. What about when i have to deploy the application? And if the server is NOT Tomcat, will it support connection pooling? Best regards

Re: JDBC Connection question

2003-10-21 Thread Caroline Jen
Please use a connection pool. For Instruction: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and http://www.mysql.com/articles/connection_pooling_with_connectorj.html --- Carlos Pereira [EMAIL PROTECTED] wrote: Hi list, my application currently uses ONE

Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-13 Thread Caroline Jen
? -Caroline /Context --- Adam Hardy [EMAIL PROTECTED] wrote: On 10/13/2003 07:56 AM Bill Barker wrote: Caroline Jen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim: Before I posted my questions regarding the problem that I encountered, I have gone through

Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Caroline Jen
Caroline Jen wrote: My applications behave wierd after I configured the JDBCRealm. After experimenting in many different ways, I found that as long as I have the JDBCRealm in the server.xml, the Tomcat does not accept security-constraint specified in the application's web.xml file. Please

Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Caroline Jen
Caroline Jen wrote: Tim: Would you explain refine the Realm in each context where it is needed? -Caroline --- Tim Funk [EMAIL PROTECTED] wrote: Move the Realm declaration outside of the Context declaration into the Host declaration. Or refine the Realm in each context

Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-11 Thread Caroline Jen
My applications behave wierd after I configured the JDBCRealm. After experimenting in many different ways, I found that as long as I have the JDBCRealm in the server.xml, the Tomcat does not accept security-constraint specified in the application's web.xml file. Please help me. My configuration

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-09 Thread Caroline Jen
Which should be: connectionURL=jdbc:mysql://localhost:3306/artimus?user=javauseramp;password=javadude -Tim Caroline Jen wrote: Thanks for your reply. I tried the following: 1) I put !-- and -- around the UserDababaseRealm shown below: !-- Realm className

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-09 Thread Caroline Jen
. (If I read the props above correctly). If that connection fails when the Realm is created (which is at tomcat startup) - then tomcat will not startup. -Tim Caroline Jen wrote: Tim, sorry, I do not understand Since you didn't replace your connection information with the dummy

Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-08 Thread Caroline Jen
I encountered this problem: I followed the instructions on using the JDBCRealm (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html). I prepared userTable and userRoleTable tables. However, I could not start the Tomcat server after I inserted [CODE] Realm

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-08 Thread Caroline Jen
. Wondering what is going on? -Caroline --- Tim Funk [EMAIL PROTECTED] wrote: 1) For simplicity, did you coment out the UserDatabaseRealm when placing your JDBCRealm at the same level? 2) Make sure the are encoded as amp; Otherwise - you xml document is not valid. -Tim Caroline Jen wrote