RE: Downloadable file name is not correct on Linux/Unix box

2006-10-28 Thread Umar Zubair
Yes I tried it. But it did not work. Umar -Original Message- From: Michael Courcy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 2:16 PM To: Tomcat Users List Subject: Re: Downloadable file name is not correct on Linux/Unix box Did you try to add the mime type in your

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Robbert
Caldarale, Charles R wrote: From: Robbert [mailto:[EMAIL PROTECTED] Subject: RE: CSS not being used when a Servlet is involved Combining that with what you just said, I assume that you're basically saying that my servlet tries to handle the link tag that contains the URL to my CSS, but

Re: Tomcat Security

2006-10-28 Thread Christopher Schultz
Maurice Yarrow wrote: The short answer is: if URL's are filtered first, then the actual location DefaultServlet will need to use is not visible in any of the html. Only for the authenticated serves will getPathInfo() be appropriately adjusted and then passed to DefaultServlet. Huh? Silly

Re: CSS not being used when a Servlet is involved

2006-10-28 Thread Christopher Schultz
Robbert, Hm, alright. Should all else fail, is it possible to let a Servlet handle the CSS? You don't really want to do this. I have four JSP pages (index, profile, statistics and gallery) that must invoke the StatistiekServlet. The page is simply a normal, static HTML page that calls the

Changing the webapps directory

2006-10-28 Thread Aaron Green
I'd like to change my webapps directory to be in my home directory. I've look around and can't find how to do this on Tomcat 5.x. I've also looked at server.xml, but don't really know the right way to implement any solutions that I have been able to dig up. Also, I can't seem to login to the

Apache Tomcat/5.5.12

2006-10-28 Thread asd
This is blocking a very important page. I must view it. I've tried deleting cookies, etc. I can't seem to get on the page I want to get on. HTTP Status 500 - type Exception report message description The

RE: Changing the webapps directory

2006-10-28 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Changing the webapps directory I'd like to change my webapps directory to be in my home directory. I've look around and can't find how to do this on Tomcat 5.x. Look at the doc for the Host element, in particular the appBase

Re: Problems with tomcat session timeout on linux

2006-10-28 Thread Oren Livne
Thanks to Charles and Edmond for replying. The problem was actually in my code. Tomcat destroyed the session, but when calling sessionDestroyed() (before the session is completely destroyed), a user bean that was expected was already null. The bottom line: session-timeout does work properly

RE: Apache Tomcat/5.5.12

2006-10-28 Thread Caldarale, Charles R
From: asd [mailto:[EMAIL PROTECTED] Subject: Apache Tomcat/5.5.12 This is blocking a very important page. I must view it. This appears to be an application problem, not Tomcat. root cause java.lang.NullPointerException org.apache.jsp.trans_005fhistory_htm:429 Where does the above

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Caldarale, Charles R
From: Robbert [mailto:[EMAIL PROTECTED] Subject: RE: CSS not being used when a Servlet is involved Hm, alright. Should all else fail, is it possible to let a Servlet handle the CSS? Some servlet must handle everything; static content (including .css files) is normally handled by Tomcat's

Re: Apache Tomcat/5.5.12

2006-10-28 Thread Len Popp
On 10/28/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: Where does the above class come from? (And why does its name have _005f in it rather than a plain underscore?) Jasper changes _ in JSP file names to _005f. But I don't know why. -- Len

Re: Changing the webapps directory

2006-10-28 Thread Aaron Green
Thanks for the reply. I did find the webapps reference in webapps, but again, didn't know the correct implementation for changing the directory. I was also unaware that I hijacked a thread. My thread does contain text from another thread, but the list created a new thread in my mailbox and the

Re: Web server hosting question using tomcat 5.5

2006-10-28 Thread EDMOND KEMOKAI
Firstly you'll need to configure (open some ports) your router to allow direct access to the tomcat port on your machine. Assuming you know the IP address of your router ( type in google: what's my IP address), user should be able to connect to your app by typing something like

Re: Changing the webapps directory

2006-10-28 Thread Martin Gainty
Aaron to change docRoot supply new value for appBase attribute in host element within server.xml http://tomcat.apache.org/tomcat-5.5-doc/config/host.html This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients

Performance throttling

2006-10-28 Thread Dima Retov
Hi, Is that possible to do performance throttling (or shaping) in tomcat on per context base? -- Best regards, Dima mailto:[EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Web server hosting question using tomcat 5.5

2006-10-28 Thread CANADAFAST INC.
hi Thanks for ur reply. I actually already new what u just mentioned. The problem is I tried 100s of times to run it my tomcat is running at 8080 on my pc. I enter the ip address like: http://routerip:8080/index.html Is that the correct way, or do I need to

Re: Apache with Windows 98

2006-10-28 Thread Eric Haszlakiewicz
On Fri, Oct 27, 2006 at 02:21:06PM +0800, Eric wrote: i wanna avoid this problem too but i am a student now having my internship to do my Final Year Project. so there is no choice because i got a PC that is running on Windows98. so what to do. i have to live with it and find solutions to work

RE: Performance throttling

2006-10-28 Thread Caldarale, Charles R
From: Dima Retov [mailto:[EMAIL PROTECTED] Subject: Performance throttling Is that possible to do performance throttling (or shaping) in tomcat on per context base? No direct mechanism that I'm aware of (although others might). I suppose you could segregate apps under different Engines,

Re: Tomcat Security

2006-10-28 Thread Maurice Yarrow
Chris Yes, thank you for clarifying you question: The answer is the latter: authentication required. In fact, there are three levels of privacy on these images and documents: public: (everyone can view) passworded: (password required for viewing: say, your

Re: Changing the webapps directory

2006-10-28 Thread Aaron Green
Thanks, I have gotten it changed, but now have a couple of other problems. First, eventhough autodeploy is set to true, it's not deploying wars I put into this directory. Second, after looking at the examples pages, I see that servlets run fine, but jsp examples return compiler errors. On

RE: Changing the webapps directory

2006-10-28 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Changing the webapps directory First, eventhough autodeploy is set to true, it's not deploying wars I put into this directory. What's the file structure inside the .war? There should be a WEB-INF directory with a web.xml inside

Re: Tomcat Security

2006-10-28 Thread Christopher Schultz
Maurice, The answer is the latter: authentication required. In fact, there are three levels of privacy on these images and documents: public: (everyone can view) passworded: (password required for viewing: say, your family only. This pw

RE: Tomcat Security

2006-10-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Security Since each image could have different authorization settings, you can't just use the servlet container's built-in authorization (set up in web.xml). You will have to enforce this yourself. Not sure that's

Re: Web server hosting question using tomcat 5.5

2006-10-28 Thread EDMOND KEMOKAI
The 192.168... is an IP only valid behind your router, for someone on the internet to access your app, you'll need to use your router's Iternet IP address. Again you can determine that address by typing What's my IP address in google and then select any of the results. From the URL you stated, I

Re: Changing the webapps directory

2006-10-28 Thread Aaron Green
yes, I have Tomcat 5.5 on Windows also, and I don't have these problems. I'm trying to set this up on a Linux machine though, because developing and hosting on my laptop just isn't working. The wars are open-source apps that deploy fine on my Windows box, so I'm guessing it must be a config or

Re: Tomcat Security

2006-10-28 Thread Maurice Yarrow
Chris Yes, the way my image server system (if I can call it such) works is pretty much exactly what you are suggesting. This issue, for me at least, is in the past-tense - i.e., already working code. And yes, as I say above, the model I devised is pretty much what you suggested. Maurice

Re: Tomcat Security

2006-10-28 Thread Maurice Yarrow
Chris, Chuck Yes, Chris: the below is the case exactly: (Actually, galleries - and consequently their included images and documents are authenticated, not specific images.) So what I would like to know how to do is how to programmatically bypass web.xml-based authorization and impose this

RE: Tomcat Security

2006-10-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Security Well, he did say that the user can choose arbitrarily what the authorization rules were. I would imagine that includes changing it on the fly. Changing the URL on the fly based upon the authorization rules

Re: Tomcat Security

2006-10-28 Thread Maurice Yarrow
Chuck, Chris (Pretty much) here are the rules: The owner of a gallery can set its permission to public or passwd or private. If passwd, the owner specifies (i.e., sets) a gallery-specific password. The owner can change this anytime they like. Additionally, owners must (of course)

Re: Web server hosting question using tomcat 5.5

2006-10-28 Thread EDMOND KEMOKAI
Your webapp context is the root directory of your web application, I am sorry but you should probably read a bit first before trying to deploy a web app. Check out the following link, it should be easy to see the steps you need to successfully develop and deploy your app in tomcat:

mod_jk and apache problem

2006-10-28 Thread Tom Miller
The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. for example: of