Re: RE: aliasing local host

2003-01-23 Thread jmong
Here's a url that might help you: http://www.accs-net.com/hosts/how_to_use_hosts.html for windoze boxes jan-michael - Original Message - From: Madhava Reddy <[EMAIL PROTECTED]> Date: Thursday, January 23, 2003 10:37 am Subject: RE: aliasing local host > Hi, > > small additional inform

Re: Tomcat session sharing behind loadbalanced apache servers

2003-01-23 Thread jmong
depending on the load balancer, you'll have to configure it for session affinity. i am not sure as far as a session sharing.. you almost have to use jboss or some other enterprise solution such as atg dynamo which has a sessionbackup manager that maintains sessions between the java app servers

Re: Incomplete read

2003-01-27 Thread jmong
Hmmm... I think what you need to do is http://192.168.0.2:8080/examples/ 8009 is the AJP port used by tomcat connectors. do the following and see if you get a response. on unix 1. telnet to the box 2. log on 3. issue which netstat 4. run 'nestat -a | grep 8080' you should see something like *

Re: custmize http error - page not found

2003-01-30 Thread jmong
Add the following to your web.xml 404 /path/to/error404.jsp 500 /path/to/error500.jsp HTH Jan-Michael - Original Message - From: joe <[EMAIL PROTECTED]> Date: Thursday, January 30, 2003 3:43 am Subject: custmize http error - page not found > hi all! > > is it possible

Re: Remote Restart Tomcat 4.1.8

2003-01-30 Thread jmong
I'd be interested to find out the answer to this for the tomcat 3.x line as well. But from what i've read its possible by passing the server at a port (8005 i think by default) a specific string specified in the web.xml (SHUTDOWN) Any ideas anyone? Thanks in advance Jan-Michael - Origin

Re: RE: JSP's in other directories

2003-02-04 Thread jmong
Not sure about windows, so I'll use what i know in solaris. In solaris you can do the following (using your file paths): httpd.conf (apache) Alias /test "c:\cisc\site" JkMount /test/*.jsp ajp13 JkMount /test/servlet/* ajp13 server.xml (tomcat) edit your tomcat's web.xml to either enable the i

Re: web page errors

2003-02-11 Thread jmong
Hi ... but did you mean "root context" when you said "root directory"? These are two different things. For example server.xml httpd.conf root context of application is in /some/path/to/some/application while root directory is in /some/other/path/to/doc/root HTH Jan-Michael - Original

Re: preview of webapp of Tomcat Performance book

2003-02-11 Thread jmong
Hi Peter, I'm particularly interested in a couple of things: * older tomcat versions and how to fine tune them * how to do a better job in memory management.. especially if you're strapped for resources (either a physical limitation of your hardware or some other reason) a few more things... if

Re: RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread jmong
i've actually seen this error with an improperly configured jboss+tomcat bundle. the main idea is that a previous resource such as a database driver or jndi jar file failed to load due to one of many resources such as (a) improperly configured xml file, (b) file permissions, (c) not found in c

Re: Which file it is loading

2003-02-14 Thread jmong
if you got the directory listing... it looks like tomcat is up and responding to requests. try http://localhost:8080/ first and see if you get the main tomcat screen.. if you do just click on the examples link and it should take you to the examples area. HTH Jan-Michael - Original Messa

Re: AJP13 Error (Apache/Tomcat/JBoss)...?

