Problems accessing xls and ppt files over ajp13

2002-06-04 Thread Lawlor, Frank
I added mime types to conf/web.xml for xls and ppt: application/vnd.ms-excel application/vnd.ms-powerpoint and this works fine when I access tomcat directly, However, when I access tomcat via our IIS server in the firewall (SSL), they are sent as text. Other MS filetypes (doc,

RE: Tomcat 4 clears login parameters?

2002-05-20 Thread Lawlor, Frank
: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 12:34 PM To: Tomcat Users List Subject: Re: Tomcat 4 clears login parameters? On Sat, 18 May 2002, Lawlor, Frank wrote: Date: Sat, 18 May 2002 01:00:11 -0500 From: Lawlor, Frank [EMAIL PROTECTED] Reply

Problem Uploading Image files

2002-05-17 Thread Lawlor, Frank
We solved our problem by getting the latest cos.jar. Our original code was from the rather old code in the original article from the O'Reilly site, which doesn't seem to handle non-text files properly. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned

Tomcat 4 clears login parameters?

2002-05-17 Thread Lawlor, Frank
One problem that Tomcat web apps have is that the login page remains in the browser history and if the user navigates to one of these and tries to use it, they get a rather incomprehensible result. In Tomcat 3.x we had a good solution (the only one I have been able to find anywhere) which

Problem Uploading Image files

2002-05-13 Thread Lawlor, Frank
We have been using the O'Reilly multipart upload code, but are having problems uploading image (jpg, gif) files. I have tried this on Tomcat 3.3, 4.0.3 and 4.0.425 with same results. Same results going thru IIS front end and talking directly to tomcat on port 8080. The uploaded file is

RE: manager reload not processing new security constraints

2002-05-07 Thread Lawlor, Frank
/start instead. Charlie -Original Message- From: Lawlor, Frank [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 12:09 PM To: 'Tomcat (E-mail)' Subject: manager reload not processing new security constraints Tomcat 4.0.3: If I add a security constraint

RE: manager reload not processing new security constraints

2002-05-07 Thread Lawlor, Frank
reads server.xml on reload. You can use the manager's stop/start instead. Charlie -Original Message- From: Lawlor, Frank [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 12:09 PM To: 'Tomcat (E-mail)' Subject: manager reload not processing new security constraints

manager reload not processing new security constraints

2002-05-06 Thread Lawlor, Frank
Tomcat 4.0.3: If I add a security constraint to the web.xml of my application and do a manager/reload of the app, it claims to have restarted the app OK, but the new constraint is not effected. If I restart Tomcat, the new constraint does take effect. Is this a bug in the manger reload?

RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-25 Thread Lawlor, Frank
I tested nightly build 4.0.425 and the problem with getRemoteUser() == '' is fixed there. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -Original Message- From: Lawlor

RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-24 Thread Lawlor, Frank
The problem (in Tomcat) IS that getRemoteUser() doesn't return null. Tomcat does not support multiple logins. If you look at the code you will see that it does a getRemoteUser() and if not null and not authenticated by Tomcat, it bails. I tried it on 4.0.3, as someone suggested, and it still

RE: Please Help!! SSL problem

2002-04-09 Thread Lawlor, Frank
Did you follow all the directions in the SSL HowTo exactly: You need to provide more detail on the error. What is the full stack trace with the error message. Look in the logs in the log directory and note any messages that occur that may be connected with the problem. Frank Lawlor Athens

RE: tomcat with ssl

2002-04-02 Thread Lawlor, Frank
How are you trying to connect? What is the URL you are using? Is there anything in the logs? I assume you followed all the directions in the How-to? Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software

RE: Understand the security in tomcat

2002-03-27 Thread Lawlor, Frank
I'm no expert here, but for the types of things in your example, you need to enable the java system security (also controls access to the filesystem, etc). You enable this by starting Tomcat with the - security option. The permissions given to your app are defined, I believe, in tomcat.policy

How to get basic app environment info

2002-03-27 Thread Lawlor, Frank
In my application I would like to have some way to get the following information programmatically from my app about the deployed environment: 1) the deployed name of my web app (although I developed it as 'Foo', it can be deployed as anything). I know how to get this from the URL

RE: Can't Start Tomcat 4.0

2002-03-27 Thread Lawlor, Frank
In the startup.bat (?) change the 'start' to 'run' so you can see the error messages after running startup on the command line. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.

Tomcat Security Exposure

2002-03-20 Thread Lawlor, Frank
During development and deployment I discovered that many types of errors while reading the web.xml file would result in the app coming up (at least partly), but with no security. This seems like a serious security exposure in a production environment. I believe this is potentially a serious

Re: SecurityManager - pulling my hair out

2002-03-19 Thread Lawlor, Frank
Yes, strange. I ran into a couple of odd things when I turned java security on. One problem I saw once related to processing files in jars. If you are really desperate, unzip xerces.jar and servlet.jar into the neighboring classes dir (and remove the jars) and see if it helps. Make sure the

Re: SecurityManager - pulling my hair out

2002-03-19 Thread Lawlor, Frank
I also just remembered that Xerces seems to have problems sometimes resolving paths correctly. I found that it would 'assume' the wrong base file directory location for resolving DTDs. To see if this might be the case you can create a /javax/servlet/resources/web-app_2_3.dtd and put it in

Security problem with 4.0.2

2002-03-19 Thread Lawlor, Frank
When I start tomact 4.0.2 with the -security option I get the errors below. If I move it to server\lib the tomcat startup problems go away, but the app startup gets SAX classNotFound errors. After the error info is the first part of the output with set CATALINA_OPTS=-Djava.security.debug=all

Re: Problem with run Tomcat 4.0.3 as a service on win2k

2002-03-18 Thread Lawlor, Frank
There are other differences between 3.x and 4.x that require wrapper.properties changes. Failure to start the service is most often a wrapper.properties problem. You do not have to un/reinstall the service to make wrapper.properties changes. Just stop/start. Here are some of the key lines in

Re: manually stopping one application

2002-03-18 Thread Lawlor, Frank
In Tomcat 4.x take a look at the manager application which is included. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional

Re: Another directory question

2002-03-18 Thread Lawlor, Frank
How are you writing the file? Using the File class you can specify the desired directory. The file path to your app is getServletContext().getRealPath(/) If you have java security enabled, you need to give your app permission to write there. Frank Lawlor Athens Group, Inc. (512) 345-0600

Re: SecurityManager - pulling my hair out

2002-03-18 Thread Lawlor, Frank
Here are some of my aded catalina.policy statements: 1. // Allow read of SAX Parser name permission java.util.PropertyPermission org.xml.sax.driver, read; 2. Allow the Autoweb application to do whatever it wants:

Redeployment Problem under Tomcat 4.0.2

2002-03-13 Thread Lawlor, Frank
I've run into some problems with 4.0.2. - I do NOT have persistent sessions enabled in server.xml I can initially deploy a web app by placing the .war file in webapps dir. However, if I try to redeploy I run into problems. To re-deploy I ususally stop Tomcat, delete the current app

Redeployment Problems under Tomcat 4.0.2

2002-03-12 Thread Lawlor, Frank
I've run into some problems with 4.0.2. - I do NOT have persistent sessions enabled in server.xml I can initially deploy a web app by placing the .war file in webapps dir. However, if I try to redeploy I run into problems. To re-deploy I ususally stop Tomcat, delete the current app

RE: Sense of realm element in login-config

2002-02-28 Thread Lawlor, Frank
This is what I want to do: 1) I want to setup a database which includes multiple realms 2) user are linked to realms 3) I want to use protect a servlet with basic authentication, and I want to be able refer to the correct realm when performing the authentication (this means sending

Getting target URL in login JSP

2001-06-25 Thread Lawlor, Frank
In my login.jsp I need to know what URL the person used to cause the login. The only thing I've found is that the attribute tomcat.auth.originalLocation has this. This appears very specific to Tomcat. Is there any more general way to determine this information? Frank Lawlor Athens Group,