there you go, it's taken from O'Reilly website.
vVolf
-Oryginalna wiadomooe-
Od: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Wysano: 23 marca 2001 21:12
Do: [EMAIL PROTECTED]
Temat: Login Servlet?
Does anyone know where I could find code for a login servlet
using JDBC.
I have
i should never get it back...
vVolf
I know Ive been at this for bout 6 months now, but what do
you mean when you
say "'servlet.jar' should be located in the classpath"?
that means that you should compile it with
javac -classpath .;PATH_TO_SERVLET_API YourClass.java
regards,
vVolf
the package is not in your classpath
vVolf
-Oryginalna wiadomooe-
Od: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Wysano: 22 marca 2001 22:37
Do: [EMAIL PROTECTED]
Temat: Question on import javax.servlet.*;???
Hi
Does anyone know why I get the following error when I try to
i think you compiled Counter as a part of homepages.jack package. there the
correct dir structure is:
web/WEB-INF/classes/homepages/jack/Counter.class
should work.
vVolf
-Oryginalna wiadomooe-
Od: Jack Li [mailto:[EMAIL PROTECTED]]
Wysano: 22 marca 2001 17:09
Do: [EMAIL PROTECTED]
i think applets are only allowed to connect back to the server they
originate from. this might be the problem, or better, consult JDBC faq from
www.jguru.com
vVolf
-Oryginalna wiadomooe-
Od: Sunny SJ [mailto:[EMAIL PROTECTED]]
Wysano: 21 marca 2001 04:19
Do: [EMAIL PROTECTED]
i have exactly the same symptoms - posted it here and never solved it...
anybody?
vVolf
-Oryginalna wiadomosc-
Od: Valeriy Molyakov [mailto:[EMAIL PROTECTED]]
Wyslano: 21 marca 2001 13:54
Do: [EMAIL PROTECTED]
Temat: Help: form-based auth in Tomcat 3.2.1
i had a similar problem and solved it by changing connectionURL to:
connectionURL="jdbc:mysql://localhost/dbase?user=somebodyamp;password=secre
t"
and commenting connectionName and Password.
vVolf
-Oryginalna wiadomooe-
Od: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]]
Wysano: 16
please refer to a http://localhost:8080/examples/jsp/security
and examples context's web.xml file.
vVolf
-Oryginalna wiadomooe-
Od: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]]
Wysano: 16 marca 2001 09:43
Do: [EMAIL PROTECTED]
Temat: security
Hi,
Can anyone tell me how I set
Hi all! i've got the following problem.
tomcat was running, and i meant to shut it down, but instead i exceuted
"tomcat start".
then i shut it down, and tried to restart again. alas, it does not start
HttpConnectionHandler on 8080 nor Ajp12ConnectionHandler on 8007.
why is that? how can i solve
you don't need the .newInstance() on the end of your driver...
on the other hand it doesn't harm you at all. i read somewhere that i'd be
better off with .newInstance(), due to some bug in browser's (either IE or
Netscape) jvm. or i might be just wrong. anybody can back me up on this?
vVolf
from server.xml:
"
Timestamps:
By default, logs print a timestamp in the form "-MM-dd
hh:mm:ss" in front of each message. To disable timestamps
completely, set 'timestamp="no"'. To use the raw
msec-since-epoch, which is more efficient, set
i had the same problem - all i did was i fed FileOutputStream with a real
path, where i wanted files to be stored. ie.
FileOutputStream output = new
FileOutputStream("/and/directories/follow/file.name");
if anybody has more elegant solution, i'll be grateful.
regards,
vVolf
-Oryginalna
and does not work for bunch of others...
vVolf
-Oryginalna wiadomooe-
Od: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Wysano: 12 marca 2001 09:53
Do: '[EMAIL PROTECTED]'
Temat: RE: JDBC Realm Problems; Probably server.xml related...
looks like jdbcrealm is not tip-top
---Mensaje original-----
De: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 12 de marzo de 2001 10:00
Para: '[EMAIL PROTECTED]'
Asunto: ODP: JDBC Realm Problems; Probably server.xml related...
and does not work for bunch of others...
vVolf
-Oryginalna
looks like jdbcrealm is not tip-top finished - it's malfunctioning all the
time.
my idea is that tomcat tries to tell you that a connetionName is missing -
on the other hand docs say it's optional... anybody any ideas?
vVolf
-Oryginalna wiadomooe-
Od: eric chacon [mailto:[EMAIL
-Oryginalna wiadomooe-
Od: Thomas Riemer [mailto:[EMAIL PROTECTED]]
Most likely you are missing a JkMount statement.
You need to tell your web server that /j_security_check exists.
JkMount /j_security_check ajp12
where do i put that? mod_jk.conf? do i have to restart apache?
althought your classpath points to servet package, apparently it is not
found by javac. try this
javac -cp .;PATH_TO_SERVLET_API HelloWorldExample.java
vVolf
-Oryginalna wiadomooe-
Od: Becky Wang [mailto:[EMAIL PROTECTED]]
Wysano: 9 marca 2001 06:12
Do: [EMAIL PROTECTED]
Temat:
Hi all!
I've encountered following problem. i have a protected area defined in my
web.xml file:
security-constraint
web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/protected/*/url-pattern
http-methodDELETE/http-method
nse to try to access directly the login form..
Saludos ,
Ignacio J. Ortega
-Mensaje original-----
De: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 5 de marzo de 2001 8:14
Para: '[EMAIL PROTECTED]'
Asunto: ODP: JDBC Realm not triggering
same problem he
JDBRealm has *nothing* to do with FORM or BASIC or web.xml
settings..,
it's ONLY a way to store user details inside a DB, .
very much so. but the problem is with the form, not with jdbc or anything
else. tomcat cannot exceute action j_security_check, thus throwing a 404
error. i did
see http://localhost/examples/jsp/security for guidelines and examine
examples web.xml file
vVolf
-Oryginalna wiadomooe-
Od: Cory Hubert [mailto:[EMAIL PROTECTED]]
Wysano: 5 marca 2001 16:43
Do: [EMAIL PROTECTED]
Temat: Basic Authentication
Can someone point me to the
and write some
quiedlines how to setup JDBCReal?
Thanks
Chris
-Original Message-
From: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 1:29 AM
To: 'Tomcat'
Subject: JDBCRealm again
I managed to force tomcat to reopen connection to auth data base
same problem here - still don't know how to solve it :(
vVolf
-Oryginalna wiadomooe-
Od: Mike Slinn [mailto:[EMAIL PROTECTED]]
Wysano: 2 marca 2001 18:59
Do: [EMAIL PROTECTED]
Temat: JDBC Realm not triggering
I feel like I sailed off the edge of the known universe,
because
hey!
i did exactly as described and got 404 error. i know j_security_check is not
a class that i should provide. and i'm using tomcat 3.2.1. any ideas?
vVolf
-Oryginalna wiadomooe-
Od: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Wysano: 2 marca 2001 20:32
Do: [EMAIL PROTECTED]
basically it is used to authenticate users against data-base, it;s more
flexible that simplerealm, based on a file (tomcat-users.xml) stored in
memory.
vVolf
-Oryginalna wiadomooe-
Od: mikhail malamud [mailto:[EMAIL PROTECTED]]
Wysano: 5 marca 2001 05:22
Do: [EMAIL PROTECTED]
JDBC Realm has a couple of problems, for those of you using it.
1) It has to change pretty radically between 3.2.1 and 3.3.1.
It looks
like some of the
code in 3.2.1 is never called.
^^
most likely. i'm using tomcat 3.2.1 and after mySQL closes the
add servlet classes to your classpath
vVolf
-Oryginalna wiadomosc-
Od: RaviShankar K [mailto:[EMAIL PROTECTED]]
Wyslano: 2 marca 2001 14:02
Do: [EMAIL PROTECTED]
Temat: Newbie-Error in compiling servlets
-
To
Hi!
My connectionURL in server.xml now looks like this:
"jdbc:mysql://localhost/auth?user=rootpassword=somepassword"
and tomcat doesn't start up (although there is no error msg or anything) and
when i execute tomcat stop i get the following exception:
org.xml.sax.SAXParseException: Next
see tomcat sources, org.apache.tomcat.util.SessionIdGenerator namely
vVolf
-Oryginalna wiadomooe-
Od: Cato, Christopher [mailto:[EMAIL PROTECTED]]
Wysano: 1 marca 2001 15:05
Do: '[EMAIL PROTECTED]'
Temat: Generating a random alphanumeric string
Hello, can anyone show me an
I managed to force tomcat to reopen connection to auth data base and
authorization works fine, there's only one "but" - it cannot read roles
therefore denies accessed to resource... here's tomcat log:
log--
2001-03-02 08:04:53 - ContextManager: JDBCRealm: The database connection is
same problem here, but since it doesn't do any harm, i just ignore it :)
vVolf
-Oryginalna wiadomooe-
Od: Bartsch Axel [mailto:[EMAIL PROTECTED]]
Wysano: 28 lutego 2001 12:01
Do: [EMAIL PROTECTED]
Temat: TOMCAT: IOException
Hi,
Does anybody know the following problem?
I
Hi!
Can anybody tell me where can i find more info on that tag, except for an
example that came along with tomcat distribution?
vVolf
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL
Hi!
I'm using JDBCRealm authorisation.
How can I force mySQL not to close the connection Tomcat opened upon startup
(to database where users, roles, user_roles tables are stored)?
i assume mySQL's variable wait_timeout is responsible for closing inactive
connections. the default is 28800 secs,
found. I specify which servlet the form is submitted to
in the html file with this line:
form name="LoginExtranet" method="POST" action="ExtranetServlet"
you should send an action to "servlet/ExtranetServlet.class"
The html file is in the jakarta-tomcat\webapps\extranet
directory, and
.
-Original Message-
From: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
Sent: den 28 februari 2001 17:32
To: 'Tomcat'
Subject: Tomcat and mySQL
Hi!
I'm using JDBCRealm authorisation.
How can I force mySQL not to close the connection Tomcat
opened upon startup
-Oryginalna wiadomo-
Od: Cato, Christopher [mailto:[EMAIL PROTECTED]]
Wysano: 28 lutego 2001 17:56
Do: '[EMAIL PROTECTED]'
Temat: RE: Tomcat and mySQL
Add ;autoreconnect=true to the db connect string.
-Original Message-
From: Herchel Wojciech [mailto:[EMAIL PROTECTED
Hello!
I hava JDBCRealm auth, and want to store user's last_accessed time. i
thought cookies would be good for that. my code is as follows:
Locale l = new Locale("pl","PL","UNIX");
String user = request.getRemoteUser();
String data="";
boolean found = false;
Hi all!
How come would Tomcat (Apache?) return 404 Error while trying to
authenticate via form? apparently it does not recognise "j_security_check".
anybody has got any idea?
here's my code (login.jsp):
div align="center"
form method="POST" action="j_security_check"
table cellspacing=4
tr
- Original Message -
From: "Herchel Wojciech" [EMAIL PROTECTED]
To: "'Tomcat'" [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 3:14 PM
Subject: Form based auth
Hi all!
How come would Tomcat (Apache?) return 404 Error while trying to
authenticate via form? a
oops, i don't really have j_security_check class, i thought it is taken care
of by tomcat...
vVolf
-Oryginalna wiadomo-
Od: uthay [mailto:[EMAIL PROTECTED]]
Wysano: 27 lutego 2001 17:48
Do: [EMAIL PROTECTED]
Temat: Re: Form based auth
If you are using servlet then you dont
most likely the mm driver is not in your classpath
vVolf
-Oryginalna wiadomooe-
Od: Wong, Connie [mailto:[EMAIL PROTECTED]]
Wysano: 27 lutego 2001 20:56
Do: [EMAIL PROTECTED]
Temat: MySQL question - No suitable driver
Hi,
I try to connect a servlet talk to the MySQL
42 matches
Mail list logo