Re: AJP13 Connector and JKOptions

2009-02-18 Thread Pete Helgren
What do the URL's look like? Here is an example. If I right click and get the properties on the "missing" image, I see this (well I'd add a more "real" looking URL but the this mailing list has rejected my last 9 attempts as spam...): MyDomain/images/bg_hdr_logo.gif and the image does NOT

Re: HttpServletResponse.sendRedirect() not working?

2009-02-18 Thread Brad Whitaker
Thanks for the feedback and suggestions. I've decided to take a different approach with my error handling. I think the error handling strategy I was trying to implement was a bad idea and I have abandoned it. (In particular, I think I was trying to do a redirect after my frameworks had done one or

RE: mod_jk pool/thread/configure questions

2009-02-18 Thread Anthony J. Biacco
That's what I thought too looking at the docs, but I found posts like this: http://mail-archives.apache.org/mod_mbox/tomcat-dev/200802.mbox/%3c47c45363.5060...@hanik.com%3e and http://www.mailinglistarchive.com/users@tomcat.apache.org/msg25455.html FYI, DisableReuse hurt my performance by about 30

Re: Record and simulate a web app

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, On 2/18/2009 5:10 PM, Frank W. Zammetti wrote: > +1 to what Christopher said... but, you can save yourself some time: > > http://javawebparts.sourceforge.net/ > > More specifically: > > http://javawebparts.sourceforge.net/javadocs/javawebpar

Re: mod_jk pool/thread/configure questions

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 4:43 PM, Anthony J. Biacco wrote: > 1. That's how I understood the documentation also. Maybe "Max" in > jkstatus refers to the max simultaneous connections it has done so > far, not the max it can do? I have no idea. Rainer or M

Re: Can I access Tomcat's JNDI provider from outside tomcat?

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uma, On 2/13/2009 7:16 AM, Uma Gudi wrote: > How to access Tomcat's JNDI provider from outside tomcat 5.5.27 ? Tomcat does not provide a complete JNDI directory, etc. It is only for use within Tomcat. If you need to mock-up a JNDI DataSource for u

Re: Record and simulate a web app

2009-02-18 Thread Frank W. Zammetti
--- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org __ Information from ESET Smart Security, version of virus signature d

RE: mod_jk pool/thread/configure questions

2009-02-18 Thread Anthony J. Biacco
1. That's how I understood the documentation also. Maybe "Max" in jkstatus refers to the max simultaneous connections it has done so far, not the max it can do? 2. Yeah, I tried the Executor attribute. Unfortunately, it doesn't work on AJP connectors. But a good thought. Perhaps the DisableReus

Re: Record and simulate a web app

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Youssef, On 2/18/2009 2:02 PM, Youssef Mohammed wrote: > Sorry if this not directly related to tomcat itself. I have a swing app that > communicate with backend thru a web app deployed on tomcat. For testing > purposes, we want to be able to record so

Re: mod_jk pool/thread/configure questions

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 2/18/2009 1:14 PM, Anthony J. Biacco wrote: > I'm using apache 2.2.11 with tomcat 6.0.18 and mod_jk 1.2.27 on linux > 2.6 x86_64. > I was using a prefork mpm in apache, but have now moved to the worker > mpm. > I have a question or two reg

RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Caldarale, Charles R
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > > My WEB-INF/classes/ contains the "missing" class... > MsgServiceImpl.class .. not sure what the heck the problem is..? You don't have it properly placed in the subdirectories;

Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Scott Carlson
Caldarale, Charles R wrote: From: Scott Carlson [mailto:scarl...@i2s.com] Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems That was what I had originally, it has changed often due to conflicting advice on forums. I did change it back to test. Leave it as is, without

Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread János Löbb
On Feb 18, 2009, at 3:24 PM, Alan Chaney wrote: I agree with Jorge - I run several Tomcats under VMware for both production and development. However it is worth noting that if you use the appropriate vmware tools for your installation (vmware-guestd etc.) you get a significant perform

RE: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Anthony J. Biacco
Agreed, I run 2 LBed tomcats in seperate vmware machines for our dev environ. with no noticeable problems. Depends on the app though. For instance, my mysql cluster in vmware sucks when you do just about anything in the vm machines, because it's so sensitive to latency. -Tony Sent from my Wind

