Re: Difficulty with SSL authentication without client certificate

2003-11-27 Thread Bill Barker
For what you want, I'd probably go with a Filter that stores the Principal under a well-known-name for use by the Servlet. For Container level security, it is clearly an error if the client won't provide a client-cert. Note: I consider that the fact that you are getting any response at all to

Re: changing user/group tomcat is running as

2003-11-27 Thread Bill Barker
You could check out the commons-daemon jsvc (ships with TC 5.x, but should work with 4.1.x as well). It doesn't handle the chroot problem (but, since Solaris 8, I've almost given up on getting chroot to work). However, it does handle the port-binding and then changing uid problem. Marten

Re: Does acceptCount in the coyote conf have anything to do with this: server has been restarted or reset this connection

2003-11-27 Thread Bill Barker
For ChannelSocket, the 'acceptCount' should have no effect at all. Travis Reeder [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Over the past few days, my server has been crashing hard and often, now I see these every minute or so, would this have to do with the acceptCount in

RE: org.apache.catalina.valves.RemoteHostValve

2003-11-27 Thread Drinkwater, GJ (Glen)
Hi I have tried to put Valve className=org.apache.catalina.valves.RemoteHostValve deny=*.subnet.ac.uk/ in my context but it keeps on throwing an exception Catalina.start: java.lang.IllegalArgumentException: Syntax error in request filter pattern *.subnet.ac.uk Can wild cards be used in

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
I'm not sure if it makes a difference but try putting the ResourceLinks before the Realm definition in server.xml. Liem Thanks for the suggestion Liem - doesn't seem to make any difference. I'm still getting the same response in my browesr... org.apache.jasper.JasperException: Unable to

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Adam Hardy
This whole question about sharing the session cookies or not when you open a new window seems a bit unnecessary to me. I often want to test using two users and not share the cookies, but I just open a different browser, e.g. if I'm using Mozilla, I open IE or Netscape4 or Firebird or Opera. So

Re: Tomcat and Firewall

2003-11-27 Thread Adam Hardy
On 11/26/2003 09:56 PM Antonio Fiol Bonnín wrote: i'm a tomcat newbie looking for information about tomcat and firewalls. what i want to do is to connect apache2(mod_ssl) and tomcat with mod_jk2 , where tomcat is within a firewall. which ports do i need to open for apache to connect to tomcat?

Problem Compiling JSP under tomcat 5

2003-11-27 Thread Simone Chiaretta
While trying to run for the first time a JSP I get this error org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac]

Re: org.apache.catalina.valves.RemoteHostValve

2003-11-27 Thread Rodrigo Ruiz
Instead of denying access, try to allow it. I think the valve should accept this syntax: Valve className=... allow=localhost,127.0.0.1,other IPs/ If you only deny access from other intranet computers, you are allowing access from internet HTH, Rodrigo Ruiz Drinkwater, GJ (Glen) wrote: Hi I

Problem Compiling JSP under tomcat 5 - addon

2003-11-27 Thread Simone Chiaretta
i forgot to mention that the same configuration runs in tomcat 4.0.4 Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic - To

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Mario Ivankovits
Hello ! This whole question about sharing the session cookies or not when you open a new window seems a bit unnecessary to me. I often want to test using two users and not share the cookies, but I just open a different browser, e.g. if I'm using Mozilla, I open IE or Netscape4 or Firebird or

Re: HttpSessionListener in Tomcat 4.1.27 (or HttpSessionListener in general)

2003-11-27 Thread Lukas Bradley
Thank you for the quick reply. Lukas Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Howdy, By the time sessionDestroyed is call, the session has been invalidated. That doesn't mean you can't get information about it: only certain information ;)

Strange GET error with recent linux upgrade.

2003-11-27 Thread Brian Menke
Hi Everyone, I have a client that just upgraded their Linux to the latest redhat enterprise linux. They had a bunch of servlets that all worked with the previous version just fine. Those servlets handled both post and get request. After the update, all the servlets now display the following

Re: Problem getting Tomcat 4.1.29 on board

2003-11-27 Thread Charles Gardner
I had to add in user with admin permissions to get it to run... Charles @ home - Original Message - From: P. Chewning Toulmin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 10:07 AM Subject: Problem getting Tomcat 4.1.29 on board Hi everyone, I've

Doubt Reg. Servlet Contex

