Re: Servlet as Welcome File doesn't work

2003-12-01 Thread Budi Kurniawan
Servlet 2.4 (implemented by Tomcat 5) allows you to use a servlet as a welcome file. If you're using Servlet 2.3, here is a trick: - Create a JSP page that forwards to the servlet. - Specify the JSP page as the welcome-file. budi. ---Original Message--- gt; From: SH Solutions

Re: Servlet as Welcome File doesn't work

2003-12-01 Thread bsouther
That feature has been added in version 5x. Prior to that you have to map to a static file or a JSP. On Monday 01 December 2003 06:58 pm, you wrote: Hello. I'm using tomcat 4.1.29 on debian and I have the following problem: I need to get / handled by my Servlet myPackage.Root, but I do not

Re: Argument Type Mismatch

2003-12-01 Thread Tim Funk
Ahh, I see. Why implement SessionListener which is tomcat specific when you can implement the Servlet specific ones in web.xml? Look at the code for SingleSignOn or any code that utilizes it as to how a SessionListener gets registered. I am guessing that you'll actuall need to implement a

RE: Argument Type Mismatch

2003-12-01 Thread Hart, Justin
I need access to the user's password, which all of the Servlet specific ones seem to guard the programmer from getting access to. Justin -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 8:10 PM To: Tomcat Users List Subject: Re: Argument Type

Re: Argument Type Mismatch

2003-12-01 Thread Tim Funk
ahha - the session won't have the password. But the Realm will. (or might not depending on implementation). Actually - the Principal could have the password if it extends GenericPrincipal. If not, you could extend the Realm to ensure it does.

application reloads on web.xml change

2003-12-01 Thread Bill Stilwell
Hello, I was unsure if this or -dev was the best place to send this, so I decided to go with user first. I recently spent some time tracking down why we would get application restarts when code changes were pushed to our production environment, despite having reloadable=false in the

Re: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Christopher Schultz
Neil, are you sure this is a tomcat reference holding on to it? it could be one of your classes as well, you need to run it through a memory profile in order to find out Yeah, it's possible (and probable) that the TagHandlerPool maintains a reference back to the ServletContext in which it lives.

Re: Include tag, dynamic param

2003-12-01 Thread Christopher Schultz
Peter, jsp:include page=slideEvents.jsp flush=true jsp:param name=BroadcastId value={parameterValue | %=BroadcastId%}/ /jsp:include Should work... This compiles / and runs... but the expression is never evaluated What do you get in the page source when it runs?

Re: Garbage Collection issues

2003-12-01 Thread Christopher Schultz
Neal, When I said that surely it can't be a memory leak in my app I was operating under the assumption that the JRE runs garbage collection periodically anywayis this not true? The GC is pretty much free to run whenever it wants. Often, it will not run until you get very close to running out

Re: Opening .JSP file through Apache without using mod_jk connector ?

2003-12-01 Thread Christopher Schultz
Soma, Is is possible to open .JSP files through Apache Server without using Mod_JK connector. Currently I'using Mod_JK connector 4.1.27 between Apache 2.0.40 and Tomcat 2.1.47 on Red Hat Linux 9.0. So, you want Apache to serve the .jsp file? It can certainly do that, but it will not actually

Re: Please Help to compile mod_jk2 on AIX

2003-12-01 Thread Christopher Schultz
Jose, Please, i have tried to compile hundred of times jakarta-tomcat-connectors-4.1.29-src and jakarta-tomcat-connectors-jk2-2.0.2-src, but it's impossible. There are a lot of errors during compilation. These all seem to be warnings, not errors. Does the build succed in creating an object file?

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-01 Thread Christopher Schultz
Dave, We're having a problem with tomcat 4.0.4. Every time a context is reloaded it leaks memory. It's a known bug, but not fixed in 4.1.x, it still exists there. I am not sure if it still exists in 5.0.x. Can you provide a bug number or a link? I'd like to take a look at it. Thanks, -chris

putting application war file not in webapps.

2003-12-01 Thread sanjay paithankar
Hello , I'm new to tomcat , The question is that if i don;t want to put my application war file in the webapps directory, so by putting it in some other directory and adding that context in the server.xml will the stuff work correctly , or we have to have put .war file in the webapps only

Re: What is the minimum version of Tomcat that will work with JK2?

2003-12-01 Thread Christopher Schultz
Asif, What is the minimum version of Tomcat that will work with JK2? 4.0.3, 4.1.27etc That's an odd question. Usually, it's the other way around... Since JK2 speaks the ajp13 protocol, it is rumored to work back to Tomcat 3.x, when it was first introduced. Any Tomcat version that supports an

Re: Internal Server Error 500

2003-12-01 Thread Christopher Schultz
Asif, I have apache running on linux with tomcat on NT. Servlets work fine but when I try to load a JSP from the examples It give Internal Server Error 500 Context not configured. Is it an Apache error message or a Tomcat error message? What do you get in your Apache (or Tomcat) log file when

Re: putting application war file not in webapps.

