Advanced mod_jk router configuration

2007-02-28 Thread Sriram Narayanan
Hi: We have router1 doing load balancing and failover between worker1 and worker2. We would like to configure additional worker3 such that router1 will only forward the request to worker3 once all the failover attempts are exhausted for worker1 and worker2 combination How do we achieve this?

reasonable session size?

2007-02-28 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; not sure whether this is too much a tomcat-related question, but at least it relates to Java based web applications so hope someone around here might have an idea on that: While building a Servlet/JSP based intranet application, quite late I

Re: reasonable session size?

2007-02-28 Thread Leon Rosenberg
hello not sure whether this is too much a tomcat-related question, but at least it relates to Java based web applications so hope someone around here might have an idea on that: While building a Servlet/JSP based intranet application, quite late I realized that somehow just adding new objects /

Re: Noobie Questions

2007-02-28 Thread David Delbecq
En l'instant précis du 27/02/07 22:09, Henderson,Nathan s'exprimait en ces termes: This is an entry from our server.xml for one of our connections there are 14 just like this with different ip addresses for each entry and names of course, I set up IP aliases on the NIC card for this purpose.

Re: URL-pointing problem

2007-02-28 Thread wille
We tried changing the folder name, however that makes our servlet crash. Couldn't find content.xml though; only admin.xml and manager.xml resides under /conf/ . The following error message is returned when trying to run the app: org.apache.jasper.JasperException

RE: URL-pointing problem

