Re: question about load-on-startup in web.xml

2005-05-11 Thread Annie Wang
hi doug, yup, was thinking along similar lines. just wasn't sure if there was some setting i wasn't aware of to do what i'm looking for. thanks. -annie On 5/10/05, Parsons Technical Services [EMAIL PROTECTED] wrote: I may be off base on this one but I think that once Tomcat fires off the init

AW: Restrict access to webapps for IPs

2005-05-11 Thread Altrock, Jens
Ok tried it again.. first some more information: I am using Tomcat 5.0.28 on Redhat Fedora Core 3, installed in /usr/local/tomcat I created a XML file called application.xml in /usr/local/tomcat/conf/Catalina/localhost where application is the name of the webapp. That worked so far. The file

Re: DBCP ClassCastException

2005-05-11 Thread Nikola Milutinovic
Dhiren Bhatia wrote: I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name, url, username/pwd etc. My app needs to support different databases and the driver is loaded based on which database is installed. You've got it backwards. It is the

Re: Restrict access to webapps for IPs

2005-05-11 Thread Lutz Zetzsche
Hi Jens, Am Mittwoch, 11. Mai 2005 08:17 schrieb Altrock, Jens: Ok tried it again.. first some more information: I am using Tomcat 5.0.28 on Redhat Fedora Core 3, installed in /usr/local/tomcat I created a XML file called application.xml in /usr/local/tomcat/conf/Catalina/localhost where

Re: How to change hostname in tomcat configuration

2005-05-11 Thread Lutz Zetzsche
Hi Mandar, Am Dienstag, 10. Mai 2005 20:13 schrieb Mandar Vaidya: I was trying for the second option, Here is how my server.xml file Engine defaultHost=techserv name=Catalina Host appBase=webapps name=techserv Logger

AW: Restrict access to webapps for IPs

2005-05-11 Thread Altrock, Jens
-Ursprüngliche Nachricht- Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Mai 2005 08:50 An: Tomcat Users List Betreff: Re: Restrict access to webapps for IPs Hi Jens, Am Mittwoch, 11. Mai 2005 08:17 schrieb Altrock, Jens: Ok tried it again.. first some

AW: Restrict access to webapps for IPs

2005-05-11 Thread Altrock, Jens
Hm didn't attach them.. So here they are: Server.xml: !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which

load balancing

2005-05-11 Thread Zohar Amir
Hi, I have an application server that maintains session and I'd like to make it scalable. The clients and the application server are communicating using TCP. When a client tries to connect, I'd like the load balancer to connect to a random AppServer node, and from that moment on - that node

how to change the port for jmx in tomcat 5.5.9 ?

2005-05-11 Thread Pankaj Bhatnagar
Hi I used to change the port for jmx by specifying the property : jrmpPort=1099 in the jk2.properties file while using Tomcat 5.0.28 After adding this property when I started Tomcat I used to get the following in the console : May 11, 2005 12:57:22 PM org.apache.jk.common.JkMX loadAdapter INFO:

Re: Restrict access to webapps for IPs

2005-05-11 Thread Lutz Zetzsche
Hi Jens, Am Mittwoch, 11. Mai 2005 09:01 schrieb Altrock, Jens: -Ursprüngliche Nachricht- Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Mai 2005 08:50 An: Tomcat Users List Betreff: Re: Restrict access to webapps for IPs Hi Jens, Am Mittwoch, 11.

RE : Form Based Authentication

2005-05-11 Thread LERBSCHER Jean-Pierre
If the authentication is realized by the container (the realm), you can't access the request before the authentication takes over. If you really want to do it, don't define the security constraint in your web.xml, and make your own application security mechanism (use filter, and forward or

RE: Does Tomcat support URL containing CHINESE characters?

2005-05-11 Thread Daniel Sun
Hi Mark, Thanks heaps for the help. URIEncoding=UTF-8 works for me. Cheers, Daniel -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:00 AM To: Tomcat Users List Subject: Re: Does Tomcat support URL containing CHINESE characters? As a

Re: Tomcat 5.5.9 - simple way of restricting access to webapp

2005-05-11 Thread Lutz Zetzsche
Hi Lars, Am Dienstag, 10. Mai 2005 18:00 schrieb Lars Ohlén: Is there any easy way to restrict the access to a specifc webapp by require login? Yes. :-) It is a little bit time-consuming to tell it in detail. So I just show you how it is configured for the Manager application by default:

RE : Restrict access to webapps for IPs

2005-05-11 Thread LERBSCHER Jean-Pierre
See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic Application Deployment When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. If this is not the case difficulties may be experienced deploying the web

Re: Arabic encoding

2005-05-11 Thread Fadwa Barham
While I was searching for a solution for the encoding, I found this There is a standard for encoding URIs (http://www.w3.org/International/O-URL- code.html) but this standard is not consistently followed by clients. This causes a number of problems. The functionality provided by Tomcat (4 and

RE: Is it possible to run a Tomcat 4.x and Tomcat 5.x on one computer

2005-05-11 Thread Peter Crowther
From: ojay78 [mailto:[EMAIL PROTECTED] I have 2 webapplications and one of them have to run with the tomcat 4.x Version the other one I want do install it on the new 5.x version. Can I install both tomcat versions on the same server? Yes. I have that configuration running here - 4.1.31

Re: Autodeploy not working on Tomcat 5.5.9

2005-05-11 Thread Remy Maucherat
On 5/10/05, Marquez, Omar [EMAIL PROTECTED] wrote: Hi Luntz, Thanks for answering. this is from my server.xml Host appBase=webapps autodeploy=true unpackWARs=true name=localhost Context path=/webapp reloadable=true

RE: Help needed with Hibernate persistent servlet

2005-05-11 Thread Allistair Crossley
Hi, Hibernate needs a bunch of other jar files too. There is a text file in the H3 distrib indicating which are requisite and which are mandatory. You do not menion whether this HibernateUtil you are using as a servlet has an overridden init() method that creates the SessionFactory. Finally,

AW: Restrict access to webapps for IPs

2005-05-11 Thread Altrock, Jens
Ok, thanks again. Got it now working :) -Ursprüngliche Nachricht- Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Mai 2005 09:35 An: Tomcat Users List Betreff: Re: Restrict access to webapps for IPs Hi Jens, Am Mittwoch, 11. Mai 2005 09:01 schrieb Altrock,

Re: tomcat restart?

2005-05-11 Thread Beton, Richard
Patrick Thomas wrote: Actually, I believe it might be possible. Ugly, but possible. Using Runtime.getRuntime() to get the current runtime, you can then actually make a call to a shell command. You could call a batch file that would shut down the server and then restart it. What I don't know is if

Multiple tomcats - multiple JVM's?

2005-05-11 Thread Thomas Nybro Bolding
When installing multiple instances of Tomcat 5.5x on the same server do I then need to install multiple JRE's as well? My guess is that its not as I cant see how to install multiple instances of an identical JRE, unless its not install but merely copy-and-paste. But with one JRE would one

DBCP Exception

2005-05-11 Thread Joy Kenneth Harry
Hi, Can anyone tell why I am getting this exception. SEVERE: Null component Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc e, name=jdbc/oracle Thanks Joy Kenneth - To unsubscribe, e-mail: [EMAIL

Jakarta Tomcat + Windows + PHP

2005-05-11 Thread Janet Fraser
Hi All, I'm running Jakarta Apache Tomcat 5.0.19 (successfully) on a Windows 2003 Server. I've been trying to figure out how to add PHP to the mix, but everything I've read says that I need to add a LoadModule directive to my httpd.conf and I don't have one. I didn't do the install for Tomcat,

RE: Jakarta Tomcat + Windows + PHP

2005-05-11 Thread Dale, Matt
The simple thing that you have missed is that you are following instructions to add PHP to Apache HTTPD, not Apache Tomcat. I think you can install PHP in Tomcat but I don't personally know how. Apache is an organisation, which makes many applications, it is not the name of a particular

Re: Jakarta Tomcat + Windows + PHP

2005-05-11 Thread Janet Fraser
Matt, Thanks - I guess i knew that. Maybe my question should have been simpler, ie How do I install PHP to Tomcat? Dale, Matt wrote: The simple thing that you have missed is that you are following instructions to add PHP to Apache HTTPD, not Apache Tomcat. I think you can install PHP in

RE: Jakarta Tomcat + Windows + PHP

2005-05-11 Thread Dale, Matt
A quick google brought back http://wiki.apache.org/jakarta-tomcat/UsingPhp. Should get you started. Ta Matt -Original Message- From: Janet Fraser [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 10:02 To: Tomcat Users List Subject: Re: Jakarta Tomcat + Windows + PHP Matt, Thanks -

Re: Jakarta Tomcat + Windows + PHP

2005-05-11 Thread Lutz Zetzsche
Hi Janet, Am Mittwoch, 11. Mai 2005 10:48 schrieb Janet Fraser: I'm running Jakarta Apache Tomcat 5.0.19 (successfully) on a Windows 2003 Server. I've been trying to figure out how to add PHP to the mix, but everything I've read says that I need to add a LoadModule directive to my httpd.conf

RE: Multiple tomcats - multiple JVM's?

2005-05-11 Thread Peter Crowther
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] When installing multiple instances of Tomcat 5.5x on the same server do I then need to install multiple JRE's as well? No. But with one JRE would one crashed instance of Tomcat crash the others as well? Separate the JRE (Java Runtime

RE: RE: Multiple tomcats - multiple JVM's?

2005-05-11 Thread Thomas Nybro Bolding
Thx a lot Peter. That clarified things for me. Quite embarassing I wasnt aware of the JRE/JVM relationship as when I think about it it seems obvious. /Thomas Peter Crowther [EMAIL PROTECTED] 11-05-2005 11:14 Besvar venligst til Tomcat Users List Til:Tomcat Users List

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

2005-05-11 Thread U K Laxmi
Thank you for the suggestion. Laxmi --- Gurumoorthy [EMAIL PROTECTED] wrote: use jasper reports with ireports ( GUI ) for jasper ... very nice :o) - Original Message - From: U K Laxmi [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, May 11,

Re: Apache+Tomcat

2005-05-11 Thread Nikola Milutinovic
Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by

RE: load balancing

2005-05-11 Thread Serlet Jean-Claude
Hello I don't know if this solution is more effictive than the other one (load balancing by using Apache server with different Tomcat instances) But the two one don't realise a random access : -cluster uses rules -apache uses a simple round-robin scheduling algorithm ; so after a disconnection

context XML file deleted on webapp redeploy

2005-05-11 Thread Martin Kuba
Hi, I am using TomCat 5.5.9 with SUN JDK 1.5.0._02 and I have a strange problem. I have a context file in $CATALINA_BASE/conf/Catalina/localhost/ directory, let's say it is named mywebapp.xml.When I first start TomCat, everything is fine. But when I redeploy the application by overwriting

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

Re: Apache+Tomcat

2005-05-11 Thread Anoop kumar V
We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we use 4.1.31. hth, Anoop On 5/11/05, Nikola Milutinovic [EMAIL PROTECTED] wrote: Praveen KUMAR wrote: Hello, I am little bit confuse in

Re: Apache+Tomcat

2005-05-11 Thread Oto Bossert
Yoo, If you need PHP than standalone tomcat is not an option you want, to my opinion! Greetings O. On 5/11/05, Anoop kumar V [EMAIL PROTECTED] wrote: We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we

Issues with Custom Realm in Tomcat 5.5

2005-05-11 Thread Ankit Shah
Hi everyone, I hope someone can help us with this problem. Current Tomcat settings: Release in use: 5.5.9 along with 1.4.2 compatibility add-on Logging using Log4J JRE version: 1.4.2_05 We have written our own custom realm that essentially extends the standard DataSource Realm. However, we are

Problem in Parsing - Error while doing lookup - HELP

2005-05-11 Thread Sanjeev Srivastava
Hi All!, I saw your mail-id and response on Java Forum. I am stuck in some problem with web.xml, hope you can help me out. I am able to start the tomcat but web.xml is giving me problem Error whiel doing lookup. I don't see anything wrong in web.xml. Please HELP. Please find

newbie tips - how to deploy tomcat/mod_jk

2005-05-11 Thread mbneto
Hi, I am looking for tips for beginners regarding deploying tomcat/mod_jk. I have some basic questions such as where do I put the jsp and java files, how do I configure those directories if I need to point to a different location etc. regards, mb

RE: newbie tips - how to deploy tomcat/mod_jk

2005-05-11 Thread Raghupathy,Gurumoorthy
http://www.one0.com/html/downloads.php download the pdf document ... Guru -Original Message- From: mbneto [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 14:52 To: Tomcat Users List Subject: newbie tips - how to deploy tomcat/mod_jk Hi, I am looking for tips for beginners regarding

url-pattern in web.xml -- looking for explanations and best practice

2005-05-11 Thread Tim Diggins
Hi- I'm trying to configure my tomcat 5.0.28 webapp so that one servlet (a Spring dispatcher as it happens, but that's irrelevant) receives virtually everything except standard static non-text file patterns (*.css, *.png, *.gif, etc.) which I want served up statically. I've been trying various

