Tomcate 4.1.27 as a Service - Follow up to OOM problem

2005-01-06 Thread David Johnson
Hi again all I found the following when trying to find out how to REinstall tomcat as a service and to add options like the -Xmx512M what I need The batch file hates the fact that my Tomcat is located in c:\Program Files Any thoughts on how to get this to run? Thanks, Dave #

Re: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread David Johnson
Cool. Thanks the question is how do I get all of these options working when tomcat runs as a service... On Thu, 6 Jan 2005 15:28:30 -, Dale, Matt [EMAIL PROTECTED] wrote: It could also be that the Permanent Generation has filled up, look up the docs on how to increase that or start

Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
HI all. Well I'm still getting my out of memory problem fairly consistently (again) using Tomcat 4.1.31 with my Struts application. When I look st the memory usage, it says tomcat is using about 110k of memory for the VM, but that's just looking at the task manager. Tomcat is installed as a

Re: Tomcat5 java.lang.OutOfMemoryError

2005-01-17 Thread David Johnson
Can you post a link to the archives? On Tue, 11 Jan 2005 16:31:40 -0800 (PST), Ryan Stewart [EMAIL PROTECTED] wrote: I posted a how-to on this just yesterday I think. Try the archives. It's typically a good idea to check there before you post. -Original Message- From: SARMIENTO

Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
Hi again I've searched through the registry as well, and at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1.31\Parameters it DOES show the -Xmx=512M and -Xms=128M that are set in my installService.bat. It does not, however seem to be actually USING that much memory. Is

Re: Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
stop -out %TOMCAT_LOG% -err %TOMCAT_ERR_LOG% On Mon, 17 Jan 2005 13:05:02 -0500, David Johnson [EMAIL PROTECTED] wrote: Hi again I've searched through the registry as well, and at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1.31\Parameters it DOES show the -Xmx=512M

Re: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
-Xverbosegc -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %TOMCAT_LOG% -err %TOMCAT_ERR_LOG% On Mon, 17 Jan 2005 13:08:05 -0500, David Johnson

Re: What is it mean that Java code does not belong in well designed JSP pages?

2005-01-23 Thread David Johnson
The intent of JSP is that it is primarily HTML with just enough Java to make things work. Ideally, you can hand a JSP to a web designer who is not a programmer and they can make a pretty web page that works. In some shops this works. As a productivity booster, this works in some shops. But in

JSVC, Redhat 8, and TomCat 5.0.xx startup

2004-06-27 Thread David Johnson
I have noticed that a number of other people have written with this problem, and I was wondering if there was a permanent solution yet. When using jsvc to srart the Tomcat server with its own user ID, launched from a shell script in init.d during startup, jsvc aborts. If, on the other hand, I

Re: JSVC, Redhat 8, and TomCat 5.0.xx startup

2004-06-28 Thread David Johnson
, - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 27, 2004 9:21 PM Subject: Re: JSVC, Redhat 8, and TomCat 5.0.xx startup On Sun, Jun 27, 2004 at 08:48:06PM -0500, David Johnson wrote: : When using jsvc to srart the Tomcat server

Re: JSVC, Redhat, and Tomcat 5.0.xx startup

2004-06-28 Thread David Johnson
Thanks for the feedback so far. It has been very helpful - I think that I am having an issue with my relative inexperience with linux boot processes. I have made the log as verbose as I could, and it appears that linux is trying to start Tomcat before the network is fully available. Tomcat.sh

Re: JSVC, Redhat, and Tomcat 5.0.xx startup

2004-06-28 Thread David Johnson
Thanks for the feedback so far. It has been very helpful - I think that I am having an issue with my relative inexperience with linux boot processes. I have made the log as verbose as I could, and it appears that linux is trying to start Tomcat before the network is fully available. Tomcat.sh

Re: JSVC, Redhat, and Tomcat 5.0.xx startup