Re: Expired Self-Signed Certificates?

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/17/2009 3:03 PM, Furman, Mark wrote: > Thanks Serge. I believe that answers my question. Note that, if your client app is Java-based, the Java HTTPS provider will do all that checking for you, and should be complaining about the non-vali

Re: Tomcat in-memory (session) cookie

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Makaira, On 2/17/2009 5:38 PM, makaira nigricans wrote: > So after my all my dilemmas > JSESSIONID is simple cookie! Yes, containing only the id of the HttpSession living on the server. You can look at this cookie's contents by watching the HTTP traf

Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Alan Chaney
I agree with Jorge - I run several Tomcats under VMware for both production and development. However it is worth noting that if you use the appropriate vmware tools for your installation (vmware-guestd etc.) you get a significant performance boost on network accesses which may well be impor

Re: Tomcat in-memory (session) cookie

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge, On 2/17/2009 3:57 PM, Jorge Medina wrote: > My confusion came from the fact that through the HttpSession object, > you can access the cookies with methods that names then Attributes > (getAttribute/setAttribute). It was unclear -to me- that it

Re: Tomcat vs deflate

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Morc, On 2/17/2009 8:07 AM, Gabor 'Morc' KORMOS wrote: > So basically you say code it for yourself by modifying the HTTP connector? Tomcat's existing gzip is implemented as an OutputFilter. You might want to browse the source for that before you go

Re: AJP13 Connector and JKOptions

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 2/18/2009 8:17 AM, Pete Helgren wrote: > The pages display but none of the images display and several of the > webapps links are broken. So, something isn't quite right. It is almost > as though the application links aren't relative to the c

RE: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Jorge Medina
There are no issues on running Tomcat in a VM. Tomcat is unaware of where it is running. Performance depends on the host running your VM. If you compare a VM running application A on host H compared to application A running directly on host H, you will notice that running on the real server is

Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Hassan Schroeder
On Wed, Feb 18, 2009 at 11:32 AM, acacio costa wrote: > Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization? FYI, it's "Tomcat". > i apreciate to know if you have issues and a tips to go on. I've run Tomcat under VMware for testing purposes. No issues, it's no different

Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread acacio costa
Hi,   Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization?   i apreciate to know if you have issues and a tips to go on.   Other things to know, Performance comparative with a real server? as the same? better? What the parameters you perceive as better than other environmen

