Re: Calculating required memory

2005-08-18 Thread Oleg
Thank you very much for your input gentlemen. Increasing PermGen is a great idea, because I do see my server giving me out of memory permgen error at least twice a day and now it makes sense why, I was thinking my -Xmx settings 1024m should take care of my needs for now and that was wrong, I

AW: JSP Precompilation

2005-08-18 Thread Bernhard Slominski
Maybe there are a few classfiles missing, which are only used with these two jsps. Bernhard -Urspr√ľngliche Nachricht- Von: Ramnish Kalsi [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. August 2005 20:52 An: 'Tomcat Users List' Betreff: JSP Precompilation I am trying to use

Thread-47 java.lang.NullPointerException

2005-08-18 Thread shashidhar.vutukuru
hi , I click and browse through some of the features accessing applets in the application, quite often I get the following Null Pointer Exception in the java console. I really do not understand the cause of the problem.I am using tomcat4.1. the error is : Exception in thread Thread-47

Re: Thread-47 java.lang.NullPointerException

2005-08-18 Thread Mark Thomas
Applets are a client side technology not a server side one. This means that applets are executed by browsers, not by Tomcat. As far as Tomcat is concerned, an applet is just a file delivered to the browser. This is a bug in the applet you are using or possibly an error in the way you are

http404 error in tomcat5.5.9

2005-08-18 Thread Duan Xin
hi , I have some questions in using tomcat 5.5.9: I create my web application under myapp directory (the structure of directory is below:) { myapp(dir)--- ---WEB-INF(dir)---classes(dir)---HelloWorld.class ---web.xml

Re: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Rakesh
Hi subi, you hav did servlet deployment almost correct but in url-pattern you hav made a little mistake.Change it to: servlet-mapping servlet-nameTestServlet/servlet-name url-pattern/servlet/TestServlet/url-pattern /servlet-mapping Try it and reply. - Original Message -

RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Well I can also think of one more issue ... Installing tomcat in a directory with spaces in them I would rather suggest that you install tomcat in directory without spaces ( not C:\Program Files\Apache Group\Tomcat 4.1\ ) c:\Server\tomcat4.1\ will be a good option. I had loads of problems

Re: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Mark Thomas
Just guessing, but are your servlets in a package? Packageless classes do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html Mark subi wrote: Hello All, I am using Tomcat 4.1. I just started working in it, so this asking may be childish, if so, pls don't mistake me.

RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Good spotted -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 10:00 To: Tomcat Users List Subject: Re: Http-status 500 error in Tomcat 4.1 Just guessing, but are your servlets in a package? Packageless classes do not work. See

Re: session problems when using mod_jk (1.2.14) load balancing

2005-08-18 Thread Edgar Alves
Hi, I'm using the domain property in the same situation as the one discussed in this thread. Any reason why I shouldn't use the domain property and rely on the worker names instead? Thanks in advance, -- Edgar Alves Rainer Jung wrote: That should not work! The correct way to configure

Re: http404 error in tomcat5.5.9

2005-08-18 Thread Jon Wingfield
I'm not sure the whitespace in your directory structure came out right so I'll make a few comments: web.xml should be in myapp/WEB-INF context.xml should be in myapp/META-INF (or rename it to myapp.xml and move it to the webapps directory) Your servlet class should be in a package. Have a

Markup Character Entities attr=lt;amp;quot;gt; BUG ?

2005-08-18 Thread Darryl L. Miles
The following example JSP page seems to be interpreted incorrectly. %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ taglib prefix=g uri=http://domain.com/taglibs/generic-0.1; % html head titleTAG

RE: Tomcat 5.5.9 with Struts 1.2.7 - ClassCastException - looks like a Tomcat bug

2005-08-18 Thread stewart.cambridge
Thank you Christian - you are correct. A colleague also referred me to: http://www.systemmobile.com/wp/?p=152 I had a copy of jsp-api.jar in my app (/WEB-INF/lib/jsp-api.jar) And Tomcat (both 5.0.28 and 5.5.9) has a copy under $CATALINA_HOME/common/lib/jsp-api.jar This makes the copy in my app

Re: session problems when using mod_jk (1.2.14) load balancing

2005-08-18 Thread Mladen Turk
Edgar Alves wrote: Hi, I'm using the domain property in the same situation as the one discussed in this thread. Any reason why I shouldn't use the domain property and rely on the worker names instead? Domain is supposed to be used with multiple workers sharing the same jvmRoute having

Problem including a file in Tomcat 5.5.9

2005-08-18 Thread Gabriel Belingueres
Hi, Writing a jsp page in my app, I need to include other file in it, but I got this issue in my Tomcat 5.5.9, when I write the include without parameters like this: jsp:include page=/menu.jsp /jsp:include I doesn't like written like this, so I write it like this and it works: jsp:include

Re: session problems when using mod_jk (1.2.14) load balancing

2005-08-18 Thread Edgar Alves
Hi Mladen, I've used the domain property because it seemed the more general approach (i.e., supports clusters but can be used with a single worker). What this thread got me curious about is if using the domain property in this fashion is officially supported, or on the other hand if it can only

Re: Problem including a file in Tomcat 5.5.9

2005-08-18 Thread Rakesh
No, this is not a bug. - Original Message - From: Gabriel Belingueres [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, August 18, 2005 4:57 PM Subject: Problem including a file in Tomcat 5.5.9 Hi, Writing a jsp page in my app, I need to include other file in

access symbolic link

2005-08-18 Thread Sade
i am using apache tomcat 5.0.28. how to access symbolic link using the apache tomcat 5.0.28 web server? I have modified the context in server.xml as follow; still does not work Context path=/edoc reloadable=true docBase=/edoc workDir=/edoc/work Logger

access symbolic link

2005-08-18 Thread Sade
i am using apache tomcat 5.0.28. how to access symbolic link using the apache tomcat 5.0.28 web server? I have modified the context in server.xml as follow; still does not work Context path=/edoc reloadable=true docBase=/edoc workDir=/edoc/work Logger

Re: access symbolic link

2005-08-18 Thread Peter Miller
Hi Sade, try docBase=edoc don't use the '/' in the docBase param Regards, Peter Sade schrieb: i am using apache tomcat 5.0.28. how to access symbolic link using the apache tomcat 5.0.28 web server? I have modified the context in server.xml as follow; still does not work Context path=/edoc

Re: Problem including a file in Tomcat 5.5.9

2005-08-18 Thread Peter Miller
Hi Gabriel, TC 5 needs strictly correct XML-Syntax. If you take jsp:include page=/menu.jsp /jsp:include TC 5 expects some other fields (like value or name) inbetween these 2 tags. Hth Peter Rakesh schrieb: No, this is not a bug. - Original Message - From: Gabriel Belingueres [EMAIL

Re: access symbolic link

2005-08-18 Thread Ben Ricker
So how do you point to content outside of a war? I have the same problem with 5.0.28 pointing to static content outside of a war. Even a symlink included in the war (and setting followsymlinks=true in the context) does not work. Ben Ricker On 8/18/05, Peter Miller [EMAIL PROTECTED] wrote: Hi

Re: access symbolic link

2005-08-18 Thread Sade
Peter, BUT, docbase indicates a directory, doesn't it? rgds - sade So how do you point to content outside of a war? I have the same problem with 5.0.28 pointing to static content outside of a war. Even a symlink included in the war (and setting followsymlinks=true in the context) does not

tomcat 4.1.31

2005-08-18 Thread Kuruganti, Lakshmi, ALABS
Hi, I am new to tomcat and having problems bringing up tomcat after configuring it to work with apache and web focus..below are the error messages...any help is appreciated! org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Catalina.start using

RE: tomcat 4.1.31

2005-08-18 Thread Arup Vidyerthy
Looks like your server.xml syntax is not correct. You will need to look through it figure it out... -Original Message- From: Kuruganti, Lakshmi, ALABS [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 14:03 To: tomcat-user@jakarta.apache.org Subject: tomcat 4.1.31 Hi, I am new to

RE: Calculating required memory

2005-08-18 Thread Peter Crowther
From: Oleg [mailto:[EMAIL PROTECTED] Now regarding shared/lib directory I thought that every application loads its own copy of those libraries, but if its only one time load and since all my applications are identical copies (only data changes) I might as well move all my classes

Error log

2005-08-18 Thread Tom Spence
Hi... Any idea why I got error message while I go to ADMIN page? Aug 18, 2005 8:52:39 AM org.apache.struts.action.RequestProcessor processMapping SEVERE: Invalid path /login was requested But while I am using ADMIN page which is no problem... Any idea. I appreciate your assist... Tom

Array as context parameter

2005-08-18 Thread Konrad Billewicz
I would like to pass an array to my application using Environment inside Context. Manual says that only primitive types are available. But... I need an array. How would you handle this problem? My only, little dummy idea is to do something like: Environment name=xxx/1 ... Environment

Log4j writing to the same log file for different webapps

2005-08-18 Thread Derek Merren
Hi, I have a problem with Log4j. I have several webapps running on Tomcat. They all use Log4j. The problem is that they all log to the same file. The file they log to depends on which app is used first. It seems to be picking up the settings from the log4j.properties file of the app that is run

RE: Log4j writing to the same log file for different webapps

2005-08-18 Thread Allistair Crossley
shouldn't that be log4j.logger.voteLogger=DEBUG, vote ?? else where will it get voteLogger from? -Original Message- From: Derek Merren [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 15:42 To: tomcat-user@jakarta.apache.org Subject: Log4j writing to the same log file for different

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Brian Cook
My solution for this is not elegant. I run 8 apps on one instance of Tomcat and it will be growing to 12 soon. All of those apps are set with autoReload set to true. When I need to update something I manually copy the individual class or JSP file to the proper folder to over write the

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Brian Cook
I think I missed something here. Are you not still bouncing Tomcat here? If so isnt the service still going down? What is the benifit of changign the ports around? I have a feeling I missed something in the expliation. George Sexton wrote: The technique I use is this: Run the HTTP

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Mikolaj Rydzewski
Seth Ladd wrote: The frequency is so much that the uptime of all of our applications is affected as we continually take down Tomcat servers in production to deploy a new application (or new version of the application). Because hot deploy does not work (the old favorite OOM error w/ too many

RE: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Allistair Crossley
we used to just schedule updates and let all our staff know there would be a small amount of downtime (for our intranet) but you can't do this on external production servers, so you need to go with either load balancing/clustering that allows you to close a node down *while also* letting

load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Allistair Crossley
Hi, I thought I had this sussed but it seems I haven't :( 2 tomcats, 1 machine, JK to balance with stick sessions. The following configuration works in that JK routes requests to both the tomcats and so on. The issue is that if I look in the access logs for each tomcat I can see that 1

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread George L. Sexton
The net effect is that users have to re-login, but there is no down time. They get bounced, but can immediately log back in. Right now, startup time for my hosted machine is running in the area of 5 minutes. So, I'm eliminating a 5 minute startup cycle. I'm running 60 virtual hosts on one

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Brian Cook
Sorry still not following. If Tomcat is being restarted how do you not have start up time? Is it that you have two instances of Tocmat and you are having the firewall just point to one instance while you bounce the second? If so is there an advantage to doing that over clustering?

Re: load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Mladen Turk
Allistair Crossley wrote: Hi, I thought I had this sussed but it seems I haven't :( 2 tomcats, 1 machine, JK to balance with stick sessions. The following configuration works in that JK routes requests to both the tomcats and so on. Did you set the jvmRoute=tomcat1 inside server.xml Engine

RE: load balancing 2 tomcats on 1 machine question

2005-08-18 Thread Allistair Crossley
Hi Mladen, Damn, no, I didn't :) Thanks very much indeed, seems to have done the trick :) Cheers, Allistair. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 17:17 To: Tomcat Users List Subject: Re: load balancing 2 tomcats on 1 machine question

RE: Tomcat 5.5.7+JRockit = windows service won't start

2005-08-18 Thread Brad Baynes
In the meantime since the last post in this thread BEA has released updates to JRockit such that it now supports the -Xrs switch. Has anybody on this list now had success running 5.5.x as a windows service with JRockit as the jvm? I am still getting errors when trying to start the service (Tomcat

new InitialDirContext(env); instantiating with invalid user info

2005-08-18 Thread ferrante
I've been trying to use the code below to validate a username/ password against an LDAP (ActiveDirectory) server When I use this in a main from the command line with a bad password I get Exception in thread main javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308:

RE: Tomcat 5.5.7+JRockit = windows service won't start

2005-08-18 Thread Wade Chandler
Does JRockit support the JNI standard for a native interface? Wade --- Brad Baynes [EMAIL PROTECTED] wrote: In the meantime since the last post in this thread BEA has released updates to JRockit such that it now supports the -Xrs switch. Has anybody on this list now had success running

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Seth Ladd
Mikolaj Rydzewski wrote: Seth Ladd wrote: The frequency is so much that the uptime of all of our applications is affected as we continually take down Tomcat servers in production to deploy a new application (or new version of the application). Because hot deploy does not work (the old

startup parameters in tomcat on windows 2000 server

2005-08-18 Thread Ashish Kulkarni
Hi how do i pass startup parameters when starting tomcat as service in windows 2000 server, what i have to pass is as below -Dsun.io.useCanonCaches=false -Djava.security.auth.login.config=%CATALINA_HOME%\conf\login.conf When i add this to catalina.bat file and start as

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Seth Ladd
Allistair Crossley wrote: we used to just schedule updates and let all our staff know there would be a small amount of downtime (for our intranet) but you can't do this on external production servers, so you need to go with either load balancing/clustering that allows you to close a node down

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Asad Habib
.NET and PHP may have better development/deployment environments, but quite frankly I would rather use Java than C# or PHP to develop web applications. Just look at the robust Java open-source frameworks that exist (i.e. Spring, Turbine, Struts, JSF) just to name a few. Also, .NET applications are

Re: persistence with sessions distributable attribute

2005-08-18 Thread Nishant Deshpande
Thanks for the input. Any idea how I can *catch* errors during serialization? I am guessing I will have to create my own PersistanceManager and override some functions.. Has anyone done this (or any other method of doing this)? On 8/17/05, Christoph Kutzinski [EMAIL PROTECTED] wrote: I didn't

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread George L. Sexton
To re-start tomcat, I start a second instance running on a different port and after the second instance is running, change the port forwarding to activate it. If so is there an advantage to doing that over clustering? It's a simple configuration that only requires one machine. As nice as

Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Seth Ladd
Asad Habib wrote: .NET and PHP may have better development/deployment environments, but quite frankly I would rather use Java than C# or PHP to develop web applications. Just look at the robust Java open-source frameworks that exist (i.e. Spring, Turbine, Struts, JSF) just to name a few. Also,

Custom tag runtime expression problem

2005-08-18 Thread Frank W. Zammetti
Hi all, I'm using Tomcat 5.0.29. I've created a custom tag and I need to be able to use runtime expressions for certain attributes. But it isn't working and I'm beating my head on the desk trying to figure out why. Here's my TLD: ?xml version=1.0 encoding=UTF-8? !DOCTYPE taglib PUBLIC -//Sun

Where do I put certs and keys

2005-08-18 Thread Dewey, John
Where do certificates and keys go in Tomcat? I'm developing a Tomcat application that uses certificates and keys for authentication. Right now they are simply files that I have put in C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin so that they are found. This works, but I'm sure there

Re: Custom tag runtime expression problem

2005-08-18 Thread Rahul Akolkar
On 8/18/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi all, I'm using Tomcat 5.0.29. I've created a custom tag and I need to be able to use runtime expressions for certain attributes. But it isn't working and I'm beating my head on the desk trying to figure out why. Here's my TLD:

Re: persistence with sessions distributable attribute

2005-08-18 Thread Christoph Kutzinski
Question: why do you want to catch errors during serialization. If you want to check that your attributes are serializable, you can use a SessionListener as I have shown. I can not think of any other reason why one would want to catch serialization exceptions. Nishant Deshpande wrote:

Re: Custom tag runtime expression problem

2005-08-18 Thread Wade Chandler
Don't know exactly, but a good place to look is the source code for the JSTL from commons. They are making some calls in there to transform the values of EL and expressions. Wade --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi all, I'm using Tomcat 5.0.29. I've created a custom tag and

Re: session problems when using mod_jk (1.2.14) load balancing

2005-08-18 Thread Rainer Jung
OK, thanks Mladen: I have to correct myself. 1) Traditional use Until mod_jk 1.2.6 there was no concept of domains. You had to specify the worker name to be exactly the same as the jvmRoute to make sticky sessions work. This way of configuring stickyness is wel known to mod_jk users. 2) I

apache-tomcat front/backend problems

2005-08-18 Thread Daryn
Hi there first time mailing to this list so apologies if this is not the place to ask this question. if so, please tell me where to go. (yes, I know. whole heap of dodgy replies to that last sentence. :) I've recently configured an apache front end with virtual hosting on port 8000 to relay

apache-tomcat front/backend problems

2005-08-18 Thread Daryn
Hi there first time mailing to this list so apologies if this is not the place to ask this question. if so, please tell me where to go. (yes, I know. whole heap of dodgy replies to that last sentence. :) I've recently configured an apache front end with virtual hosting on port 8000 to relay

mod_jk Apache Permission Problem

2005-08-18 Thread Jeshua Lacock
Greetings, I can't seem to make mod_jk connect successfully with Apache. Apache and Tomcat both works fine on their own (apache on :80 Tomcat on :8080), but I seem to be getting a permissions problem using mod_jk. I am able start Tomcat without special privileges, but when I try and start

JSP-Servlet: make JspWriter to be final ?

2005-08-18 Thread Nikolay Georgiev
Hello Everyone, PROBLEM DESCRIPTION: I'm developing a JSP page which lunches a JFrame (basically it's a panel with a button). There is a listener to the button and when the user click it, it calls a boolean function. And I want depending on the returned result from this function to show different

Re: mod_jk Apache Permission Problem

2005-08-18 Thread Kyle
I dunno if it's the same in Apache 1.3, but in Apache 2.x the example httpd.conf file has a pair of small IfModule tags showing how to run Apache under non-root user for diff. OS's. Basically you have to start Apache as root and it will then switch over, or so the example file says. To do

Re: mod_jk Apache Permission Problem

2005-08-18 Thread Jeshua Lacock
On Aug 18, 2005, at 5:45 PM, Kyle wrote: I dunno if it's the same in Apache 1.3, but in Apache 2.x the example httpd.conf file has a pair of small IfModule tags showing how to run Apache under non-root user for diff. OS's. Basically you have to start Apache as root and it will then switch

logout

2005-08-18 Thread ganesan malairaja
hi guys i am wondering .. is it possible for me to disable and internet (http / ftp ) connection on particular machine just buy knowing the Ip address or logout the current user after certain amount of time currently i have jsp codes which allow users to login .. now i want to know how to

Re: logout

2005-08-18 Thread Darek Czarkowski
Invalidate user session, assuming you check if user session is valid every visit to the page. On Fri, 19 Aug 2005 01:53:10 + ganesan malairaja [EMAIL PROTECTED] wrote: hi guys i am wondering .. is it possible for me to disable and internet (http / ftp ) connection on particular machine

Re: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Litty Preeth
Hi Subi, 1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes -here i have my servlet But ur class files shud be in : C:\Program Files\Apache Group\ Tomcat4.1\webapps\testapp\WEB-INF\classes And in ur html file ur form action

Re: Array as context parameter

2005-08-18 Thread Litty Preeth
Hi, Or u can use a comma separated list of strings and parse them using StringTokenizer. With Regards, Litty Preeth --- Konrad Billewicz [EMAIL PROTECTED] wrote: I would like to pass an array to my application using Environment inside Context. Manual says that only primitive types are