RE: url-pattern in web.xml -- looking for explanations and best practice

2005-05-11 Thread Allistair Crossley
URL patterns are quite limited for the web.xml. The document you want is actually the Servlet Specification PDF from Sun's J2EE website. You can achieve what you are talking about using the JK module with Apache or IIS as this forwards requests from the web server to Tomcat. It allows the ! to

not installing properly

2005-05-11 Thread Owen Corpening
I ran startup.bat and can access localhost:8080 but the window popped up never goes away, it ends with: May 11, 2005 9:15:26 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1857 ms And appears stuck there. I tried following the instructions to enable verbose log4j logging

RE: url-pattern in web.xml -- looking for explanations and best p ractice

2005-05-11 Thread Raghupathy,Gurumoorthy
In your webapp have dir http://servername:port/context/static/ for all your static content http://servername:port/context/dynamic/ for all your dynamic content URL Pattern URL-pattern/dynamic/*/URL-pattern guru -Original

Re: not installing properly

2005-05-11 Thread Jason Bainbridge
You need to install it as a Windows Service to be able to run it in the background so checkout the service.bat file in the same directory as startup.bat. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com On 5/11/05, Owen Corpening [EMAIL

jsvc: can't load server.xml

2005-05-11 Thread =?iso-8859-1?Q?Andr=E9s_Glez.?=
I've installed tomcat5.0.28 on a Fedora Core 3, with java 1.4.2. When i try to execute tomcat with jsvc i get the following: ./jsvc -user tomcat -home /usr/local/java -Dcatalina.home=/usr/local/tomcat -cp

Re: Problem in Parsing - Error while doing lookup - HELP

2005-05-11 Thread David Smith
Are the elements in the web.xml in order as listed in the exception report below? Since your web.xml is being validated against a DTD, the elements have to be in order. --David Sanjeev Srivastava wrote: Hi All!, I saw your mail-id and response on Java Forum. I am stuck in

commercial monitoring tools

2005-05-11 Thread Andy Kriger
I'm interested in people's experiences with commerical monitoring tools and Tomcat. I found one called ManageEngine that looks interesting - has anyone used that specifically? Are there open-source tools (e.g. Nagios - which I have no experience with) that can do the job just as well (including

Re: commercial monitoring tools

2005-05-11 Thread Ralph Kanther
Hi Andy, I'm interesting in coming with something that will let me track Tomcat's performance/behavior such that I can isolate what causes it to occasionally hang-up (no info in the logs) or run out of memory. If anyone has already looked into these things and come up with a decent solution

Re: can't load server.xml

2005-05-11 Thread =?iso-8859-1?Q?Andr=E9s_Glez.?=
I found. I forgot the chown -R tomcat.tomcat /usr/local/tomcat/ - Original Message - From: Andrés Glez. [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, May 11, 2005 5:29 PM Subject: jsvc: can't load server.xml I've installed tomcat5.0.28 on a

RE: Setting an environment variable in tomcat 5.5 service?

2005-05-11 Thread Mufaddal Khumri
Thank you for the reply. I am trying to set in web.xml using: env-entry env-entry-nameMY_ENV_VAR/env-entry-name env-entry-valueC:/config/one.xml/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry I am placing this right above the /web-app ending tag. My

Form Authentication with SSL behind Load Balancer

2005-05-11 Thread Brian Burt
I'm running into a problem using form-based authentication with Tomcat 5.5.9 behind a Cisco CSS load balancer, and I'm hoping someone can point me in the right direction. We've got Tomcat deployed on 2 nodes, not clustered, but load-balanced via NAT distribution by the Cisco device. We want

Re: not installing properly

2005-05-11 Thread Owen Corpening
got it to install by altering cli parameters on another machine ... what about the logging verbosity? can't get log4j logging to worrk at all either here is the working cli: C:\jakarta-tomcat\bin\tomcat5.exe //IS//AcornApplicationServer --Install=C:\jakarta-tomcat\bin\tomcat5.exe -

Re: Apache+Tomcat

2005-05-11 Thread Hari Mailvaganam
Scenario two will be less hassle - unless you need a feature of Apache HTTP Server. If you plan to only use Apache HTTP Server as a listener for http request - it will be better off with the Tomcat alone. If, for any particular reason, you absolutely wish to use the Apache HTTP server as the

Re: Form Authentication with SSL behind Load Balancer

2005-05-11 Thread Hari Mailvaganam
A couple of suggestions: - force all traffic on load balancer to/from extrenal world to SSL. - after form authentication on Tomcat, redirect users to the URL used by the load balancer - i.e. not XXX:8080/authenticate but www.YYY.com/authenticate - or both Hope this helps. regards, Hari

Memory for JSP Compliation in 4.1

2005-05-11 Thread Wendy Smoak
Will adding JAVA_OPTS=-Xmx128M to catalina.sh help with running out of memory during JSP compilation in 4.1? The notes in catalina.sh say that these options will be used when the start stop or run command is executed, but from the Jasper config page, I see that Tomcat will 'fork' another JVM

Re: Arabic encoding

2005-05-11 Thread Mark Thomas
There are lots of potential pitfalls when using non-default character encodings. It is easy to make mistakes both with Tomcat settings and with your code. To sort out the tomcat settings, get the following index.jsp to work for whatever text you supply to the form. I have tested this with the

Re: Issues with Custom Realm in Tomcat 5.5

2005-05-11 Thread Mark Thomas
Where are you placing the .jar/.class files for your custom realm? At what level in server.xml is your realm configured? Mark Ankit Shah wrote: Hi everyone, I hope someone can help us with this problem. Current Tomcat settings: Release in use: 5.5.9 along with 1.4.2 compatibility add-on Logging

Basic load balancing

2005-05-11 Thread Faine, Mark
Tomcat 5.0.28 We seem to often have to make minor changes that cause us to have to restart our tomcat server (the whole server, not just a web application) and this has lead me to decide to research load balancing. The idea would be to have two servers that would be exact duplicates. One of

Want to run servlets from other directory than webapps

2005-05-11 Thread Raueber Hotzenplotz
Hi I've got Tomcat-5.0.27-r5 installed. Running servlets (localhost) located in /opt/tomcat5/webapps/ROOT/WEB_INF/classes is no problem. What do I need to do to run servlets from my user directory (e.g. /home/user/myapp)? I've tried to use http://localhost:8080/admin to add an additional

Strange error

2005-05-11 Thread Fredrik Liden
Does anyone have any idea what this error means? I'm using jdk 1.5, tomcat 5.5.9 and intellij. Thanks! Connected to server ERROR [/]: Session event listener threw exception java.lang.NullPointerException at org.objectstyle.cayenne.conf.WebApplicationListener.sessionCreated(WebAp

Re: Basic load balancing

2005-05-11 Thread Joe Plautz
From what I understand load balancing is done at the router, where clustering is a tomcat setup issue. Joe Faine, Mark wrote: Tomcat 5.0.28 We seem to often have to make minor changes that cause us to have to restart our tomcat server (the whole server, not just a web application) and this has

Re: Strange error

2005-05-11 Thread Mark Thomas
You need to look at line 125 of WebApplicationListener in the org.objectstyle.cayenne.conf package and see which object might be null that you have assumed isn't. Mark Fredrik Liden wrote: Does anyone have any idea what this error means? I'm using jdk 1.5, tomcat 5.5.9 and intellij. Thanks!

Re: Basic load balancing

2005-05-11 Thread Wade Chandler
Joe Plautz wrote: From what I understand load balancing is done at the router, where clustering is a tomcat setup issue. Joe Faine, Mark wrote: Tomcat 5.0.28 We seem to often have to make minor changes that cause us to have to restart our tomcat server (the whole server, not just a web

RE: How to change hostname in tomcat configuration

2005-05-11 Thread Mandar Vaidya
Thanks Lutz. I worked Mandar -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 2:58 AM To: Tomcat Users List Subject: Re: How to change hostname in tomcat configuration Hi Mandar, Am Dienstag, 10. Mai 2005 20:13 schrieb Mandar Vaidya:

Where to put version information in war file?

2005-05-11 Thread Henri Dupre
I was wondering what is the best place to put version information in a war file? I'd like to put a build version and date at built time to my application and have a way to retrieve them from the servlets. I'm used to add the META-INF Implementation-version tag with jar files but with Tomcat war

classpath problem?

2005-05-11 Thread Bagus
Hi, Newbie here, I'm not sure why I'd be getting these compilation errors. I see my tomcat server at http://localhost/. The http://www.coreservlets.com/Apache-Tomcat-Tutorial/ seems to tell me it's my classpath, but *I* think I have my jar files properly in my classpath. See this following

RE: classpath problem?

2005-05-11 Thread Caldarale, Charles R
From: Bagus [mailto:[EMAIL PROTECTED] Subject: classpath problem? echo $CLASSPATH .:/www/my_tomcat_apps:/usr/local/jakarta-tomcat-5.4.4/ ^ | Want to make that 5.5.4 and see what

Re: Want to run servlets from other directory than webapps

2005-05-11 Thread Oto Bossert
Yoo, Do you use tomcat stand-alone? Or with Apache Putting a context in server.xml should work, but this is not the prevered way in tomcat 5! Greetings O. On 5/11/05, Raueber Hotzenplotz [EMAIL PROTECTED] wrote: Hi I've got Tomcat-5.0.27-r5 installed. Running servlets (localhost)

Re: Where to put version information in war file?

2005-05-11 Thread Wade Chandler
Henri Dupre wrote: I was wondering what is the best place to put version information in a war file? I'd like to put a build version and date at built time to my application and have a way to retrieve them from the servlets. I'm used to add the META-INF Implementation-version tag with jar files but

Re: Want to run servlets from other directory than webapps

2005-05-11 Thread Patrick Thomas
Hi Rudi, Here's how I do it, and this also seems to be the 'correct' way of doing it with Tomcat5 (as it doesn't mean messing with any container-level files). Into {tomcathome}\conf\Catalina\localhost\ I place a correctly formed context file, for example ApplicationName.xml (very minimal for

Re: Setting an environment variable in tomcat 5.5 service?

2005-05-11 Thread Lutz Zetzsche
Am Mittwoch, 11. Mai 2005 18:26 schrieb Mufaddal Khumri: Thank you for the reply. I am trying to set in web.xml using: env-entry env-entry-nameMY_ENV_VAR/env-entry-name env-entry-valueC:/config/one.xml/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry

RE: Setting an environment variable in tomcat 5.5 service?

2005-05-11 Thread Mufaddal Khumri
Yes, I did. -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 2:16 PM To: Tomcat Users List Subject: Re: Setting an environment variable in tomcat 5.5 service? Am Mittwoch, 11. Mai 2005 18:26 schrieb Mufaddal Khumri: Thank you for the

Re: Jakarta Tomcat + Windows + PHP

2005-05-11 Thread d~l
On 11 May 2005 at 19:01, Janet Fraser jlfraser-at-infotech.monash. wrote: Maybe my question should have been simpler, ie How do I install PHP to Tomcat? Here is my installation of PHP on tomcat 5.0.28 (on WinXP) .. * install PHP (preferably PHP5) into c:\PHP\ * place php.ini in

Jk 1.2.10+ Tomcat 4.1.x slight problem

2005-05-11 Thread Guernsey, Byron \(GE Consumer Industrial\)
I'm running into a minor issue with jk 1.2.12, Apache 2.0.52-MPM, and Tomcat 4.1.31 server. It appears that Tomcat 4.1.xx is closing every ajp13 connection after 1 request. It also appears that if I get a burst of lets say 10 connections at once in Apache, that creates 10 connections to

truncated responses tomcat 5/apache2/mod_jk

2005-05-11 Thread Louis Moore
Hi, I'm running tomcat 5.0.28 with mod_jk 1.2.10 and apache 2.0.46 with the worker MPM. This is a new setup, and for the most part everything works fine, but I've had a couple reports of truncated pages being returned to customers. After turning on debug logging for jk, I see the below sequence

Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-11 Thread Kumbarÿffffffffffffffffe7e
Hello, I have been trying for weeks now to get this to work. Maybe someone can help me. I have Apache2 installed and configured in machine A, using mod_jk to connect to two tomcat servers. Tomcat1 is in machine B and Tomcat2 in machine A. I have created a workers.properties file, which I have put

database - jdbc setup help

2005-05-11 Thread Bagus
Hey there newbie here again, I've now set up Tomcat 5.5.4 and have installed mysql-standard-4.1.9-unknown-freebsd4.7-i386 on my Freebsd 5.3 box intel box. I've loaded some databases and tables into the database. How do I get them to work together with jsp? Can anyone point me to a short-sweet

tomcat and virtual hosts

2005-05-11 Thread Bagus
Here's a more general question about Tomcat. I'm used to using apache to set up virtual hosts, but when Tomcat installed, http://localhost/ now goes to my tomcat installation. So how does one set up multiple virtual hosts with Tomcat? Is it in the server.xml file or something? Or do I somehow

Re: question about load-on-startup in web.xml

2005-05-11 Thread Annie Wang
i tried putting in a sleep in my servlet's init method, but $CATALINA_HOME/logs/catalina.out seems to indicate that tomcat waits for it to initalize.. in my catalina.out, i have: May 11, 2005 2:12:06 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at

Re: Basic load balancing

2005-05-11 Thread Will Hartung
From: Faine, Mark [EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 11:24 AM Tomcat 5.0.28 We seem to often have to make minor changes that cause us to have to restart our tomcat server (the whole server, not just a web application) and this has lead me to decide to research load balancing.

RE: tomcat and virtual hosts

2005-05-11 Thread Fritz Schneider
Bagus, Each virtual host is a host element in server.xml. The service (e.g. Catalina) has connectors to the ports for incoming requests. The engine in that service sorts out the requests for a particular virtual host based on the name attribute of the hosts. Any which don't match go to the

Re: Memory for JSP Compliation in 4.1

2005-05-11 Thread Will Hartung
From: Wendy Smoak [EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 10:42 AM Subject: Memory for JSP Compliation in 4.1 Will adding JAVA_OPTS=-Xmx128M to catalina.sh help with running out of memory during JSP compilation in 4.1? The notes in catalina.sh say that these options will be

Re: Want to run servlets from other directory than webapps

2005-05-11 Thread Raueber Hotzenplotz
I'm running Tomcat as standalone server at the moment - that could change later on. What's the preferred way in Tomcat 5? Thanks! --- Oto Bossert [EMAIL PROTECTED] wrote: Yoo, Do you use tomcat stand-alone? Or with Apache Putting a context in server.xml should work, but this is not

Re: Want to run servlets from other directory than webapps

2005-05-11 Thread Raueber Hotzenplotz
Thanks PST! Will try it out tomorrow. Rudi --- Patrick Thomas [EMAIL PROTECTED] wrote: Hi Rudi, Here's how I do it, and this also seems to be the 'correct' way of doing it with Tomcat5 (as it doesn't mean messing with any container-level files). Into

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

2005-05-11 Thread U K Laxmi
Thanks for your information. I got one open source product called jasper reports adviced by one of the active member in this list. I'm planning to use it for my project. Thanks, Laxmi --- David Johnson [EMAIL PROTECTED] wrote: They are unlikely to ever look exactly alike. But, you can use a

RE: question about load-on-startup in web.xml

2005-05-11 Thread Caldarale, Charles R
From: Annie Wang [mailto:[EMAIL PROTECTED] Subject: Re: question about load-on-startup in web.xml any one know if there's a way to make webappY get installed before webappX? As far as I can tell, the intent of the JSP and servlet specs is for web applications to be independent of both the

Re: how to change the port for jmx in tomcat 5.5.9 ?

2005-05-11 Thread Bill Barker
Well, firstly JkMX is deprecated in 5.5 in favor of javax.management.remote. To use JkMX anyway, you need to either specify the properties directly on the Connector (e.g. mx.jrmpPort=1099) or specify the location of the properties file (e.g. propertiesFile=conf/jk2.properties) Pankaj Bhatnagar

Re: Re: commercial monitoring tools

2005-05-11 Thread Pankaj Bhatnagar
Well you can also have a look at the AppPerfect DeploySuite which supports monitoring of nearly ALL JMX enabled servers. I have successfully monitored Tomcat upto version 5.0.28 with it. It doesn't work with version 5.5.x currently but they will certainly come up with that in the newer

Re: question about load-on-startup in web.xml

2005-05-11 Thread Annie Wang
thanks for the insights and suggestions chuck! On 5/11/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Annie Wang [mailto:[EMAIL PROTECTED] Subject: Re: question about load-on-startup in web.xml any one know if there's a way to make webappY get installed before webappX? As

Re: Setting an environment variable in tomcat 5.5 service?

2005-05-11 Thread Gurumoorthy
You cant use System.env ... you have to use JNDI to to get the variable names Search google ... with words JNDI variables tomcat ... Something like this ... Context initialContext = new InitialContext(); String value = initialContext.lookup(java:env/ + VAR_NAME ) ; Regards Guru - Original