2003-12-01 Thread Kwok Peng Tuck
You can deploy your war file or unpacked app else where, just provide a context file for your application and in it specify the location of your web app. You can see that the manager app does this, just check out manager.xml , should get you started. sanjay paithankar wrote: Hello , I'm new

Re: -Xloggc option in Windows

2003-12-01 Thread Christopher Schultz
Thomas, Still I see no garbage collection log what so ever. Where is this log supposed to go and is the syntax correct? The log file could go in a number of places. Check the directory where you started Tomcat. Also, check the CATALINA_HOME/logs directory. Finally, look in c:\temp,

Re: putting application war file not in webapps.

2003-12-01 Thread Ben Souther
Using the manager app, you can deploy apps from war files wherever they reside. http://localhost:8080/tomcat-docs/manager-howto.html On Monday 01 December 2003 10:25 pm, you wrote: Hello , I'm new to tomcat , The question is that if i don;t want to put my application war file in the

Re: Please Help to compile mod_jk2 on AIX

2003-12-01 Thread Ben Souther
I just ran into the same problem. I had to cd into the resources dir and run ant from there first. Once that build completed, I CDed back up and ran ant again. It finished sucessfully. -Ben On Monday 01 December 2003 10:28 pm, you wrote: Jose, Please, i have tried to compile hundred of

Compression and server.xml file 5.0.14??

2003-12-01 Thread Ron Andersen
The sample server.xml includes the followng attributes for the Connector XML tag: compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml In the admin console, I

Re: How to install new version of application (war file)

2003-12-01 Thread Jacob Kjome
At 11:29 PM 12/1/2003 +0100, you wrote: Sorry Jake, I do not understand your suggestion. In my manager/html there is no tag field in the deployment form. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Deploy%20A%20New%20Application%20Remotely tag: Specifying a tag name, this

Re: putting application war file not in webapps.

2003-12-01 Thread Christopher Schultz
Sanjay, I'm new to tomcat , The question is that if i don;t want to put my application war file in the webapps directory, so by putting it in some other directory and adding that context in the server.xml will the stuff work correctly , or we have to have put .war file in the webapps only Give

OutOfMemoryError

2003-12-01 Thread Dhruva B. Reddy
We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK 1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of swap space, and four Xeon processors. This error seems to occur during periods of low load (like during the Thanksgiving holiday), after which Tomcat exits.

Re: OutOfMemoryError

2003-12-01 Thread Kwok Peng Tuck
What apps are you running ? Maybe you are running something that consumes a lot of ram. Dhruva B. Reddy wrote: We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK 1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of swap space, and four Xeon processors. This

RE: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Neil Aggarwal
Filip: Thanks for the suggestion. I have been profiling it and I don't see any references from our code, but I will keep checking. Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs

java.lang.OutOfMemoryError

2003-12-01 Thread Cheang Khai Leng (Central)
Hi, i am getting this error in my server log: *** 2003-12-02 10:22:23 - Ctx( ): Get real path \standardpages\footer.jsp C:\server -3.2.3\webapps\itsclient\standardpages\footer.jsp C:\server\apps\jakarta-tomcat- ent java.lang.OutOfMemoryError no stack trace available

Re: OutOfMemoryError

2003-12-01 Thread Trenton D. Adams
Dhruva B. Reddy wrote: We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK 1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of swap space, and four Xeon processors. Are you using the context reloading feature? reloadable=true or using the tomcat manager app

Re: java.lang.OutOfMemoryError

2003-12-01 Thread Trenton D. Adams
Cheang Khai Leng (Central) wrote: Hi, i am getting this error in my server log: *** 2003-12-02 10:22:23 - Ctx( ): Get real path \standardpages\footer.jsp C:\server -3.2.3\webapps\itsclient\standardpages\footer.jsp C:\server\apps\jakarta-tomcat- ent java.lang.OutOfMemoryError

tomcat jni configuration...

2003-12-01 Thread Tony
hi, all i have a problem trying to configurate my apache 2.x with Tomcat 4 (jni using jk2)... everything looks fine when i initiate apache, but when i try to access the examples apps (localhost/examples) i got the following error on error.log (apache directory): Tue Dec 02 03:08:56 2003]

Re: Include tag, dynamic param

2003-12-01 Thread Peter Maas
What do you get in the page source when it runs? Do you get jsp:param name=BroadcastId value={parameterValue | %= BroadcastId %} / ?? If so, then something is terribly wrong. If you get the include okay, but the value of BroadcastId is {parameterValue | %= BroadcastId %}, then something else

Re: OutOfMemoryError

2003-12-01 Thread Peter Maas
Have you updated the server settings? In our case the default ammount of RAM the VM was allowed to allocate was fixed to 64 mb (brrr)! Also watch out for the max. ammout of threads your server can create... this probably will be your next problem. Dhruva B. Reddy wrote: We get

Re: Tomcat FAQs on Wiki

2003-12-01 Thread Nikola Milutinovic
Mark Eggers wrote: Folks, I have put some of my documentation on the Tomcat Wiki at: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb These are sort of bare-bones documents about some ways to connect Tomcat/Apache on Linux, Tomcat/Apache on Windows/2000, and Tomcat/IIS 5 on Windows/2000.

<    1   2