2007-02-28 Thread Peter Crowther
From: wille [mailto:[EMAIL PROTECTED] root cause java.lang.NullPointerException pubdb.Entry.getDocuments(Entry.java:399) pubdb.Entry.getEntryById(Entry.java:217) So what's causing the NPE then? :-) - Peter

Re: Noobie Questions

2007-02-28 Thread Georg Sauer-Limbach
David Delbecq wrote: No, this is not possible, as far as i know, to stop services without stopping tomcat. However, using the manager interface of each of your virtual host, you can stop webapps inside those services. Tomcat will still listen to corresponding port but will respond with 404

Re: HTTP plus

2007-02-28 Thread Peter Kennard
Ok - continuing. Is it possible to use a GenricServlet to do basicly this. service(req,res) { for(;;) { readSome(req.getInputStream()); if(writeSome(req.getOutputStream()) { req.flushBuffer(); } else { break; } } } That

Re: HTTP plus

2007-02-28 Thread Georg Sauer-Limbach
If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets altogether. Georg Peter Kennard wrote: Ok - continuing. Is it possible to use a

RE: URL-pointing problem

2007-02-28 Thread wille
^__^ Our webapp had hardcoded paths in it, now we just have to grep them all and replace them. Thanks y'all! On Wed, 2007-02-28 at 10:58 +, Peter Crowther wrote: From: wille [mailto:[EMAIL PROTECTED] root cause java.lang.NullPointerException

RE: URL-pointing problem

2007-02-28 Thread Peter Crowther
From: wille [mailto:[EMAIL PROTECTED] Our webapp had hardcoded paths in it, now we just have to grep them all and replace them. Oops :-). You might like to look at the servlet context's methods for fetching resources (getResource and getResourceAsStream, I think). They make the file

Re: HTTP plus

2007-02-28 Thread Wayne Gemmell
On Wed, 28 Feb 2007 12:36:03 +0100 Georg Sauer-Limbach [EMAIL PROTECTED] wrote: If you don't want to deal with HTTP, you should not use the Servlet API (which is the Java abstraction of HTTP) at all. You can do the indicated code with generic sockets, no need to mind about Servlets

Re: HTTP plus

2007-02-28 Thread Peter Kennard
I understand what you are saying, however that means you also have to re-do all the application management system. Deployment, connectors, management, adminstration, thread management, load balancing, SSL key management and configuration and many many other infrastructure pieces that can be

Re: HTTP plus

2007-02-28 Thread Georg Sauer-Limbach
That's certainly correct, raw socket communication is not J2EE. Peter didn't mention, however, that J2EE was a necessary precondition for his case. On the contrary, this communication with some binary messages sent over sockets cannot be made to fit in a J2EE environment easily, save these

Re: HTTP plus

2007-02-28 Thread Peter Kennard
Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. If this is true I want to know about this. I am so far under the impression if you needed to connect with another protocol in a

Re: HTTP plus

2007-02-28 Thread Peter Kennard
Yes - I'm assuming J2ee facilities. At 06:57 2/28/2007, you wrote: That's certainly correct, raw socket communication is not J2EE. Peter didn't mention, however, that J2EE was a necessary precondition for his case. On the contrary, this communication with some binary messages sent over sockets

RE: log4j exception only when stopping and starting a web application

2007-02-28 Thread Rachel Wilson
It looks like you have bad syntax in you log4j.properties file. If that were the case, i would have expected it to fail the first time i started the application? to be clear, here are the steps to reproduce the error [1] deploy an unpacked webapp myapp to $TOMCAT_HOME/webapps/myapp [2] start

Re: HTTP plus

2007-02-28 Thread Paul Singleton
Peter Kennard wrote: Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. Tomcat is not a full J2EE server, just servlets+JSP, so maybe it lets you do things which are verboten in J2EE? If

RE: HTTP plus

2007-02-28 Thread Caldarale, Charles R
From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Re: HTTP plus Excuse the naivety but I thought you couldn't open a socket with J2EE. I was told (I think on this list) that you need to use a JCA to make the connection. If this is true I want to know about this. It's not

Tomcat 5.5.20 in Maven repository

2007-02-28 Thread Pascal Cohen
Hello I have seen in the maven repository that the latest version of some Tomcat components (for my concerns: jasper-runtime, jasper-compiler and jasper-compiler-jdt) was the 5.5.15 version while the latest available version on the tomcat website is 5.5.20. Is it planned to update the maven

[OT]Tools for translation management

2007-02-28 Thread David Delbecq
Hello, this is an out of topic query to all community. Do anybody have suggestions on how to manage ressource bundles translation? I have an application. This one contains a good amount .properties file in 3 languages (default, french, dutch). As the application evolves, it becomes more and more

Re: Certificate Installation Issues

2007-02-28 Thread Paul Singleton
Jeanna Geier wrote: Hello List- After having our application running smoothly with self-signed certificates, we made the change today and purchased a Comodo InstantSSL certificate - and after following the instructions on installing it, I'm having some problems that I am hoping someone with

Tomcat 5.5 JSESSIONID gets overwritten with same value but flaged 'secure' when switching from http to https

2007-02-28 Thread Kupferschmid Christian
Hi We are trying to get around the following problem: We have a bunch of apaches running mod_jk in front of an JBoss farm. The application requires a login to get a valid session. Research in the Internet has schown the information the in oder to maintain a session over http and https the

Re: [OT]Tools for translation management

2007-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: Do anybody have suggestions on how to manage resource bundles translation? I just recently had to do the same thing. I found a great tool called Attesoro, which does exactly what you want: http://attesoro.org/ It loads

RE: HTTP plus

2007-02-28 Thread Peter Kennard
At 09:42 2/28/2007, you wrote: Back to the original issue: sounds like you really need to develop your own connector to handle your proprietary protocol, rather than trying to twist one of Tomcat's HTTP or AJP connectors into doing your bidding. What we do is to be determined. What I want to

How to retrieve principal

2007-02-28 Thread Tremal Naik
Hello, I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() I need in particular the user name. May you suggest something appropriate? -- TREMALNAIK

RE: How to retrieve principal

2007-02-28 Thread Peter Crowther
From: Tremal Naik [mailto:[EMAIL PROTECTED] I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() I need in particular the user name. May you suggest something appropriate? We got round this

RE: Bootstrap stop()

2007-02-28 Thread Fran Varin
Chuck, Thank you for your reply. What has lead me down this path is that I am trying to use Bootstrap.start() and .stop() to manage a Tomcat instance within a main that I have written. The behavior that I'm seeing is that it seems that .stop() does not actually cause the server to come all the

Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Peter Crowther [EMAIL PROTECTED]: We got round this by putting the name into a ThreadLocal variable from a place where we *did* have access to it, then reading it later - messy, I see, you use the same approach as JBoss. So, you mean there is no way to get the user principal using

Re: How to retrieve principal

2007-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() Well, what /do/ you have available? - -chris -BEGIN PGP

Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Christopher Schultz [EMAIL PROTECTED]: Well, what /do/ you have available? That was my question: What do I have available?. May any of the following be useful? I'm confused, really. Server server = ServerFactory.getServer(); Service service = server.findService(Catalina); Engine

Re: How to retrieve principal

2007-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: 2007/2/28, Christopher Schultz [EMAIL PROTECTED]: Well, what /do/ you have available? May any of the following be useful? Server server = ServerFactory.getServer(); Service service = server.findService(Catalina);

Re: Quality check mod_jk 1.2.21-dev

2007-02-28 Thread Jim Jagielski
On Feb 26, 2007, at 3:53 PM, Rainer Jung wrote: Hi Kirk, I never built for Sun Web Server, but I just saw the configure flag: --enable-netscape Did you ever try running configure with that one before doing the make? Yes, I added that at the 1.2.21-dev phase specifically to allow for

RE: log4j exception only when stopping and starting a web application

2007-02-28 Thread Rachel Wilson
This problem is pretty common when restarting web applications. Libraries that use singletons etc. don't get reinitialized correctly when the web application is reloaded. Blimey, that sounds like a serious flaw :S Do you know why they don't get reinitialized properly? Could you give me a

Re: Quality check mod_jk 1.2.21-dev

2007-02-28 Thread Jim Jagielski
Let me know what you find. I had updated the configure.in file to add the --enable-netscape option and updated the BUILDING and Makefile.solaris files. I should likely update the netscape/README file with the notes from BUILDING... On Feb 26, 2007, at 4:42 PM, Kirk wrote: I will take a look at

Valve post lifecycle event

2007-02-28 Thread Ravi116
I wish to cleanup resources inside a valve on server shutdown (stop a scheduler). Is there anyway to do this ? Ravi -- View this message in context: http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545 Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Christopher Schultz [EMAIL PROTECTED]: How is it that you have code that needs request-specific information, but no access to the request? Are you forced into this situation by other components (through a callback mechanism or something like that)? Or, is this the result of poor

RE: log4j exception only when stopping and starting a web application

2007-02-28 Thread Tim Lucia
It's not necessarily bad to use Singletons. You have to be certain that they do not hold references to themselves or their class or they cannot be unloaded. Google for: permgen log4j. One thing about log4j -- you should have an ServletContextListener that shuts down log4j properly: public

RE: Tomcat 5.5 JSESSIONID gets overwritten with same value but flaged 'secure' when switching from http to https

2007-02-28 Thread Kupferschmid Christian
We have found the problem. Our deployment process misconfigured the jvmRoute tag in the server.xml. All tomcats had the same jvmRoute name and therefore the mod_jk loadbalanced the change of the protocol to a different server. The new server did not know the session, initiated a new one and used

Re: Having trouble building mod_jk on Solaris 10 x86

2007-02-28 Thread Rainer Jung
This looks liek a header file is missing on your system. The syntax error definitely looks like a consequence of the missing header file. I shortly checked on a Solaris Sparc system and the file /usr/include/sys/tsol/label.h was there as part of the package SUNWhea. Check if the file is

Re: Advanced mod_jk router configuration

2007-02-28 Thread Rainer Jung
worker 1 and worker2 distance=0 worker 3 distance=1 Regards, Rainer Sriram Narayanan wrote: Hi: We have router1 doing load balancing and failover between worker1 and worker2. We would like to configure additional worker3 such that router1 will only forward the request to worker3 once all the

How To Upgrade JDK used by Tomcat 4.1

2007-02-28 Thread Eric Davis
Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for Tomcat simply say to

Re: How To Upgrade JDK used by Tomcat 4.1

2007-02-28 Thread Pid
Eric Davis wrote: Hello, I need to update/upgrade the JDK used by Tomcat for an application we purchased, because of the daylight saving time issue. I can't seem to find any documentation on the steps that need to be taken to upgrade the JVM used by Tomcat. The installation instructions for

Re: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)?

2007-02-28 Thread Daniel Gresh
Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Ant custom tasks: how to compile .java files and restart Tomcat (Tomcat6.0.9)? I have a src directory for my .java files that I wish to compile to .class files and simply store them on

RE: How To Upgrade JDK used by Tomcat 4.1

2007-02-28 Thread Jean-Sebastien Pilon
You should take a look at this link http://java.sun.com/javase/tzupdater_README.html -Original Message- From: Eric Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:18 PM To: users@tomcat.apache.org Subject: How To Upgrade JDK used by Tomcat 4.1 Hello, I

Re: Having trouble building mod_jk on Solaris 10 x86

2007-02-28 Thread Chris Taylor
Thanks for your message. I looked around and the SUNWhea package is installed on my Solaris 10 x86 server, but to get the /usr/include/sys/tsol/label.h file I need to install a Sun patch 124209-01, SunOS 5.10_x86: Trusted Extensions header files patch. We're not using Trusted Solaris- is there

Tomcat Smart Card (CAC card) problem

2007-02-28 Thread Thurber, Fred
I am trying to get a smart card to work with Tomcat. The smart card in question is a DoD CAC (Common Access Card). I believe that I have setup my Connector element correctly in my server.xml: Connector port=8443 enableLookups=true disableUploadTimeout=true debug=1

RE: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)?

2007-02-28 Thread Caldarale, Charles R
From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)? Is webapps/[appname], where [appname]=ROOT a web application? If so, I can just use reload when I deploy new .class files without ever having to

