A question about log rotation

2006-02-10 Thread Randy Paries
Hello, I have a tomcat apache-tomcat-5.5.15 running on RH9 i am having this wierd problem. I think it is log rotation I start getting exceptions in the catalina.out that it can not access a log file . "permission denied" I have tomcat running as user apache. But when the logs are rotated, th

Re: From Java to C#, ASP.NET [Off Topic]

2006-02-10 Thread V D
Thank you for sharing your experience. I am surprised to see no one reply your message. For the thread, here's what I have to say. The original poster shared some frank and sincere experience and feeling. However, it lacks sorely the technicality of the comparison. For example, no links

Re: Access log to see where robots go.

2006-02-10 Thread Tim Funk
The problem is your home page, not robots.txt. When / is requested - the following is served back, notice the javascript redirect: (the full file is below) function invokeWebApp() { top.location.href = "http://www.theuniquepear.com/unique/index.jsp";; } Search engines do not e

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Wade Chandler
--- Lothar Krenzien <[EMAIL PROTECTED]> wrote: > Hi, > > I'm not sure whether it is possible or not: > > I have a webapp which I want to access under > different URL's with different JSP's but the same > java classes. I know that I can define the context > URL in the context.xml But how to defin

Access log to see where robots go.

2006-02-10 Thread Scott Purcell
I have had trouble getting search engines to see my site. I built it with struts, and use some tags from the index.html page to get business logic, to finally get to my page. The url is http://www.theuniquepear.com Anyway, upon talking to some co-workers, they suggested I watch my access log, s

RE: Off topic: Email bounce handler code?

2006-02-10 Thread Nicholas Irving
Take a look at http://rhea.redhat.com/asj/webmail/ http://www.eveandersson.com/arsdigita/doc/email-handler http://ryanlee.org/doc/bulkmail.html Basis of what you are trying to do is here, just may need some adaptation to your systems. -Original Message- From: David Wall [mailto:[EMAIL P

RE: Off topic: Email bounce handler code?

2006-02-10 Thread Nicholas Irving
Yeah did something similair a number of yeah ago, but was not with TomCat. Instead used ACS, Oracle Server and qmail, where we used oracle to read the mail messages, from qmail store, into the database and the ACS to read those messages. Cannot remember off the top of my head how it was done, but w

Off topic: Email bounce handler code?

