RE: Passing init params to a listener?

2004-03-15 Thread Ronald Wildenberg
G'day, I assume from this that init parameters can only be accessed by a listener if they have been declared globally within the applications context and not from within the scope of the listener itself? Hm You can not specify initialization parameters for individual

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Kawthar Bt M Sulaiman
Hi Harry, I've been trying to setup my mySQL connection to tomcat as well and has been reading a lot of documents on how to do this. I think I'm getting more confused. I've setup my params as you suggested below. When I ran my sample app, I got the following exception:

RE: problem with mod_jk 1.2: error in action code

2004-03-15 Thread Ralph Einfeldt
I don't see any reason why an object in the context should have any thing to do with the stacktrace. What makes you think that they are related ? What makes you think that the pool is lost ? (context.getAttribute(AttribName) == null ?) Or do you just don't get connections from the pool ? Or

Virtual directories in Tomcat 5

2004-03-15 Thread Honza Spurny
Hi there, I had been using tomcat 4.1 and since I've made a change to TomCat 5.0.19, I'm having problems with creating virtual direcotries. All I want to do is to map for example such url : http://localhost/work/document.jsp to different directory than the

RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Yiannis Mavroukakis
I have to go by the assumption that everything else regarding the Data Resource in your server.xml and web.xml is correct. try { Context ctx = new InitialContext(); dataSource = ( DataSource ) ctx.lookup(java:comp/env/jdbc/yourDB );

Re: Virtual directories in Tomcat 5

2004-03-15 Thread stanley
In tomcat 5, the context tag works as : Host Context path = /WebApp1 docBase = D:\..\/ /Host - Original Message - From: Honza Spurny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:25 PM Subject: Virtual directories in Tomcat 5 Hi there, I had been using

several virtual hosts -- single application

2004-03-15 Thread James Agnew
Hello Is it possible to have several virtual hosts point to different folders within the same context under tomcat 5 standalone webserver? Host name=domain1.com debug=0 appBase=webapps Context path= docBase=domain1 debug=0 reloadable=true/ /Host Host name=domain2.com debug=0 appBase=webapps

Help:Probem related to data files

2004-03-15 Thread Ashish Mittal
Hello, In my jsp file, i am using a java class that reads a data file from the disk and use that data for fulfilling subsequent user requests. Now there is one other background process that can change the disk file data. Now in the production environment where the application is running

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Harry Mantheakis
Hi Chris I am afraid I cannot answer most of your questions (!) but I am writing in because a couple of my earlier postings did not make it through to this mail list, and it looks like my original question remained unanswered. The question was answered, and here it is again, for the record.

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Christopher Schultz
Kawthar, I've been trying to setup my mySQL connection to tomcat as well and has been reading a lot of documents on how to do this. I think I'm getting more confused. Context evtCtx = (Context) ctx.lookup(java:comp/env); DataSource ds = (DataSource) evtCtx.lookup(jdbc/mySQLDatabase); --- in my

Compression 5.0.19

2004-03-15 Thread sks
Is there any known problem with compression in 5.0.19 ? http://leknor.com/code/gziped.php? is reporting my sites as uncompressed, and the file sizes through telnet seem to agree with that. Also the headers do not indicate it is compressed. My server.xml contains the following connector

Re: OutOfMemoryError

2004-03-15 Thread Altug B. Altintas
Hi, Use jvmstat (google it) tool to analyize it. Maybe your application memory needs can break down Tomcat Regards. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 15, 2004 8:18 AM Subject: OutOfMemoryError Hi, I am getting the following

Tomcat5 can not use JRockit

2004-03-15 Thread stanley
Hi everyone: When I install tomcat5 (windows2000) , at the step of selecting JVM, it found the path of JRockit (because i have set the JAVA_HOME to jrockit), but it says: no JAVA virtual machine found the command of JRockit such as java, javac can work... does tomcat must use HotSpot

RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt
Tomcat doesn't require a certain jvm (as long as it has the right vdk version). Do you start tomcat as a service ? -Original Message- From: stanley [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:44 PM To: [EMAIL PROTECTED] Subject: Tomcat5 can not use JRockit Hi

Re: Tomcat5 can not use JRockit

2004-03-15 Thread stanley
No , I do not start it as a service but as normal program but When I install tomcat, it fails because the problem I mentioned in last email(No jvm found) the version I download is Binary version for windows - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users

RE: Tomcat on Windows 2003 Server

2004-03-15 Thread Cox, Charlie
I'm not having a problem with tomcat 4.1.29 and jdk 1.4.2_02 on Win2003 as a service. Charlie -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Metin Carl Sent: Saturday, March 13, 2004 3:51 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat on Windows 2003 Server

RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt
The startup script expect a certain structure inside JAVA_HOME: %JAVA_HOME%\bin\java %JAVA_HOME%\bin\javac %JAVA_HOME%\bin\javaw Is this met by your installation of jrockit ? How do you set JAVA_HOME ? -Original Message- From: stanley [mailto:[EMAIL PROTECTED] Sent: Monday, March

Re: Tomcat 4 or 5?

2004-03-15 Thread Daniel Savard
Le sam 13/03/2004 à 18:55, Nic Werner a écrit : Through projects and self-interest I've been using Tomcat 4 a lot more. While I've looked at the differences, can someone explain to me what the big differences are in english? I'm under the impression that 4 and 5 are different paths, not

Re: Tomcat5 can not use JRockit

2004-03-15 Thread stanley
I set JAVA_HOME as the path of JRockit's install path D:\jrockit-j2sdk1.4.2_03 and add %JAVA_HOME%\bin to PATH It seems the problem is not Tomcat can not find the path of JRockit, But Tomcat can not recognize the JRockit as the JVM.. - Original Message - From: Ralph Einfeldt [EMAIL

Need example configuration for Apache/Tomcat/JK2 and multiple virtual hosts

2004-03-15 Thread Jeremy Nix
I have a need to have Apache and Tomcat both handle requests for multiple IPs (hosts). I've initially set up a httpd.conf that defines 2 virtual hosts A and B. Both use JSPs/Servlets, so they both have references to JK2. I've kept the JK2 configuration simple and used localhost:8009 for both

How does tomcat identify a JVM?

2004-03-15 Thread stanley
Hi Does tomcat's program follow some principle to find a JVM? stanley

RE: JVM Memory Usage

2004-03-15 Thread Shapira, Yoav
Hi, please let me know how can i control the JVM memory usage in tomcat Same as other java programs, using the java command-line options. See for example JAVA_OPTS in $CATALINA_HOME/bin/catalina.sh, or search this list's archives. Yoav Shapira This e-mail, including any attachments, is a

Re: Tomcat5 can not use JRockit

2004-03-15 Thread sks
I downloaded Jrocket 1.4.1_05 to test it out for that fella - I set JAVA_HOME and it worked first time. I'd suggest you check you have set JAVA_HOME correctly. Set it in the system variables section not the user variables section if you're using XP (don't know which version of windows you are

session invalidate

2004-03-15 Thread Luc Foisy
Will calling session.invalidate() wait until the session is actually invalidated until code is further processed? Basically what I want to do is make sure all session object have been discarded, if this is the wrong way to go about this, please let me know. When a user logs off, I want to make

RE: Tomcat5 can not use JRockit

2004-03-15 Thread Shapira, Yoav
Hi, I downloaded Jrocket 1.4.1_05 to test it out for that fella - I set JAVA_HOME and it worked first time. I'd suggest you check you have set JAVA_HOME correctly. Set it in the system variables section not the user variables section if you're using XP (don't know which version of windows you

RE: session invalidate

2004-03-15 Thread Shapira, Yoav
Hi, Will calling session.invalidate() wait until the session is actually invalidated until code is further processed? Session.invalidate is a blocking call, yes, if that's what you mean. It should be very very fast, unless you've stuck a ton of stuff in the session and/or have a

RE: session invalidate

2004-03-15 Thread Luc Foisy
Wow, thanks for the quick response :) Exactly what I meant, thank you muchly. Luc -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:53 AM To: Tomcat Users List Subject: RE: session invalidate Hi, Will calling session.invalidate() wait

Re: IIS5 isolation mode

2004-03-15 Thread Tony Nakamura
Here's how my uriworkermap_properties look like: (B (B# *** Begin uriworkermap.properties *** (B# (B# Simple worker configuration file (B# (B (B# Mount the Servlet context to the ajp13 worker /servlet/*=3Dajp13 (B (B# Mount the examples context to the ajp13 worker

Any Known issues with TomCat and Solaris9?

2004-03-15 Thread Chris Wilt
Are there any known issues with TomCat running on a Solaris9 OS? I am currently running TomCat v4.1.27 running on Solaris 2.6 and we are in the process of upgrading to Solaris9. Thanks in advance for your help. -- Chris Wilt Systems Consultant - iPlanet Email Support IBM E-enablement

[Tomcat Monitor] - feedback?

2004-03-15 Thread Peter Lin
So far I've only gotten feedback from 2 people on the monitor. If anyone else has comments, suggestions or ideas, please email me. I ran the monitor for 50 hrs over the weekend and memory usage was constant. My next step is to implement email alerts. If you have ideas or thoughts on this,

multiple websites running under Tomcat 4 or 5

2004-03-15 Thread Nadia Kunkov
Hello need a bit of help. I have a machine running RedHat Linux 7.3. I am using Tomcat 4.x on the machine to run a simple JSP/Servlet website. My question is: How can I configure this machine or my firewall to allow me to run two websites off this machine? One would be the JSP/Servlet site

Re: [Tomcat Monitor] - feedback?

2004-03-15 Thread Reynir Þór Hübner
Hi, I don't know if this would fit into the env. you're developing but I think I would suggest using log4j, because there you can send different messages to different appenders, one of those being emailing appender. I once implemented a monitoring thread that used this way of comunicating

Re: Any Known issues with TomCat and Solaris9?

2004-03-15 Thread Jeanfrancois Arcand
Chris Wilt wrote: Are there any known issues with TomCat running on a Solaris9 OS? I am currently running TomCat v4.1.27 running on Solaris 2.6 and we are in the process of upgrading to Solaris9. Not that I am aware of. Works fine for us. -- Jeanfrancois Thanks in advance for your help.

RE: multiple websites running under Tomcat 4 or 5

2004-03-15 Thread Dale, Matt
Yes there are many ways you can do this. Apache supports virtual hosts so you can have as many websites as you want running and it decides which website to show depending on the name you use to access it. Tomcat runs on port 8080 by default so you could just leave that there and run the html

RE: multiple websites running under Tomcat 4 or 5

2004-03-15 Thread Adam Buglass
Would you even need tomcat for a pure HTML site? We have a number of JSP/servlet sites and one HTML site which tomcat doesn't even know about. We do link a form onto a JSP at one point on the HTML site but all tomcat sees is a small webapp (consisting of the one JSP and one class) On Mon,

Separating JVM's stdout from Tomcat's

2004-03-15 Thread Ron Gomes
We're porting part of a ServletExec-based shared-container infrastructure to Tomcat. One of its features is that when the JVM is started we redirect its standard output to stdio.out, to capture GC logging and other JVM-specific messages. ServletExec then arranges for the stdout and stderr of Web

RE: Separating JVM's stdout from Tomcat's

2004-03-15 Thread Shapira, Yoav
Hi, We'd like to do something similar in Tomcat but it's not clear how to accomplish it. The catalina.sh startup script redirects stdout to catalina.out, but that file ends up capturing both JVM logging and Web application logging. Only if your webapps are bad and use System.out/System.err ;)

editing tomcat class path

2004-03-15 Thread Arora, Avinash
Hi every one,    I am a new user of tomcat. Please don't mind if my question seems to be trivial. If we are having a java class that uses some package. Do we need to change the classpath for tomcat so that it can correctly compile the jsp page using that class? I have updated the system class

RE: editing tomcat class path

2004-03-15 Thread Shapira, Yoav
Hi,    I am a new user of tomcat. Please don't mind if my question seems to be trivial. If we are having a java class that uses some package. Do we need to change the classpath for tomcat so that it can correctly compile the jsp page using that class? I have updated the system class path

Memory Usage

2004-03-15 Thread bort
Hi all We've setup Tomcat to use a max of 256Mb. I've been tracking memory usage using: Runtime r = Runtime.getRuntime(); System.out.println(M: +r.maxMemory()); System.out.println(T: +r.totalMemory()); System.out.println(A: +r.freeMemory()); System.runFinalization();

RE: Memory Usage

2004-03-15 Thread Shapira, Yoav
Hi, We've setup Tomcat to use a max of 256Mb. I've been tracking memory usage using: System.runFinalization(); System.gc(); Be aware that the above two lines are misleading, as they are suggestions and not guaranteed to actually do anything. What I've noticed is that the the 'T' value

tomcat4.1.30 compiler problem

2004-03-15 Thread Rob Wichterman
Has anyone had a problem with tomcat4.1.30 that was crashing the jvm? I am running Solaris 8 with j2sdk1.4.2_04. Tomcat4.1.24 has no problem compiling the jsp's but 4.1.30 crashes after 4 or 5 compiled pages. I tried different jvm's, patched my OS and even deployed other webapps with the same

Taglib development - how to prevent EL expansion inside a custom tag

2004-03-15 Thread Igor Abade V. Leite
Hi folks! I have the following situation: In a given custom tag (a data-bound grid), I use several EL variables to allow to tag consumer to tailor the tag's output. While in Tomat 4.1 this was no issue - since the container didn't know nothing about EL, my tag took care of all EL parsing (using

Re: Memory Usage

2004-03-15 Thread bort
If System.runFinalization() and System.gc() are misleading... what should I use instead, to force to garbage collection? So, the amount of memory the JVM uses, will always increase? How do I get it to decrease? 256 was an arbitrary choice. Is there some formula I should be using (based on

RE: Memory Usage

2004-03-15 Thread Shapira, Yoav
Hi, Now you're starting to ask the right questions. If System.runFinalization() and System.gc() are misleading... what should I use instead, to force to garbage collection? You can't force garbage collection, and it is terrible design to rely on particular garbage collection timing. Instead,

Re: Memory Usage

2004-03-15 Thread James Black
bort wrote: If System.runFinalization() and System.gc() are misleading... what should I use instead, to force to garbage collection? So, the amount of memory the JVM uses, will always increase? How do I get it to decrease? You can't get it to decrease, but if you have the memory large enough

RE: Memory Usage

2004-03-15 Thread Shapira, Yoav
Hi, JDK1.5.0beta seems to have an improved garbage collection tuning built Care to elaborate or provide a reference? Thanks, Yoav Shapira Millennium Research Informatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is

Tomcat 4.1

2004-03-15 Thread Kadadi, Usha D
Hi , I would like to know if Tomcat supports this characterset ISO-8859-8-i or any known problems with this characterset. Thanks

Re: Memory Usage

2004-03-15 Thread James Black
Shapira, Yoav wrote: Hi, JDK1.5.0beta seems to have an improved garbage collection tuning built Care to elaborate or provide a reference? Thanks, http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#vm_selftune Based on my own experience, doing various performance related

where to find mod_jk2 for linux?

2004-03-15 Thread Márcio Roberto
Hello, I cant find the jk2 connector for Linux. I am running tomcat 4.1.30 and Apache 2.0.48. In the binaries page of mod_jk2 there are only directories for solaris and win32. Anyone knows where I can find it Thanks! -

jsvc.exec error

2004-03-15 Thread Mark Shifman
I just installed and init.d script for jakarta-tomcat-5.0.19. I am running linux 2.4.21-9.ELsmp. The edited Tomcat5.sh script seems to work fine but I get this message logged to catalina.out when I stop tomcat: jsvc.exec error: Service exit with a return value of 143 I checked jsvc-unix.c

RE: Memory Usage

2004-03-15 Thread Shapira, Yoav
Hi, Great, exactly what I wanted. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:21 PM To: Tomcat Users List Subject: Re: Memory Usage Shapira, Yoav wrote: Hi, JDK1.5.0beta seems

Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
My code looks up a DataSource instance using JNDI. It get an instance but all the fields are default or null values. When I try to get a connection I get the error Exception: Cannot create JDBC driver of class '' for connect URL 'null' Its like it finds my configured resource, but the server has

Re: several virtual hosts -- single application

2004-03-15 Thread Adrian Lanning
Hi James, On Linux, I've accomplished this using the following configuration: + snip from server.xml on linux + Host name=domain1 debug=0 appBase=webapps/app1 unpackWARs=true autoDeploy=true /Host Host name=domain2 debug=0 appBase=webapps/app2

RE: where to find mod_jk2 for linux?

2004-03-15 Thread Randall Svancara
You can download the source and build it. It is pretty easy to do. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html -Original Message- From: Márcio Roberto [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 12:25 PM To: [EMAIL PROTECTED] Subject: where to

Location of the Root webapps

2004-03-15 Thread Takumi Fujiwara
Hi, Can someone please tell me if I can change the location of the ROOT directory? Currently, it is the directory, ${tomcat installation directory}\webapps\ROOT can I change it so that I can point to some other directory? Thank you . __ Do you Yahoo!? Yahoo!

RE: Location of the Root webapps

2004-03-15 Thread D'Alessandro, Arthur
In the host element there is an appbase definition, you may modify this value (all contexts then become relative to this new location) -Original Message- From: Takumi Fujiwara [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:55 PM To: [EMAIL PROTECTED] Subject: Location of the

60 second timeouts?

2004-03-15 Thread Allen Smith
I am trying to migrate an older site from: RedHat 7.2, JRE 1.4.1, Tomcat 4.1.24, Apache 1.3 to RHEL 3, JRE 1.4.2, Tomcat 4.1.24, Apache 2.0, mod_jk 1.2.5 and I'm seeing something strange. I am seeing pauses in page rendering that are unrelated to GC. They are pretty much exactly (60

Re: Need example configuration for Apache/Tomcat/JK2 and multiple virtual hosts

2004-03-15 Thread Adrian Lanning
Hi Jeremy, Have you verified that the apps work as expected when not using load balancing? Then we know where the problem is... I don't know of any examples of loadbalancing with jk2. If you get this to work you can write a tut! Here's a link to an example using jk1.

Why? HTTP status 404

2004-03-15 Thread Karthigeyan Nagarajan
Hello: I recently installed tomcat 4.1.3 and jk_mod on apache2.0. I configured tomcat and apache2.0 as suggested in jakarta site. Can any one please explain me why I get the following error message, even though the file is present in the relative directory. Is there a problem with permissions?

help needed building JK2 connector

2004-03-15 Thread Dale, Matt
Hi, I have Redhat 9 with Tomcat 5 installed and is working fine. Apache 2.0.40 is installed by default and i'd rather stick with that because it is integrated with a nifty configuration tool. I'd like to link apache and tomcat with the JK2 connector which I have no problems with. As far as I

Re: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Parsons Technical Services
Paul, Add this to the context for each application that needs the database. ResourceLink name=jdbc/OscarsDB global=jdbc/OscarsDB type=javax.sql.DataSource/ Doug Parsons www.parsonstechnical.com - Original Message - From: Paul Mahoney [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL

Help exporting a working turbine app to tomcat

2004-03-15 Thread Inandjo Taurel
hi, i had a webapp developped under win2k and runing just fine. When i tried to export it to a unix machine where tomcat 4.0 is running, this is the exception i get: Horrible Exception: java.lang.Exception: Screen template '/Home.vm' not found at

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
Thanks for the tip. I put it in the server.xml in the /CustomFares context but it didn't help. Is there are equivalent entry for the web.xml file? -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: 15 March 2004 20:55 To: Tomcat Users List; [EMAIL

Tomcat 5 - Balancer errors with virtual hosts

2004-03-15 Thread Antoni Unkovich
Hi all. I've just installed Tomcat (my setup below taken from the Manager/serverinfo): OK - Server info Tomcat Version: Apache Tomcat/5.0.19 OS Name: Windows 2000 OS Version: 5.0 OS Architecture: x86 JVM Version: 1.4.1_01-b01 JVM Vendor: Sun Microsystems Inc. Every thing is sweet until I add a

Re: Memory Usage

2004-03-15 Thread bort
Thank you for the information! James Black [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] bort wrote: If System.runFinalization() and System.gc() are misleading... what should I use instead, to force to garbage collection? So, the amount of memory the JVM uses, will always

Re: Memory Usage

2004-03-15 Thread bort
Thanks for the information! Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Now you're starting to ask the right questions. If System.runFinalization() and System.gc() are misleading... what should I use instead, to force to garbage collection? You can't force

Re: Separating JVM's stdout from Tomcat's

2004-03-15 Thread Ron Gomes
On Mon, 15 Mar 2004, Shapira, Yoav wrote: Only if your webapps are bad and use System.out/System.err ;) You can add swallowOutput=true to your context declarations to make System.out/System.err output from the webapps go to the localhost log. (Or the Logger defined for the Context, if you

Re: OutOfMemoryError

2004-03-15 Thread UmamaheswarKalluru
Hi, I do I control it instead of viewing my memory usage? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help needed building JK2 connector

2004-03-15 Thread Adrian Lanning
Hi Matt, I have built JK2 successfully several times on Redhat 9 with Tomcat 5 and Apache 2.0.48. The problem I had with the default apache installed on rh 9.0 was that mine didn't have the apxs program or maybe it was some missing libraries.. In any case I had to build apache 2.0.48 from src

SSL using Microsoft CA

2004-03-15 Thread Donald Lee
Hello, I would like to use real authenticated SSL using a Microsoft CA Certificate imported into Tomcat. I found on the website for how to set up an anonymous or self signed SSL but I am troubleshooting an issue with axis web services running in self signed SSL mode. I wanted to try a real

delaying context reload

2004-03-15 Thread Cindy Ballreich
I like Tomcat's ability to reload a context when a change is made to one of my application's classes, but I'm having a problem with it reloading before the class has finished compiling. Is there a way to delay the reloading until all the files are ready? I'm using Tomcat 4.1.24 Thanks Cindy

Re: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Parsons Technical Services
Paul Not that I am aware of. In TC5 you are suppose to be able to do server.xml fragments. Will be going there soon. Some things to try: Reboot. Recheck logs. Not sure if order of elements in server.xml is important, try grouping the Resource auth=.. with the ResourceParams.. Try a

Re: 60 second timeouts?

2004-03-15 Thread Christopher Schultz
Allen, I am seeing pauses in page rendering that are unrelated to GC. They are pretty much exactly (60 seconds + render time) in length. Check your DNS resolver settings. I had problems like this unrelated to Java, and it turned out to be that. Make sure that localhost is actually pointing to

Re: delaying context reload

2004-03-15 Thread Christopher Schultz
Cindy, I like Tomcat's ability to reload a context when a change is made to one of my application's classes, but I'm having a problem with it reloading before the class has finished compiling. Is there a way to delay the reloading until all the files are ready? I highly recommend doing all your

Re: Help exporting a working turbine app to tomcat

2004-03-15 Thread Christopher Schultz
Inandjo, i had a webapp developped under win2k and runing just fine. When i tried to export it to a unix machine where tomcat 4.0 is running, this is the exception i get: Horrible Exception: java.lang.Exception: Screen template '/Home.vm' not found If you're switching from win32 to UNIX, make

Re: delaying context reload

2004-03-15 Thread Christopher Schultz
Tim, So what do you suggest in the case of copying a war file that takes 15 seconds to copy? That's a good question. I have a couple of thoughts: 1) When does the date of the inode get set -- at the beginning of the copy or at the end 2) Isn't there a way to set the time interval used to check

RE: delaying context reload

2004-03-15 Thread Rob Ross
-Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:23 PM To: Tomcat Users List Subject: Re: delaying context reload snip 3) If you're hot-deploying WAR files, shouldn't you be using the Tomcat deployment tool instead of

compression

2004-03-15 Thread sks
Has anyone got compression to work successfully with 5.0.19 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

WebappClassLoader: Lifecycle error : CL stopped

2004-03-15 Thread Jerald Powel
Hello all, Can anyone shed some light on the above error please? On the web, I saw it often associated with NoClassDefFoundError, and something called DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML

Re: Tomcat5 can not use JRockit

2004-03-15 Thread stanley
Hi, When I extract akarta-tomcat-5.0.19.zip, the Tomcat works using JRockit. :) It is in the process of install (akarta-tomcat-5.0.19.exe)that the problem appears, that is the install program seems does not identify JRrockit. Thanks

How can I make servlets reloaded automatically ?

2004-03-15 Thread stanley
Hi, Once I change the code of a servlet, I have to restart Tomcat5 to make it reloaded . Can I make the Tomcat to reload it without restarting? Thanks

RE: Separating JVM's stdout from Tomcat's

2004-03-15 Thread Jacob Kjome
At 12:23 PM 3/15/2004 -0500, you wrote: Hi, We'd like to do something similar in Tomcat but it's not clear how to accomplish it. The catalina.sh startup script redirects stdout to catalina.out, but that file ends up capturing both JVM logging and Web application logging. Only if your webapps

[Shameless Plug] Re: help needed building JK2 connector

2004-03-15 Thread Chong Yu Meng
Adrian Lanning wrote: Hi Matt, I have built JK2 successfully several times on Redhat 9 with Tomcat 5 and Apache 2.0.48. The problem I had with the default apache installed on rh 9.0 was that mine didn't have the apxs program or maybe it was some missing libraries.. In any case I had to build

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-15 Thread Jacob Kjome
This has to do with Log4j. Make sure you set up a servlet context listener and do LogManager.shutdown() in the contextDestroyed() method. This will take care of your troubles. Jake At 02:13 AM 3/16/2004 +, you wrote: Hello all, Can anyone shed some light on the above error

RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Kawthar Bt M Sulaiman
Chris and Yiannis, I've done the configuration as you mentioned, and I still receive the same exception... I've also changed the code to use one context instead of two, still the same exception... Here's what I have for my config file. In my server.xml: GlobalNamingResource Resource

Re: How can I make servlets reloaded automatically ?

2004-03-15 Thread Jacob Kjome
Context reloadable=true ... / I don't recommend that for production, but for development, it makes life easier. Jake At 11:10 AM 3/16/2004 +0800, you wrote: Hi, Once I change the code of a servlet, I have to restart Tomcat5 to make it reloaded . Can I make the Tomcat to reload it

How to set CATALINA_OPTS?

2004-03-15 Thread Joseph Shraibman
My tomcat rc script looks like this: start) echo -n Starting tomcat: su - ${TOMCAT_USER} -c . ~/.bashrc ; CATALINA_OPTS=-Xmx512M $TOMCAT_HOME/startup.sh echo ;; ... but CATALINA_OPTS is not making it into startup.sh. What am I doing wrong? I don't like

problems deploying tomcat

2004-03-15 Thread Ashley Mahadeo
Hi there well i am deploying tomcat and each time the following is dumped onto the screen : NFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true server.properties not found, using command line or default properties SEVERE: Parse Error at line 42

Load balancing for uptime

2004-03-15 Thread Derek Clarkson
Hi all, We have an app written in a mix of JSP, servlets and struts across 3 instances of apache, tomcat and an RMI server. To say that it's a pile of smelly stuff is an understatement, however it works (mostly) and our customers depend on it. At least once a week though it crashes with

RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Kawthar Bt M Sulaiman
OK.. now I got a different error message. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null', cause: java.sql.SQLException: No suitable driver Is it referring to the url specified under ResourceParams? If so, I specified it under

Re: Load balancing for uptime

2004-03-15 Thread David Rees
Derek Clarkson wrote, On 3/15/2004 10:32 PM: We have an app written in a mix of JSP, servlets and struts across 3 instances of apache, tomcat and an RMI server. To say that it's a pile of smelly stuff is an understatement, however it works (mostly) and our customers depend on it. At least once a

Re: How can I get a method to be called every 60 seconds in Tomcat?

2004-03-15 Thread David Rees
tom ly wrote, On 3/15/2004 7:01 PM: I want to get a method to automatically get called every 60 seconds in Tomcat. The method reset() will reset monitoring information. How can I do this? Jcrontab - http://jcrontab.sourceforge.net/ -Dave

while user login with Form Authenticate,user how to logout the application?

2004-03-15 Thread zengyi
tomcat-user but do not close the IE!!! zengyi [EMAIL PROTECTED] 2004-03-16

RE: jsvc.exec error

2004-03-15 Thread Mariano
I have this shell script to use with Tomat 5.0.19 with Fedora Core 1 and works fine: #!/bin/sh # # Startup script for Tomcat 5.0 # # chkconfig: 345 84 16 # description: Tomcat 5.0 jakarta JSP server # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat

Re: Load balancing for uptime

2004-03-15 Thread Antonio Fiol Bonnín
Hi, To keep it up, you will need to setup session replication (See your Cluster element in server.xml), either in-memory or JDBC. Both are supposed to work. However, that implies several things: - Your session must contain Seralizable objects only. - Your performance will be worse (how much