Tomcat JNI and native libraries

2007-02-28 Thread Andrew Pliszka
What is the best place to install JNI Java bridge and native libraries. We are using Linux and Tomcat 5. Thanks Andrew Pliszka Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Ant custom tasks: how to compile .java files and restart Tomcat(Tomcat6.0.9)?

Tomcat 6 Transaction Manager

2007-02-28 Thread Thai Dang Vu
Hello everybody, I read the JNDI Resources HOW-TO and noticed that there is something like a transaction manager in Tomcat 6. Is that right? copy from the JNDI Resources HOW-TO Transaction - Add a resource factory for instantiating the UserTransaction object instance that is available at

[ANN] Apache Tomcat 6.0.10 released

2007-02-28 Thread Remy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.10 stable. This release is the first stable release of the 6.0.x branch. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a

Re: Tomcat JNI and native libraries

2007-02-28 Thread Luis Rivera
Hi, As far as I understand, libraries can be placed anywhere as long as that directory is in the path (environment variable, not classpath), while the jni java side has to be placed either in the shared or common directories. I have it working in the shared directory, so that Tomcat does not

Session Info LOST in New Browser Window (Linux only)

2007-02-28 Thread FuzzyNavel
Hello All! I hope someone out there can offer a suggestion as to what might be going wrong in the following situation. I am developing an application using JSP and Tomcat 5.0.24. I am developing my application on a SunOS server. I am deploying my application on a Linux server. The entire

