Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Leon Rosenberg
could you post your patch for download anywhere? If you need webspace, I can provide you some. I would find the patch extremely helpful, and would love to have it in my development tomcat, as soon as possible. thanx leon On 10/11/05, Tim Fennell [EMAIL PROTECTED] wrote: Apologies in advance for

Re: Tomcat 5.5.12 and user-agent header

2005-10-09 Thread Leon Rosenberg
Hmm, I downloaded 5.5.12 and tried the agent-header specific code with it: public void processLogin(User user, HttpServletRequest req, HttpServletResponse res) { StringBuffer info = new StringBuffer(); info.append(login );

Re: OutOfMemoryException in Tomcat 5.0.28 (when using Thread / ThreadLocal)

2005-10-09 Thread Leon Rosenberg
I'm not the expert but... On 10/9/05, Binildas C [EMAIL PROTECTED] wrote: Hi, We are building a high volume site in Tomcat5.0.28. Our single Tomcat5.0.28 instance in the Web Farm is having 10 HTTP Threads. Each HTTP Thread collects request events in a ThreadLocal. At every 1000 requests

Re: Sending mail with JavaMail

2005-10-07 Thread Leon Rosenberg
On 10/7/05, Andrés Reyes [EMAIL PROTECTED] wrote: activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib (and also in JAVA_HOME/lib) ¿Any other place? ;) ¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't :( ). Hmm... unlikely... but

RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
can someone please remove this email from the list? It's kindof nerving... thanx leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote: Why don't you use your eyes and read the bottom of the email. Or is that too difficult? Hae? Leon -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 07 October 2005 15:39 To: Tomcat Users List Subject: RTE

