Configuring tomcat for 2 ip addresses

2003-10-09 Thread Srinivasu Gandu
Hi All, I am using tomcat 4.1.24 Standalone on linux red hat machine. J2EE architecture. I have two applications to launch in same machine tomcat (one instance). How do I do the following configuration in server.xml? Example: 1) I have people hitting using www.domain1.com (IP Address:000.00.00.0)

Re: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ

2003-10-09 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/connectors.html Google for tomcat faq jk2 yields this as the first page. -Tim [EMAIL PROTECTED] wrote: Hi All, Can anyone recommend an FAQ or quide for this on mod_jk2? - To

Re: can tomcat give me page loadtime stats?

2003-10-09 Thread Tim Funk
yeah, %D and %T are newer than 4.1.12. If your stuck with that version - you'll need to write a filter which logs to file. -Tim Jay Glanville wrote: I have a feeling that these variables (%D and %T) are not available in 4.1.12 as they don't actually resolve to anything in the access log. I

[OFF-TOPIC] Ant property file...

2003-10-09 Thread Jay Garala
If I have property file=build.properties/ property file=../build.properties/ property file=${user.home}/build.properties/ in my build.xml, will ant use the first found property file or use all found and override existing with latter found? Jay Garala Senior Analyst Electrosoft Services, Inc.

RE: [OFF-TOPIC] Ant property file...

2003-10-09 Thread Shapira, Yoav
Howdy, The first found. Ant properties latch. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:26 PM To: [EMAIL PROTECTED] Subject: [OFF-TOPIC] Ant property file... If I have property

Tomcat user guide

2003-10-09 Thread Thébault, Médérick
Hello, A part from this list, does someone have a good reference for a Tomcat user guide? Thanx, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OFF-TOPIC] Ant property file...

2003-10-09 Thread Jay Glanville
You have things in the wrong order: ant doesn't over-ride in a later format. The first time a variable is defined, that's when it's set. For example: property name=name value=john / property name=name value=scott / ... echo message=${name} / Will print out john. Therefore, in your example, all

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-09 Thread Caroline Jen
Tim, sorry, I do not understand Since you didn't replace your connection information with the dummy JDBCRealm placeholder, the connection failed to the database. Now, I am testing the Tomcat using the existing code in the server.xml file by simply removing the surroundinging !-- and --. (I

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-09 Thread Tim Funk
If your realm declaration is: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=test connectionPassword=test userTable=users userNameCol=user_name

RE: FW: String added to session in servlet not available in jsp

2003-10-09 Thread Ralph Einfeldt
Frames with sessions can be a complicated beast if cookies are disabled: - First make shure that you encode all frame url's in the top level framset. Otherwise each frame will get his own session. - After that make shure that all frames keep in sync with the session id. The simple design

UnknownHostException

2003-10-09 Thread Jesús Gutiérrez Ramírez
Hi, I'm new using tomcat (over windows xp) and ANT, I was doing the example exercise http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html, using the files included. When I want to install my app on the tomcat server using the ANT INSTALL command I receive the next

RE: Tomcat user guide

2003-10-09 Thread Shapira, Yoav
Howdy, The tomcat docs: the reference guide and app developer's guide. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thébault, Médérick [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:31 PM To: Tomcat Users List Subject: Tomcat user guide Hello, A

RE: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ

2003-10-09 Thread Greg_Cope
Thanks Nathan, Already found that - and it's for mod_jk not jk2 and the 2 are slightly different. Greg -Original Message- From: Nathan Christiansen [mailto:[EMAIL PROTECTED] Sent: 09 October 2003 17:06 To: Tomcat Users List Subject: RE: Loadballacing with Apache 1.3.2x, mod_jk2 on

Re: What LDAP servers does JNDI realm support? -