RE: How To Upgrade JDK used by Tomcat 4.1

2007-02-28 Thread Eric Davis
Looked at that, but the version on the server doesn not have a patch. [EMAIL PROTECTED] 2/28/07 1:00:29 PM You should take a look at this link http://java.sun.com/javase/tzupdater_README.html -Original Message- From: Eric Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February

Servlet Lifecycle

2007-02-28 Thread Peter Kennard
So if a servlet is lets say in a long transaction, sending a huge data set, and the manager is wanting to undeploy it, Does it get notified while the long lasting servlet thread is sending data so if one wants to abort it, you can truncate writing in a controlled way and clean up the mess

Re: Tomcat Smart Card (CAC card) problem

2007-02-28 Thread Martin Gainty
Good Evening Fred It appears your connector in server.xml does not have CertificatePath and or RequestPath defined keep in mind that all of the paths unless otherwise specified are relative to $CATALINA+BASE Here is an example of connector parameters to get you started connector scheme=https

Re: How To Upgrade JDK used by Tomcat 4.1

2007-02-28 Thread Eric Davis
P, As far as I know just 1, though the java.exe is located in many directories \jdk\bin \_jvm\bin \jdk\jre\bin How can I tell which one it is using. If I install 1.4.2_11 to another directory, how to I tell Tomcat to use that JVM? Thanks for the help. E [EMAIL PROTECTED] 2/28/07 11:12:22 AM

