Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Hi, If I run Tomcat as embedded, is it possible for the application that contains Tomcat to interact with web-apps that run inside that Tomcat? For example, the external application, in addition to starting the embedded Tomcat, also manages other services, and the web-apps that runs inside the em

Application repeat a struts action (tomcat timeout?)

2007-08-29 Thread kampas
Hi, I have a java application with struts. Sometimes when I call a struts Action, if the action take a lot of time, the application repeat the call. I wish know if exist a "timeout" in tomcat than produce this situation, becouse when the action take 1 hour or more, left the session and repeat the

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, Can you please elaborate what kind of external services your embedded tomcat webapps would need to access. What kind of interfaces exist for those services. Do they run in the same process? Regards, Sonal On 8/29/07, nlif <[EMAIL PROTECTED]> wrote: > > > Hi, > > If I run Tomcat as embedded,

Re: Interacting with an embedded Tomcat

2007-08-29 Thread OFFICIAL WEBSITE
If I understand correctly, external applications were started on one JVM and the tomcat is on another JVM, started separately or by the external application itself. Two JVMS running on on machine have nothing in common other than system resources. Open a serversocket at a named port on the externa

Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Hmm, I guess I did not explain myself very well... I have an application, that acts as bootstrap: it creates and initializes various services, which provide a Java API to resources such as database, file-system, and native libraries. In addition, I want that bootstrap application to start an embe

Re: tomcat hang/freeze under windows

2007-08-29 Thread David Delbecq
Looks like a deadlock occuring at your db. You probably have a filter that applies to each request and is deadlocking in some way. The reason you can still reach the login page is that login page is served by tomcat without getting through the filters. The best way, if you have remote access to ap

Facing problems with class loaders in tomcat 5.0

2007-08-29 Thread vaibhav vashishtha
Hi list, i am currently facing a problem with the class loaders of tomcat 5.0 i need a no of common jar files to be accessed by multiple web apps which are deployed in the webapps directory of tomcat Problem description: 1. Need to place the common jars(to different web applications) at a centr

Bad README.html

2007-08-29 Thread Ognjen Blagojevic
Hi all, README link on http://tomcat.apache.org/download-60.cgi#6.0.14 seems to open an empty blank page. Try: http://www.mirrorgeek.com/apache.org/tomcat/tomcat-6/v6.0.14/README.html http://www.mirrorgeek.com/apache.org/tomcat/tomcat-6/v6.0.13/README.html ... Regards, Ognjen -

Re: Facing problems with class loaders in tomcat 5.0

