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]

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. A

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

2005-04-15 Thread Caroline Jen
Hi Sevillano, I inserted the configuration after the last tag and before the tage (see below) in the $TOMCAT/config/server.xml file. This is my configuration (sorry, I should have shown it in my previous posting). Let us see if it works: factory

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 element and the element of the $TOMCAT/conf/server.xml. Please e-mail me if you still have the problem.

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: log4j test.Log4jTester log4j /servlet/test.Log4jTester In the IE

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: > D

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 > p

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: > > C

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 Orac

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 Pr

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 > > Thanks for all your help !!

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 My

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

2004-09-15 Thread Caroline Jen
" > > Third, please post the segment of code responsible > for actually doing > the lookup and getting a DataSource object. > > Fourth, check your file permissions and be sure > Tomcat has read access > to your class12.jar. > > Lastly, is this the mos

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 t

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

2004-09-14 Thread Caroline Jen
one in MyApp/WEB-INF directory) add these lines after the element ** Oracle Datasource jdbc/OracleDB javax.sql.DataSource Container ** --- Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: > On Tue, 14 Sep 2004 13:56:48 -0700 (PDT), Caroline >

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

2004-09-14 Thread Caroline Jen
s after the element ** Oracle Datasource jdbc/OracleDB javax.sql.DataSource Container ** --- Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: > On Tue, 14 Sep 2004 13:56:48 -0700 (PDT), Caroline > Jen > <[EMAIL PROTECTED]> wrote: > > >

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: SQ

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: private Context

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

2004-09-10 Thread Caroline Jen
This is what I do and would like to have feedbacks: import java.sql.Connection; import java.sql.SQLException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; public class DBConnection { public static Connection getDBConnection() throws SQL

RE: Tomcat & Connection Pool

2004-09-09 Thread Caroline Jen
cruising for a bruising at best. > > Yoav Shapira > 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

2004-09-09 Thread Caroline Jen
y > will have error > messages that tell you what's wrong. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Caroline Jen [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, September 08, 2004 5:26 PM > >To:

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 element in the $TOMCAT/conf/server.xml file; i.e. inside the element and right before its closing tag. I re-boot my computer, and then, I cannot start the Tom

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

2004-09-03 Thread Caroline Jen
your database is > listening on. Ask > your DBA if you're not sure. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Caroline Jen [mailto:[EMAIL PROTECTED] > >Sent: Friday, September 03, 2004 3:09 PM > &g

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. right after the ending element and before the ending element in the server.xml file. However, I do not see the element in the Tomcat 5

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. right after the ending element and before the ending element in the server.xml file. However, I do not see the element in the Tomcat 5

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 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 feature of > Tomcat. Everything works well, but I dont know how

Re: JDBC Connection question

2003-10-22 Thread Caroline Jen
-doc/jndi-datasource-examples-howto.html > > and > http://www.mysql.com/articles/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. W

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 in the web.xml

2003-10-13 Thread Caroline Jen
UserDatabaseRealm from to ? And I should not comment it out? -Caroline --- 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] > > &g

Re: Tomcat JDBCRealm And in the web.xml

2003-10-12 Thread Caroline Jen
PROTECTED]> wrote: > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm > > -Tim > > Caroline Jen wrote: > > Tim: > > > > Would you explain "refine the in each > > context where it is needed"? > >

Re: Tomcat JDBCRealm And in the web.xml

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

Tomcat JDBCRealm And 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 specified in the application's web.xml file. Please help me. My configuration in the $TOMCAT_HOME

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

2003-10-09 Thread Caroline Jen
ot; > > userRoleTable="user_roles" > roleNameCol="role_name" /> > > Then tomcat will try to connect to localhost for the > database "authority" > with the user id and password being test. (If I read > the props above > correctly). If t

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

2003-10-09 Thread Caroline Jen
onnection failed to the database. > > As for the &, in your connection string in your > older email had: > connectionURL="jdbc:mysql://localhost:3306/artimus?user=javauser&password=javadude" > > Which should be: > connectionURL="jdbc:mysql://localhost:3306

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

2003-10-08 Thread Caroline Jen
hen placing your > JDBCRealm at the same level? > > 2) Make sure the & are encoded as & Otherwise - > you xml document is not > valid. > > -Tim > > Caroline Jen wrote: > > > I encountered this problem: > > > > I followed the instructions on us

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] [/CODE] within the tag in the