Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Dan Barron
Hello, We are seeing a performance hit to our server whenever we turn on AccessLogValve for a virtual host in tomcat. Is this common or has anyone else experienced this? Any suggestions on how to configure for optimal performance? Below is the virtual host entry in server.xml - tomcat is

Multiple Paths in one Context

2004-04-07 Thread Ben Janes
Hi, I would like one webapp to serve multiple paths so www.mywebapp.com/fred and www.mywebapp.com/fred2 go to the same webapp, I can do this with two contexts I know, however I don't want the webapp to load twice... Is it possible to do: Context path=/fred;/fred2

Re: Issues in tomcat 5.0.19

2004-04-07 Thread David Rees
Carl Olivier wrote, On 4/6/2004 10:30 AM: Could the problem be that too many high processor-requirement threads are being started, and as such each gets less time on the processor - thus taking longer to process..and thus, should we not set the AJP worker maxThreads DOWN thus allowing the

setting codebase for rmi in servlet running in tomcat does not work

2004-04-07 Thread Markus Reis
dear all, over the last days i have tried to set up an rmi server in a cocoon servlet running in tomcat (4.1.27, started via maven goal appserver:start); all i want/need to do starting my rmi server is: (1) start the rmiregistry (via LocateRegistry.createRegistry(regPort); //therefore the

RE: Issues in tomcat 5.0.19

2004-04-07 Thread Carl Olivier
Hi David. Ok, well I am trying our stress testing out with a LOWER maxThread count and a higher acceptCount. Nice to have some confirmation about the theory! Thanks for your feedback. Yes - those 10 second pages need to be optimised - the problem is that those pages are dependant upon data

[NON DELIVERY NOTIFICATION]

2004-04-07 Thread postmaster
Din motive de securitate, serverul de mail nu permite decat attachment-uri de tip .txt, .doc, .pdf, .xls, .ppt. VA RUGAM ARHIVATI ORICE ALT TIP DE ATTACHMENT ! (Puteti folosi orice program de arhivare : rar, zip, ace, etc) For security reasons our mail server allows only attached files with

secure installation

2004-04-07 Thread Gianni Pucciani
Hi all, I'm about to install Tomcat under RH9 and I'm not sure about the best path installation and way to start, as regards the security. It is advisable create a new user tomcat and install in /home/tomcat? And about the way to start automatically? A simple script in init.d directory could

RE: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread kwilding
Hi, This is a minimalistic workers2.properties. Remember to change to your ip address. It works for me on SuSE. Kevan # comment these lines out in production [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port

Re: providing .png images - CGIServlet

2004-04-07 Thread Alex
No one has come across problems similar to this? My brain is starting to hurt. On Mon, 5 Apr 2004, Alex wrote: Date: Mon, 5 Apr 2004 10:39:50 -0400 (EDT) From: Alex [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: providing

Re: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread Nikola Milutinovic
kwilding wrote: Hi, This is a minimalistic workers2.properties. Remember to change to your ip address. It works for me on SuSE. Kevan # comment these lines out in production [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 Is this neccessary? #

Hi, it's me

2004-04-07 Thread tomcat-user
Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Where to set JAVA_OPTS

2004-04-07 Thread Giorgio Ponza
[EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m

Re: mod_jk leaks file handles on apache graceful restart?

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 01:41, David Rees wrote: Run strings on your binary and grep for 1.2 `strings mod_jk.so | grep 1.2`. The other way is to look at the output of mod_status (commonly accessible at http://example.com/server-status) not forgetting to modify apache.conf (or httpd.conf

Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread JavaNetIn
I have j2sdk1.4.2. Exact version information as follows. java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) On Tomcat 4.0-b7, Tomcat 5.0.7 Tomcat 5.0.19 JSP pages couldn't compile while servlets works

Re: Tomcat configuration

2004-04-07 Thread Harry Mantheakis
Hello Syed Taj yeah thats what even i thought, but my web pages are not visible if i put myappl directory directly under webapps, only if i put it under ROOT doed the server even display the web pages. You are mistaken. Placing your 'myapp' directory under the ROOT context simply means

Re: UTF-8 encoding

2004-04-07 Thread Harry Mantheakis
Hello Nikki Just send UTF8 encoded data and everything will be allright. Yes, that seems to work for me at the moment, though I am relying on default settings because I do not even specify UTF-8. (Java defaults to Unicode anyway.) I'm only using LATIN-1 characters at the moment, so I cannot

Re: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Tim Funk
Yes I can believe there is a performance hit. The valve reparses the string on every request. Since the Valve also uses a SimpleDateFormtatter - I think it is also restricted by the sync block imposed by that class. -Tim Dan Barron wrote: Hello, We are seeing a performance hit to our server

Problem with configuing Tomcat

2004-04-07 Thread Michael Forster
I am trying to get Tomcat talking to JBoss through JNDI How do I do this? I have looked at the server config and the web.xml files all to no luck, In the old config (openejb) there is a definition configured on the Tomcat for a factory declaring parameter namefactory/name

Re: Re: Re: Your document

2004-04-07 Thread tomcat-user
Here is the file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with configuing Tomcat

2004-04-07 Thread Adam Hardy
Hi Mike, I'm not familiar with openejb but I assume that you are talking about fetching the initial context for JBoss? Try this in your code: Hashtable env = new java.util.Hashtable(); env.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory);

Re: secure installation

2004-04-07 Thread Parsons Technical Services
Gianni, From my experience: User tomcat is created for you. Place it in whatever directory makes sense to you.(Keep it simple) Keep the permissions on the tomcat directories tight. Make them only readable by tomcat etc. If you need port 80 and 443 start tomcat as a daemon. For details:

Re: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Remy Maucherat
Tim Funk wrote: Yes I can believe there is a performance hit. The valve reparses the string on every request. Since the Valve also uses a SimpleDateFormtatter - I think it is also restricted by the sync block imposed by that class. Another thing: If you enabled host lookup on the connector, it

RE: JK2 connector built and installed but is there something wron g?

2004-04-07 Thread Hamilton, Andrew
try doing this [uri:/jsp-examples/*] worker=ajp13:localhost:8009 There is no examples structure. You can also try servlets-examples. Drew -Original Message- From: Kevin Struckhoff [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 7:22 PM To: [EMAIL PROTECTED] Subject: JK2

Re: Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread David Smith
Hi. Sounds to me like your jar files are compiled under different JDKs. Be sure when you install j2sdk1.4.2 to completely replace all files in the JDK directory. I'd actually go so far as to clean install in a separate directory (ie /usr/java/j2sdk1.4.2_04) and then symlink j2sdk to it.

measure memory

2004-04-07 Thread Salvatierra, Mauricio h \(M.H.\)
Hi people. I need measure the memory use for my application in the tomcat 4.1.12. Some body know how do. Thanks and sorry mi inglish Saludos !! SALVATIERRA, Mauricio Hugo Information Technology Ford Argentina S.C.A. Phono/Fax: 54-11-4756-8750

RE: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread Mark Nye
Hi, I had a similar problem. The line for the uri has to have a directory that is under $TOMCAT_HOME/webapps. [uri:/jsp-examples/*] would require the directory $TOMCAT_HOME/webapps/jsp-examples. As Drew said you can try servlets-examples instead of jsp-examples. Those directories are under

Re: secure installation

2004-04-07 Thread Gianni Pucciani
Parsons Technical Services wrote: Gianni, From my experience: User tomcat is created for you. Place it in whatever directory makes sense to you.(Keep it simple) Keep the permissions on the tomcat directories tight. Make them only readable by tomcat etc. Ok, thanks! Gianni

measure memory

2004-04-07 Thread Salvatierra, Mauricio h \(M.H.\)
Hi people. I need measure the memory use for my application in the tomcat 4.1.12. Some body know how do. Thanks and sorry mi inglish Saludos !! SALVATIERRA, Mauricio Hugo Information Technology Ford Argentina S.C.A. Phono/Fax: 54-11-4756-8750

RE: measure memory

2004-04-07 Thread Carl Olivier
Try: Runtime runtime = Runtime.getRuntime(); long totalMemory = runtime.totalMemory(); long freeMemory = runtime.freeMemory(); Also Thread counting: ThreadGroup group = Thread.currentThread().getThreadGroup(); while (group.getParent() != null) group = group.getParent(); int activeCount

RE: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Shapira, Yoav
Hi, How can you expect the addition of ANY component to the processing pipeline NOT to cause a performance hit? Of course AccessLogValve adds something, nothing comes for free. You can control the hit by modifying what you're logging and disabling DNS lookups, as others have suggested. Yoav

RE: Is there a tomcat weblog anywhere?

2004-04-07 Thread Shapira, Yoav
Hi, We have that in the wiki. A blog would add nothing IMHO, and since it has a nonzero maintenance cost, why do it? Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 2:40 PM To: Tomcat Users

Hi

2004-04-07 Thread werner S. Teunissen
Hi, I need to setup a tomcat environmet manually, I run Redhat 7.3 and I want toinstall from scratch not using the rpm's but use the src's build them and install. How do I do that? Any suggestions will be very welcome :-) Thanks in advance Wernert http://www.de-rommelmarkt.nl

RE: measure memory

2004-04-07 Thread Shapira, Yoav
Hi, Don't apologize for your English ;) Use java.lang.Runtime#freeMemory/maxMemory/totalMemory methods. Yoav Shapira Millennium Research Informatics -Original Message- From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 8:47 AM To: Tomcat

RE: Multiple Paths in one Context

2004-04-07 Thread Shapira, Yoav
Hi, Is it possible to do: Context path=/fred;/fred2 docBase=myFredApp debug=5 reloadable=true crossContext=true / No. You will need to have one of the contexts simply forward to another, via methods explained many times on this list including yesterday. Yoav Shapira This

Bad Gateway

2004-04-07 Thread tomcat-user
Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

build from scratch - was Re: Hi

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:04, werner S. Teunissen wrote: Hi, I need to setup a tomcat environmet manually, I run Redhat 7.3 and I want toinstall from scratch not using the rpm's but use the src's build them and install. How do I do that? there were recent postings on this list only

RE: Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread Caldarale, Charles R
From: JavaNetIn [mailto:[EMAIL PROTECTED] Subject: Bad Class Version while compiling JSP Files on Tomcat bad class file: D:\j2sdk1.4.2\jre\lib\rt.jar(java/lang/Object.class) class file has wrong version 48.0, should be 47.0 This error message is one generated by the javac compiler, and

Tomcat Configuration: help sun.misc.ServiceConfigurationError

2004-04-07 Thread Farid C
Good Morning I have an application allowing the export of a canvas as a image png file. The application can run in standalone mode or as an applet. In standalone mode: export drawing as a png file works fine. In applet mode (application server tomcat 5.0.18, java 1.4.1) When I try to use the

CoyoteConnector startup errors

2004-04-07 Thread Randy Paries
hello I have rh9, apache 2.0.49 , tomcat 4.1.30 and j2 connector, jk2-2.0.4 this is a brand new install. I appears to be working but i am getting errors when it starts CoyoteConnector Coyote can't register jmx for protocol I have seen a couple of references to this in the list

Re: Where to set JAVA_OPTS

2004-04-07 Thread Jon Wingfield
No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon Giorgio Ponza wrote: [EMAIL PROTECTED] ha

[OT] how to save a form field to client

2004-04-07 Thread Longley, Andrew
Hi all, Not really a Tomcat question but I'm hoping someone has a good suggestion. I have a Tomcat app with a chat client talking to a jabber chat server. A business requirement is to be able to click a button to save the chat transcript to the client hard drive. The only solution I've come up

request.getUserPrincipal();

2004-04-07 Thread Winter, G (Graeme)
Hi All, I am trying to perform client authentication using certificates, and I have made some progress - the certificates are now accepted as OK, which is nice. Obviously I am using https too... However, the sting is that the methods request.getAuthType(); request.getRemoteUser();

Re: Where to set JAVA_OPTS

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:43, Jon Wingfield wrote: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running.

Re: Where to set JAVA_OPTS

2004-04-07 Thread Giorgio Ponza
Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good

Filter.init and JNDI resources

2004-04-07 Thread Sandy McArthur
I just wrote a Filter that uses a JNDI provided datasource. When I try to access that datasource from the Filter.init(...) I get a exception: Caused by: javax.naming.NamingException: Cannot create resource instance at

RE: Where to set JAVA_OPTS

2004-04-07 Thread Shapira, Yoav
Hi, Yup, same here. I don't like to rely on the environment. Yoav Shapira Millennium Research Informatics -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:56 AM To: Tomcat Users List Subject: Re: Where to set JAVA_OPTS Jon Wingfield

RE: Wrapping Requests and jsp:include

2004-04-07 Thread Mike Curwen
I know that works. My main concern was does tomcat internally construct a new request. Because then I wouldn't be getting my wrapped request in the included page. But it appears to pass along the original request object (whatever it is). -Original Message- From: Yan Lin [mailto:[EMAIL

RE: Where to set JAVA_OPTS

2004-04-07 Thread ldrobertson
We use the setenv.sh. (tomcat 4.1xxx) for all custom environment variables as well as java options. catalina.sh references this script: # Get standard environment variables PRGDIR=`dirname $PRG` CATALINA_HOME=`cd $PRGDIR/.. ; pwd` if [ -r $CATALINA_HOME/bin/setenv.sh ]; then .

RE: Filter.init and JNDI resources

2004-04-07 Thread Mike Curwen
I've been successful looking up a JNDI datasource from filter init(). I use Tomcat 4.1.29 on slackware9. -Original Message- From: Sandy McArthur [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 8:57 AM To: [EMAIL PROTECTED] Subject: Filter.init and JNDI resources I

handling page redirects

2004-04-07 Thread Luc Foisy
I have the following in a jsp file %@ include file=applicationimports.inc % %@ include file=connection.inc % %@ include file=sessioncheck.inc % % CustomerHTTPManagementScreen customerHTTPManagementScreen =

RE: Filter.init and JNDI resources

2004-04-07 Thread Shapira, Yoav
Hi, Me too, though I haven't done it in a while. What tomcat version are you using? I just wrote a Filter that uses a JNDI provided datasource. When I try to access that datasource from the Filter.init(...) I get a exception: Caused by: javax.naming.NamingException: Cannot create resource

catalina.out log

2004-04-07 Thread Rob Wichterman
I am getting these odd logs in the Catalina.out. 67928 7830 1 67928 7830 1 I am not sure what they are but I get them often and they always come in groups of three numbers. Thanks,

Re: Custom session tracking method?

2004-04-07 Thread Sandy McArthur
Since you're rewriting your CGI scripts as servlets, why not modify them to not expect the session-num parameter, and instead get the session ID via normal java code (request.getSession().getId())? It's simpler, standard, less code for you to write and test... My problem is the client, which is

Wiki page on tomcat and PHP

2004-04-07 Thread Shapira, Yoav
Hi, I've just created a wiki page for integrating tomcat with PHP (without Apache): http://wiki.apache.org/jakarta-tomcat/UsingPhp. If you're interesting in this area, please try it out and report your findings. Yoav Shapira Millennium Research Informatics This e-mail, including any

TEI Classloading

2004-04-07 Thread Carl Olivier
Hi. With regards the TEI classloading issue I mentioned in my previous mail (Issues on Tomcat5.0.19) - I *think* that the engine reports this error - but in previous versions of Tomcat the exception was not thrown (bubbled to the top) - blocking the running of ANY JSP page referencing the taglib

RE: Custom session tracking method?

2004-04-07 Thread Mike Curwen
How does your legacy client *first* get the session id ? the client passes session ids as a query parameter named 'session-num' From whence does the session-num query parameter come? Does the legacy client create a random number and use it? Do the cgi scripts pass it back on a login of

RE: TEI Classloading

2004-04-07 Thread Shapira, Yoav
Hi, Unfortunately I have not got an EASY SMALL replication the the instance where the the class does exists and the exception is thrown - working on it! Any thoughts will be appreciated. Thank you for the detailed description. Make sure you save the message you sent. Once you come up with a

RE: Wrapping Requests and jsp:include

2004-04-07 Thread Yansheng Lin
Hey, you may want to try the question on the dev list. But IMHO if tomcat does not follow the spec, then it would be a bug. um, can you think of any other ways of retrieving the image without using a wrapper? if you are simply viewing the image, there may be a easier way. But I am not sure what

Re: Filter.init and JNDI resources

2004-04-07 Thread Sandy McArthur
On Apr 7, 2004, at 10:40 AM, Shapira, Yoav wrote: Me too, though I haven't done it in a while. What tomcat version are you using? Tomcat 5.0.19 on Mac OS X. I just wrote a Filter that uses a JNDI provided datasource. When I try to access that datasource from the Filter.init(...) I get a

Re: Tomcat and SSL: problem with expiration of VeriSign Global Server ID Intermediate Root

2004-04-07 Thread Jörn Böckenkamp
Hi again, Now that the VeriSign Global Server ID Intermediate Root cert has expired I have to replace the Intermediate Root cert on the server. There is an example on how to replace the cert on an apache server on their website (and that works fine), but no instructions how to replace it on

RE: Wrapping Requests and jsp:include

2004-04-07 Thread Mike Curwen
I only wanted to know if Tomcat wrapped the request object in a façade of some sort, when it does a jsp:include. Maybe I should have just asked that much simpler question. ;) (Or looked at the source of a compiled jsp page?) But well... there's still the question of that's the way Tomcat does

Re: Custom session tracking method?

2004-04-07 Thread Sandy McArthur
The first request the legacy app makes is to /login which it uses your normal Basic authentication which is nice because I can use a standard Realm. In the response to /login is a session number the client should use along with some data about the user's account. Unfortunately the session

RE: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread Kevin Struckhoff
OK, well now I know why. I had added an examples directory and 1 html page under the htdocs dir of my Apache Webserver. That's because the port number is 8080, not 80. Thanks. --- Mark Nye [EMAIL PROTECTED] wrote: Hi, I had a similar problem. The line for the uri has to have a directory

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Okay...that looks similar to the tomcat 4 information I haveis your connector working correctly? -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 6:06 PM To: Tomcat Users List Subject: Re: Connecting the HTTP Server and Tomcat My

RE: Custom session tracking method?

2004-04-07 Thread Mike Curwen
So I'd have a servlet mapped to /login. Protect it with Basic Auth, so that takes care of the Auth, and then you're passed on to the /login servlet. This login servlet creates a new session, and then does one extra step. It maps in the ServletContext ('application') the custom session-num you've

RE: catalina.out log

2004-04-07 Thread Shapira, Yoav
Hi, Did you grep your code for System.out/System.err print/println statements? Yoav Shapira Millennium Research Informatics -Original Message- From: Rob Wichterman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 11:19 AM To: 'Tomcat Users List' Subject: catalina.out log I am

RE: hostage to this list

2004-04-07 Thread Yansheng Lin
Hi, This happened to me once when I changed my email address. But it's wierd that you didn't get a reply... Maybe tomcat mail server demon doesn't want to let you go:). Oh, the address you use to unsubscribe from the list has to be the same as the one you used to subscribe. -Yan -Original

Re: Your document

2004-04-07 Thread craigmcc
Please read the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

MX4J 2.0 JRMP on Tomcat 4.1.29

2004-04-07 Thread Boulay Arnaud
I have this exception : ERROR app MX4j RMI adapter not loaded: javax.management.ReflectionException: null nested exception is java.lang.ClassNotFoundException: mx4j.adaptor.rmi.jrmp.JRMPAdaptor I think it's due to the JSR 160 implementation of MX4 J2.0 that have dropped the RMPAdaptor. I can't

reload jk2-settings?

2004-04-07 Thread Stefan Burkard
hi tomcat-users i set up jk2 with apache and tomcat and it works just fine. but now i have changed the uri-definitions in workers2.properties. after this i restarted apache and tomcat - and nothing changed! is there any way to explicitly reload the workers2.properties file? i can remove an

session tracking using uri not cookies (was How can I maintain state with Axis

2004-04-07 Thread Paul Mansfield
With recent discussions about session management, I recalled long time ago reading about URI rewriting for when the client doesn't handle cookies properly, and found a useful article about it http://access1.sun.com/techarticles/sessions.iws.html URL rewriting is the ability to use sessions and

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Bill Bruns
Allen, do you have the web server configured to throw the requests over to Tomcat? In other words, have either Proxy support or else URL Rewriting turned on in the web server? Otherwise your HTTP requests default to port 80, so they will be eaten by the web server and never reach Tomcat, since

Re: [OT] how to save a form field to client

2004-04-07 Thread Justin Ruthenbeck
Yes, that can work. A small applet with proper permissions granted would do the trick as well. justin At 06:45 AM 4/7/2004, you wrote: Hi all, Not really a Tomcat question but I'm hoping someone has a good suggestion. I have a Tomcat app with a chat client talking to a jabber chat server. A

JK2 Load Balancing Algorithms.

2004-04-07 Thread Angus Mezick
Is the only available JK2 load balancing algorithm a weighted round robin? I would like to switch to one that has a primary server and then switches to round robin to reach the secondary server when an error is thrown. The reason I would like to do this is because we have 5 web servers each

soft linking of directory in tomcat 4.1.27 is not working for me

2004-04-07 Thread Kam Lung Leung
Hi, I recently upgraded to tomcat 4.1.27. Some how the soft linking of directory within my web application directory is no longer accessible from a browser. It must be configuration issue. Can some please let me know how to configure tomcat 4.1.27 so that it will follow the soft linked directory.

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Bill..thanks for the reply... I will read through the link you provide but isn't that what the connector is supposed to do. My understanding what that the Apache HTTP server would detect what the request was (Java or not) and pass it on to Tomcat. Is this not what the specification of /portal/*

Hello

2004-04-07 Thread tomcat-user
I hope the patch works. Se eliminó Norton AntiVirus1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Bill Bruns
Allen, you ask isn't that what the connector is supposed to do, but the connector is in Tomcat, not in your web server. It is the web server software that is monitoring port 80, and that is where your browser sends requests to by default, so the request must get past the web server first. To do

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
I may be way off but... I don't think http://myserver.com/portal maps to /portal/* ajp13 http://myserver.com/portal/ or http://myserver.com/portal/whatever.jsp probably will, though. Give it a go, may work, Jon Wilson, Allen wrote: Bill..thanks for the reply... I will read through the link you

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
No you are not way off...at least not from my point of view because that is what I thought would work. But unless I specify the port (http://myserver.com:8080/portal) it will not get there... It makes me think that the connector is not function correctly but I do not know how to tell..when I

Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Christopher Schultz
All, The archives show this questions being asked all the time, but with no useful responses. Please let me know if this is a known unresolved or unresolvable issue. All solutions posted anywhere for jsessionid makes Apache go beaindead apparently use a mod_rewrite incantation similar to the

Howto run tomcat 4.06 as windows service

2004-04-07 Thread baldyeti
Hello, I have an existing tc4 installation (copied in a hurry from another system ;-) which works fine when launched via the startup.bat script. Is there a way to turn it into a proper windows (XP) service? I know tc5 has service.bat, but short of upgrading, what would be the equivalent here?

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Okay...I've read the article and the way it look is that you are doing the connection without using a connector like mod_jk. You are doing it with the proxy module...mod_proxy.so Is that correct If so, then it provides me another method to go but before I start back tracking to do something

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
Assuming the connector is working, what effect does adding an additional mapping of /portal ajp13 to your existing /portal/* ajp13 mapping have? I just double-checked on our dev box where jk is definitely up. I got a 404 from apache for /mapping but /mapping/stuff got routed through to

tools.jar classpath

2004-04-07 Thread Matthias Lindner
hi everyone, dumb question time. here's winXP and tomcat 5.0.19. after setting up Tomcat as a service it didn't find the tools.jar and couldn't compile my .jsp's. the error page told me to copy tools.jar over from JAVA_HOME/lib/ to TOMCAT_HOME/common/lib and that works. but i don't like it.

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
I think I may have found the problem I tried to add the line AddModule mod_jk.c in the HTTP server config and it gave an error. I could not locate the file within my HTTP or Tomcat installation.even though I have the mod_jk.so file in the libexec directory. -Original Message-

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Shapira, Yoav
Hi, The rest of this thread aside, are you sure you even need Apache? Do you particular CGI/SSI/PHP scripts you need to serve in a high concurrency environment? What's your expected load? Tomcat standalone might be good enough for your needs, in which case you could drop all this connector

RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Shapira, Yoav
Howdy, I have no clue as to your actual question, but I'm curious: The archives show this questions being asked all the time, but with no How do you define all the time in the statement above? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
My reason for the Apache..is that I do not want root to run the Tomcat process once I put the server into production and I saw no other way for Tomcat to run on port 80 without using root.. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004

Re: Filter.init and DefaultContext JNDI resources

2004-04-07 Thread Sandy McArthur
After further testing on my using a JNDI resource in the Filter.init(...) method I found that if I use a DefaultContext to link a resource it fails. eg: DefaultContext ResourceLink name=jdbc/test global=jdbc/db type=javax.sql.DataSource/ /DefaultContext But if I link the resource in a

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread David Smith
Hi. Can you post the relevant parts of your httpd.conf file? Also, I missed this in the thread if it was mentioned, but what version of Apache are you working with? I ask, because it looks like from my setup that Apache ditched the AddModule directive in Apache 2.0.xx. LoadModule needs to

RE: request.getUserPrincipal();

2004-04-07 Thread Yansheng Lin
Hi, how often do you invalidate your sessions? It's hard to imagine your application would expire a user's session right after he logs in. But take a look at the request header to see if the subsequent session ids are the same as the first one. Other than that, without more specific info on how

nativeDispatch SEVERE error with apache ErrorDocument on 404 to a servlet

2004-04-07 Thread Daniel Gibby
Hey all, I just discovered some things that I googled around and debugged a bit and couldn't find any help on, so I'm posting it to the list so that when I have the problem again, I'll find my own posting via google! Maybe it will help someone else as well. Using: Apache, mod_jk2 tomcat4.1.27

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
No a problem...I am using 2.0.48.. I have the LoadModule line and the other directives here...they are LoadModule jk_module /usr/WWW/libexec/mod_jk.so JkWorkersFile /usr/tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/tomcat-4.1.18/logs/mod_jk.log JkLogLeveldebug JkMount

Re: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Christopher Schultz
Yoav, I have no clue as to your actual question, but I'm curious: The archives show this questions being asked all the time, but with no How do you define all the time in the statement above? Like this: Dubious responses: http://www.mail-archive.com/[EMAIL PROTECTED]/msg84808.html

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Shapira, Yoav
Hi, My reason for the Apache..is that I do not want root to run the Tomcat process once I put the server into production and I saw no other way for Tomcat to run on port 80 without using root.. Use commons-daemon for this. It ships with tomcat5 and works with tomcat4 as well:

RE: Filter.init and DefaultContext JNDI resources

2004-04-07 Thread Shapira, Yoav
Hi, I think JNDI resources have to be associated with an actual context explicitly, to avoid creating multiple copies. I'm not a big fan of DefaultContext anyways. Yoav Shapira Millennium Research Informatics -Original Message- From: Sandy McArthur [mailto:[EMAIL PROTECTED] Sent:

RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Shapira, Yoav
Hi, Like this: snip of links / OK, that's what I figured. I wouldn't call once or twice a year all the time but that's besides the point, as the issue undoubtedly exists ;) Do you know if this is supposed to work? JkMount /myapp/*;jsessionid=* workerX It has allegedly worked for some other

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Yes...I think this is a better route to go...I will try it...thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 3:43 PM To: Tomcat Users List Subject: RE: Connecting the HTTP Server and Tomcat Hi, My reason for the Apache..is

access ENV variables

2004-04-07 Thread Daniel Gibby
Is it possible to access environment variables in tomcat that were set by apache? Specifically the REDIRECT_ * variables that are set by ErrorDocument directives? Then I can have a servlet return the correct content type. i.e. if it is a gif that has a 404 I can redirect to a graphic that says

  1   2   >