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
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
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
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
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
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.
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"?
> >
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
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
-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
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
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
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
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
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
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:
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:
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
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
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
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:
>
> >
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
>
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
"
>
> 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
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
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 !!
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
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
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
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?
__
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
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
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
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.
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
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
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]
37 matches
Mail list logo