Re: log analyzer?
In server.xml (tomcat4) you can enable an AccessLogValve. This will produce log files in a common format that can be read by tools like webalizer. For more information on currently available valves see: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html Regards, Wilko - - - excerpt from server.xml - - - - - - - !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access. suffix=.log pattern=common/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: log analyzer? Hi friends, Is there any utility that can help to analyze the log file of Tomcat, such as webalizer for Apache? Thanks in advance. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Implementing a Certificate Authority server using Tomcat
Hi all, Is there anybody who could point me in the right direction, when I would like to setup a certification process for issuing SSL client certificates to browsers, preferably using Tomcat standalone? I really appreciate any help on this, this area is quite new to me. - Wilko
How to invalidate an SSL client certificate
Hi, I am planning to use SSL client certificates with Tomcat standalone I am wondering if there is a way to invalidate a client certificate to cover for the (hopefully) rare event the device on which it resides gets lost or stolen. As far as I understand the SSL protocol specifies an optional step during client authentication involving an LDAP lookup. If this is the way to do it should i set up some kind of LDAP-realm in server.xml? At this moment user registrations are kept in the application's database itself (and not on an LDAP server), so if it would be possible to retrieve the name of the user as mentioned in the certificate that would be real helpful. However i can not find the method in the servlet api nor in the specification. Regards, Wilko
Connector for IIS Tomcat 4?
Hi, Does anybody know whether the Tomcat redirector plugin for IIS will work with Tomcat 4.X as well? If so are there any special configuration options i have to consider? Thanks, Wilko Hische
Re: Integrating tomcat with a notes server
There seems to be a connector for it: http://free.tagish.net/domino-tomcat/index.jsp Haven't tried it myself though. Regards, Wilko Hische Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: Integrating tomcat with a notes server [IMAGE] Does anyone have any experience integrating tomcat with a lotus notes server. I am looking to do this for and intranet application and wanted to see if anyone has experience with this... Brandon Cruz Norvax Inc. www.norvax.com (Embedded image moved to file: pic22997.pcx) pic22997.pcx
Re: Providing access to X11 server Using AWT in Linux.
Hello Allan, You do not have to use an X-server for creating off-screen images if you install Toolkit pja from http://www.eteks.com It's free and does the trick. Wilko Hische Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: Providing access to X11 server Using AWT in Linux. [IMAGE] Hi folks, I need to use features of the AWT implementation for creating off-screen images from a servlet. Using AWT requires the use of the host machine's graphic system which in my case is X11 as I am running RH Linux 6.2. I would like to know how to grant the servlet container access to the X11 server. Allan Kamau. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ (Embedded image moved to file: pic08651.pcx) pic08651.pcx
Re[2]: TomcatBook - was TOMCAT SUCKS
A few months ago a project to write a Tomcat book was started (check: http://www.sourgeforge.org search for tomcatbook) Haven't heard a lot about it since. Wouldn't it be an good idea to synchronise efforts? I am not involved in this project myself however. Regards, Wilko Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] (bcc: Wilko Hische/HADV/NL) Subject: Re: TomcatBook - was TOMCAT SUCKS [IMAGE] I think tomcatbook must be a sub project of tomcat. Like it or not, we have to overdrive tomcat expert for tomcat development it-self. I think. Tomcat=good software, Tomcat book=good project, Tomcat with easy to used documentation and a lot of project=better software. Don't think like this. 1. Because apache tomcat is from SUN, so all the commiter have to be don't care of this stuff. 2. Free is different with commercial, because we work in part time and hobbyst Remember good project with bad documentation is not a good project. if the software is not as easy as possible, it is not a easy to used software. This is why microsoft is popular. try their way, see Microsoft Press. Easy will overdrive of popularity. I write this because I care of tomcat project. I worked from one of the big consulting firm last year, and I did several converstaion with my eBusiness team, opensource never go to enterprise, even Linux, even several company try to support it like IBM if no good suppoer, and that software is not as easy as possible. Esp for Open Source project, is there a training center for Open Source, yah.. only Red Hat, is it cheap??? for me.. 1 training in Red Hat = 1 year food.. and it is still SUCK training. I think you all have to change the role. Oh yah, I am one of the most SUCK but make me life better. It is called Oracle Application (#2 ERP software in the world). They sell great software because there is very complex and thousand bugs there...and every module 1000 pages, but All the consultants always say it is not detail enough. Still SUCK software. SUCK because we pay the maintenance for patch of the bugs. This is make Open Source popular, less bug, but where is the documentation. Regards, Frans --- Dmitri Colebatch [EMAIL PROTECTED] wrote: I believe there is a project (yes there is, I thought I'd check before sending this) called tomcatbook at sourceforge (http://tomcatbook.sourceforge.net). Perhaps that would be a good place to a) look for advanced answers, and b) suggest questions. cheers dim On Fri, 29 Jun 2001 00:29, you wrote: .As far as I understand it, there is nothing to stop a user from adding documentation to the tomcat project themselves. I'm amazed at how good the documentation is seeing as how no one was paid to do it. Not to get into a great big argument over OS version commercial products, but if OS projects expect to be taken with the same consideration as commercial they have to accept to be compared across the board. This includes documentation. You can't just pick and choose the battles you want to fight. For the most part, the documentation in OS projects just plain sucks, if it even exists. Believe it or not this is one of the reasons OS is often frowned upon. Look at Microsoft, sure its close source, people may think it sucks, blah blah blah, but do you have idea how much information is on MSDN? The lack of documentation available goes against some very basic rules of Software Engineering. In the real world does this really matter? I dunno, but often times packaging and presentation, and a finished looka nd feel are the key to getting in the door and this is where most OS projects fail miserably. Because its free might be the reason the documentation sucks, it shouldn't be a justification. (not that i'm saying tomcat sucks, just argueing the point). __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ (Embedded image moved to file: pic31850.pcx) pic31850.pcx
Re[2]: Antw: AW: Antw:Antw:Antw:Re:Re[2]:TomcatBook-wasTOMCATSUCKS (Abwesenheitsnotiz)(Abwesenheitsnotiz)(
I have sent an unsubscribe mail to the list server. If it doesn't request a confirmation that should do. Wilko Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: Re: Antw: AW: Antw:Antw:Antw:Re:Re[2]:TomcatBook-wasTOMCATSUCKS (Abwesenheitsnotiz)(Abwesenheitsnotiz)(Abwesenheitsnotiz) (Abwesenheitsnotiz)(Abwesenheitsnotiz)(Abwesenheitsnotiz) (Abwesenheitsnotiz)(Abwesenheitsnotiz) [IMAGE] if nothing happens before 1800GMT could someone please unsubscribe this person ? I'm sure none of us wants a full mailbox on monday :-( At 29/06/2001 14:36:55, Christoph Fischer [EMAIL PROTECTED] wrote: # I've send a mail to their infowebmaster account hopes # it will stop this nonsense # # Chris # Roger (Embedded image moved to file: pic06322.pcx) pic06322.pcx
DefaultServlet and directory browsing
Hi, I am trying to disable directory browsing for Tomcat4.0-3b stand-alone. I changed the int-param listings to false, but this did not yield the expected result. However this default servlet seems to be the one in use for my application, since if I comment it out, images and other static files are not being served anymore. Am I overlooking something? Regards, Wilko - - excerpt from web.xml - - - - - - !-- The default servlet that serves static resources -- servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet
Simple question
Hi, I know this question is posted over and over again, but still I failed to find an answer (for Tomcat4 that is): How can I disable directory browsing in Tomcat 4.0b3 ? Regards, Wilko Hische
REPOST Please help! Virtual hosts on Tomcat4-3b
Hi, I'm trying to run two virtual hosts on Tomcat4-3b on RH Linux 7.0. I try to give each host a default Context (ie a Context for path=) but I keep getting the error message: StandardContext[]: Error initializing naming context for context in the logs and HTTP Status 503 - This application is not currently available in the browser. If I comment out one of the hosts the other works fine. I have tried to strip server.xml down to a bare minimum, but without any success. It seems paths in separate virtual hosts can conflict... Any ideas?? Regards, Wilko Hische === server.xml === Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 connectionTimeout=6/ Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=test Context path= docBase=examples debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host Host name=host2 debug=0 appBase=test2 Context path= docBase=examples debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ /Context /Host /Engine /Service /Server ===
Virtual hosts and identical context paths in Tomcat4b3. Bug??
Hi, I have specified two virtual hosts in my server.xml. In both hosts I have specified a context with the same path, ie Host name=host1 Context path=samepath docBase=docbase1/Context /Host Host name=host2 debug=0 Context path=samepath docBase=docbase2/Context /Host In the log for host2 I get the message: StandardContext[]: Error initializing naming context for context samepath and the context on host2 is not working. However if I comment out the context in host1 the context in host2 does work. I have found two messages mentioning the same problem but no solution sofar. Is this a bug?? I am using Tomcat4b3 on RH Linux 7.0 Regards, Wilko Hische
Re[2]: Why Use apache
I used this setup of Apache on port 80 and Tomcat on port 8080 as well, but found that some organisations disable browsing on ports other than port 80. Regards Wilko Hische Please respond to [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: Re: Why Use apache [IMAGE] Samuzeau == Samuzeau Pascal [EMAIL PROTECTED] writes: Samuzeau I'm reading what you're speaking about. Samuzeau Can you tell me moer about it. Samuzeau In fact I have Apache running on my server, and I have Samuzeau installed Tomcat, with jserv_mod. Only to work with Samuzeau Cocoon. I don't use jserv_mod, I use just Tomcat stand alone. So, just the (almost out-of-the box) installation with a webapp-specific web.xml file. That's all. -- Peter Mutsaers | Dübendorf | UNIX - Live free or die [EMAIL PROTECTED] | Switzerland | Sent via FreeBSD 4.3-stable (Embedded image moved to file: pic11737.pcx) pic11737.pcx
Password list formbased login
Hi, Would it be possible to use FORM based login and still provide for the functionality "Save this password in your password list" which is offered by the browser itself when using BASIC login? I would really appreciate any suggestions/links to a solution that would not compromise security. Thanks, Wilko Hische
Re: tomcat documentations
Hi Batsheva, On this site they are trying put everthing together: http://tomcat.mslinn.com/ Wilko "Batsheva Raviv" [EMAIL PROTECTED] on 27-03-2001 23:34:10 Please respond to [EMAIL PROTECTED] To: "Tomcat Usr \(E-mail\)" [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: tomcat documentations Can anyone help me find documentations that describe all the xml tags, What they mean and Where are they used? Thank you, Batsheva
Re: MYSQL CONNECTION CLASS
I am using the com.javaexchange.dbConnectionBrocker package. It's simple, free and does the trick. Wilko "Guilherme Zambon" [EMAIL PROTECTED] on 15-03-2001 02:29:03 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], jos placide [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: MYSQL CONNECTION CLASS Can someone who uses TOMCAT send me a sample class that conects to the database? I have made one that initializes de driver to connect and returns the connection, so it is very slow. What kind of solution do you have?
Re[2]: Off topic: Single login for separate web applications?
Thanks for the suggestion, I checked it but if found it a bit too Microsoft/Novell oriented. But maybe the only way to go is indeed to use some client side activex,applet or whatever component. Thanks again, Wilko Darrell Porter [EMAIL PROTECTED] on 14-03-2001 05:06:13 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Off topic: Single login for separate web applications? There's always Single Sign-On from Novell http://developer.novell.com/research/devnotes/1999/november/05/dpv.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 4:39 AM To: [EMAIL PROTECTED] Subject: Off topic: Single login for separate web applications? Hi, Sorry for posting this off topic question. I would really appreciate any pointers into the right direction. What I would like to know is what you would need in general to create a single login to different web applications on different web servers (and possibly platforms)? I gues the servers would need some shared repository for login/passwords, but how would it be possible after logging in to one server to pass on this fact to the other servers? I hope the answer is as simple as the question, Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Off topic: Single login for separate web applications?
Hi, Sorry for posting this off topic question. I would really appreciate any pointers into the right direction. What I would like to know is what you would need in general to create a single login to different web applications on different web servers (and possibly platforms)? I gues the servers would need some shared repository for login/passwords, but how would it be possible after logging in to one server to pass on this fact to the other servers? I hope the answer is as simple as the question, Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Off topic: Single login for separate web applications?
Yes, but than then client would have to identify itself at the second webapp without being challenged for another login. The only way to accomplish this would be a session based cookie I guess, in addition to this centrally stored information. I was hoping for some standard approach/protocol that I was not aware of. But maybe it just isn't there (yet). Thanks, Wilko "Sam Newman" [EMAIL PROTECTED] on 13-03-2001 15:15:44 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: Re: Off topic: Single login for separate web applications? Having a central repository of logins/passwords would work from one end = e.g. when connecting to one of your servers, that server communicates with the central repository to veriy the login/password. However, when going to another webapp that webapp needs to know you've been authorised. perhaps once authorised, you could store information about the client at the central respository. When a webapp gets a connection from that client, it looks ion the central repository to see if that client has been authorised. Not sure on what info would work though sam - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 12:38 PM Subject: Off topic: Single login for separate web applications? Hi, Sorry for posting this off topic question. I would really appreciate any pointers into the right direction. What I would like to know is what you would need in general to create a single login to different web applications on different web servers (and possibly platforms)? I gues the servers would need some shared repository for login/passwords, but how would it be possible after logging in to one server to pass on this fact to the other servers? I hope the answer is as simple as the question, Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Off topic: Single login for separate web applications?
Thanks, I will check it out. Wilko Roby Gamboa 13-03-2001 17:52 Please respond to [EMAIL PROTECTED] Sent by: rgamboa To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: Re: Off topic: Single login for separate web applications? I'm using JAAS to handle authentication. One of the things that you're able to do is use pluggable authentication under Windows and Solaris (using the Sun implementations) and Linux (with the IBM implementation), or authenticate against a database (which is what I'm doing). The end result of the authentication process is a Subject having one or more Principals and public or private credentials (which can be any Java object). You can add either the Subject itself (with all of its attached state, in a secure environment), or just its public credentials (as a token or key in a non-secure environment) to the session object in JSPs and servlets to indicate an authenticated user. You might want to check this out: http://java.sun.com/products/jaas. Hope this helps. - Roby [EMAIL PROTECTED] wrote: Yes, but than then client would have to identify itself at the second webapp without being challenged for another login. The only way to accomplish this would be a session based cookie I guess, in addition to this centrally stored information. I was hoping for some standard approach/protocol that I was not aware of. But maybe it just isn't there (yet). Thanks, Wilko "Sam Newman" [EMAIL PROTECTED] on 13-03-2001 15:15:44 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: Re: Off topic: Single login for separate web applications? Having a central repository of logins/passwords would work from one end = e.g. when connecting to one of your servers, that server communicates with the central repository to veriy the login/password. However, when going to another webapp that webapp needs to know you've been authorised. perhaps once authorised, you could store information about the client at the central respository. When a webapp gets a connection from that client, it looks ion the central repository to see if that client has been authorised. Not sure on what info would work though sam - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 12:38 PM Subject: Off topic: Single login for separate web applications? Hi, Sorry for posting this off topic question. I would really appreciate any pointers into the right direction. What I would like to know is what you would need in general to create a single login to different web applications on different web servers (and possibly platforms)? I gues the servers would need some shared repository for login/passwords, but how would it be possible after logging in to one server to pass on this fact to the other servers? I hope the answer is as simple as the question, Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Form based login: protected against password snooping?
Hi, As far I understand it, when using form based login, login and password are just posted in plain format and are therefore not protected against password snooping. Is that true? And if so, is the only way to use form based login safely, the use of SSL? Or does a sort of mixture between for instance DIGEST Form based login exist? Thanks, Wilko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Monitor memory and CPU usage of servlets from inside of Tomcat
Hi, I would like to try RUE on Tomcat 4. Would that be possible? Wilko "shlomi sarfati" [EMAIL PROTECTED] on 15-02-2001 13:04:57 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Monitor memory and CPU usage of servlets from inside of Tomcat Sure it is working fine on mine 3.2.1 tomcat it is even easier to config -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of mike niemaz Sent: Thu, February 15, 2001 1:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Monitor memory and CPU usage of servlets from inside of Tomcat Emil Genov wrote: Hey 10x I think everything is OK. Once again 10x very much I appreciate your help best regards Emil Genov Any chance to have it work on TomCat3.2? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JDBC Realm
A JDBC Realm baiscally is your tomcat-users.xml file in a database. Look in: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto Tomcat4 and tomcat 3.x allow realms per Context. Wilko Vegard Skjefstad [EMAIL PROTECTED] on 05-02-2001 17:07:35 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: JDBC Realm Hi, I'm working on a project where I'm going to use a MySQL JDBC connection. I noticed in the server.xml something called a JDBCRealm. I was unable to find any any documentation about the JDBCRealm. Is this something I should use? How will I access the database if I use it? Is there any JDBCRealm docs available? [EMAIL PROTECTED] http://snuffcity.com ICQ UIN 11872166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: quick Tomcat question
I just migrated to tomcat4. It features an access log. From the tomcat 4 documentation (filters.html): - - - - - - - - - - - - - - - - 3.3.1 Access Log Creation When running Tomcat behind a web server, the web server is responsible for creating the "access log" file that is typically used by hit count analysis programs. However, when you are running Tomcat stand-alone, it would be nice if Tomcat could optionally include functionality to perform this task for us. (Such a Valve already exists in Catalina). To implement this functionality as a RequestInterceptor, we might create something like this: public final class AccessLogInterceptor extends BaseInterceptor { public int postService(Request request, Response response) { ... log the interesting details ... } } A corresponding Valve implementation would look like this: public final class AccessLogValve extends ValveBase { public void invoke(Request request, Response response) throws IOException, ServletException { getNext().invoke(request, response); ... log the interesting details ... } } As you can see, both approaches can easily implement the required functionality. The only important difference is that the Valve must specifically decide to call the next valve in the pipeline (as described under "Valve Basics" above), while filter management in the RequestInterceptor environment is the responsibility of the container itself. What is not visible here, however, is the fact that the container is also calling the other nine entry points of AccessLogInterceptor, even though they do nothing at all useful. - - - - - - - - - - - - - - - Hope this helps, Wilko "Billford" [EMAIL PROTECTED] on 02-02-2001 00:35:55 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: quick Tomcat question I have a site in Tomcat, I have no need for Apache as ALL of the pages are dynamic via JSP, servlets, whatever. At any rate, I need to have an access_log type file to log access to the site. I'd like to be able to do this without installing Apache and the connectors. Does anyone know how to do this? I can't seem to find any info on it. Thanks in advance. Bill I have a site in Tomcat, I have no need for Apache as ALL of the pages are dynamic via JSP, servlets, whatever. At any rate, I need to have an access_log type file to log access to the site. I'd like to be able to do this without installing Apache and the connectors. Does anyone know how to do this? I can't seem to find any info on it. Thanks in advance. Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Difficulties getting JDBCRealm to work with MySQL driver
Thanks Ignacio! The realm specification in server.xml now reads: Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority?user=rootamp; password=apassword" userTable="User" userNameCol="uname" userCredCol="password" userRoleTable="UserRoles" roleNameCol="rname" / and it works. However the main reason for me to migrate to tomcat4 at this moment is the ability to specify a JDBC realm per webapp. I tried to move the Realm tag above to a web.xml file but got the following error: org.xml.sax.SAXParseException: Element "web-app" does not allow "Realm" here. I checked $TOMCAT/conf/web_23.dtd and there is no mention of a realm tag indeed. Do you have a suggestion on how to proceed? Thanks, Wilko "Ignacio J. Ortega" [EMAIL PROTECTED] on 31-01-2001 12:13:15 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Difficulties getting JDBCRealm to work with MySQL driver Changing the semicolon in the connectionURL to an ampersand (= correct org.gjt.mm.mysql syntax) was refused by the SAX parser? Am I overlooking something? I am using Tomcat4-4.0-b1.1 in XML the ampersand is a special character, is forbidden in XML to insert and "" as is , to insert an ampersand you need use "amp;" Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[4]: Difficulties getting JDBCRealm to work with MySQL driv er
Solved. I thought I had to add something to the web.xml. When I added the realm declaration to the context of my webapplication in server.xml everything worked fine. Thanks again, Wilko Hische "Ignacio J. Ortega" [EMAIL PROTECTED] on 31-01-2001 17:36:34 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: RE: Re[2]: Difficulties getting JDBCRealm to work with MySQL driv er Tomcat 3.3 will have perContext Interceptors..FYI Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: mircoles 31 de enero de 2001 16:20 Para: [EMAIL PROTECTED] Asunto: Re[2]: Difficulties getting JDBCRealm to work with MySQL driver Thanks Ignacio! The realm specification in server.xml now reads: Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority?user=rootamp; password=apassword" userTable="User" userNameCol="uname" userCredCol="password" userRoleTable="UserRoles" roleNameCol="rname" / and it works. However the main reason for me to migrate to tomcat4 at this moment is the ability to specify a JDBC realm per webapp. I tried to move the Realm tag above to a web.xml file but got the following error: org.xml.sax.SAXParseException: Element "web-app" does not allow "Realm" here. I checked $TOMCAT/conf/web_23.dtd and there is no mention of a realm tag indeed. Do you have a suggestion on how to proceed? Thanks, Wilko "Ignacio J. Ortega" [EMAIL PROTECTED] on 31-01-2001 12:13:15 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Difficulties getting JDBCRealm to work with MySQL driver Changing the semicolon in the connectionURL to an ampersand (= correct org.gjt.mm.mysql syntax) was refused by the SAX parser? Am I overlooking something? I am using Tomcat4-4.0-b1.1 in XML the ampersand is a special character, is forbidden in XML to insert and "" as is , to insert an ampersand you need use "amp;" Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat - MySql Question
mm-mysql works for me without any problems. http://mmmysql.sourceforge.net/ Wilko Hische Web master [EMAIL PROTECTED] on 22-01-2001 23:46:12 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: Tomcat - MySql Question Hello, Is there anyone here using Tomcat-MySql, I need help to install the driver. I would like to know which is the best driver and how to install it. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Dedicated JDBCRealm per web application?
Hi, Maybe this is a stupid question, but would it be possible to have a separate JDBCRealm (=set of users) per web application? According to the documentation a JDBC realm has to be configured in the server.xml i.e. server wide. The only way I see now is to set up a virtual host for each application and I guess I have to set up an additional web server like Apache to accomplish this. Seeing a question about mod_jk.so pop up about every hour on this mailing lists I hesitate to do so (given I do not have any experience with Apache). Can I solve this using Tomcat alone? And if so, would the use of SSL make any difference? I really appreciate any suggestions/comments. Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Ironical Sun's Servlet API
Did you check http://www.servlets.com/resources/com.oreilly.servlet/index.html ? Regards, Wilko Deepak C S [EMAIL PROTECTED] on 19-01-2001 12:31:39 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] (bcc: Wilko Hische/HADV/NL) Subject: Ironical Sun's Servlet API hi JSP/Java gurus, It seems ironical that sun's api doesn't have a method to retrieve Multipart-form data or am I wrong??? I want to retrieve from a HTML-form..multipart data...that is name,age,particulars etc..along with a Photo(thru file upload). For Photo,I need to retrieve file contents and store in a file. Earlier,I had developed a similar soln in Perl...in which retrieving the FileType(using $f=$query-filname;) directly gives a file pointer(to Remote File) which can be used for reading File Content(just like a local file) and write to another file. Does servlet API have any such methods?? Or atleast IS THERE ANYWAY OF DOING THIS--retrieving both File and Form data from Single HTML form?? Can anybody pls throw light on this, Regards Deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Dedicated JDBCRealm per web application?
Thanks Ignacio, I'll be looking forward to that. Any change Tomcat 4.0 will become a release build in the near future? Wilko "Ignacio J. Ortega" [EMAIL PROTECTED] on 19-01-2001 13:27:22 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: (bcc: Wilko Hische/HADV/NL) Subject: RE: Dedicated JDBCRealm per web application? Tomcat 3.x (in CVS now it wil be 3.3 soon a Milestone will be dropped in a few weeks ) and Tomcat 4.0 have this posibility you can add requestInterceptors ( Realms in Tomcat 4.0 ) in a perContext basis. Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
POST without fields -- incorrect PrintWriter in HttpServletResponse ???
Hi, The following occurs with Tomcat 3.2.1 on Red Hat Linux 7.0, JRE 1.3.0 : public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType( CONTENT_TYPE ); response.getWriter().println("If NO fields were posted this will not arrive at the requesting browser"); // if at least one field was posted everything works fine. } The Tomcat 3.1 version that I am using with my IDE (JBuilder 4) on Win32 does not show this behaviour. For me this is rather inconvenient since I am using post requests in my web application to circumvent any browser caching problems. Does anybody know whether is this expected behaviour and if so do you have any suggestions on how to work around it? Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]