testing unsub - DELETE it

2001-03-25 Thread Herchel Wojciech
i should never get it back... vVolf

ODP: Login Servlet?

2001-03-25 Thread Herchel Wojciech
there you go, it's taken from O'Reilly website. vVolf > -Oryginalna wiadomooeæ- > Od: Mick Sullivan [mailto:[EMAIL PROTECTED]] > Wys³ano: 23 marca 2001 21:12 > Do: [EMAIL PROTECTED] > Temat: Login Servlet? > > > Does anyone know where I could find code for a login servlet > using JDB

ODP: Question on import javax.servlet.*;???

2001-03-23 Thread Herchel Wojciech
> 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

ODP: Does JDK1.3 works with Tomcat?

2001-03-22 Thread Herchel Wojciech
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]] > Wys³ano: 22 marca 2001 17:09 > Do: [EMAIL PROTE

ODP: Question on import javax.servlet.*;???

2001-03-22 Thread Herchel Wojciech
the package is not in your classpath vVolf > -Oryginalna wiadomooeæ- > Od: Mick Sullivan [mailto:[EMAIL PROTECTED]] > Wys³ano: 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 t

ODP: Constructor in JavaBean

2001-03-21 Thread Herchel Wojciech
what do you mean by an empty constructor? something like: public MyBean() {} ? my bean do have non empty constructors and all works fine. vVolf > -Oryginalna wiadomooeæ- > Od: Huiyuan Ma [mailto:[EMAIL PROTECTED]] > Wys³ano: 21 marca 2001 18:03 > Do: [EMAIL PROTECTED] > Temat: Construct

ODP: Help: form-based auth in Tomcat 3.2.1

2001-03-21 Thread Herchel Wojciech
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

ODP: Security Policy problem

2001-03-21 Thread Herchel Wojciech
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]] > Wys³ano: 21 marca 2001 04:19 > Do: [EMAIL PROTECTED]

ODP: JDBCRealm reconnect problems?

2001-03-19 Thread Herchel Wojciech
i had a similar problem and solved it by changing connectionURL to: connectionURL="jdbc:mysql://localhost/dbase?user=somebody&password=secre t" and commenting connectionName and Password. vVolf > -Oryginalna wiadomooeæ- > Od: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] > Wys³ano: 16

ODP: security

2001-03-16 Thread Herchel Wojciech
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]] > Wys³ano: 16 marca 2001 09:43 > Do: [EMAIL PROTECTED] > Temat: security > > > Hi, > > Can anyone tell me

ODP: help me out

2001-03-14 Thread Herchel Wojciech
> 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 >

crash!!!

2001-03-14 Thread Herchel Wojciech
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

ODP: Set application's working path?

2001-03-13 Thread Herchel Wojciech
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

ODP: Format of log files - Again

2001-03-13 Thread Herchel Wojciech
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

ODP: JDBC Realm Problems; Probably server.xml related...

2001-03-12 Thread Herchel Wojciech
... but only > words can not help anybody > > TIA > > Saludos , > Ignacio J. Ortega > > > > -Mensaje original- > > De: Herchel Wojciech [mailto:[EMAIL PROTECTED]] > > Enviado el: lunes 12 de marzo de 2001 10:00 > > Para: '[EMAI

ODP: JDBC Realm Problems; Probably server.xml related...

2001-03-12 Thread Herchel Wojciech
and does not work for bunch of others... vVolf > -Oryginalna wiadomooeæ- > Od: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] > Wys³ano: 12 marca 2001 09:53 > Do: '[EMAIL PROTECTED]' > Temat: RE: JDBC Realm Problems; Probably server.xml related... > > > > looks like jdbcrealm is not tip

ODP: j_security_check question

2001-03-11 Thread Herchel Wojciech
> -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?

ODP: JDBC Realm Problems; Probably server.xml related...

2001-03-11 Thread Herchel Wojciech
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 PR

ODP: Help - Tomcat configuration

2001-03-08 Thread Herchel Wojciech
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]] > Wys³ano: 9 marca 2001 06:12 > Do: [EMAIL PROTECTED] > Tem

bug or wrong Apache+Tomcat configuration???

2001-03-07 Thread Herchel Wojciech
Hi all! I've encountered following problem. i have a protected area defined in my web.xml file: Protected Area /protected/* DELETE GET POST PUT test develope agent under /protected I have serveral jsp files and they

ODP: JDBC Realm not triggering

2001-03-05 Thread Herchel Wojciech
> A wild thought, try with uppercase for methods GET,POST and so on, i > think code is doing equals not equalsignorecase. might be the case - my code worked under win95 but results in 404 error under linux regards, vVolf - To u

ODP: Basic Authentication

2001-03-05 Thread Herchel Wojciech
see http://localhost/examples/jsp/security for guidelines and examine examples web.xml file vVolf > -Oryginalna wiadomooeæ- > Od: Cory Hubert [mailto:[EMAIL PROTECTED]] > Wys³ano: 5 marca 2001 16:43 > Do: [EMAIL PROTECTED] > Temat: Basic Authentication > > > Can someone point me

ODP: JDBC Realm not triggering

2001-03-05 Thread Herchel Wojciech
> 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

ODP: JDBC Realm not triggering