2003-02-14 Thread jmong
Not sure if this will help... but check the following... cd /server/default/deploy (if you're using the default instance) check tomcat41-service.xml and check where its pointing to the catalina directory if it says ../tomcat4.1x or something along those lines ... try specifying the full path t

Re: Startup/shutdown script

2003-02-16 Thread jmong
Instead of #!/bin/bash could you try #!/bin/sh also you can try to capture the pid during startup and if its still alive you can forcefully kill it when you shut it down ./startup.sh > /dev/null 2>&1 & echo $! > $TOMCAT_HOME/logs/tomcat.pid shutdown.. ./shutdown.sh if [ $? != 0 ]; then

Re: R: Startup/shutdown script

2003-02-16 Thread jmong
Hmmm.. what file exactly are you looking at again? I'm not sure if it suppose to write anything... you should try to do netstat -a | grep $TOMCAT_PORT where TOMCAT_PORT is typically 8080 after the restart and see if its truly alive. sleep for like 3 seconds and then grep for the port. Otherwis

Re: A problem with Tomcat and port 8080

2003-02-16 Thread jmong
Try netstat -a | grep 8080 and see if you see something like *.8080 LISTEN Like Jake mentioned, its possible that the instance might still be running... also check for permissions and see if there are any file permissions problem. Finally issue a telnet request to the port and see if it

CookieTracking on Tomcat?

2003-02-18 Thread jmong
I searched through Google to see if there is a way to enable similar functionality of the "CookieTracking" that Apache provide (I think its mod_usertrack) but not actually using Apache to front Tomcat. I thought about using Valves to emulate this functionality but was hoping if anyone on this l

Re: how to STOP TOMCAT LOGGING

2002-11-09 Thread jmong
You can try disabling debugging in your server.xml for example: to there are several others. The other thing to check is to check the log level for the log. You'll have to check the tomcat manual for that... it escapes me at the moment. But for example you can change the log level for mod_jk if

Re: Starting tomcat as user apache instead of root

2002-11-16 Thread jmong
That's one way and I've used that method successfully. The other is if the tomcat user simply needs read access to the files (not write access) just create a group that has both users and change the group perms on the directory for example (assumes that web user is apache and tomcat user is tom

Re: RE: Starting tomcat as user apache instead of root

2002-11-16 Thread jmong
Oh... Yes the shell is the problem or remove -, since the minus sign tells it to read the shell vars, otherwise just do an su apache -c "$TOMCAT_HOME/bin/startup.sh" Make sure to start it as C-shell or in bash but not in bourne because if you exit, the process will probably terminate when you

Re: jsps and servlets don't work

2002-12-12 Thread jmong
Check to make sure that you have your mime types all working JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 In ${CATALINA_HOME}/conf there should be (or at least there used to be) a file that you can just include in apache that defines these types of declarations. I forget whether it was calle

Re: Problem with HttpServletResponse.getOutputStream() and SSL

2002-12-17 Thread jmong
If I understood you correctly I think the problem sounds like its related to the cert itself and you're probably using a self-signed cert. On Netscape you can accept the dummy cert and it won't prompt you again until the cert expires, on IE its the same thing but its a little bit more complicated.

Re: Problem with HttpServletResponse.getOutputStream() and SSL

2002-12-17 Thread jmong
finally i also forgot to add that the cert is name sensitive so unless your cert is called "localhost" you'll have problems. sorry for the extra e-mail. that one totally slipped my mind. jan-michael - Original Message - From: [EMAIL PROTECTED] Date: Tuesday, December 17, 2002 1:28 pm Sub

Re: RE: is this normal??

2003-01-02 Thread jmong
I have to concur with the following observation. Try to check what the apache processes are doing. If you've enabled server-status on your box and have installed GET (as part of the perl LWP) grep for the pid GET /server-status | grep or access it http:///server-status On older tomcat versio

Re: Parse error in application web.xml

2003-01-02 Thread jmong
Hi there, I was reading an unrelated article on this but its possible that just setting your CLASSPATH doesn't really pick up your new xerces parser. Fire up tomcat with this flag -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed (make sure to put the new JAR files in that directory).. check

Re: RE: TOMCAT Not listening on 80

2003-01-06 Thread jmong
Hi there, Hi vivek, John Turner's suggestion is right on. Try setting it up on a development box first. This will save you and your colleagues a lot of headaches later on. Besides it is good practice. But here are some pointers. 1. Log in as root or su to it su - 2. Search for perl which per

Re: Unsure how to set environment variables for win xp

2003-01-10 Thread jmong
Hi there. Try the following 1. create the following batch file @echo off set JAVA_HOME="D:\j2sdk1.4.1_01\" set CATALINA_HOME="D:\Program Files\Apache Tomcat 4.0" set CLASSPATH=".;%JAVA_HOME%\src.jar;%JAVA_HOME%\lib\tools.jar;% CATALINA_HOME%\common\lib\servlet.jar" REM compile the stuff javac -

Re: Basic questions

2003-01-12 Thread jmong
Hi there, Paul's suggestion in #1 is probably the best way to go.. Here's a quick way to do it on solaris. # add the user to the OS useradd myuser # switch to C-shell /bin/csh # run the following script #!/bin/sh JAVA_HOME=/usr/java TOMCAT_HOME=/usr/local/tomcat su - myuser -c "${TOMCAT_HOM

Re: Can't find JAVA_HOME

2003-01-12 Thread jmong
I concur with Paul's observation below... please check to see if the tomcat is running as a different user and if so either adjust the user's login shell (.profile (bourne) or .cshrc (c-shell)) and add the appropriate java binary also do the following when tomcat attempts to run /bin/ps -ef |

Re: Win2K, Apache 2.0.43 and Tomcat 4.1.18

2003-01-12 Thread jmong
you might consider checking your httpd.conf (it wasn't included), there should be something like the following: on a typical solaris install using mod_jk. I haven't worked with mod_jk2 before (so there might be some differences .. but the idea should be the same) # LoadModule libexec/mod_jk (b

Re: Tomcat 4.1.18: Problems redirecting the page

2003-01-13 Thread jmong
You're very welcome. I've run into this problem before and though I'm not too familiar with the inner workings with tomcat and how its redirect work (I should read the source code .. it is open source after all ;-) One suggestion is if you could write a custom tag to do redirects like this so

Re: RE: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread jmong
Hi there, Please check to see if you have excessive debugging turned on (in server.xml) and check your disk i/o (vmstat or some other tools), check to make sure that you're work directory (and your tomcat directory) are not NFS mounted or in a shared volume somewhere. Also pheck the hops betwe