Re: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
However, back to the original point, is there a way to remove autoresponders from the list? I think the list is owned (among others?) by Mark Thomas [EMAIL PROTECTED], so he, or whoever owns the list should be able to remove autoresponders from the list. It's just annoying to adjust the filters

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: Or, cou could add a static hashmap to your Servlet (or a bean if using JSPs) where you simply add the sessions with every request. You would have to put an attribute implementing javax.servlet.http.HttpSessionActivationListener in each session

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
Sorry, aber how exactly does it solves the problem of having one session per user? :-) On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: -Ursprüngliche Nachricht- Von: Leon Rosenberg [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 11:20 An: Tomcat Users List

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: The problem is AFAIK, that you cannot access the list of all sessions through the servlet-api. That feature was in the servlet-api at some time, but was removed, IIRC due to security issues. If you have a list of all sessions, you can easily

[OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
Sorry for off-topic, but there are so many experts here! :-) Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? It seems to me, that the VM don't use more than 1.2 GB RAM even I gave it more (with mx/ms settings). We are planning to go to 16GB RAM machines to have a better

Re: [OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: [OT] How much RAM can java use Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? The answer is very platform specific. For example, on a normal 32-bit

Re: [OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
Chuck, Ryan, thanx, you were extremely helpful! regards Leon On 10/6/05, J. Ryan Earl [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Debian 3.1, kernel 2.6.x-smp (32 bit) or Debian 3.1, kernel 2.6.x-smp-emt64 (64 bit) Hardware: AMD Opteron and Xeon64 (both 64 bit) SUN jdk1.5

Re: java.lang.ClassCircularityError

2005-10-05 Thread Leon Rosenberg
Just some thoughts... if you write two classes A and B B extends A then compile then put B into deployment change B to not extend A and A to extend B, compile A put A into deployment Then you'll probably have your runtime circularity. Try to delete all your class files and recompile your

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
this information into the createSession method. Is this true? Or do I have to extend some of the low-level tomcat code in order to make this work? TIA for any help you can provide. On 9/29/05, Leon Rosenberg [EMAIL PROTECTED] wrote: check this out: http

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
On 10/6/05, Mark [EMAIL PROTECTED] wrote: basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not

Re: log4j log viewer for tomcat

2005-10-02 Thread Leon Rosenberg
lf5 regards Leon On 10/2/05, matador [EMAIL PROTECTED] wrote: win200x tomcat 5.5.9 jdk 1.5.x log4j 1.2.9 (i think) standard log4j setup with logs going into logs dir under tomcat install. does anyone have any recommendations for a webapp or workaround that allows me to view these files.

Re: Tomcat Alone or tomcat+IIS/Apache

2005-09-30 Thread Leon Rosenberg
We had the same discussion a year ago, as we switched to tomcat 5 and was testing whether we do need apache in front of it. Actually the only advantage for this solution left were apache mods like url-rewriting - http://mydomain - http://mydomain/myapp/mypath - better for some search engines and

Re: Installing Tomcat 5.5 on Fedora 4 via Yum

2005-09-30 Thread Leon Rosenberg
On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Rob Hills [mailto:[EMAIL PROTECTED] Subject: Installing Tomcat 5.5 on Fedora 4 via Yum However, I've so far been unsuccessful in finding any way to upgrade Tomcat beyond 5.0 using Yum. Has anyone else achieved this? I've

Re: Jsps

2005-09-29 Thread Leon Rosenberg
if you haven't reconfigured your resin - actually nothing. just drop your war file in webapps. if you did, you have to do the same you did in httpd.sh now in catalina.sh. More or less. leon On 9/29/05, Prema Kumar [EMAIL PROTECTED] wrote: Hi, I have an Application which is J2EE

Re: Flexible way of defining application variables in text format?

2005-09-29 Thread Leon Rosenberg
On 9/29/05, matador [EMAIL PROTECTED] wrote: Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon no need for threads with db. change the val

Re: custom session manager

2005-09-29 Thread Leon Rosenberg
check this out: http://www.niallp.pwp.blueyonder.co.uk/TomcatBug36541.html The link itself handles a bug, but one of the solutions is to replace the std. manager with custom manager with all info you need to actually do this. I thin kthis fits your question. regards leon On 9/29/05, Mark

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Leon Rosenberg
I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. :-) regards Leon - To unsubscribe, e-mail: [EMAIL

Re: Embedded Tomcat and shared objects...

2005-09-28 Thread Leon Rosenberg
: Leon Rosenberg wrote: Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? Because the class in question is created by Spring's

Re: Flexible way of defining application variables in text format?

2005-09-28 Thread Leon Rosenberg
database. using props files you have to bounce the app to get changes to take effect unless you write your own properties loader that runs as a thread, or checks file timestamps, etc. imo, its all too messy, db based config is far superior now how exactly writing a thread which polls the

Re: saving files in webapp folder from deletion?

2005-09-28 Thread Leon Rosenberg
On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi, Leon Rosenberg wrote: I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. You are absolutely right, however I

Re: (WAS) Generic Types support in Tomcat?

2005-09-27 Thread Leon Rosenberg
C] Sometime when the tomcat is started it spwans more than one processes. And then during shudown it creates problems. Also sometimes the list of open files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot respond. Linux kernel 2.4 emulates threads through lightweight

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Leon Rosenberg
setup X as context/webapp (incl. an empty WEB-INF) and probably a web.xml. this should be sufficent, unless you have something else badly broken :-) lg leon On 9/27/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi there, I have a setup in which certain trusted users of a web application X may

Re: Embedded Tomcat and shared objects...

2005-09-27 Thread Leon Rosenberg
Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? regards leon On 9/27/05, Darryl L. Pierce [EMAIL PROTECTED] wrote: I have embedded

Re: Synchronize wrapper for session obj attrib get/set

2005-09-25 Thread Leon Rosenberg
Possibly the easiest thing to do is edit the StandardSession.java file and change the type of the attributes field to HashTable rather than HashMap, then rebuild the associated jar. The places that already synchronize on attributes can be left alone, since redundant synchs are allowed and

Re: What to put into JAVA_HOME on Windows XP

2005-09-25 Thread Leon Rosenberg
can you compile classes? I mean just normal java classes out of the command prompt. Do you start tomcat as service or with bin\catalina.bat run / bin\startup.bat? On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in

Re: heap size in tomcat 5.0

2005-09-24 Thread Leon Rosenberg
bin\catalina.bat actually in all versions of tomcat :-) regards Leon On 9/24/05, matador [EMAIL PROTECTED] wrote: win2k server tomcat 5.0.x how to set heap size (min max)? i know how to do it in tomcat 5.5, but wasnt sure which script controlled the JAVA_OPTS in 5.0 thx

Re: force reload of individual class files

2005-09-24 Thread Leon Rosenberg
patch tomcat and supply your own classloader policy, using a separate class loader for each and every servlet / component / class will allow you to reload the classes but will also lead to abovementioned inconsistences. On 9/24/05, jimbo-black [EMAIL PROTECTED] wrote: Leon Rosenberg [EMAIL

Re: Registering my own protocol in Tomcat

2005-09-24 Thread Leon Rosenberg
What you need is a connector. I never looked how tomcat finds the proper connector, but it's surely configurable or, if not, easy patchable. Look at the server.xml connector configuration part and take a look at the source code :-) regards Leon On 9/22/05, Martin Peter [EMAIL PROTECTED] wrote:

Re: Tomcat JVM using 99.9% cpu

2005-09-23 Thread Leon Rosenberg
It looks more like an infinite loop. There are issues with tomcat, which causes infinite loops (see http://issues.apache.org/bugzilla/show_bug.cgi?id=36541) , but there are also chances that you simply programmed one yourself in your code. To check this, next time you tomcat has 99% cpu time,

Re: How to limit the size of TOMCATs stdout file

2005-09-23 Thread Leon Rosenberg
actually tomcat spams a lot in the catalina.out, this is my favorite: [EMAIL PROTECTED]: Exception Processing ErrorPa ge[errorCode=404, location=/down/404.html] ClientAbortException: java.net.SocketException: Connection reset at

Re: No Timestamp in catalina.out

2005-09-23 Thread Leon Rosenberg
catalina.out contents are actually system.out-s so you shouldn't expect any timestamps there, unless you have a logkit like log4j and configured your logger to go for standard out (which is bad :-)) However, we had same problem and have a workaround for this: We are starting a Thread in our

Re: force reload of individual class files

2005-09-23 Thread Leon Rosenberg
On 9/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: given a change to class file(s), does anyone know a hack workaround to force tomcat to reload * just those files *. I know about restarting the app from the console and context.xml. but i cannot afford to knock users off in the middle

someone familar with this error?

2005-09-22 Thread Leon Rosenberg
starting tomcat: 22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init WARNUNG: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824)

Re: session tracking in a context that contains JSP and servlets

2005-09-22 Thread Leon Rosenberg
On 9/22/05, Mark [EMAIL PROTECTED] wrote: I would think that this is possible. I have been writing servlets for over a year, but have not written a single line of JSP. Technically speaking each JSP is actually a servlet... more or less. Everything that works in the server works in the jsp

Re: someone familar with this error?

2005-09-22 Thread Leon Rosenberg
Thanx Jilles. On 9/22/05, Jilles van Gurp [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: starting tomcat: 22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init WARNUNG: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap

Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Leon Rosenberg
you need a WEB-INF directory in your webapp if you want the webapp to be loaded. On 9/21/05, Mbah Tenjoh-Okwen [EMAIL PROTECTED] wrote: hello Im using tomcat 5.5.9 and when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing

Problems delivering images / tomcat 5

2005-09-12 Thread Leon Rosenberg
Hi, I have a strange behaviour with delivering images from our tomcats. I've just checked the manager on all machines and was quite surprised to see following entries: S 130223 ms 104 KB 0 KB xxx.xxx.xxx.xxx www.xxx.de GET /dating/img/be2/be2Logout.gif HTTP/1.1 I mean 130 seconds is a lot for

Re: empty lines in HTML output

2005-09-10 Thread Leon Rosenberg
Check for trimSpaces parameter in to the jsp servlet in conf/web.xml But beware, combined with genStrAsCharArray option it can crash your tomcat (at least it does with mine, at 5.0.25) !-- trimSpaces Should white spaces in template text between -- !--

Re: How do you default an application to http://servername/

2005-09-09 Thread Leon Rosenberg
heh... there is a VERY simple but surely not spec-conform way: call your webapp ROOT and add a mapping for / regards leon On Fri, 2005-09-09 at 08:23 -0700, Aaron Pederson wrote: How do you default an application to come up when you hit the server on the port tomcat is running on? For my case

re: Does Tomcat work on dual processor systems?

2005-09-08 Thread Leon Rosenberg
We have tomcat (5.0.x) on both intel xeon and amd two-processor systems, it works (under linux / jdk 1.4). Maybe you should provide more details, but it doesn't sounds like a multiprocessor problem. Regards Leon -Ursprüngliche Nachricht- Von: Asha Nallana [mailto:[EMAIL PROTECTED]

Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-07 Thread Leon Rosenberg
Check the bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=36541 And yes, the HashMap explicitely prohibits the way it's been used by tomcat 5 StandardSession in it's javadoc. -Ursprüngliche Nachricht- Von: Wade Chandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7.

AW: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-07 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Wade Chandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. September 2005 21:11 An: Tomcat Users List Betreff: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get() Should be enough to explain the issue and why synchronization

Re: Bug votes needed..you really should read this..Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-07 Thread Leon Rosenberg
I've send a similar mail to the struts-users mailing list. Maybe other affected jakarta projects should be notified too. Leon -Ursprüngliche Nachricht- Von: Wade Chandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. September 2005 23:05 An: Tomcat Users List Betreff: Re: Bug

Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
Hi, This is quite ugly but we are running out of ideas. We are currently experiencing stange behaviour of tomcat (or the VM). Our tomcat hangs (not reproduceable, but probably on parallel requests to similar methods) in session.getAttibute(): We checked the source code of the HashMap,

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
) cachedStringPresentation = +value; return cachedStringPresentation; } thanx Leon -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 06, 2005 8:31 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat/JVM hangs

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
If I understand you correctly your scenario is: HashMap Entry has a linked list of X entries at one position and entry[Y] is poiting to the first entry instead of next or null? Correct. But how can that happen? a JVM / Core Api bug? The error is likely in webapp code, since the

[SOLVED] Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
Chuck, Larry thanx. regards Leon On Tue, 2005-09-06 at 09:53 -0500, Caldarale, Charles R wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() and replace all req.getSession().setAttribute(beanName, beanValue

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
2005 15:54 To: Tomcat Users List Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() and replace all req.getSession().setAttribute(beanName, beanValue

RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
On Tue, 2005-09-06 at 11:00 -0500, Caldarale, Charles R wrote: From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get() Does this mean that all session.setAttribute() and session.getAttribute() should always be synchronised