RE: Getting a request in a non English character

2004-04-25 Thread Mark Thomas
ng line = bri.readLine(); // > read just one line from hebrew request text > String data = URLEncoder.encode(line, "cp1255"); > > And this some how doesn't work , > Any suggestions? > Regard > Yair >

RE: Getting a request in a non English character

2004-04-25 Thread Mark Thomas
File f = new File("in.txt");// instead of getting my > name in hebrew . I get "" four times 0xF9 in the text file in.txt > FileWriter fw = new FileWriter(f); > while ((line = br.readLine()) != null) { > S

RE: tomcat 5 and cgi-bin

2004-04-24 Thread Mark Thomas
ilto:[EMAIL PROTECTED] > Sent: Saturday, April 24, 2004 10:09 AM > To: [EMAIL PROTECTED] > Subject: RE: tomcat 5 and cgi-bin > > thanks Mark > > suppose that i can use more than one app? such as > > > executable > XXXapp > > > > executable

RE: Init parameters in default context

2004-04-23 Thread Mark Thomas
> -Original Message- > From: Keith Hankin [mailto:[EMAIL PROTECTED] > I am trying to specify init context parameters in the default > context in server.xml as follows: > > > This is the ROOT context, not the default context. Hence your parameter will only be available in the

RE: servlet.http?

2004-04-23 Thread Mark Thomas
Depends on your compiler. Look on the docs for how to set the classpath for the compilier and ensure that all the necessary jar files are included. Mark > -Original Message- > From: Kalin Mintchev [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 9:03 AM > To: [EMAIL PROTECTED] >

RE: tomcat 5 and cgi-bin

2004-04-23 Thread Mark Thomas
Prior to 5.0.17, the cgi executable was hardcoded to perl. From 5.0.17 onwards this is configurable. For example, if you wanted to use XXXapp as the perl executable, edit conf/web.xml to look something this: cgi org.apache.catalina.servlets.CGIServlet client

RE: Getting a request in a non English character

2004-04-20 Thread Mark Thomas
dy encoding to decode" > > Where can I configure the useBodyEncodingForURI attribute, is it in an > XML file ? Which one ? > Thanks > Yair > > > > > > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: ג 20 אפריל

RE: Getting a request in a non English character

2004-04-20 Thread Mark Thomas
You might find the text below useful. It is my standard text on character encoding. Mark REQUESTS There are a number of situations where there may be a requirement to use non-US ASCII characters in a URI. These include: - Parameters in the query string - Servlet paths There is a standa

RE: security permissions

2004-04-20 Thread Mark Thomas
to write > the otput of that program into a file. > > The OS I am running is XP Professional. > > Thanks in advance > Andrea Powles > > Mark Thomas <[EMAIL PROTECTED]> wrote: > > OK. Next set of questions: > > > > - which program? > > -

RE: Detecting Sessions already existent at Tomcat Startup?

2004-04-19 Thread Mark Thomas
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach > Aside from that, wouldn't it be nice of the servlet spec would allow > binding HttpSessionActivationListeners to the whole > application instead > just to an attribute? In my application, it would be much > elegant/easier. M

RE: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Mark Thomas
It is a general requirement. That is why: 1. WEB-INF is defined by the spec and is highly unlikely to change. 2. Protecting resources under WEB-INF is mandated by the spec (SRV.9.5) > -Original Message- > From: Stephen Bacon [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 7:52 PM

RE: Tomcat4x Development Process

2004-04-19 Thread Mark Thomas
Look at the reloadable attribute. I use MyEclipse which takes a lot of the pain out of this sort of thing. Mark > -Original Message- > From: Duncan Krebs [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 7:26 PM > To: Tomcat Users List > Subject: Tomcat4x Development Process >

RE: security permissions

2004-04-19 Thread Mark Thomas
OK. Next set of questions: - which program? - what is the server OS? From: Andrea Powles [mailto:[EMAIL PROTECTED] > Im wanting to run the program on the server. > > When I startup Tomcat with the -security option Tomcat > doesn't start up? This is the case even when I take out my > modifica

RE: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas
Andreas, I believe you have misinterpreted the spec. Having re-read the relevant parts of the spec (SRV.10.2, SRV.15.1.7 & SRV.15.1.8) HttpSessionActivationListener applies to session attributes. Although HttpSessionActivationListener's inclusion in table SRV.10-1 could suggest otherwise, section

RE: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas
Without looking at your source code, no idea. I have just checked the Tomcat source and every attribute that implements HttpSessionActivationListener will have sessionWillPassivate() and sessionDidActivate() called. At the moment it looks like something in your app. Mark > -Original Messag

RE: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas
SRV.15.1.8 HttpSessionActivationListener public interface HttpSessionActivationListener extends java.util.EventListener All Superinterfaces: java.util.EventListener Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session

RE: Authentification against NT Domain Controller

2004-04-18 Thread Mark Thomas
From: Frank Schaare [mailto:[EMAIL PROTECTED] > we´re building an Intranet application running on Tomcat > 4.1.30 (Client > OS is Win2K). It would be very suitable to authentificate the users > against the NT Domain Controller to avoid a second login. > > I searched this ML and Google but did

RE: Parser Errors on startup

2004-04-18 Thread Mark Thomas
Try putting http://java.sun.com/dtd/web-app_2_3.dtd";> At the start of the web.xml file Mark > -Original Message- > From: James Bucanek [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 18, 2004 6:55 AM > To: Tomcat Users List > Subject: Re: Parser Errors on startup > > James Bucane

RE: security permissions

2004-04-17 Thread Mark Thomas
Where are you trying to run the external program? On the tomcat server or on the client talking to the server? If on the server try: - testing it without the security manager If on the client: - The browser security model will not allow this at all unless the applet/JavaScript is signed. - If you

RE: Administrator setup

2004-04-15 Thread Mark Thomas
Read the page you are looking at: NOTE: For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager". Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. Add a user with the admin role or add t

RE: List problems

2004-04-15 Thread Mark Thomas
John Send an e-mail to [EMAIL PROTECTED] detailing your new and old e-mail addresses and I or one of the other moderators will look into it for you. Mark > -Original Message- > From: John Trollinger [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 3:36 PM > To: [EMAIL PROTECT

RE: Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread Mark Thomas
You need to write a custom realm. Mark > My case is that I can't store the username and password of > the roles and users in my server. I need to send the > authenication information in a format of xml file to a > foreign server and get back the login result from that > server. So I can't u

RE: Session behaviour across http/https boundary

2004-04-09 Thread Mark Thomas
This is implemented within tomcat. Mark > -Original Message- > From: Martin Alley [mailto:[EMAIL PROTECTED] > Sent: Friday, April 09, 2004 8:28 AM > To: 'Tomcat Users List' > Subject: RE: Session behaviour across http/https boundary > > Hi Bill, > > Thanks for clarifying. > > BTW D

RE: DefaultServlet character encoding

2004-04-09 Thread Mark Thomas
Hi, Tomcat ignores META tags (for good reasons I won't go in to). Use <%@ page pagEncoding="..." %>. Mark > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 7:11 PM > To: [EMAIL PROTECTED] > Subject: DefaultServlet character encodin

RE: 5.0.19 server not starting

2004-04-04 Thread Mark Thomas
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I've tried just about every distro from 4.1.28 onwards and > none of them > work under Windows! They all have either ant or > Tomcat4.CoyoteConnector > failures. > Is Tomcat not now supported under Windows? Tomcat is supported under Windows.

RE: 5.0.19 server not starting

2004-04-04 Thread Mark Thomas
Looks like you have a broken server.xml Try using the one provided with the tomcat distribution. Mark > -Original Message- > From: jitender ahuja [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 04, 2004 2:24 PM > To: [EMAIL PROTECTED] > Subject: 5.0.19 server not starting > > Hi, >

RE: Windows Login Id in a Web App on T5

2004-03-26 Thread Mark Thomas
You can't get a use a windows username and password without integrating with windows authentication. How about fronting things with IIS? Let IIS do the authentication for you. Haven't tried it but I don't see why it wouldn't work. > -Original Message- > From: Kumar Abhay-CAK203C [mailto:[

RE: tomcat certificate

2004-03-26 Thread Mark Thomas
client certificate. Thank you very > much for your > help. > > And I think you are right, the error in the "catalina.out" > file is a JMX > issue. > > Regards, > Idoia > > > > > >

RE: tomcat certificate

2004-03-25 Thread Mark Thomas
I've look at the code and it would help if you could post your realm definition. Thanks, Mark > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 6:00 PM > To: 'Tomcat Users List' > Subject: RE: tomcat ce

RE: tomcat certificate

2004-03-25 Thread Mark Thomas
OK. Light dawns. Can you try using the memory realm? My realm definition looks like: Looking again at the exception it looks like a JMX issue with the UserDatabaseRealm MBean and user names containing '='. I'll have a look at the code. Mark > -Original Message- > From: Idoia Murua Belac

RE: tomcat certificate

2004-03-24 Thread Mark Thomas
gt; Subject: RE: tomcat certificate > > > We are using Tomcat 5.0.19 over Linux. > > Idoia > > > > >

RE: tomcat certificate

2004-03-23 Thread Mark Thomas
> > And it is because of the following property value in the > "tomcat-users.xml" > file: > username="CN=Mark Thomas, OU=WWW, O=XXX, L=YYY, ST=ZZZ, C=GB" > It seems tomcat does not like the ´=' character inside a > property value. > I have also

RE: Programmatically deploying webapps

2004-03-22 Thread Mark Thomas
You can archive your web app using ant's jar task. Mark > -Original Message- > From: Philipp Taprogge [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 2:05 AM > To: Tomcat Users List > Subject: Programmatically deploying webapps > > Hi! > > I am stuck here :-/ > Perhaps anyone

RE: Security

2004-03-21 Thread Mark Thomas
Matt, Your best bet is to read the security manager documentation provided as part of the SDK. It should be located in JAVA_HOME\docs\guide\security\permissions.html and JAVA_HOME\docs\guide\security\PolicyFiles.html I can't remember if these docs are part of the standard download or whether you

RE: Keystore help OT?

2004-03-19 Thread Mark Thomas
t: RE: Keystore help OT? > > No. That's not what the problem is. Getting a key into the > keystore is not > a difficult task. Fairly simple and straightforward. > Getting a private key > out is something else entirely. > > Drew > > -Original Message

RE: Keystore help OT?

2004-03-18 Thread Mark Thomas
You just import the reply into the keystore (using the same alias) and the keystore combines them for you. Have a look at the keytool docs that come with the JDK for further info. Mark > -Original Message- > From: Hamilton Andrew [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 18, 200

RE: tomcat certificate

2004-03-18 Thread Mark Thomas
much information about it in Tomcat I configured it > with Apache. > > Idoia > > > >

RE: tomcat certificate

2004-03-17 Thread Mark Thomas
This is not correct. Tomcat does support CLIENT-CERT authentication 'out-of-the-box'. When combined with appropriate authorisation constraints in web.xml you can limit access to specific URLs. I have this working quite happily. Mark > -Original Message- > From: Rommel Sharma [mailto:[EM

RE: web.xml Welcome-file for SSL

2004-03-16 Thread Mark Thomas
Should do. This works for me with TC4 and the default welcome list. Mark > -Original Message- > From: Forte, Graham [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 16, 2004 3:33 PM > To: 'Tomcat Users List' > Subject: RE: web.xml Welcome-file for SSL > > Corrected subject, any takers.

RE: SSL using Microsoft CA

2004-03-16 Thread Mark Thomas
A few pointers: - You can set the keystoreFile attribute on the connector to change the location of the keystore - When you get the tomcat server cert back from the CA you need to save it in p7b format with all the certificates in the chain - If you want to use client authentication with tomcat-use

RE: Do the tomcat developers use bugzilla?

2004-02-05 Thread Mark Thomas
From: Josh Rehman [mailto:[EMAIL PROTECTED] > Subject: Do the tomcat developers use bugzilla? > > At first I was shocked that TC5 has only 15 bugs registered. Then I > looked at the TC4 bugs: only 647, and almost all of them new. > > Should I bother filing any more bugs? Are the TC developers u

RE: $JAVA_HOME error

2004-02-04 Thread Mark Thomas
Might not be the root cause of your problem but you need to use the SDK not the JRE. Mark > -Original Message- > From: Tony Sutton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 04, 2004 11:14 PM > To: [EMAIL PROTECTED] > Subject: $JAVA_HOME error > > Hi there, > > I'm new to u

RE: Having trouble using CGI with Tomcat 4.1...

2004-02-04 Thread Mark Thomas
Ken, Without knowing the steps you took, I have no idea. It would also help to know exactly what you are trying to do. Mark From: Ken Perregaux [mailto:[EMAIL PROTECTED] > I have setup Tomcat to use CGI but when I try to run my > script or EXE it get > the following error... > > HTTP Status

RE: [URGENT] Problems getting SSL 2-Way Authentication to work

2004-01-26 Thread Mark Thomas
I am not familiar with openssl but having reviewed your steps you might want to try the following: - Import your CA cert into the trusted CAs for your browser. - You shouldn't need your CA cert in your keystore file, providing that the CA cert is installed in cacerts. Try removing it from the keys

RE: Antwort: RE: SSL, keystore with ca hierarchy

2004-01-25 Thread Mark Thomas
> I can't do step 1 and 2 because the certificate and private > key has been > created already with openssl. > The file TestServer_APU.pem contains the private key and > certificate in the > PEM format. > Should that work either? Sorry, no idea. You may need to convert formats. A quick Google fo

RE: How to change page encoding, sent by server

2004-01-25 Thread Mark Thomas
Have a look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13231 In the tag has no effect. You need to use the "<[EMAIL PROTECTED] ..." directive instead. Mark > -Original Message- > From: Ivan Kozlov [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 24, 2004 8:56 PM > To: [EMA

RE: SSL, keystore with ca hierarchy

2004-01-24 Thread Mark Thomas
I have successfully used a server signed cert with tomcat. The step by step guide is quite lengthy. I'll give you the edited highlights and please follow up if you have any more questions. 1. Create key in .keystore with alias tomcat 2. Generate a signing request and sent to CA 3. Receive signed

RE: Using CA-issued certificates in Tomcat 5

2004-01-19 Thread Mark Thomas
n the keystore with the alias "tomcat". > > Can it be that Sun royally messed up the keytool > implementation when moving from PKCS#7 to X.509 certificates? > > -Original Message- > From: ext Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Friday, January 16, 2004

RE: almost there with my servlet

2004-01-17 Thread Mark Thomas
Allan, Essentially, don't use packageless classes. The FAQ http://jakarta.apache.org/tomcat/faq/classnotfound.html has a bunch of references regarding this. Mark > -Original Message- > From: Allan Bruce [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 17, 2004 9:40 PM > To: Tomcat U

RE: Using CA-issued certificates in Tomcat 5

2004-01-16 Thread Mark Thomas
Try this - don't delete the alias before importing the response. What happens is: > keytool -genkey -alias tomcat -keyalg RSA Creates your private and public key > keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr wraps a copy of your _public_ key in a certficate request > ... got the

RE: Realm & SQL 2000 developer edition

2004-01-15 Thread Mark Thomas
AFAIK the only difference is that the developer edition is designed to give poor performance if you have more than 5 concurrent connections. Otherwise they should be the same. Mark -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 11:04 PM

RE: New to tomcat

2004-01-14 Thread Mark Thomas
Should be something like this to remove expired certs keytool -delete -alias verisignclass2ca -keystore -cacerts -storepass changeit keytool -delete -alias verisignclass3ca -keystore -cacerts -storepass changeit keytool -delete -alias verisignclass4ca -keystore -cacerts -storepass changeit Verisig

RE: New to tomcat

2004-01-14 Thread Mark Thomas
Try this in your {JAVA_HOME}\jre\lib\security directory keytool -list -v -keystore cacerts You'll need to enter your keystore password. This is changeit by default unless someone had the good sense to do the obvious. This will give a long list of the certificates including the validity dates. M

RE: CGI servlet in tomcat

2004-01-12 Thread Mark Thomas
For the current version of the CGI script the CGI scripts need to be in the WEB-INF/cgi directory. They are then available via the /cgi-bin/ path. Also, the webapp must be deployed in an expanded state. ie: if you deploy myApp.war to the webapp directory containing WEB-INF/cgi/myScript.cgi then yo

RE: remote debugging

2004-01-11 Thread Mark Thomas
I do this with Eclipse all the time. The steps to reproduce my configuration are shown below. 1. Configure the following environment variables: JPDA_ADDRESS=8999 JPDA_TRANSPORT=dt_socket 2. Start tomcat from the command line with: catalina jpda start or catalina jpda run 3. In Eclipse configure

RE: remote debugging

2004-01-10 Thread Mark Thomas
Resending from the right account... I do this with Eclipse all the time. The steps to reproduce my configuration are shown below. 1. Configure the following environment variables: JPDA_ADDRESS=8999 JPDA_TRANSPORT=dt_socket 2. Start tomcat from the command line with: catalina jpda start or catali

<    1   2   3   4   5