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
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.
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
/
--
!-- 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
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
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:
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,
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:
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
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:
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
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
, 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
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:
-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
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
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
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
.
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
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
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
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
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
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
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?
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
/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
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
?
-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
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
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
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
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
. (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
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
. 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
36 matches
Mail list logo