2004-06-30 Thread David Johnson
'tomcat' that resides in init.d example: ln -s /etc/init.d/tomcat /etc/rc3.d/S93tomcat The example value 93 is late enough to guarantee a start. On Tue, 2004-06-29 at 00:03, David Johnson wrote: Thanks for the feedback so far. It has been very helpful - I think that I am having an issue with my

RE: I've officially decided that JSTL is one of the worstthingsto ever happen

2004-07-06 Thread David Johnson
To beat a dead horse, religious arguments notwithstanding ... I agree that I find taglibs impossible to understand. I end up compiling the jsp to a servlet, then using the servlet as a skeleton that I refine and tune, and I finally dispose of the original jsp simply because I can't wrap my head

Re: Free reporting s/w that works with apache+tomcat

2005-05-11 Thread David Johnson
They are unlikely to ever look exactly alike. But, you can use a java-ActiveX bridge (there are several) to build and manipulate an excel spreadsheet as an object. I have successfully used a library from IBM AlphaWorks to do exactly this. Sadly, the library I used was a precursor to a

error-page not catching errors? Tomcat 4.1.31

2005-05-26 Thread David Johnson
Hi all I've added the following to my web.xml (thanks for the help) error-page error-code500/error-code location/error.jsp/location /error-page error-page error-code404/error-code location/error.jsp/location /error-page error-page error-codejava.lang.Exception/error-code

Re: Is there a kind of EJB container in Tomcat?

2005-06-20 Thread David Johnson
Have you considered alternatives to EJB? Hibernate is very nice, free, works with POJO's (Plain Old Java Objects), is easier to use than EJB 1 or 2, and is the basis for the upcoming EJB 3 standard. On Tue, 2005-06-21 at 08:25 +0800, Kevin Kang (CSS) wrote: Hi, all Who knows whether

RE: Is Tomcat is an application server ?

2005-06-21 Thread David Johnson
To expand a bit on Richard's note ... On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote: - Remoting implies distributing your objects across the network - a nice feature, but not often needed. Its talked about a lot - but for most applications its just not needed. J2EE is a

Re: Is Tomcat is an application server ?

2005-06-22 Thread David Johnson
On Wed, 2005-06-22 at 09:08 +0200, Michael Echerer wrote: There is no meaning in saying that one can plug in required services to Tomcat. My question is by design is it an application server ?. My opinion is that Tomcat in the shipped form is not an application server. At the minimum it

Re: load on startup

2005-08-06 Thread David Johnson
private static final SingletonObj singleton; public SingletonObj () { super (); singleton = this; } public synchronized SingletonObj getSingleton () { if ( singleton == null ) { new SingletonObj(); } return singleton; } On Fri, 2005-08-05 at 20:11 -0700, Ming Han wrote: You can

Re: load on startup

2005-08-06 Thread David Johnson
{ private static final SingletonObj singleton; // optional - use if you want the initialization to occur as class load time // Otherwise, the initialization will occur at first call to getSingleton(); // static initialization at load time static { getSingelton ()/ } private SingletonObj ()

Re: load on startup

2005-08-06 Thread David Johnson
{ instance=new SingletonObj(); } private SingletonObj() { } public static SingletonObj getInstance() // without sync ! { return instance; } } El sáb, 06-08-2005 a las 09:14 -0500, David Johnson escribió

Setting up HTTP Basic for a full Web-App

2005-09-30 Thread David Johnson
Hi all. I think I'm doing something wrong. I'veadded the following to my web application to use http-basicis there anything else I need to do to ensure anyone logging in like this has full access to the app? !-- Define a security constraint on this application -- security-constraint

Re: Setting up HTTP Basic for a full Web-App

2005-10-04 Thread David Johnson
Anyone have any thoughts on this? On 9/30/05, David Johnson [EMAIL PROTECTED] wrote: Hi all. I think I'm doing something wrong. I'veadded the following to my web application to use http-basicis there anything else I need to do to ensure anyone logging in like this has full access to the app