2003-11-27 Thread dakavara
Hi, When the Servlet Contrext Initilized and when will be destroyed. I am thinking that, it will be initilized when ever the application server starts, and destroyes when ever the application server stops. I am correct ? or not ? Thanks in Advance, Ashok.D

Re: JDBCRealm problem

2003-11-27 Thread Jon Wingfield
The JDBCRealm does two things: 1) Authenticates the user (by checking password) 2) Authorizes the user (by checking roles) The logs would seem to imply the JDBC driver is blowing up creating the prepared statement in the second step (ie reading from the roles table). I think Tim is right - he

jakarta Slide

2003-11-27 Thread Vaneet Sharma
Hi All, Is there any place where i can find examples on jakarta slide. The idea that i got from slide is that it is a frameworkd for document and content management systems. Am i getting right ? is there anyone who can let me know about jakarta slide/... Tahnkx Vaneet -Original

Re: Problem Compiling JSP under tomcat 5

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: While trying to run for the first time a JSP I get this error org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac]

Re: Problem Compiling JSP under tomcat 5 - addon

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: i forgot to mention that the same configuration runs in tomcat 4.0.4 Strange. It shouldn't, unless you placed your package in some JAR under .\WEB-INF\lib\ dir. Nixie. - To unsubscribe, e-mail: [EMAIL

R: Problem Compiling JSP under tomcat 5

2003-11-27 Thread Simone Chiaretta
And it seems it's not look at the place where it should look for the class which is D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\class\com\piyosail in g\PiyoWebEngine.class This is wrong. The path should be ...\WEB-INF\classes\... Nixie. That was really the

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Adam Hardy
On 11/27/2003 10:57 AM Mario Ivankovits wrote: Hello ! This whole question about sharing the session cookies or not when you open a new window seems a bit unnecessary to me. I often want to test using two users and not share the cookies, but I just open a different browser, e.g. if I'm using

Question on mod_jk2 (working)

2003-11-27 Thread Nikola Milutinovic
Hi all. I tried and managed to setup mod_jk2 with UNIX socket channel and I have some questions. First I tried to do it without apr handler. It would open a socket, but would refuse connection from Apache. Then I tried with apr, reasoning that AF_UNIX socket is not native to JVM and JNI

Re: R: Problem Compiling JSP under tomcat 5

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\class\com\piyosail in g\PiyoWebEngine.class This is wrong. The path should be ...\WEB-INF\classes\... Nixie. That was really the problem I think I'm going to jump from the third floor and land over a bed of

Unable to compile class for JSPerror:

2003-11-27 Thread Andoni
Hello, I realise that there are lots of entries about this error message in the log files but my experience is different to theirs. I have a perfectly functioning Tomcat 4.0.4 system working with Apache 1.3.26 I get a stack trace only every now and again from a user trying to access a page.

Howto compile mod_jk for windows systems for Apache and mod_jk2 for Apache2!