2006-02-10 Thread David Wall
Does anybody know of any good Java/servlet code that handles email bounce processing? When our automated systems send an email that bounces (lots of hotmail bounce if the user has an account but just hasn't logged in the past 30 days), we'd like a "somewhat reliable" mechanism to associate the

Re: Verisign SSL on Tomcat 5.5.9

2006-02-10 Thread Patrick Lacson
These instruction by sycamore are correct. Thanks for updating the docs. On 2/9/06, Mark Thomas <[EMAIL PROTECTED]> wrote: > > Sycamore Days wrote: > > Follow the instructions here on tomcat's site: > > > > Every step is correct, ***EXCEPT*** for the Verisign link: > >For Verisign.com go to:

RE: FAQ? Taglibs not rendering in Tomcat 5

2006-02-10 Thread Tim Lucia
Chuck would ask you to tell us what version of Tomcat 5 (5.0, 5.5) and the release number (.28, .12), and he would ask for the O/S, and probably ask if there were any exceptions in the log... Remember, the more information you give us, the easier it is for us to help you and the likelier you are t

FAQ? Taglibs not rendering in Tomcat 5

2006-02-10 Thread catfarm
(IF this is a FAQ please redirect me) I built an app with extensive use of tag libraries. It runs great on my build machine with TC4 but doesn't render properly on the test box running TC5. The get/set methods for the taglib are being called but not "writeTagBodyContent". This is never being c

Re: problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Mark Thomas
Przemysław Klein wrote: > I use iso-8859-2 character encoding in my application. When I sent forms > using GET metod I receive question marks instead of some iso-8859-2 > characters. There is no problem when I send same form with same data > using POST metdod - all letters look properly. http://to

RE: Tomcat out of memory

2006-02-10 Thread [EMAIL PROTECTED]
tomcat 4.x, linux I had a an out of memory problem that seemed linked to compiling JSPs; anytime we'd do a bunch of new jsp work, the're be an out of memory problem. Seemed like it came out of the jsp engine as well, but I'm not sure about that. I found something somewhere that indicated it

Re: problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Mike Sabroff
why would you use 8859-2? why not use utf-8 and solve a lot of future problems? Przemysław Klein wrote: Hi All. I use iso-8859-2 character encoding in my application. When I sent forms using GET metod I receive question marks instead of some iso-8859-2 characters. There is no problem when I

Re: Getting directory in which app is deployed

2006-02-10 Thread Mike Sabroff
have your external process use a script that points to the webdirectory or if you use servlets, set an init param in the web.xml or in server.xml set an environment variable: or set a session variable in a jsp Wojciech Ciesielski wrote: Hi there, I have one problem... We have to execute

RE: tomcat + certificate

2006-02-10 Thread Duan, Nick
Without knowing the details of your problem (you may want to provide a stack trace next time), I think the problem is in the java client. Did you use JSSE to implement the client? The java sockets for accessing http are not the same as https. ND -Original Message- From: news [mailto:[EM

RE: Realm and Authentication with Tomcat 5.0, Apache 2 and mod_jk 1.2

2006-02-10 Thread Duan, Nick
Sorry for jumping into the discussion. The comment I'd like to make is that you can't really separate the security realm from authentication. In other words, a security realm is an integral part of user authentication. If user authentication is done by apache, the "realm" (the term realm is kind

RE: Tomcat out of memory

2006-02-10 Thread Eddie Dimond
We were experiencing the same problem with our tomcat servers (5.0.28). Our problem was that the jk connector port was being overwhelmed with connections (we connect to tomcat from apache via mod_jk). There in no way 5.0.28 to enlarge the thread pool size on the connectors (in server.xml). The so

Re: Getting directory in which app is deployed

2006-02-10 Thread David Smith
If your webapp is deployed as an exploded app (ie not a .war file), ServletContext#getRealPath() should do the trick --David Wojciech Ciesielski wrote: Hi there, I have one problem... We have to execute external Java process from JAR archive included in our web application directory. The pro

problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Przemysław Klein
Hi All. I use iso-8859-2 character encoding in my application. When I sent forms using GET metod I receive question marks instead of some iso-8859-2 characters. There is no problem when I send same form with same data using POST metdod - all letters look properly. I set proper character set

Re: StandardManager instance

2006-02-10 Thread Supreeth Shetty
So does that mean i need to store the sessions myself?? Can i not get the list of sessions already being managed by tomcat? - Original Message - From: "Leon Rosenberg" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, February 10, 2006 10:14 PM Subject: Re: StandardManager insta

Re: StandardManager instance

2006-02-10 Thread Leon Rosenberg
class SessionHolder implements HttpSessionListener{ /* (non-Javadoc) * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent) */ public void sessionCreated(HttpSessionEvent arg0) { //Store session

StandardManager instance

2006-02-10 Thread Supreeth Shetty
Hello all, I got a really quick question. How do i get hold of the StandardManager instance which the tomcat instatiates when it starts up?? I need it to get all the active sessions the server is handling. If i can get a hold of all session list someother way, then thats fine too ... thanks in

Getting directory in which app is deployed

2006-02-10 Thread Wojciech Ciesielski
Hi there, I have one problem... We have to execute external Java process from JAR archive included in our web application directory. The problem is, that all system dependant functions are relative to tomcat home directory. And - when our application is deployed outside tomcat directory via ser

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Smith
In the long run, duplicating classes is really the best way. It eliminates a whole slew of headaches with version control if you introduce new webapps based on an updated version. Set up your development environment to take care of the duplication for you in the build process. -- David Lot

RE: Tomcat - blank page problem

2006-02-10 Thread Ian Buzer
> Webpages seem to be loading then usually blank page > comes(totaly blank no error messages) on high traffic. I suspect this could either be your redirector cachesize is not large enough (the number of threads that the redirector will accept from IIS) or tomcat is not able to respond to all the

Re: Tomcat out of memory

2006-02-10 Thread Mike Sabroff
At our company we bounce tomcat every morning via a cron job Burak "Y" wrote: Hi all; I have a web site where 200 users online at average...These user overload started in these days... Webpages seem to be loading sometimes then blank page comes(totaly blank no err

RE: Tomcat - blank page problem

2006-02-10 Thread Caldarale, Charles R
> From: Burak "Yýlmaz [mailto:[EMAIL PROTECTED] > Subject: Tomcat - blank page problem > > Webpages seem to be loading then usually blank page > comes(totaly blank no error messages) on high traffic. > > Anyone knows why this problem may occur...? What do you see in the Tomcat logs? Can you s

Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Tim Funk
The Tomcat distritbution doesn't have an equivalent of mod_rewrite. Try http://javawebparts.sourceforge.net/ It has an apache license. -Tim Antony Riley wrote: Googles suggested implementation is GPL, which prohibits me from using it, and I'm not paying for the equivalent of mod_rewrite for to

Re: Problem with Tomcat and Java versions

2006-02-10 Thread Mike Sabroff
I have been looking at this for a couple of days, and it seems that maybe, it is a problem with the init.d startup. Sounds like it is pointing at the old tomcat and not the new until you run it manually and tell it tomcat 5. I am no systems person and I have many problems of this nature and it

Tomcat - blank page problem

2006-02-10 Thread Y
Webpages seem to be loading then usually blank page comes(totaly blank no error messages) on high traffic. This problem started in these days when my website traffic increased a lot.(200 users online at the same time) System configuration..:Windows 2003 server ,1 gb ram ,2.4 celeron Tomcat ver

Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Antony Riley
Googles suggested implementation is GPL, which prohibits me from using it, and I'm not paying for the equivalent of mod_rewrite for tomcat. I'd rather write my own and publish it under a less restrictive license. Regards my questions, (1) still stands, (2) I've partially answered for myself, by

RE: Tomcat out of memory

2006-02-10 Thread Biernesser, Beth
Add this line to your catalina.sh file under environment variables: export JAVA_OPTS=-Xmx512m However, you should not expand the memory to more than half of the memory available on your server. If you don't have a GB of memory, modify the "512" to an appropriate level relative to your memory

RE: Tomcat out of memory

2006-02-10 Thread Caldarale, Charles R
> From: Burak "Yýlmaz [mailto:[EMAIL PROTECTED] > Subject: Tomcat out of memory > > Webpages seem to be loading sometimes then blank page > comes(totaly blank no error messages)...I havent set any > memory pool option on Tomcat or havent installed native > software support of Tomcat... > > Pl

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Antony Riley
You could use a javax.servlet.Filter apparently, and say redirect requests to a particular servername to /jsp_a and redirect the rest to /jsp_b. basically installing a filter which does the following: public void doFilter(request,response,chain) { if(request.getServerName.equals("server1")

Tomcat out of memory

2006-02-10 Thread Y
Hi all; I have a web site where 200 users online at average...These user overload started in these days... Webpages seem to be loading sometimes then blank page comes(totaly blank no error messages)...I havent set any memory pool option on Tomcat or havent installed native software support of

RE: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Caldarale, Charles R
> From: Lothar Krenzien [mailto:[EMAIL PROTECTED] > Subject: Re: webapp under different URLs with different JSP > but same java classes > > "Tomcat Users List" schrieb am > 10.02.06 15:14:51: > > > > Duplicate your classes, one copy in each webapp > > Of course I did it. But I hoped there is

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Lothar Krenzien
"Tomcat Users List" schrieb am 10.02.06 15:14:51: > > Duplicate your classes, one copy in each webapp Of course I did it. But I hoped there is a better way ? > > Lothar Krenzien a écrit : > > >Hi, > > > >I'm not sure whether it is possible or not: > > > >I have a webapp which I want to

How to enable HTTP 1.1 Content-MD5 headers?

2006-02-10 Thread Jeff Calog
Hi, Does anybody know how to tell Tomcat 5.5.12 to send HTTP 1.1 Content-MD5 response headers? I can't seem to find any configuration settings for this. Our goal is to evaluate the performance impact and perhaps use the MD5 digests as a way of validating file integrity. Any help would be a

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Delbecq
Duplicate your classes, one copy in each webapp Lothar Krenzien a écrit : >Hi, > >I'm not sure whether it is possible or not: > >I have a webapp which I want to access under different URL's with different >JSP's but the same java classes. I know that I can define the context URL in >the context

webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Lothar Krenzien
Hi, I'm not sure whether it is possible or not: I have a webapp which I want to access under different URL's with different JSP's but the same java classes. I know that I can define the context URL in the context.xml But how to define which jsp's to use ? Example : In myapp I may have

Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Bruno Georges
Hi Antony Such implementation already exist. Google is your friend there. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Antony Riley [EMAIL PROTECTED] Sent: 10.02.2006 14:32 To: users@tomcat.apache.org Subject: pure java mod_

pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Antony Riley
Hiya all, I'm looking at writing a Filter class which does request rewriting similar to mod_rewrite in a apache for Tomcat (preferably written so that it will work with any servlets 2.4 compliant server). I'm having a little trouble with regards how filters actually work. The following all happe

Re: Problem with Tomcat and Java versions

2006-02-10 Thread Letícia Álvares Barbalho
I think I could require that, but as a last try - if nothing else would work... But I really think this should be able to be solved without reinstalling. The thing is that when I only restart tomcat (with /etc/init.d/tomcat5 restart) things start working fine! So i don't think it's a tomcat proble

Re: Tomcat Security Vulnerabilities

2006-02-10 Thread Markus Schönhaber
Jo Pfeffer wrote: > Just wanting to know if anyone can tell me in which version of Tomcat > the bug was fixed that allows you to enter in a URL like > http://domain.com/%3f.jsp and get a directory listing. I know it exists > in 3.2, just wondering which version it was fixed in. http://issues.apach

Re: how to run apache tomcat from a flash memory?

2006-02-10 Thread Petr Hadraba
Hi! Run cmd, "cd" to the bin directory of the Tomcat directory structure and type the following command: java -jar bootstrap.jar When you want to stop Tomcat, simply press Ctrl+C... Or download installer-less binary distribution of the Tomcat and use provided .cmd files in the same directory...

Re: Realm and Authentication with Tomcat 5.0, Apache 2 and mod_jk 1.2

2006-02-10 Thread Mickael Goujon
Hi Bill, Thanks for your answer. The original design of this authentication/session creation mechanism was made by another developper who knows Tomcat better than I know (but not enough apparently ;) ). If I understand correctly, your suggestion is to write a custom valve which will be used