2003-10-09 Thread Equipment Lamp
NO I JUST GET THE USERID AND PASSWORD PROMPT, and WHEN I PROVIDE THE CORRECT USERID/PASSWORD IT GET A MESSAGE SAYING INCORRECT USERID/PASSWORD. NO ENTRIES IN LOGS OR ANY EXCEPTIONS. have you any log entries or anything helpful ? classnotfound exception or something like this woulmd be great

RE: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ

2003-10-09 Thread Nathan Christiansen
This one is for mod_jk2, but it is also for Apache 2: http://www.pubbitch.org/jboss/mod_jk.html If you are passing session objects between servers, then I think that the session object passing starts to be the bottleneck at only 6 servers in your cluster. -- Nathan Christiansen Tahitian

Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm

2003-10-09 Thread Caroline Jen
Tim, thanks for your help. The server workes now. --- Tim Funk [EMAIL PROTECTED] wrote: If your realm declaration is: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority

Firewall rules - blocking tomcat traffic inadvertantly?

2003-10-09 Thread jon yeargers
I have a tomcat server in a DMZ coming off my firewall machine. I have permitted traffic to /from port 8080 but am having some connection problems. Are there other *standard* ports needed for communications with my server process? Specifically Im trying to call URLConnection::getOutputStream()

Re: Tomcat user guide

2003-10-09 Thread epyonne
Or the Professional Tomcat book from Wrox. It is an excellent reference book. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:50 AM Subject: RE: Tomcat user guide Howdy, The tomcat docs: the

RE: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ

2003-10-09 Thread Greg_Cope
Thanks Tim, Seen those - We've got it working, but I was looking for more info about the jkstatus output and the jk log output when the logging level is turned up. I'll need to dig out the source code and have a read Thanks, Greg -Original Message- From: Tim Funk [mailto:[EMAIL

Re: Tomcat user guide

2003-10-09 Thread Tim Funk
Or the Sun's web services developer tutorial. (Its a reference, I hope its good) -Tim epyonne wrote: Or the Professional Tomcat book from Wrox. It is an excellent reference book. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent:

allocate more memory

2003-10-09 Thread Kleber
Hello, As I was using Orion server, I used to start it with some parameters to allocate more memory and to define the encoding, like this: \java\jdk1.3.1_01\jre\bin\java.exe -server -Xms16m -Xmx512m -Xss4m -jar -Dfile.encoding=iso-8859-1 -Djdbc.connection.debug=true orion.jar How can I use it

RE: allocate more memory

2003-10-09 Thread Shapira, Yoav
Howdy, Modify JAVA_OPTS in $CATALINA_HOME/bin/catalina.sh. As an aside, why -Xss4m??? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kleber [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: allocate more memory Hello,

Re: allocate more memory

2003-10-09 Thread Kleber
Thanks... Could you see if what I had done in the code below is correct? It starts normally the Tomcat, however, I'd like to know if it really allocates more memory. How can I see this? It related with your question about the -Xss4m, could you indicate me another value that I can use for set

RE: allocate more memory

2003-10-09 Thread Shapira, Yoav
Howdy, No, what you did is not what I meant. The ONLY modification you should make to catalina.sh is to add a line like JAVA_OPTS='-server -Xms16m -Xmx512m' to the file before the first rem. Don't modify anything under the rem line. As for the 4m stack: -Xss is the correct and only way to set

RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Subir Sengupta
You could also write a filter to measure performance. http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Subir -Original Message- From: Jay Glanville [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:12 AM To: 'Tomcat Users List' Subject: RE: can tomcat give

Tomcat 4 + Apache 1.3 + mod_jk lb session loss

2003-10-09 Thread Ned Regina
I'm trying to load balance multiple Tomcat 4.1.27 servers behind Apache 1.3.28 using jk(1) on RedHat 9. It appears that the sessions are not being maintained when more than one Tomcat server is running. A quick test page which prints application, session, request, and cookie information shows

Help root context problem!!!

2003-10-09 Thread JStanczak
I'm having caching problems with Tomcat. Here's what I'm trying to do. I have an app under the mapping of /PageWorks. In the context I have a index.jsp that does a jsp:forward to a servlet that handles the request. So to access the app you have to type http://myserver/PageWorks and it works.

Re: Tomcat 4 + Apache 1.3 + mod_jk lb session loss

2003-10-09 Thread [EMAIL PROTECTED]
Just as a quick check of the obvious. You do have jvmRoute set correctly on the Engine/s for each Tomcat server, don't you? You aren't using BASIC authentication by any chance are you? G. Wade Ned Regina wrote: I'm trying to load balance multiple Tomcat 4.1.27 servers behind Apache 1.3.28

Re: Tomcat 4 + Apache 1.3 + mod_jk lb session loss

2003-10-09 Thread Ned Regina
The jvmRoute attributes are set to tc1 and tc2 respectively. The jvmRoute suffix on the JSESSIONID cookie alternates between the two servers when reloading. There's no authentication on the page. At 03:49 PM 10/9/2003, you wrote: Just as a quick check of the obvious. You do have jvmRoute set

RE: Help root context problem!!!

2003-10-09 Thread Shapira, Yoav
Howdy, Post the relevant sections of your server.xml. All you had to do is make path= in your Context declaration. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 3:41 PM To: [EMAIL

RE: Problems with mod_jk and Apache SetHandler

2003-10-09 Thread Nathan Christiansen
I have an update. The webap runs fine using the standalone version of Tomcat (http://host:8080/cm/servlet/cm/welcome). Has anyone had a similar problem? -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Original Message- From: Nathan Christiansen

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
Here is it. !-- Tomcat Root Context -- Context path= docBase=PageWorks debug=0 / Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Shapira, Yoav [EMAIL PROTECTED] 10/09/2003 03:04 PM Please respond to Tomcat Users List

RE: Help root context problem!!!

2003-10-09 Thread Lee, Paul NYC
Hi Justin, Did you try deleting the contents of the work folder? Regards, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: Help root context problem!!! I'm having caching problems with

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
No, but what will that do for me? Would I have to do that every time? Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Lee, PaulNYC [EMAIL PROTECTED] 10/09/2003 03:20 PM Please respond to Tomcat Users List

Re: tomcat jitters, then hangs - please help

2003-10-09 Thread Remy Maucherat
Arthur Veinstein wrote: Noam, I suspect that the tomcat doesn't hangs but rather you reach the max TCP connection that your server accepts. The best will be to write a small program you run by calling a servlet which write to the output I'm a live every 10 min. Run the program after you restart

Re: tomcat jitters, then hangs - please help

2003-10-09 Thread Remy Maucherat
Noam Camiel wrote: On Thursday, October 09, 2003 5:11 PM Ryan Lissack [EMAIL PROTECTED] wrote: Hi Noam, We have experienced similar problems. You will notice in the thread dump that there is no thread from the connectors thread pool waiting on an accept I see your what you mean, I compared the

RE: Help root context problem!!!

2003-10-09 Thread Lee, Paul NYC
Hi Justin, The work directory contains the generated source code and compiled classes for JSPs. When a JSP is first requested, Tomcat generates Java source code for the JSP, and then compiles it. Both the source code and the compiled class are stored there. Since you changed your context and

Web-app setup

2003-10-09 Thread Duane Kehoe
I am trying to setup a webapp and am having a little difficulty. My application starts on /webapps/myapp/index.jsp with 2 text fields(1 text, 1 password), this is a login type page, when the submit button is clicked on the jsp my class which is packaged into com.mycompany.myapp.Login comes

RE: Web-app setup

2003-10-09 Thread Lee, Paul NYC
Can you include the relevant part of web.xml? -Original Message- From: Duane Kehoe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 4:47 PM To: Tomcat Users List Subject: Web-app setup I am trying to setup a webapp and am having a little difficulty. My application starts on

RE: Web-app setup

2003-10-09 Thread Nathan Christiansen
You probably need to write a deployment descriptor (web.xml file). I couldn't find a good tutorial quickly, but the book Java Servlet Programming is a good resource for beginners. -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Original Message-

RE: Web-app setup

2003-10-09 Thread erlis
You only need to put your class files in the WEB-INF directory not the java files. Is your class file a Servlet??? Maybe is a mapped error in your web.xml include relevant part of it pls... Sincerely Erlis Vidal Santos -Original Message- From: Duane Kehoe [mailto:[EMAIL PROTECTED]

Start Tomcat on boot

2003-10-09 Thread Eduardo Vazquez
Being new to Linux\Tomcat I've scoured the internet looking for a step-by-step showing how to enable tomcat to start on boot with no real success. I'm running Red Hat 9.0 w/Jakarta-tomcat-4.1.27. Anyone. - To unsubscribe,

Re: Web-app setup

2003-10-09 Thread Duane Kehoe
Sorry about that the whole web.xml is included. This is a very simple app(actually my second app ever, the first was a simple lookup(which worked)) so the web.xml that I have created thus far is very small ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//SUN Microsystems,

Re: Tomcat 4 + Apache 1.3 + mod_jk lb session loss

2003-10-09 Thread [EMAIL PROTECTED]
It's my understanding that the jvmRoute values must match the worker names in order for mod_jk to know where to route the request. In this case, the values should be live2 and live3. G. Wade Ned Regina wrote: The jvmRoute attributes are set to tc1 and tc2 respectively. The jvmRoute suffix on

RE: Web-app setup

2003-10-09 Thread erlis
Try this servlet-mapping servlet-nameLogin/servlet-name url-pattern/Login/url-pattern /servlet-mapping Sincerely Erlis Vidal Santos -Original Message- From: Duane Kehoe [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:03 PM To: Tomcat Users List Subject:

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
Oh, no that's not it. It does recompile the code just fine. If you for example call http://myserver/a-path/index.jsp it works fine. Then index.jsp will forward to http://myserver/a-path/servlet/MyServlet and that works just fine. Both path will reflect any changes of the dynamic content from

taglib - 2 Questions.

2003-10-09 Thread Mufaddal Khumri
Hi, Am running my webapp under tomcat 4.1.18. Everything was fine till yesterday (always is:)). I am facing this issue today. I wrote a new taglib for a jsp page called PotatoList.jsp. cw:nextPrevLink listSize='%= getTotalNumberOfPotatoes()%'

RE: Help root context problem!!!

2003-10-09 Thread Lee, Paul NYC
Sorry, I misunderstood. So something else here is caching your page. Do you have a webserver sitting in front of tomcat or just tomcat? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:05 PM To: Tomcat Users List Subject: RE:

Re: Start Tomcat on boot

2003-10-09 Thread Mike Millson
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html On Thu, 2003-10-09 at 16:59, Eduardo Vazquez wrote: Being new to Linux\Tomcat I've scoured the internet looking for a step-by-step showing how to enable tomcat to start on boot with no real success. I'm running Red Hat 9.0

Tomcat-IIS works with JK1 but not with JK2. Any hints?

2003-10-09 Thread Thorsten Westmeier
Hi, my Web-Server is behind a firewall-router, which blocks everything different to Port 80 and redirects the incoming external host-name to the local real host-name (IP-Adress) of the Server with IIS and Tomcat. (example: http://xyz-e.de/webapp/ == http://xyz-prod.de/webapp) I had connected

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
That's ok. Yep, something else. Here's what's in my jsp page: jsp:forward page=/servlet/PageMill / It just forwards to the servlet. It's strange, if you use the full path to either one you get the updated information from the database. But if you access using that context I set in the

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
Oh, yep just Tomcat no web server. Thank You, Justin A. Stanczak Web Manager Shake Learning Resource Center Vincennes University (812)888-5813 Lee, PaulNYC [EMAIL PROTECTED] 10/09/2003 04:22 PM Please respond to Tomcat Users List To: 'Tomcat Users List'

Re: Start Tomcat on boot

2003-10-09 Thread JStanczak
Will this help. #!/bin/sh JAVA_HOME=/usr/j2se CATALINA_OPTS=-Xms512m -Xmx2000m -Xss8192k export JAVA_HOME CATALINA_OPTS TOMCAT_BIN=/opt/jakarta-tomcat-5.0.12/bin case $1 in start) echo Starting Tomcat Server... $TOMCAT_BIN/startup.sh ;;

RE: Start Tomcat on boot

2003-10-09 Thread Eduardo Vazquez
Right on the money. Thanks! -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:27 PM To: Tomcat Users List Subject: Re: Start Tomcat on boot http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html On Thu, 2003-10-09 at 16:59,

RE: Help root context problem!!!

2003-10-09 Thread JStanczak
I just changed the jsp page to a program and removed the jsp:forward and it works. I set a single parameter that can be supplied and that will make it print a different set of numbers. When I do that it changes just fine. So my question is, why will the forward not work? Thank You, Justin A.

Still needing help with DBCP - slow response time

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi, i am still having problems with DBCP 1.0 - TomCat 4.18. Some hints: 1 - I didnt setted the server.xml up. 2 - I am using the Oracle Thin Driver 3 - I ve created my own connection pooling class, called BeanPoolConn, which returns a datasource object. See below the main statement:

RE: Virtual Host Alias Problem

2003-10-09 Thread Lawence
Suppose your domains are: d1,d2; corresponding ips are ip1, ip2. Host name=d1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Aliasip1/Alias .. /Host Host name=d2 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Aliasip2/Alias .. /Host Please let me if

Re: JDBC Realm not working with - Please help

2003-10-09 Thread Lawence
Suggestions: 1. Check the log files for possible error messages $CATALINA_HOME/log 2. Write a java application to try the connection, see what you would get [EMAIL PROTECTED] wrote: Hi again, I'm using version 4.1.27 of tomcat, and my login page is taking forever to load. I'm not actually

Arjen van der Weijden/RIVM/NL is out of the office.

2003-10-09 Thread Arjen van der Weijden
I will be out of the office starting 10/10/2003 and will not return until 11/04/2003. I will respond to your message when I return. Dit bericht en eventuele aangehechte bestanden zijn vertrouwelijk en uitsluitend

Arjen van der Weijden/RIVM/NL is out of the office.

2003-10-09 Thread Arjen van der Weijden
I will be out of the office starting 10/10/2003 and will not return until 11/04/2003. I will respond to your message when I return. Dit bericht en eventuele aangehechte bestanden zijn vertrouwelijk en uitsluitend

[tomcat 4.1.2x] Bug in Response Header Encoding ???

2003-10-09 Thread Kwan, Kenneth Y
Title: [tomcat 4.1.2x] Bug in Response Header Encoding ??? Hi all Has anyone found after upgrading to 4.1.24 / 4.1.27, you cannot download file with filename contains non-iso characters, e.g. big5, etc. The problem seems in header encoding where the servlet engine always encode the

Re: CLIENT-CERT and custom username?

2003-10-09 Thread Bill Barker
Bud P. Bruegger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello everyone, looked for this all over but couldn't find an answer... So I would like to ask a question about the auth-method CLIENT-CERT. It seems that the username resulting from an authentication is the CN

Re: Tomcat 4 + ssl + client authentication

2003-10-09 Thread Bill Barker
Kenneth Westelinck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I've been searching the internet for 2 days now and still haven't found a solution for my problem. I am trying to set up a Tomcat 4 server running in HTTPS mode, contacted by a client written in Java. The

[NewBie]Tomcat logs

2003-10-09 Thread Julie christiana
Hi, We have tomcat 4.1.24 installed. Thanks to tomcat documentation and email archives, we understood that tomcat logs will be rotated every day. Would like to know if there we can configure the following for tomcat logs : 1) Keep a maximum of log files in tomcat/logs directory for

<    1   2