Re: Valve post lifecycle event

2007-02-28 Thread Bill Barker
Ravi116 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I wish to cleanup resources inside a valve on server shutdown (stop a scheduler). Is there anyway to do this ? If all you want to do is cleanup, then a LifecycleListener is better than a Valve (which is for request

RE: HTTP plus

2007-02-28 Thread Peter Kennard
OK - persistance has paid off :) I now have a little client that with a small HTTP header will connect with a servlet, and run a persistent telnet like session with it until either someone times out or decides to quit. The only requirement is that you initiate the connection with HTTP

create[8005]: java.net.BindException: error occured while starting tomcat on Ubuntu Plateform

2007-02-28 Thread hetal
StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address I have installed j2sdk1.5 and tomcat-5.0.28 on ubuntu plateform. I have changed port no in server.xml also but still i am facing same problem.. error that is displayed in catalina.out is as under:

RE: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform

2007-02-28 Thread Caldarale, Charles R
From: hetal [mailto:[EMAIL PROTECTED] Subject: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address This is usually due to the port already being in use

RE: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform

2007-02-28 Thread hetal
From: hetal [mailto:[EMAIL PROTECTED] Subject: create[8005]: java.net.BindException: error occured while startingtomcat on Ubuntu Plateform StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address This is usually due to the port already being in

RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform

2007-02-28 Thread Caldarale, Charles R
From: hetal [mailto:[EMAIL PROTECTED] Subject: RE: create[8005]: java.net.BindException: error occured whilestartingtomcat on Ubuntu Plateform I have checked on my machine only one tomcat is running and I have also tried netstat command it is not listing 8005 port. Do you have a

Need some pointers on how to troubleshoot performance problems of an application running on tomcat and java

2007-02-28 Thread NurulZ
Hi, I am new to Tomcat. I have an enterprise application (which was developed by an external vendor and for which we have no source code) that is running on the followng: 1. Apache Tomcat 4.1.31 2. J2SDK1.4.2_11 3. Windows 2003 OS SP1. The hardware is as follows: HP 2-CPU machine 2 GB Memory

page remembers data

2007-02-28 Thread Michal Glowacki
Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data remains there. I've no clue why

Re: Need some pointers on how to troubleshoot performance problems of an application running on tomcat and java

2007-02-28 Thread David Delbecq
En l'instant précis du 01/03/07 08:15, Nurul Zaman Mohamed Akhbar s'exprimait en ces termes: Hi, I am new to Tomcat. I have an enterprise application (which was developed by an external vendor and for which we have no source code) that is running on the followng: 1. Apache Tomcat 4.1.31 2.

Re: page remembers data

2007-02-28 Thread Pid
Michal Glowacki wrote: Hi I'm not sure if it's the problem of Tomcat, but I've spotted it after upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session scoped beans as I'm using request ones. When I enter some data, submit them and return back to that page, the data remains