2001-03-05 Thread Herchel Wojciech
ation.. it > redirect the form the login page to the original protected resource .. > does not have sense to try to access directly the login form.. > > > Saludos , > Ignacio J. Ortega > > > > -Mensaje original- > > De: Herchel Wojciech [mailto:[EMAIL PRO

ODP: jdbc realm

2001-03-04 Thread Herchel Wojciech
> 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 close

ODP: jdbc realm

2001-03-04 Thread Herchel Wojciech
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]] > Wys³ano: 5 marca 2001 05:22 > Do: [EMAIL PROTECTED]

ODP: Form based auth

2001-03-04 Thread Herchel Wojciech
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]] > Wys³ano: 2 marca 2001 20:32 > Do: [EMAIL PROTEC

ODP: JDBC Realm not triggering

2001-03-04 Thread Herchel Wojciech
same problem here - still don't know how to solve it :( vVolf > -Oryginalna wiadomooeæ- > Od: Mike Slinn [mailto:[EMAIL PROTECTED]] > Wys³ano: 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,

ODP: JDBCRealm again

2001-03-04 Thread Herchel Wojciech
gt; I am new tomcat user. Would you mind taking some time 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: '

ODP: Newbie-Error in compiling servlets

2001-03-02 Thread Herchel Wojciech
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 u

JDBCRealm again

2001-03-01 Thread Herchel Wojciech
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 nu

ODP: Generating a random alphanumeric string

2001-03-01 Thread Herchel Wojciech
see tomcat sources, org.apache.tomcat.util.SessionIdGenerator namely vVolf > -Oryginalna wiadomooeæ- > Od: Cato, Christopher [mailto:[EMAIL PROTECTED]] > Wys³ano: 1 marca 2001 15:05 > Do: '[EMAIL PROTECTED]' > Temat: Generating a random alphanumeric string > > > Hello, can anyone show

mySQL again

2001-03-01 Thread Herchel Wojciech
Hi! My connectionURL in server.xml now looks like this: "jdbc:mysql://localhost/auth?user=root&password=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 characte

ODP: Tomcat and mySQL

2001-02-28 Thread Herchel Wojciech
vVolf > -Oryginalna wiadomość- > Od: Cato, Christopher [mailto:[EMAIL PROTECTED]] > Wysłano: 28 lutego 2001 17:56 > Do: '[EMAIL PROTECTED]' > Temat: RE: Tomcat and mySQL > > > Add ;autoreconnect=true to the db connect string. > > > -Original Messag

ODP: Tomcat and mySQL

2001-02-28 Thread Herchel Wojciech
nd mySQL > > > Add ;autoreconnect=true to the db connect string. > > > -Original Message- > > From: Herchel Wojciech [mailto:[EMAIL PROTECTED]] > > Sent: den 28 februari 2001 17:32 > > To: 'Tomcat' > > Subject: Tomcat and mySQL > > &g

ODP: simple servlet setup question

2001-02-28 Thread Herchel Wojciech
> found. I specify which servlet the form is submitted to > in the html file with this line: > > you should send an action to "servlet/ExtranetServlet.class" > The html file is in the jakarta-tomcat\webapps\extranet > directory, and the ExtranetServlet.class file is in the > jakarta-tomcat\we

Tomcat and mySQL

2001-02-28 Thread Herchel Wojciech
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, wi

tag

2001-02-28 Thread Herchel Wojciech
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 PROTECTED]

ODP: TOMCAT: IOException

2001-02-28 Thread Herchel Wojciech
same problem here, but since it doesn't do any harm, i just ignore it :) vVolf > -Oryginalna wiadomooeæ- > Od: Bartsch Axel [mailto:[EMAIL PROTECTED]] > Wys³ano: 28 lutego 2001 12:01 > Do: [EMAIL PROTECTED] > Temat: TOMCAT: IOException > > > Hi, > > Does anybody know the following pr

ODP: log() ?

2001-02-27 Thread Herchel Wojciech
declare private ServletContext sc, make your init(ServletConfig config) method look like this: public void init(ServletConfig config) throws ServletException { this.config=config; sc = config.getServletContext(); } then sc.log("blalblalbla"); would do the trick vVolf > --

ODP: MySQL question - No suitable driver

2001-02-27 Thread Herchel Wojciech
most likely the mm driver is not in your classpath vVolf > -Oryginalna wiadomooeæ- > Od: Wong, Connie [mailto:[EMAIL PROTECTED]] > Wys³ano: 27 lutego 2001 20:56 > Do: [EMAIL PROTECTED] > Temat: MySQL question - No suitable driver > > > Hi, > > I try to connect a servlet talk to the M

ODP: Form based auth

2001-02-27 Thread Herchel Wojciech
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]] > Wysłano: 27 lutego 2001 17:48 > Do: [EMAIL PROTECTED] > Temat: Re: Form based auth > > > If you are using servlet then y

ODP: Form based auth

2001-02-27 Thread Herchel Wojciech
context > path. > > > > > > - Original Message - > From: "Herchel Wojciech" <[EMAIL PROTECTED]> > To: "'Tomcat'" <[EMAIL PROTECTED]> > Sent: Tuesday, February 27, 2001 3:14 PM > Subject: Form based auth > >

Form based auth

2001-02-27 Thread Herchel Wojciech
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): Please log in Username: Password:

Cookies in JSP

2001-02-27 Thread Herchel Wojciech
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;

JDBCRealm

2001-02-25 Thread Herchel Wojciech
Hi! I've got the following problem - I want to dynamically display certain information to a user, depending upon a role they've been granted (via JDBC authorisation). how do i do that? getParameter("role") returns null. vVolf -