2003-11-27 Thread Klaus Wienert
Its not as simple as I thought, but I have done it. 0. This is a short, short, very short howto 1. Prerequisites Microsoft Visual C++ 6.0 Apache 1.3 or Apache 2 Ant (http://ant.apache.org/) JkAnt (http://www.apache.org/dist/jakarta/tomcat-4/v4.1.29/src/jakarta-tomcat-conn ectors-4.1.29-src.zip

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Mario Ivankovits
Adam Hardy wrote: Are you sure about that? Without checking, I think that the jsessionid cookie would be stored under the directory http://www.mydomain.com/myapp1/ and the next app on the same server should have it at http://www.mydomain.com/myapp2/ Well, this might be, but our application was

How to stop the URL comming up?

2003-11-27 Thread Andoni
Hello, I am looking for a way to stop my users bookmarking pages in the site. There is a login screen and they shouldn't even really be let bookmark this. I was given someone's card today an then I went to his site: http://www.xeotrope.net and when I find that as I look around the site the

RE: Intermittent failures using DataSources

2003-11-27 Thread Chris Ward
Hi, For the record, I solved my problem regarding the message... org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: Cannot load JDBC driver class 'null' ... from my JSPs. For anyone who is interested, here's what worked for me... I was not always

R: How to stop the URL comming up?

2003-11-27 Thread Simone Chiaretta
The url you gave us is not working. Anyway, you can make an inclusion at the top of each page to redirect to user to the start page (or, if u'r cool enough you can make a filter :-)) But if you want to see just the main url you have to trick around with HTML frames The main page is a frameset

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Adam Hardy
On 11/27/2003 12:22 PM Mario Ivankovits wrote: If i start Excel two times, i also have to know which excel is what sheet. I think this is something which a user, who uses this feature, is familiar with. And mostley then, the are in different sections of the application, or, the would like to

Re: How to stop the URL comming up?

2003-11-27 Thread BAO RuiXian
Andoni wrote: Hello, I am looking for a way to stop my users bookmarking pages in the site. There is a login screen and they shouldn't even really be let bookmark this. I was given someone's card today an then I went to his site: http://www.xeotrope.net and when I find that as I look around

Re: How to stop the URL comming up?

2003-11-27 Thread Dirk Griesbach
...another possibilty could be to switch to POST-actions to navigate within your site and make your entry page the only one being served via GET. grisi - Original Message - From: BAO RuiXian [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 12:52

-Xloggc option in Windows

2003-11-27 Thread Thomas Nybro Bolding
I am using Tomcat 4.1.27, JDK1.4.2 on Windows NT 4.0 and have added a new JVM Option Number contaning the string value -Xloggc:gc.log to my Windows registry in the Apache-Tomcat section. Still I see no garbage collection log what so ever? Where is this log supposed to go and is the syntax

Re: How to stop the URL comming up?

2003-11-27 Thread Andoni
Sorry address of example is http://www.xoetrope.net They are using a single frame for their front page. Very handy. Thanks, Andoni. - Original Message - From: Simone Chiaretta [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:37 AM

How to deploy a WAR file in Tomcat

2003-11-27 Thread dakavara
Hi, How to deploy a WAR file in Tomcat. Thanks Regards, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to deploy a WAR file in Tomcat

2003-11-27 Thread Bodycombe, Andrew
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html -Original Message- From: dakavara [mailto:[EMAIL PROTECTED] Sent: 27 November 2003 12:14 To: Tomcat Users List (E-mail) Subject: How to deploy a WAR file in Tomcat Hi, How to deploy a WAR file in Tomcat. Thanks

RE: How to stop the URL comming up?

2003-11-27 Thread David Sierra Fernandez
you're right...frame way is fool-proof ;-). One posibility is using a servlet as default index page. This servlet should redirect to whichever JSP you would like. The way to do the redirection in order to the URL didn't appear in the browser is the following:

session invalidation and %@ page session=false %

2003-11-27 Thread Adam Hardy
I'm wondering what the servlet equivalent of %@ page session=false % would be. After all the discussion here about disabling URL rewriting, I have knocked up a filter to overwrite the response so that encodeUrl() is no-op'd (thanx Brice) for requests from callers like google that can't handle

R: How to deploy a WAR file in Tomcat

2003-11-27 Thread Aloi Gianfranco (SPES)
Hi, you can, insert your war's file under the folder webapps, and them you can start of your webserver. Gianfranco. -Messaggio originale- Da: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] Inviato: giovedì 27 novembre 2003 13:19 A: 'Tomcat Users List' Oggetto: RE: How to deploy a WAR file

Share jsp pages between different contexts

2003-11-27 Thread Walter do Valle
Hello all Is there a way in Tomcat to inlcude pages (jsp:include ou %@ include %) from one application context to another context? Example: context /common has a page called header.jsp I need to inlclude this page in another page located in context /shop without replicate the file. Any help

Re: changing user/group tomcat is running as

2003-11-27 Thread Marten Lehmann
You could check out the commons-daemon jsvc (ships with TC 5.x, but should work with 4.1.x as well). It doesn't handle the chroot problem (but, since Solaris 8, I've almost given up on getting chroot to work). However, it does handle the port-binding and then changing uid problem. Thanks. I

RE: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector

2003-11-27 Thread Bhavdeep Sharma
Thanks all (especially Walter do Valle, Wendell Holmes, Stphane Brogi) for the help. I will check on the link and try what they suggest. Just an update that now I am getting the following error. /jakarta/isapi_redirect_1.2.5.dll

Re: Tomcat and Firewall

2003-11-27 Thread Antonio Fiol Bonnín
Adam Hardy wrote: On 11/26/2003 09:56 PM Antonio Fiol Bonnín wrote: i'm a tomcat newbie looking for information about tomcat and firewalls. what i want to do is to connect apache2(mod_ssl) and tomcat with mod_jk2 , where tomcat is within a firewall. which ports do i need to open for apache to

StandardServer.await: Invalid command '' received

2003-11-27 Thread Yuval Zantkeren
StandardServer.await: Invalid command '' received Does someone know what this mean it gives this error each time I do shutdown to the tomcat? Regards, Yuval Zantkeren This email message and any attachments hereto are intended only for use by the addressee(s) named above, and may contain legally

Re: [OT] Mozilla/Firebird and Session Cookie Problem (Mozilla-BUG)

2003-11-27 Thread Tim Funk
The simple kludge is to utilize multiple names for the same tomcat instance. http://i.mycompany.com/webapp1/ http://need.mycompany.com/webapp1/ http://more.mycompany.com/webapp1/ http://cowbell.mycompany.com/webapp1/ And all you need to do is mess with your /etc/hosts file. (Or

RE: Difficulty with SSL authentication without client certificate

2003-11-27 Thread Lira, Alesio
The most usual case that this behavior of tomcat is a nuissance, is when you wish to accept a SSL session; but if there is no client certificate, go ahead but with some functionality excluded. In my case, I give more sensitive information if a client certificate is present. Trapping the Error

config 302 redirect ?

2003-11-27 Thread P . van Kemenade
Hi what is the correct way to redirect users to a completely different server when they try to acces some address ? I'm looking for a config option (in server.xml or web.xml) that will return a http redirect header, like apache's Redirect directive. when people ask for

Re: How to stop the URL comming up?

2003-11-27 Thread John Sidney-Woollett
Try creating a servlet which maps to a bookmark-able URL. Then have the servlet use the RequestDispatcher to forward the request which will generate the page (a JSP usually). The forwarded page is generated in the same request, and the URL won't change. Using this technique you can have the

Re: Forwarding

2003-11-27 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 27 November 2003 00:16 schrieb Kuba Krlikowski: Dnia 2003-11-26 23:00, Uytkownik Jeff Tulley napisa: I think Kuba wants to redirect all requests that end with /something.jsp/ to /something.jsp This should be possible with a custom

Re: Forwarding

2003-11-27 Thread Graham Reeds
I'm a noob and all but.. Surely you could create a simple servlet to intercept all requests to /something.jsp/ and simply forward it to /something.jsp? G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Forwarding

2003-11-27 Thread Stuart Stephen
Why not use apache mod_rewrite ? -Original Message- From: Holger Klawitter [mailto:[EMAIL PROTECTED] Sent: 27 November 2003 07:46 To: [EMAIL PROTECTED] Subject: Re: Forwarding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 27 November 2003 00:16 schrieb Kuba Krlikowski:

javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html

2003-11-27 Thread Stuart Stephen
Hi, I'm getting the following error when sending HTML emails. From looking around the web it appears that my error could be from my mailcap file not being configured correctly, or the include order of mail.jar and activation.jar. How can I find out in which order Tomcat includes jars? Has anyone

Re: config 302 redirect ?

2003-11-27 Thread Tim Funk
Tomcat doesn't have an option like that. Which is why we usually recommend using apache's ModRewrite, Redirect, ... You could write a filter which does that. -Tim P.van Kemenade wrote: Hi what is the correct way to redirect users to a completely different server when they try to acces some

Propeties file

2003-11-27 Thread laurent marot
Hi all, i have a web application running on Tomcat 4.1.24/win2k that connect Oracle database. connection properties are in file and i'd like to know where could be the better way to store that properties files thanks - To

RE: Difficulty with SSL authentication without client certificate

2003-11-27 Thread Lira, Alesio
After all, there is a solution installing Apache and configuring certificates as optional But there must be a Tomcat alone solution. -Mensaje original- De: Lira, Alesio Enviado el: jueves 27 de noviembre de 2003 11:17 Para: Tomcat Users List Asunto: RE: Difficulty

RE: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/html

2003-11-27 Thread Stuart Stephen
Hi, Ever since trying to attach files to HTML e-mails I have had this problem. I've just checked my mailcap file and this seems fine to me??? Or at least it is according to http://www.jguru.com/faq/view.jsp?EID=237257. The contents of my mailcap file is below. --- #

Authentication with JAAS / Form Autenthication/ j_security_check

2003-11-27 Thread Jose Antonio Chirinos
Hi, i have a web application that use web authentication through j_security_check servlet; i need to add an extra parameter diferent of j_password and j_username; i guess that i have to put the extra parameter in the login form and in the definition of the realm; but where i have to include

shm.file

2003-11-27 Thread Asif Chowdhary
Hi, Apache running on linux with mod_jk2 Tomcat on windows. Running Do I need to create a map to the shm file defined on the Linux server. What is the purpose of this file and what is the recommended size? Thanks - To

putting together all admin functionality together

2003-11-27 Thread Santos Jha
Hello All, Currently tomcat provides two administrative functionality called admin. and manager. I have developed some functionality to see the userid ,ip and browser type of the currently logged on users. Now I want to put them together. i.e When some one one logs in as admin. he should be

RE: ClassCastException trying to access UserDatabase from example s web app

2003-11-27 Thread Danielle Mortimer
I got around my problem using reflection: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); java.lang.Object object = envCtx.lookup(userDatabase); // This throws ClassCastException System.out.println(Database id +

Re: config 302 redirect ?

2003-11-27 Thread Luke Vanderfluit
Hi P., There are a number of ways: 1. using the Refresh header, 2. using the Location header, these you can do using META tags as in meta http-equiv=Refresh Content=3;http://mydomain.com/gohere; or using the servlet API as in response.setHeader(Refresh, 3;http://mydomain.com/gohere;);

RE: Sending to Printer?

2003-11-27 Thread Luc Foisy
That's it eh. I always try to do things without JavaScript (or at least functions that do not need the javascript to work), it may be some kind of industry standard, but there are people that still do not trust the scripting languages, therefore thier javascript is turned off. Oh well, will

Re: Authentication with JAAS / Form Autenthication/ j_security_check

2003-11-27 Thread Adam Hardy
On 11/27/2003 06:41 PM Jose Antonio Chirinos wrote: Hi, i have a web application that use web authentication through j_security_check servlet; i need to add an extra parameter diferent of j_password and j_username; i guess that i have to put the extra parameter in the login form and in the

Re: config 302 redirect ?

2003-11-27 Thread Pike
Hi Tomcat doesn't have an option like that. strange! There are a number of ways: 1. using the Refresh header, 2. using the Location header, yes. hm. my real problem is, I have two different tomcats looking at the same folders. for each tomcat, I would like folder A to redirect to tomcat

Re: Sending to Printer?

2003-11-27 Thread Pike
Hi Is there any code I could use to send something to a printer? You can use the JavaScript window.print() function ;) That's it eh. I always try to do things without JavaScript tomcat runs on the server. if you want to print on the client side, you'll have to program something on the client

Re: Question on mod_jk2 (working)

2003-11-27 Thread Chong Yu Meng
Hi Nikola, I have a write-up on this configuration. Only difference is that I am using the Falsehope RPMs for Apache instead of Red Hat's. You can access it at http://cymulacrum.net/tomcat/jk2_compile.html I think what you are referring to is serverRoot, not serverConf. This is a reported

Re: putting together all admin functionality together

2003-11-27 Thread Tim Funk
You can keep it as your own webapp or extend the manager or admin webapps by downloading the source and changing it. http://jakarta.apache.org/site/cvsindex.html -Tim Santos Jha wrote: Hello All, Currently tomcat provides two administrative functionality called admin. and manager. I have

Preload JSP when it's startup

2003-11-27 Thread foongkim
As we know, first time when JSP is called, it's complied into Servlet and the next time you call the same jsp, the respond time will be faster. Thus, anywar for Tomcat to set to preload the JSP page when it's starting up the server? Thanks.

Re: Preload JSP when it's startup

2003-11-27 Thread Deepak Parbhoo
Write a script that calls the jsp's with '?jsp_precompile=true' as a parameter. So if the page is called start.jsp you will make a request to: http://server:port/start.jsp?jsp_precompile=true. [EMAIL PROTECTED] wrote: As we know, first time when JSP is called, it's complied into Servlet and

Re: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector

2003-11-27 Thread Antony Paul
Hi Bhavdeep Sharma, I tested the sample given at the link http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm. I downloaded the zip file and configured IIS as specified in the docs. It works fine. But I dont know it is JK2 or JK. One thing to remember is you have to put the DLL in the bin

Re: config 302 redirect ?

2003-11-27 Thread Luke Vanderfluit
Hi, Sorry but I don't understand what you are trying to do, could you be more explicit, then maybe we can help :-) kind regrards, Luke my real problem is, I have two different tomcats looking at the same folders. for each tomcat, I would like folder A to redirect to tomcat A

Re: Preload JSP when it's startup

2003-11-27 Thread foongkim
Can you please tell me exact instruction? Script?? store it in where? how? Deepak Parbhoo [EMAIL PROTECTED] 11/28/2003 01:12 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Preload JSP when it's startup