Re: HttpServletResponse.sendRedirect() not working?

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad, On 2/17/2009 12:32 AM, Brad Whitaker wrote: > try { > > if(LOG.isDebugEnabled()) { > LOG.debug("Executing redirect with response > ["+response+"]"); > } > String redirectUrl = response

Re: HttpServletResponse.sendRedirect() not working?

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad, On 2/16/2009 8:55 PM, Brad Whitaker wrote: > Is there a valid reason why this might occur, or is this likley a > bug in Tomcat? A bug is unlikely. I would guess that 100% of webapps out there use redirects and they work perfectly fine. > My co

RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Caldarale, Charles R
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > That was what I had originally, it has changed often due to > conflicting advice on forums. I did change it back to test. Leave it as is, without the package name. The must match...

Record and simulate a web app

2009-02-18 Thread Youssef Mohammed
Sorry if this not directly related to tomcat itself. I have a swing app that communicate with backend thru a web app deployed on tomcat. For testing purposes, we want to be able to record some http responses and later on be able to simulate the same response when it gets the same request ( aka simu

Re: Tomcat Internal Buffering with Jython

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prashant, On 2/15/2009 11:56 AM, Prashant Golash wrote: > Note:The python script is actually called using the PythonInterpreter class > and all those Java and Jython integration techniques. Why bother writing to a file at all, instead of reading from

Tribes

2009-02-18 Thread Jorge Medina
Is there a way to get more documentation on the Tribes package ? I would like to reuse the dynamic membership discovery feature of Tribes, but many of the links are not working on the page http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html Thanks -Jorge

Re: Resource JDBC connection pooling USING LDAP

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 2/17/2009 10:46 AM, trames wrote: > Thanks, that is exactly what I did. > > Since the documentation stated that it used apache (tomcat's version) dbcp > and the BasicDataSourceFactory, I looked at the source for this class > through SVN. I

Re: [OT] of the different methods to get a user-id

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 2/17/2009 5:08 AM, Peter Crowther wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> IMHO, you either have control of your production environment >> yourself (and can do whatever you want) or you have an ops team >

Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Scott Carlson
Caldarale, Charles R wrote: From: Scott Carlson [mailto:scarl...@i2s.com] Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems The majority of the forums always bring up web.xml Which is appropriate, since yours is incorrect. Your URL pattern should be: /MsgService - Chuck T

Re: Apache/mod_jk serves random files from tomcat

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/17/2009 1:48 PM, Yuval Perlov wrote: > Is APR part of tomcat or apache [httpd]? APR is the Apache Portable Runtime. Technically, it's its own beast and is used by both httpd and Tomcat (optionally). > If I am running on linux and have no

RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Caldarale, Charles R
> From: Scott Carlson [mailto:scarl...@i2s.com] > Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems > > The majority of the forums always bring up web.xml Which is appropriate, since yours is incorrect. Your URL pattern should be: /MsgService - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Scott Carlson
André Warnier wrote: Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, re

Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread Scott Carlson
André Warnier wrote: Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, re

mod_jk pool/thread/configure questions

2009-02-18 Thread Anthony J. Biacco
Hello, I'm using apache 2.2.11 with tomcat 6.0.18 and mod_jk 1.2.27 on linux 2.6 x86_64. I was using a prefork mpm in apache, but have now moved to the worker mpm. I have a question or two regarding mod_jk in light of this change. 1. I'm running with ThreadsPerChild at 25 and MaxClients at 500. S

Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread André Warnier
Hi. Instead of POST-ing to the Apache server on port 80, what happens if you try to send your POST firectly to Tomcat, at http://localhost:8080 ? Can you send a logfile of /Tomcat/ after you try that ? Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, restart Tomcat, re-deplo

Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

2009-02-18 Thread scarlson
Hello All -- I've been pouring over the mailing lists trying to solve my problem, which seems like a popular one. My servlet does not seem to be running. I'm using Ubuntu 8.10 / Apache2 / Tomcat6 and Mod-Proxy Both Apache and Tomcat are functional (Mod-proxy also works). I deploy my war file

Re: Multiple tomcat processes

2009-02-18 Thread André Warnier
Mark Thomas wrote: gunnar.bost...@tieto.com wrote: So the questions are: why does Tomcat (or jsvc) start new processes To execute your perl scripts. and how can I prevent it? Don't use perl. Better, keep using perl, but not under Tomcat. Configure an Apache httpd front-end and run you per

Re: AJP13 Connector and JKOptions

2009-02-18 Thread André Warnier
János Löbb wrote: On Feb 18, 2009, at 8:17 AM, Pete Helgren wrote: Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I us

Re: Tomcat 4 can't find import files.

2009-02-18 Thread Richard Yanicky
> > I have downloaded and installed the tar files for Commons fileupload. I am > running on SUSE10 and have the following structure: > > Using CATALINA_BASE: /homes/yanicrk/tomcat > Using CATALINA_HOME: /opt/tomcat > Using CATALINA_TMPDIR: /homes/yanicrk/tomcat/temp > Using CATALINA_OUT:/ho

Re: Multiple tomcat processes

2009-02-18 Thread Mark Thomas
gunnar.bost...@tieto.com wrote: > So the questions are: why does Tomcat (or jsvc) start new processes To execute your perl scripts. and > how can I prevent it? Don't use perl. Mark - To unsubscribe, e-mail: users-unsubscr...@

Multiple tomcat processes

2009-02-18 Thread Gunnar.Bostrom
Hi, We are running Tomcat 5.5.25 on a Solaris 10 server. We use jsvc to start Tomcat on port 443. When starting I can see as expected 2 process one owned by root and one owned by tomcat. In production I can see multiple tomcat processes, one owned by root and the others owned by tomcat. By lookin

Re: AJP13 Connector and JKOptions

2009-02-18 Thread János Löbb
On Feb 18, 2009, at 8:17 AM, Pete Helgren wrote: Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I use a URL like thi

Re: mod_jk

2009-02-18 Thread János Löbb
On Feb 17, 2009, at 7:40 PM, Mohit Anchlia wrote: Is there a way to verify if mod_jk is load balancing properly among given live servers - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-

Re: tomcat5.5.23 and localization

2009-02-18 Thread Uwe Hostmann
Tx. Peter Crowther wrote: From: Uwe Hostmann [mailto:uwe.hostm...@alcatel-lucent.de] Only if you can answer quickly: can you conclude from the following snippets who (apache or tomcat) is responsible for the static file .../scripting/manual/start.html.en?: [...] #JkMount /*.jsp ajp13 JkM

RE: tomcat5.5.23 and localization

2009-02-18 Thread Peter Crowther
> From: Uwe Hostmann [mailto:uwe.hostm...@alcatel-lucent.de] > Only if you can answer quickly: can you conclude from the following > snippets who (apache or tomcat) is responsible for the static file > .../scripting/manual/start.html.en?: [...] > #JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13

Re: tomcat5.5.23 and localization

2009-02-18 Thread Uwe Hostmann
Hi Mark, Mark Thomas wrote: Uwe Hostmann wrote: Hi, in former tomcat versions (under different OS) static page "/start.html.en" That has not been the case for as long as I can remember. Are you thinking of httpd? tx. for the question: we use apache between client and tomcat. I changed

AJP13 Connector and JKOptions

2009-02-18 Thread Pete Helgren
Still struggling with this so I am reposting. I can't seem to find a configuration that allows the images and links to properly display. Info from prior posts: I have a Tomcat application that serves up a web app when I use a URL like this: http://www.mywebsite.com:8080/MyAPP Which I wante

Problems with Tomcat behind a Proxy server

2009-02-18 Thread Fabio da Silva Junior
Hello people from the list. I work in a University and have a server running Tomcat 6 with many applications on it. Here in the University, we connect to external addresses trough a proxy server, with many restrictions. Some protocols are blocked, but the HTTP and HTTPS are allowed. One of my a

Re: Using custom Charset's through CharsetProvider SPI in webapps not working

2009-02-18 Thread Mark Thomas
Joonas Koivunen wrote: > I guess the System's ClassLoader cannot see the webapp's libraries at > all? Correct. > Or is this a fault in Tomcat's webapp -classloader, not exposing > SPI meta information? Unlikely. > Is it impossible to have webapps that benefit from SPIs and custom > charset-implem

Re: Tomcat IO exception on startup

2009-02-18 Thread Mark Thomas
paul.ocklef...@nhs.net wrote: > I added this as I need to add support for jstl to my web app. I have also > noticed that now tomcat also seems to be using some cached version of > classes, even if I remove a class file and restart tomcat it is still using > a constant defined in an older version of

Re: tomcat5.5.23 and localization

2009-02-18 Thread Mark Thomas
Uwe Hostmann wrote: > Hi, > > in former tomcat versions (under different OS) static page > "/start.html.en" That has not been the case for as long as I can remember. Are you thinking of httpd? Mark was found under appropriate locale conditions > for URL ".../start.html" . Now, I get that the r

Context in [engine]/[host]/[app].xml and .war deployment

2009-02-18 Thread Ilya Kazakevich
Hello, I want to implement the following scenario: Developer creates .war file, which expects all config to be in context. He sends this file to IT guy who should create [engine]/[host]/[app].xml with all config he need, and copy .war file to webapps. Tomcat then should depoly this app (or re

Using custom Charset's through CharsetProvider SPI in webapps not working

2009-02-18 Thread Joonas Koivunen
Hi everyone, In my application I need to use a library that requires two custom Charset implementations which are delivered in a jar, with proper SPI meta information (META-INF/services/...). It works under Eclipse when doing unit-tests. This all is using Apache Tomcat 6.0.18, under Sun Java 1.6.

Tomcat IO exception on startup

2009-02-18 Thread paul.ockleford
Hi, I am using tomcat version 5.5.23 and I have noticed that tomcat is now giving the following exception on startup: - IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputSt .java:2228)

tomcat5.5.23 and localization

2009-02-18 Thread Uwe Hostmann
Hi, in former tomcat versions (under different OS) static page "/start.html.en" was found under appropriate locale conditions for URL ".../start.html" . Now, I get that the requested resource is not available (link from start.html.en to start.html works fine) although I tried, e.g., different

Re: mod_jk

2009-02-18 Thread Ben Stringer
On Tue, 2009-02-17 at 16:40 -0800, Mohit Anchlia wrote: > Is there a way to verify if mod_jk is load balancing properly among > given live servers Yes - look at the logging for mod_jk, and the logging for the tomcat servers. You may need to increase the log level of mod_jk to get the info you need