2007-08-29 Thread Pid
vaibhav vashishtha wrote: Hi list, i am currently facing a problem with the class loaders of tomcat 5.0 i need a no of common jar files to be accessed by multiple web apps which are deployed in the webapps directory of tomcat Problem description: 1. Need to place the common jars(to different

Re: Facing problems with class loaders in tomcat 5.0

2007-08-29 Thread David Smith
Questions/comments inline: vaibhav vashishtha wrote: Hi list, i am currently facing a problem with the class loaders of tomcat 5.0 i need a no of common jar files to be accessed by multiple web apps which are deployed in the webapps directory of tomcat Problem description: 1. Need to place t

Re: Tomcat not starting properly.

2007-08-29 Thread David Smith
Could you post messages from the tomcat catalina.out log file? The console messages doesn't really say much. In particular, I'd like to see more of the exception that started to show there. --David Potri Raaja wrote: Operating System : Suse Linux Enterprise Server 9. TOMCAT Version : jakart

Re: Interacting with an embedded Tomcat

2007-08-29 Thread OFFICIAL WEBSITE
How do you intend to start Tomcat on the same JVM as your bootstrap application? Bypass ALL of tomcat facilities and scripts and take direct control, instantiating Tomcat classes by name from its libraries!! Embedded through API Interfaces! Wow! What is the advantage gained? I would leave tomcat s

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, I am assuming you are calling createContext() on the org.apache.catalina.startup.Embedded object. Do you think calling org.apache.catalina.Context.getServletContext() and then setAttribute on the returned ServletContext will help? Just a thought. Do let me know if it makes sense. Sonal On

Re: Tomcat not starting properly.

2007-08-29 Thread Potri Raaja
Hi, Since we were not able to start the server the catalina.out file is not updated, so I am giving you the information in catalina.out file, when the tomcat was started last time. Aug 9, 2007 9:57:04 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/22 config=/root/jakar

Re: tomcat hang/freeze under windows

2007-08-29 Thread Roger Parkinson
Useful stuff, thanks. We don't use any filters in the app, but we do have a db. I'll get them to check it out for deadlocks and get a stacktrace. Still a puzzle why a little demo setup gives this and the live apps don't. It will be interesting when we know. Anyway, good general approach advice.

Re: Authentication and authorization questions

2007-08-29 Thread Glenn McCall
Below... I hope it helps Glenn Mc - Original Message - From: "lightbulb432" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 29, 2007 2:33 PM Subject: Authentication and authorization questions I have several questions about authentication and authorization in Tomcat below, so an

Tomcat 6 clustering Problem

2007-08-29 Thread davidov
Hallo i have uncomment the element in server.xml of tomcat6 and write this config in: My problem is now, that at startup of tomcat this message appears: org.apache.catalina.ha.tcp.SimpleTcpCluster setProper

apache getting in "sending reply" state when connecting to tomcat

2007-08-29 Thread Gerhardus.Geldenhuis
Hi I'm kind of between a rock and a hard place. We have a problem in our production system that occurs quite regularly. Apache's connections all get into a Sending Reply ( W ) state and which makes the application unresponsive. We have an apache 2.0.52 fronting 12 tomcat 5.5 all on CentOS 4.5 usi

Re: Tomcat not starting properly.

2007-08-29 Thread David Smith
Hmmm running it from the root user account -- not the smartest thing to do, but purely from a security stand point. Running from the root account wouldn't affect this. Given the very brief almost a stack trace you got on the console and the profuse complaining below about not being able t

RE: apache getting in "sending reply" state when connecting to tomcat

2007-08-29 Thread Gerhardus.Geldenhuis
Hi I forgot to add, that our solution at the moment is to restart apache which 9 out of 10 times solves the problems. We see connections reach almost 250 (248,249) per tomcat server on the apache box. After restart this drops down We also only see the problem when we are experiencing heavy load a

Re: Interacting with an embedded Tomcat

2007-08-29 Thread Sonal Goyal
Hi, Are you also facing issues in starting up tomcat in embedded mode? Here are some links that help: http://www.vsj.co.uk/articles/display.asp?id=319 http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html Regards, Sonal On 8/29/07, Sonal Goyal <[EMAIL PROTECTED]> wrote: > > Hi, > > I am ass

Configure Tomcat 6 windows service with SSL

2007-08-29 Thread Sawan
Hi experts, I have installed Tomcat 6 windows service using its installer "apache-tomcat-6.0.13.exe". Now its running fine on "http://localhost:8080";, but my problem is to run Tomcat 6 on SSL port that is "https://localhost:8443";. I have used the steps listed on following link... http://tomca

RE: Bad README.html

2007-08-29 Thread Caldarale, Charles R
> From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] > Subject: Bad README.html > > README link on >http://tomcat.apache.org/download-60.cgi#6.0.14 > seems to open an empty blank page. Try: > http://www.mirrorgeek.com/apache.org/tomcat/tomcat-6/v6.0.14/README.html > http://www.mirrorgeek.com/a

RE: Interacting with an embedded Tomcat

2007-08-29 Thread Caldarale, Charles R
> From: OFFICIAL WEBSITE [mailto:[EMAIL PROTECTED] > Subject: Re: Interacting with an embedded Tomcat > > How do you intend to start Tomcat on the same JVM as your bootstrap > application? This is an EMBEDDED, not standalone, Tomcat. (Google if you don't know what that means.) Please stop conf

RE: apache getting in "sending reply" state when connecting to tomcat

2007-08-29 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: RE: apache getting in "sending reply" state when > connecting to tomcat > > I forgot to add, that our solution at the moment is to restart apache > which 9 out of 10 times solves the problems. Please clarify your use of the term

Tomcat + SSL + Cluster

2007-08-29 Thread Dario Hernan
Hi all, I'm running tomcat 5 with SSL support, I need to put this server in a cluster with other server, I need some advice about the architecture to use, Have I put a server before the cluster to manage the ssl? or should I use a database to share the certificates and user sessions between the clu

Re: Tomcat not starting properly.

2007-08-29 Thread Potri Raaja
Hi, Finally we got it working, now I extract the tomcat in to a new folder and replaced all the jars and set all the path as before and it's working fine. Thankyou very much , for all your suggestions. Regards, Potri Raaja.M. David Smith-2 wrote: > > Hmmm running it from the root

RE: apache getting in "sending reply" state when connecting to tomcat

2007-08-29 Thread Gerhardus.Geldenhuis
Charles, when I say apache I mean httpd service. There is 3 different servers mentioned. * The httpd server that fronts the tomcat servers * The tomcat servers that serves the application * The httpd server, scaled down on the same physical machine as the tomcat server which we use for basic moni

RE: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Caldarale, Charles R
> From: Brian Munroe [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat not starting properly. > > > The CLASSPATH environment variable should never be used when running > > Tomcat. (For that matter, it shouldn't be used in any Java > > environment these days.) > > Chuck: I don't mean to hijack

Re: Tomcat not starting properly.

2007-08-29 Thread Brian Munroe
On 8/29/07, David Smith <[EMAIL PROTECTED]> wrote: > able to find the endorsed directory, you should probably get a new copy > of the jars from your .tar.gz or .zip download and replace the jars. Who knows what else is wrong. My vote is for just get a fresh copy of Tomcat. -- brian ---

Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Thanks very much. Maybe that's the way. I'll give it a try. Naaman Sonal Goyal wrote: > > Hi, > > I am assuming you are calling createContext() on the > org.apache.catalina.startup.Embedded object. Do you think calling > org.apache.catalina.Context.getServletContext() and then setAttribute

FW:

2007-08-29 Thread walrechtg
We installed tomcat 5.5.23 on RHEL 5 (Redhat Enterprise Linux) via `yum install tomcat5` The installation completes and when we start tomcat there is no response at http://ourmachine:8080 The /var/log/tomcat/Catalina.out shows: Using CATALINA_BASE:   /usr/share/tomcat5 Using CATALINA_HOME:   /us

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/28/07, Hristian <[EMAIL PROTECTED]> wrote: > I'm having the same problem, none of these ports are busy. First I tried on > it's Windows Server 2003 OS, it had this problem, then we deleted the Win > Server and installed Windows XP. I have no idea... Are you still having the problem on XP? W

Re: Re: filter IP for a webapps through mod_jk

2007-08-29 Thread Sebastien Moretti
[EMAIL PROTECTED] a écrit : Hi, Try removing element from your tomcat server.xml I tried several things but it seems to be the simple one. I would like to deny access for my webapps through port 8080 and to allow access for other webapps via 8080 port. But I will allow access for webapps

RE: Configure Tomcat 6 windows service with SSL

2007-08-29 Thread Caldarale, Charles R
> From: Sawan [mailto:[EMAIL PROTECTED] > Subject: Configure Tomcat 6 windows service with SSL > > I have installed Tomcat 6 windows service using its installer > "apache-tomcat-6.0.13.exe". Because you used the .exe download, you may well have APR installed. The SSL configuration for that is co

Re: FW:

2007-08-29 Thread David Smith
You need a better JVM. The GNU version isn't up to the task. I highly recommend the Sun JVM. --David [EMAIL PROTECTED] wrote: We installed tomcat 5.5.23 on RHEL 5 (Redhat Enterprise Linux) via `yum install tomcat5` The installation completes and when we start tomcat there is no response at

RE:

2007-08-29 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: FW: > > We installed tomcat 5.5.23 on RHEL 5 (Redhat Enterprise Linux) via > `yum install tomcat5` Throw that away and install a real Tomcat download from http://tomcat.apache.org/download-55.cgi or http://tomcat.apache.org/download-

Re: Unable to get a basic install working...

2007-08-29 Thread Hristian
It's all done right, i've installed the same apache tomcat with the same java on 5 more PCs with no problems at all, but this one. I've all the ports are free, i've told already... The log shows similar to the error in the log posted in this forum topic, that's why I posted my question in this one

RE:

2007-08-29 Thread walrechtg
Chuck, David, Thanks for reply to my subject-less mail. Excuses for that. I don't know if I get the 'Java Virtual Machine' part but we installed j2sdk-1_4_2_14-linux-i586.bin, replaced the tomcat config to represent this jre: JAVA_HOME="/stage/j2sdk1.4.2_14" JRE_HOME="/stage/j2sdk1.4.2_14/jre"

RE:

2007-08-29 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: > > but the same result. Does "same result" also show libgcj in the stack trace? If so, you're not using the real JVM. > Chuck we'll try download and install 'a real TomCat' It's "Tomcat", not "TomCat". - Chuck THIS COMMUN

RE: Unable to get a basic install working...

2007-08-29 Thread Caldarale, Charles R
> From: Hristian [mailto:[EMAIL PROTECTED] > Subject: Re: Unable to get a basic install working... > > SEVERE: StandardServer.await: create[8005]: > java.net.BindException: Address already in use: JVM_Bind That shows that something is using 8005 - perhaps another instance of Tomcat on the same

RE: Unable to get a basic install working...

2007-08-29 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Unable to get a basic install working... > > > SEVERE: StandardServer.await: create[8005]: > > java.net.BindException: Address already in use: JVM_Bind > > That shows that something is using 8005 - perhaps another > instance of Tomcat on the same mac

Re:

2007-08-29 Thread David Smith
But the startup script for your tomcat is still picking up the GNU version -- probably from the PATH env variable. I'd look at the startup script and see how it finds the JVM. --David [EMAIL PROTECTED] wrote: Chuck, David, Thanks for reply to my subject-less mail. Excuses for that. I don'

Re: Unable to get a basic install working...

2007-08-29 Thread Sonal Goyal
How about changing the port and trying out so that you can be absolutely sure? Sonal On 8/29/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Caldarale, Charles R > > Subject: RE: Unable to get a basic install working... > > > > > SEVERE: StandardServer.await: create[8005]: > > > j

RE: Unable to get a basic install working...

2007-08-29 Thread Hristian
Caldarale, Charles R wrote: > >> From: Hristian [mailto:[EMAIL PROTECTED] >> Subject: Re: Unable to get a basic install working... >> >> SEVERE: StandardServer.await: create[8005]: >> java.net.BindException: Address already in use: JVM_Bind > > That shows that something is using 8005 - perh

Re:

2007-08-29 Thread Dario Hernan
you need to install some others packages, use yum search tomcat5 and install tomcat5-webapps, tomcat5-manager, etc. Dario On 8/29/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Subject: FW: > > > > We installed tomcat 5.5.23 on RHEL

RE:

2007-08-29 Thread Caldarale, Charles R
> From: Dario Hernan [mailto:[EMAIL PROTECTED] > Subject: Re: > > you need to install some others packages, use yum search tomcat5 and > install tomcat5-webapps, tomcat5-manager, etc. I'd strongly recommend against that. Use a real Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Re: filter IP for a webapps through mod_jk

2007-08-29 Thread Tim Funk
Then you need to extend org.apache.catalina.valves.RemoteAddrValve to check the port (and other customizations as needed) -Tim Sebastien Moretti wrote: [EMAIL PROTECTED] a écrit : I would like to deny access for my webapps through port 8080 and to allow access for other webapps via 8080 po

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/29/07, Hristian <[EMAIL PROTECTED]> wrote: > > How could this be if the port if shows as free on netstat? > Misinterpretation of netstat output? Don't take that the wrong way, I'm just trying to be helpful. Can you send the output to the mailing list? I'd follow Sonal's suggestion, becaus

Re: tomcat hang/freeze under windows

2007-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger, Roger Parkinson wrote: > Useful stuff, thanks. We don't use any filters in the app, but we do > have a db. I'll get them to check it out for deadlocks and get a > stacktrace. > Still a puzzle why a little demo setup gives this and the live apps

Re: Unable to get a basic install working...

2007-08-29 Thread David Smith
One other thought and I don't know how possible this is but it's there for your consideration. Would you happen to have a connector defined with the same port number as the shutdown port def.? It wouldn't be bound until tomcat starts and then either the shudown port or the connector might bin

Re: Authentication and authorization questions

2007-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lb, lightbulb432 wrote: > Where does Tomcat authentication fit into the request processing lifecycle? > Does it happen before even the very first filter gets called? Yes. It's implemented as a Valve that runs before any of your code gets a chance to

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Brian Munroe
On 8/29/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > The biggest problem with CLASSPATH is that it tends to be set and then > forgotten, causing classloading problems during subsequent Java > executions. The resulting confusion (especially if it involves the > wrong version of a class,

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/29/07, David Smith <[EMAIL PROTECTED]> wrote: > One other thought and I don't know how possible this is but it's there > for your consideration. Would you happen to have a connector defined > with the same port number as the shutdown port def.? It wouldn't be > bound until tomcat starts and

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, Brian Munroe wrote: > I was always told that Tomcat ignored the CLASSPATH and > not to use it. Maybe that is one of those white lies they tell > newbies to alleviate problems? :) The CLASSPATH environment variable is certainly not ignored by

Re: Unable to get a basic install working...

2007-08-29 Thread David Smith
:-) Yup... just don't want to be there when nature calls. --David Brian Munroe wrote: On 8/29/07, David Smith <[EMAIL PROTECTED]> wrote: One other thought and I don't know how possible this is but it's there for your consideration. Would you happen to have a connector defined with the sa

RE:

2007-08-29 Thread walrechtg
Chuck, et al., Using a real Tomcat worked! Solved our problem, tnx! Gerjan -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 29 augustus 2007 16:36 To: Tomcat Users List Subject: RE: > From: Dario Hernan [mailto:[EMAIL PROTECTED] > Subject: Re: > > you ne

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Brian Munroe
On 8/29/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > The CLASSPATH environment variable is certainly not ignored by Tomcat. > Here's part of the startup script from TC 5.5: > > # Add on extra jar files to CLASSPATH > if [ -n "$JSSE_HOME" ]; then > CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/

Re:

2007-08-29 Thread Dario Hernan
it's highly recommended to use a real tomcat, but if you use a package out of distribution you lost the updates and the support of redhat. On 8/29/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Dario Hernan [mailto:[EMAIL PROTECTED] > > Subject: Re: > > > > you need to install som

Wrong JVM version

2007-08-29 Thread Marco
Hello everyone, I have got problems to define the right JVM that my tomcat should use. Formally installed JVM: Free Software Foundation, Inc., version 1.4.2 I installed manually SUN JVM, version 1.6.0_02-b05 I have modified the file tomcat5.conf: Changed: JAVA_HOME="/usr/lib/jvm/java"

RE: Wrong JVM version

2007-08-29 Thread Caldarale, Charles R
> From: Marco [mailto:[EMAIL PROTECTED] > Subject: Wrong JVM version > > Can anyone tell me in what stage the system falls back to the > previous JVM? Did you change your PATH environment variable to include the Sun JVM rather than the default one? - Chuck THIS COMMUNICATION MAY CONTAIN CON

RE: Wrong JVM version

2007-08-29 Thread Marco
As far as I can see, neither of them is specified in the PATH environment. Marco. -Oorspronkelijk bericht- Van: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Verzonden: woensdag 29 augustus 2007 18:17 Aan: Tomcat Users List Onderwerp: RE: Wrong JVM version > From: Marco [mailto:[EMAIL

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Markus Schiegl
Hi chris, are you sure about this CLASSPATH-thing? a few lines above your quoted line catalina.sh sources/includes setclasspath.sh which zaps CLASSPATH ("First clear out the user classpath") I just remembered it because i had to comment this line "CLASSPATH=" to use my externally set environment

Re:

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote: > it's highly recommended to use a real tomcat, but if you use a package > out of distribution you lost the updates and the support of redhat. "updates"? -- how tough is it to download and untar a new version? You still have to test with your app

Re: Tomcat 6 clustering Problem

2007-08-29 Thread Filip Hanik - Dev Lists
take a look at the example http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html you copied a 5.5 config into 6 Filip [EMAIL PROTECTED] wrote: Hallo i have uncomment the element in server.xml of tomcat6 and write this config in: className="org.apache.catal

Re:

2007-08-29 Thread Dario Hernan
it's true! but if you client pay for a license and support, you cann't do so much! On 8/29/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote: > > it's highly recommended to use a real tomcat, but if you use a package > > out of distribution you

Re:

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote: > it's true! but if you client pay for a license and support, you cann't > do so much! I'm not sure what you mean by that. I have one RH ES server running production that has auto-update -- but that only does basic system stuff that I don't care

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Schiegl wrote: > are you sure about this CLASSPATH-thing? > > a few lines above your quoted line catalina.sh sources/includes > setclasspath.sh which zaps CLASSPATH ("First clear out the user classpath") Oh, hey, you're right. Thats wh

Re:

2007-08-29 Thread Dario Hernan
but, when you support a lot of servers in different clients, and in different cities? On 8/29/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote: > > it's true! but if you client pay for a license and support, you cann't > > do so much! > > I'm no

Re:

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote: > but, when you support a lot of servers in different clients, and in > different cities? Yes, as a matter of fact, that *is* what I do. And you seem to be overlooking the fact that the "packaged" stuff *simply doesn't work* -- so it's not much

RE: 20 Tips for Using Tomcat in Production

2007-08-29 Thread myrealbruno
Maybe it should also be noted that the service installation batch file that comes with the Tomcat's Windows binaries distribution (the zipped one) defaults to the server JVM, if available. The same should happen with the so called service installer version (the exe one) but I didn't check which j

Problems with SSL-enabled Tomcat 5.5

2007-08-29 Thread Werner Schalk
Hello, I am trying to setup a SSL-enabled Tomcat 5.5.? (5.5.20 I think) on a Sun Solaris 10 (Sparc) but it turns out that this appears not to be an easy task. Hopefully you guys can shed some light on this. Basically I do have a Verisign-signed SSL certificate which I would like to add to my e

Re: Apache --> Tomcat SSL via mod_jk

2007-08-29 Thread Rainer Jung
Christopher Schultz wrote: Omar Nafees wrote: 1) request.getRemoteUser() only works on the "entry-point" servlet (e.g. index.jsp) - it doesn't work if you forward immediately to another page. It seems strange that Tomcat doesn't keep remote user around for later use and forces me to keep it arou

RE: 20 Tips for Using Tomcat in Production

2007-08-29 Thread myrealbruno
IMHO the only good reason to move a library out from an application and place it into /common/lib (or /lib) is to get advantage of connection pooling. http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html Then, yes, if you have different database versions you might find yourself in the

Re: apache getting in "sending reply" state when connecting to tomcat

2007-08-29 Thread Rainer Jung
Hi Gerhardus, you allow 575 parallel requests with Apache. If something gets slow and you get more and more "W" states, this parallelism will really get used. Each parallel requests needs a connection to your Tomcat (unless it gets served directly by Apache), and each connection to Tomcat need

Re: Apache --> Tomcat SSL via mod_jk

2007-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, Rainer Jung wrote: > We know that mod_jk forwards the info about the > protocol used by Apache when accepting the original request and this > info is handled by Tomcats security-constraint the same was, as if > Tomcat had created it on its own

Re: Problems with SSL-enabled Tomcat 5.5

2007-08-29 Thread Filip Hanik - Dev Lists
did you set keyAlias="root" in server.xml Werner Schalk wrote: Hello, I am trying to setup a SSL-enabled Tomcat 5.5.? (5.5.20 I think) on a Sun Solaris 10 (Sparc) but it turns out that this appears not to be an easy task. Hopefully you guys can shed some light on this. Basically I do have a

Validation error messages from TagLibraryValidator for X--nothing more

2007-08-29 Thread GroovyCode
Using Tomcat 5.5.23 from http://mirror.candidhosting.com/pub/apache/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.tar.gz I get an exception that I don't experience running the app locally. 2007-08-29 12:53:11,143 [http-64.119.174.37-80-Processor23] ERROR org.apache.catalina.core.ContainerBase

Re: 20 Tips for Using Tomcat in Production

2007-08-29 Thread Ole Ersoy
Incidentally - since we are talking about pooling - should the executor configuration be a tip? It allows the connectors to share a single thread pool, rather than each connector having its own. This seems like a memory and performance slurpee to me. Cheers, - Ole myrealbruno wrote: IMHO t

Java servlets

2007-08-29 Thread Deepa Paranjpe
Hi all, This is not a question specific to tomcat but more about servlets. I am using a dispatcher forward to invoke another servlet. Why do I get an exception --> java.lang.IllegalStateException: Cannot forward after response has been committed For some reason I am unable to find good

Re: Single-sign on without form-based authentication

2007-08-29 Thread lightbulb432
Here's the case where three credentials are necessary: there is a requirement to host multiple applications on a single database, and data such as users are in a single, shared table. Therefore, someone logging into app A would enter username and password of user1 and pass1, and someone else loggi

Re: Authentication and authorization questions

2007-08-29 Thread lightbulb432
Great response. Follow-up questions below: Christopher Schultz-2 wrote: > When you login using form-based authentication, where invalid login > attempts >> redirect to the "form-error-page", how do you add a custom message to >> that >> page saying "Login Failed"? I ask because common practice i

Re: Java servlets

2007-08-29 Thread Glenn McCall
In a nutshell, once you forward you should ensure nothing else is sent to the output. Similarly once you start outputing a page, don't change your mind and forward. Thus your code should look something like this: if (errorMessage != null) { response.sendRedirect (request.get

Re: Java servlets

2007-08-29 Thread David Smith
Well... has anything been written to the response before the forward? If so, that'll do it. If what you really want is to include the output of various servlets and jsps in one response, you really need an aggrigator servlet that pulls together the output of various servlets. In jsp land, th

Re: Java servlets

2007-08-29 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11489 Posted on behalf of a User Hi see this for an explanation: http://www.techienuggets.com/Detail?tx=24 In Response To: Hi all, This is not a question specific to tomcat but more about servlets. I am using a dispatcher forward t

Re: Tomcat + SSL + Cluster

2007-08-29 Thread Dwayne
I think the best way to cluster anything is with terracotta. Open source and easy to drop in existing code. terracotta clusters the JVM and is like 10x - 100x faster than native Tomcat clustering. Weird to think about without seeing it. Check out thier flash demo. terracotta.org Eclipse and (I

Need info on IPv6 support for Tomcat in RHEL and SLES distros

2007-08-29 Thread Prasad, Rahul B (STSD)
Hi All, I need information on whether IPv6 is supported on Tomcat for the following distros: Redhat Enterprise Edition Linux 4 (base version) (Tomcat 4.1) Redhat Enterprise Edition Linux 5 (base version) (Tomcat 5.5) SuSE Enterprise Linux Server 9 (base version) - SuSE Enterprise Linux Ser

Tomcat Logging Configuration

2007-08-29 Thread Ole Ersoy
Hi, I'm trying to point the catalina handler to /var/log/apache-tomcat like by configuring the logging.properties file like this: 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = /var/log/apache-tomcat/ 1catalina.org.apache.juli.FileHandler.pr