Re: How and where to specify the log format in Tomcat

2006-01-23 Thread Anto Paul
On 1/23/06, Sheshadri Patel <[EMAIL PROTECTED]> wrote: > Hi All, > > How and where to enable Tomcat server to use NCSA Common or NCSA Combined > format in their log files? http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html It should be configured in the server.xml. Look for the AccessLog

How to set up tomcat with multihoming?

2006-01-23 Thread Morten Andersen
How do I use multihoming within tomcat? I need to serve several domains each with a webapplication. How is that done? Regards Morten Andersen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How to set up tomcat with multihoming?

2006-01-23 Thread Markus Schönhaber
Morten Andersen wrote: > How do I use multihoming within tomcat? > > I need to serve several domains each with a webapplication. > > How is that done? http://tomcat.apache.org/tomcat-5.5-doc/config/host.html Regards mks - To u

Re: How to set up tomcat with multihoming?

2006-01-23 Thread Morten Andersen
I've read that but still I'm pretty lost I've figured that I can create a element in the server.xml, but the Tomcat documentation doesn't really help me much more. It mentions the option to add files in the conf/[Engine]/[Appname] folder, but what should the file name be and how should it be str

Re: How to set up tomcat with multihoming?

2006-01-23 Thread Markus Schönhaber
Morten Andersen wrote: > I've read that but still I'm pretty lost > > I've figured that I can create a element in the server.xml, but Create a for each of the domains you have in server.xml. > the Tomcat documentation doesn't really help me much more. It mentions > the option to add files in th

Re: increase limit Xmx

2006-01-23 Thread Leon Rosenberg
hi richard, sorry for being 'teachy', but if you'd read carefully (:-)) you'd see that the bug only came with jdk versions greater then 1.5_02 and is also confirmed on linux and windows versions (see related bugs and comments). However, you are running on a 01 vm, which hasn't the bug, so you'd be

Re: How to capture printf() stdout to stdout_nnn.log?

2006-01-23 Thread David Delbecq
running "startup.bat > myfile.log" Le Jeudi 19 Janvier 2006 18:25, Joe Siebenmann a écrit : > Hi All, > > My System.out.println() gets logged to Tomcat's log file fine. > > I want to be able to capture the printf()s in the DLL of my > JNI to the same, or another, log file. > > If I start

RE: Setting up connection pools "on the fly"...

2006-01-23 Thread Rob Gregory
Hi Tim, Thanks for the assistance. Our basic requirement is during tomcat load/start-up to query the database (with a single manual connection) and read the available database environments that have been pre-configured. Then create these dynamically so they are available as if they had been confi

blank admin

2006-01-23 Thread kalin mintchev
hi all... i realize this is probably a retarded question but it is a retarded problem too... new installation of tomcat 5.0.30 with jdk 1.4.2. when i go to http://myserver:8080 and login as manager - no problems there. but if i go to the admin directory i get a blank page. the admin direct

In which directory and file is session data stored?

2006-01-23 Thread Julien Martin
Hello, Can anyone tell me where session data is stored in tomcat?? Thanks in advance, Julien Martin.

Re: In which directory and file is session data stored?

2006-01-23 Thread Markus Schönhaber
Julien Martin wrote: > Can anyone tell me where session data is stored in tomcat?? $CATALINA_BASE/work/[enginename]/[hostname]/[webappname] which is by default: .../work/Catalina/localhost/[webappname] Regards mks - To unsubsc

Overlapping contexts?

2006-01-23 Thread Chris Mooring
Hi All, I was just wondering if it is possible to have "overlapping contexts"? I am not sure if this will make sense so I'll try and explain it with a little example; Basically, I'd like to be able to have two *similar* URL's map to separate locations on the filesystem; Example; localhost/myapp

Re: In which directory and file is session data stored?

2006-01-23 Thread Julien Martin
Hello Markus, I wonder why my file only weighs 1ko (tldCache.ser). Is this file only to do with Tag Lib Descriptors? If I have a lot of session data where (in what file) is it stored? Julien. 2006/1/23, Markus Schönhaber <[EMAIL PROTECTED]>: > > Julien Martin wrote: > > Can anyone tell me where se

Manually setting up Tomcat5.0 as service on Windows server 2003 : some questions

2006-01-23 Thread ZedroS Schwart
Hi I'm trying to manually setting up Tomcat5.0 as a service on a Windows Server 2003. I've already set up my JAVA_HOME and CATALINA_HOME variables, as well as updated the PATH with : %JAVA_HOME%;%JAVA_HOME%\jre\bin\client;. My questions are : - should the service launch the startup.bat ? If so,

Re: In which directory and file is session data stored?

2006-01-23 Thread Markus Schönhaber
Julien Martin wrote: > I wonder why my file only weighs 1ko (tldCache.ser). Is this file only to > do with Tag Lib Descriptors? I think so. > If I have a lot of session data where (in what file) is it stored? > Julien. AFAIK session data is stored in SESSION.ser in the same directory - at least

Re: Overlapping contexts?

2006-01-23 Thread Markus Schönhaber
Chris Mooring wrote: > I was just wondering if it is possible to have "overlapping contexts"? I am > not sure if this will make sense so I'll try and explain it with a little > example; > > Basically, I'd like to be able to have two *similar* URL's map to separate > locations on the filesystem; > >

Re: In which directory and file is session data stored?

2006-01-23 Thread Julien Martin
Thanks Markus! 2006/1/23, Markus Schönhaber <[EMAIL PROTECTED]>: > > Julien Martin wrote: > > I wonder why my file only weighs 1ko (tldCache.ser). Is this file only > to > > do with Tag Lib Descriptors? > > I think so. > > > If I have a lot of session data where (in what file) is it stored? > > J

Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.

2006-01-23 Thread Gema Berdasco
Hello, For a webapp deployed on Tomcat 5.5.9 to access external resources, which we don't want to be deleted when the application is undeployed, we use the following entry on the context.xml file of the webapp: Having configured this, we can access the files under /path/to/resources throu

Re: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.

2006-01-23 Thread Markus Schönhaber
Gema Berdasco wrote: > For a webapp deployed on Tomcat 5.5.9 to access external resources, > which we don't want to be deleted when the application is undeployed, we > use the following entry on the context.xml file of the webapp: > > > > > > Having configured this, we can access the files u

RE: Overlapping contexts?

2006-01-23 Thread Chris Mooring
Hi Markus, I just have to say that you are a champ! I checked your proposed solution, and it seems to work fine. I will mess around with it a bit and see how I go. Thanks again, Chris -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 11:35 To: T

writing files with a web application

2006-01-23 Thread SOA Work
Hi, I'm working on a web application using tomcal 5.x as servlet engine. Now i have to use another java tool for generating some html files. I would like to call the main method in my java code. My question is now: 1.) am I allowed to call main methods or programms in my web applicatio? 2.)

RE: writing files with a web application

2006-01-23 Thread Peter Crowther
> From: SOA Work [mailto:[EMAIL PROTECTED] Check the Servlet Spec (version 2.4 is at http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ ) for questions of this kind. >From memory in both cases (so treat with caution): > 1.) am I allowed to call main methods or programms in my web > ap

RE: Setting up connection pools "on the fly"...

2006-01-23 Thread Tim Lucia
This sequence is typically correct (with the close portions in a finally{} block.) You could add some timing around each of these statements, and determine the exact impact. Think about the relative complexity of each of these operations - Get a context - hashed lookup - Get a datasource - hashed

RE: Setting up connection pools "on the fly"...

2006-01-23 Thread Tim Lucia
Got it. If you only need connections, you can write your own provider class which returns connections (or DataSources) based on a name-to-database mapping of your chosing. Or, if you really must provide each connection as a JNDI DataSource, I would investigate writing your own JNDI provider th

Is this a tomcat problem - jive no longer works?

2006-01-23 Thread Kevin Passey
Well I copied my jive webapp folder across - plus my jiveHome folder complete with license - exported the mysql database and reimported it to the latest version - when I go to the admin signon I get the following. Jive Forums 2.5.4 Admin Error ---

Re: multihoming examplified

2006-01-23 Thread Kurt Overberg
I've generally found that I only need one Host element in the server.xml file. The Magic is in the Catalina//ROOT.xml file. Here's whats in my tomcat/conf/Catalina/localhost/ directory: reloadable="true"> (you don't need that line- thats a custom parameter for my application)

How to diagnose a TomCat hang?

2006-01-23 Thread Dave Pullin
Thanks to Tim Lucia I found the solution to my problem. In case any one else gets this problem here's the answer. Problem Briefly: Is there anyway to figure out what TomCat is doing, or trying to do, when it hangs and does not respond to any http or https request? Problem Details: I am running T

problem with tomcat 5.5.9

2006-01-23 Thread rajesh.gannarapu
Hi, We observed that tomcat's memory footprint (not the heap size) keeps increasing if we run it for a long time under constant load. Initially it was 305 MB, but after running it for 12 hours continuously, it increased to 1153 MB. We are running the server on Red Hat Linux AS 3.0. We are usi

Re: writing files with a web application

2006-01-23 Thread Glen Mazza
Peter Crowther wrote: From: SOA Work [mailto:[EMAIL PROTECTED] Check the Servlet Spec (version 2.4 is at http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ ) for questions of this kind. From memory in both cases (so treat with caution): 1.) am I allowed to call main methods or p

Re: How to capture printf() stdout to stdout_nnn.log?

2006-01-23 Thread Glen Mazza
Le Jeudi 19 Janvier 2006 18:25, Joe Siebenmann a écrit : Hi All, My System.out.println() gets logged to Tomcat's log file fine. I want to be able to capture the printf()s in the DLL of my JNI to the same, or another, log file. printf() means you want to capture the stdout, because that's w

Re: Manually setting up Tomcat5.0 as service on Windows server 2003 : some questions

2006-01-23 Thread Glen Mazza
ZedroS Schwart wrote: Hi I'm trying to manually setting up Tomcat5.0 as a service on a Windows Server 2003. May I ask why you need to "manually" set it up? You can download the "Windows Executable" version of TC[1] and choose "install as a service" when prompted. Glen [1] http://tomcat

Re: blank admin

2006-01-23 Thread Glen Mazza
kalin mintchev escribió: hi all... i realize this is probably a retarded question but it is a retarded problem too... new installation of tomcat 5.0.30 with jdk 1.4.2. when i go to http://myserver:8080 and login as manager - no problems there. But doesn't http://myserver:8080 just take

RE: [OT] ParallelGCThreads more than cpu count

2006-01-23 Thread Caldarale, Charles R
> From: Andri Herumurti [mailto:[EMAIL PROTECTED] > Subject: ParallelGCThreads more than cpu count > > it is possible to setting XX:ParallelGCThreads over than CPU count? Yes, you get the number of GC threads you asked for. They contend for the CPUs, just as all the other threads in your system

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Darren Hall
> Not sure if your first sentence meant you found the problem, but just to > make sure it's clear, the current Servlet Spec does require that servlet > classes be in a package. > > - Chuck Doh! That's not good. Could that be the cause of the "ClassDefNotFound" error I'm getting? I've inherited

RE: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.

2006-01-23 Thread Caldarale, Charles R
> From: Gema Berdasco [mailto:[EMAIL PROTECTED] > Subject: Cannot access external resources from a webapp when > upgrading Tomcat above 5.5.9 version. > > we use the following entry on the context.xml file of the webapp: > > > className="org.apache.naming.resources.FileDirContext"/> > Y

Re: Serving up a non-JSP file

2006-01-23 Thread Glen Mazza
Bill Barker wrote: The APR connector is still a bit buggy in 5.5.12. I suggest either upgrading to 5.5.15, or disabling the APR connector. I don't know the TC source, but the stacktrace appears to show that the bug is within the Catalina code--this has happened to someone else[1] with a J

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Caldarale, Charles R
> From: Darren Hall [mailto:[EMAIL PROTECTED] > Subject: RE: (newb) Tomcat servlet mapping problem > > Is there a way I can map these servlets (in the web.xml file) so > that Tomcat can see them and execute them? Not that I'm aware of, since the application code is in violation of the spec. Ot

Re: writing files with a web application

2006-01-23 Thread Markus Schönhaber
Peter Crowther wrote: > > From: SOA Work [mailto:[EMAIL PROTECTED] > > Check the Servlet Spec (version 2.4 is at > http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ > ) for questions of this kind. > > From memory in both cases (so treat with caution): > > 1.) am I allowed to call main met

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Darren Hall
> > From: Darren Hall [mailto:[EMAIL PROTECTED] > > Subject: RE: (newb) Tomcat servlet mapping problem > > > > Is there a way I can map these servlets (in the web.xml file) so > > that Tomcat can see them and execute them? > > Not that I'm aware of, since the application code is in violation of

RE: Manually setting up Tomcat5.0 as service on Windows server 2003 : some questions

2006-01-23 Thread Caldarale, Charles R
> From: ZedroS Schwart [mailto:[EMAIL PROTECTED] > Subject: Manually setting up Tomcat5.0 as service on Windows > server 2003 : some questions > > My questions are : > - should the service launch the startup.bat ? No. > If so, what about the console output ? You'll need to adjust your logging

RE: Connection Pool Woes

2006-01-23 Thread Chris McCormack
Its poor practise to have a sql: jstl tag in production ready code. > How do you deal with this when using pure JSTL sql calls using a > connection? How does JSTL sql library release the connection at the > end of a page to ensure that connections don't get leaked? For reasons exactly like th

RE: [OT] problem with tomcat 5.5.9

2006-01-23 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: problem with tomcat 5.5.9 > > We observed that tomcat's memory footprint (not the heap size) keeps > increasing if we run it for a long time under constant load. Initially > it was 305 MB, but after running it for 12 hours continuousl

RE: Connection Pool Woes

2006-01-23 Thread Asad Habib
You should use JNDI with your connection pool to ensure that connections are being managed appropriately. - Asad On Mon, 23 Jan 2006, Chris McCormack wrote: Its poor practise to have a sql: jstl tag in production ready code. How do you deal with this when using pure JSTL sql calls using a

hopefully?

2006-01-23 Thread Jack
"Bill Barker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> After a request & response, on the keep alive connection. >> The web server starts to negotiate an SSL support by sending a Hello >> request. > It won't, since it has no reason to renegotiate. > They will (hopefully) clo

Tomcat 5.0.5 threads + log4j Mapped Diagnostic Contexts. Simultaneous clients access problem.

2006-01-23 Thread Yefym Dmukh
Hi folks, here is a description of the current situation we have releasing the logging component. Prehistory: Using the log4j mapped diagnostic context dump the application specific information into the log files. Details: http://logging.apache.org/log4j/docs/api/org/apache/log4j/MDC.html Th

RE: Tomcat 5.0.5 threads + log4j Mapped Diagnostic Contexts. Simultaneous clients access problem.

2006-01-23 Thread Caldarale, Charles R
> From: Yefym Dmukh [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.0.5 threads + log4j Mapped Diagnostic > Contexts. Simultaneous clients access problem. > > "In a typical multithreaded implementation of such a > system, different threads will handle different clients." This is only true at a s

Related to msg "unprotected data transfer on ssl port"

2006-01-23 Thread Jack
I forgot at that time, what I did to tomcat. but it was true. >SSL connector is defined on 8443 for my tomcat 5.5.12. >https://localhost:8443/ >no response for long time, >however, http://localhost:8443/ >I got everything, same as http://localhost/ It seems that at that time, I still don't know

Re: Manually setting up Tomcat5.0 as service on Windows server 2003 : some questions

2006-01-23 Thread Marc Richards
Wouldn't you find it easier to just install Tomcat with the 'run as a service' option? Then all you have to do is change the service that is created for you to run as a secure user and you're done. -marc --- ZedroS Schwart <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to manually setting up T

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Len Popp
On 1/23/06, Darren Hall <[EMAIL PROTECTED]> wrote: > > > From: Darren Hall [mailto:[EMAIL PROTECTED] > > > Subject: RE: (newb) Tomcat servlet mapping problem > > > > > > Is there a way I can map these servlets (in the web.xml file) so > > > that Tomcat can see them and execute them? > > > > Not tha

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Petr Hadraba
Hi, sorry for my question, but I'm googling, reading manuals and still no answer... So. The question si very simple: How can I ommit the servlet name in the URL? Ex.: I have http://localhost:8080/ServletTest/path_in_the_servlet_and arguments and I need http://localhost:8080/path_in_the_servlet

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Petr Hadraba
Hi, sorry for my question, but I'm googling, reading manuals and still no answer... So. The question si very simple: How can I ommit the servlet name in the URL? Ex.: I have http://localhost:8080/ServletTest/path_in_the_servlet_and arguments and I need http://localhost:8080/path_in_the_servlet

RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days

2006-01-23 Thread Monica Wu
Thank you for your input, Aparna! Based on Chunk and Aparna's suggestion, I changed PermGen/Heap parameters to be 128M/256M. It worked well on the following day too. However, Friday's traffic is usually light. I am not sure these new parameter values would fix this problem. Instead of keeping

Capturing JNI DLL printf()s to Tomcat logfile

2006-01-23 Thread Joe Siebenmann
Hi All, I want to be able to capture the printf()s in my JNI DLL to a logfile in Tomcat. I'm using jakarta-tomcat-5.5.9 and Java 1.5 on Windows XP. I'd rather use something that's built-into Tomcat.. Commons Logging or the JDK logging. Something "simple" if there is such a thing.. If I have to

Re: Connection Pool Woes

2006-01-23 Thread Alex Turner
I'll just point out here that you actualy haven't pointed out any issue. I asked a question as to how, and you repsonded that it was an issue without ever explaing how, or if there even is a problem. Somehow I doubt the JSTL authors were so short sighted as not to release database connections pro

Re: Connection Pool Woes

2006-01-23 Thread Alex Turner
How does registering my pooling datasource with a naming directory help connection management? (Honest question - I really don't know) Alex. On 1/23/06, Asad Habib <[EMAIL PROTECTED]> wrote: > You should use JNDI with your connection pool to ensure that connections > are being managed appropriat

Re: problem with tomcat 5.5.9

2006-01-23 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > We observed that tomcat's memory footprint (not the heap size) keeps > increasing if we run it for a long time under constant load. Initially > it was 305 MB, but after running it for 12 hours continuously, it > increased to 1153 MB. We are running the server on Red Hat L

mod_jk with httpd & tomcat

2006-01-23 Thread Greg Bobak
I am trying to get mod_jk to work with apache 2.0.55 and get this error on the load module: Syntax error on line 276 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/lo

Re: mod_jk with httpd & tomcat

2006-01-23 Thread Greg Bobak
I am using Tomcat 5.0.28 BTW. G. Greg Bobak <[EMAIL PROTECTED]> wrote: I am trying to get mod_jk to work with apache 2.0.55 and get this error on the load module: Syntax error on line 276 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: ld.so

RE: Connection Pool Woes

2006-01-23 Thread GB Developer
That it's registered with JNDI does not help. But perhaps what is really meant is "configure your pool through Tomcat's built-in support for DBCP (which uses JNDI)". Then you'd get whatever management of the pool that Tomcat brings (for example, when the webapp is shutdown, it will .close() the p

RE: Connection Pool Woes

2006-01-23 Thread Caldarale, Charles R
> From: Alex Turner [mailto:[EMAIL PROTECTED] > Subject: Re: Connection Pool Woes > > How does registering my pooling datasource with a naming directory > help connection management? It's doesn't - the JNDI suggestion is a red herring. Even with connection pooling, you still have to explicitly

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Caldarale, Charles R
> From: Petr Hadraba [mailto:[EMAIL PROTECTED] > Subject: Re: (newb) Tomcat servlet mapping problem > > How can I ommit the servlet name in the URL? Your application must become the default app. To do this, it must be named ROOT (case sensitive). You can achieve this by: 1) replacing the cont

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Darren Hall
> On 1/23/06, Darren Hall <[EMAIL PROTECTED]> wrote: > > > > From: Darren Hall [mailto:[EMAIL PROTECTED] > > > > Subject: RE: (newb) Tomcat servlet mapping problem > > > > > > > > Is there a way I can map these servlets (in the web.xml file) so > > > > that Tomcat can see them and execute them? > >

Re: mod_jk with httpd & tomcat

2006-01-23 Thread Mike Sabroff
I had the same problem a while back. I had to do some googling and find the mod_jk source. Trying to compile it was problematic and I also got the unresolved errors I had to rebuild apache with jk as part of the build in order to get it to work. I wish I could remember where I got the source a

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Darren Hall
As an add-on - I successfully mapped the Tomcat servlet example "HelloWorldServlet" to my /servlet directory successfully through my web.xml file. I did this to make sure that a servlet with no package could be deployed the way I am attempting (HelloWorldExample has no package). The ONLY error I en

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Caldarale, Charles R
> From: Darren Hall [mailto:[EMAIL PROTECTED] > Subject: RE: (newb) Tomcat servlet mapping problem > > So, my question is... why am I getting the "ClassDefNotFound" > error, and how do I correct it (or can I, given my current > configuration)? Simplistic packageless servlets may well work, but

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Petr Hadraba
Thank you very much!!! I checked it and I see the following: (now, when I know what I know) webapps/ROOT -- the default page, which is displayed after installation when I replace _this_ web application (using one of the three procedures above) I will override this default application. I will t

Re: mod_jk with httpd & tomcat

2006-01-23 Thread Greg Bobak
Hi, Thansk for the reply. I think I had found some documentation about rebuild Apache with mod_jk bound. I'll have to look again. I've been trying to rebuild mod_jk (to no avail) in hopes that would work, but keep getting this error: could not find /usr/local/apache2/bin/apxs configure:

Re: blank admin

2006-01-23 Thread kalin mintchev
> kalin mintchev escribió: >> hi all... >> i realize this is probably a retarded question but it is a retarded >> problem too... >> new installation of tomcat 5.0.30 with jdk 1.4.2. when i go to >> http://myserver:8080 >> and login as manager - no problems there. > > But doesn't http://myserv

Re: blank admin

2006-01-23 Thread Glen Mazza
kalin mintchev wrote: tomcat-users.xml: this is probably normal but i would like to mention that even if i change the order if the elements in the tomcat-users and put admin first after restarting the server they get switched back in this order... I sense tomcat-users.xml may not b

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Georg Sauer-Limbach
Darren, if I look at your original configuration SimpleServlet /simple-servlet ---snip--- then, if I am not overlooking something, the correct URL to invoke the servlet is http://localhost/simple-servlet/simple-servlet because the first "simple-servlet" is the C

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Mike Sabroff
/simple-servlet should be /simple-servlet/* Georg Sauer-Limbach wrote: Darren, if I look at your original configuration SimpleServlet /simple-servlet ---snip--- reloadable="true" debug="99"> then, if I am not overlooking something, the correct URL to invoke the

How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-23 Thread Prout John - jprout
Hi I am running a JBoss cluster, using tomcat as the Servlet engine. Apache and mod_jk provide load-balancing of requests over the machines in the cluster I need to be able to replace all the URLs in the webapp with a "Temporarily out of service" page during maintenance, and I need to do th

RE: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Darren Hall
Georg, > if I look at your original configuration > > > > > SimpleServlet > > /simple-servlet > > > ---snip--- > > reloadable="true" debug="99"> > > then, if I am not overlooking something, > the correct URL to invoke the servlet is > > http://localhost/simple-servlet

Re: How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-23 Thread Frank W. Zammetti
Hi John, A filter should do the trick for you. Have it interrogate some value somewhere (context value? static class? database?) and when it sees a particular value, redirect to your out of service page. Since your in a cluster, you have the problem of replicating this "out of service" flag to a

RE: How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-23 Thread Prout John - jprout
The problem with this solution is that the webapp really is out of service and unable to serve any pages - it's Apache that will have to serve the "Out of service" page; that's why I'm looking at mod_jk. Or were you thinking of an Apache filter, rather than a servlets filter? I don't know much abo

RE: How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-23 Thread Frank W. Zammetti
Ah, sorry, didn't get that. I was suggesting servlet filters. I don't frankly know anything about Apache filters... if it's like a servlet filter but before the request hits the app server, it sounds like it could do the trick in the same basic way though. -- Frank W. Zammetti Founder and Chief

RE: Setting up connection pools "on the fly"...

2006-01-23 Thread Rob Gregory
Cheers Tim, Not had a chance to look at your suggested code (will be doing so soon for further pointers) to be honest the question is looking more like one of JNDI rather than a connection pool/tomat/cocoon issue. Can anyone suggest a good JNDI user group (hopefully focused on both Tomcat and Co

RE: mod_jk with httpd & tomcat

2006-01-23 Thread Chong, Kwong
Hi, I don't think the issue is with tomcat (the connector is built independently, so I would concentrate on the mod_jk (binary or building of it) and it's interaction with apache. I recently built mod_jk (v 1.2.15) on sol8 from source, from my notes I had the following: cd jakarta-tomcat-connect

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Georg Sauer-Limbach
Mike Sabroff wrote: /simple-servlet should be /simple-servlet/* Does not need to. You can specify paths without wildcards, which then only match that very url. The whole story about servlet mappings (which is quite short actually) is concisely explained in section 11.2 of the Servlet specifica

Re: (newb) Tomcat servlet mapping problem

2006-01-23 Thread Georg Sauer-Limbach
Darren Hall wrote: (I wasn't sure how to configure the ResourceBundle in the code. I copied all the files the resource bundle seemed to be referring to into my /servlet directory along with the compiled HelloWorldServlet code, but it still complained on execution that it couldn't locate the reso

Re: Connection Pool Woes

2006-01-23 Thread Glen Mazza
Alex Turner wrote: Somehow I doubt the JSTL authors were so short sighted as not to release database connections properly. I'm sure they had production usage in mind when it was written, I'm just wondering how. Actually, they seemed to mostly have rapid prototyping in mind with the JSTL SQ

RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days

2006-01-23 Thread Monica Wu
As I mentioned in last email, I rolled back Tomcat 5.0 to 3.3 last Friday. It played dead again after lunch today (Monday). I had trouble restarting it - dead very soon after restart. The similar symptom to Tomcat 5.0. Later I decided to remove tomcat 5.0 and Java sdk 5.0 and J2EE 5.0 completely

RE: [OT] ParallelGCThreads more than cpu count

2006-01-23 Thread Andri Herumurti
is there any weakness if i setting like that? "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > From: Andri Herumurti [mailto:[EMAIL PROTECTED] > Subject: ParallelGCThreads more than cpu count > > it is possible to setting XX:ParallelGCThreads over than CPU count? Yes, you get the number of

RE: problem with tomcat 5.5.9

2006-01-23 Thread rajesh.gannarapu
Hi, Yeah, profiler indicates the Tomcat Objects as memory leak. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 11:25 PM To: Tomcat Users List Subject: Re: problem with tomcat 5.5.9 [EMAIL PROTECTED] wrote: > We observed that tomcat's memory

Re: hopefully?

2006-01-23 Thread Bill Barker
"Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Bill Barker" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>> After a request & response, on the keep alive connection. >>> The web server starts to negotiate an SSL support by sending a Hello >>> request. >>

RE: [OT] ParallelGCThreads more than cpu count

2006-01-23 Thread Caldarale, Charles R
> From: Andri Herumurti [mailto:[EMAIL PROTECTED] > Subject: RE: [OT] ParallelGCThreads more than cpu count > > is there any weakness if i setting like that? There will be some potential of extra overhead due to unnecessary switching and lock contention, but I would expect the effect to be rathe

[OT-ANN] Java Web Parts v1.0 beta3

2006-01-23 Thread Frank W. Zammetti
Hi all... I haven't been posting JWP release announcements here lately, and generally I will refrain from doing so, but the team just put out a new release last night and I think it has some features that might be of interest to many of you... * AjaxTags now has some new capabilities, includin

serializing java code

2006-01-23 Thread Nehal Sangoi
Hi I need to serialize my existing java code for implementing Tomcat Clustering feature. Is there any ready-made tool which does the job easily? Otherwise, manually, how can i convert my existing code into serialized format? Thanks Nehal ---

Re: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.

2006-01-23 Thread Gema Berdasco
The situation is just you`ve said. Do you know any other way to access to external resources? - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, January 23, 2006 4:08 PM Subject: RE: Cannot access external resources from a webapp w

Re: serializing java code

2006-01-23 Thread vineesh kumar
u can just impelment the serializable interface. if u want to gnerate unique IDs for each classes u can simply use the serialver tool that comes with JDK which usually resids at the $JAVA_HOME/bin On 1/24/06, Nehal Sangoi <[EMAIL PROTECTED]> wrote: > > Hi > > I need to serialize my existing java

Re: How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-23 Thread Mladen Turk
Prout John - jprout wrote: Hi I am running a JBoss cluster, using tomcat as the Servlet engine. Apache and mod_jk provide load-balancing of requests over the machines in the cluster Use mod_jk status worker. This is webapp inside Apache that allows you to manage loadbalancer members. Inside

RE: serializing java code

2006-01-23 Thread Richard Mixon
Your "code" does not really get "serialized". You just have to be sure that you are not storing any objects in the Session that are not Serializable - i.e. they must implement the interface java.io.Serializable. For many of your custom object types it may be as simple as just implementing the Seri

RE: problem with tomcat 5.5.9

2006-01-23 Thread rajesh.gannarapu
Hi, Small update on the problem mentioned We did not found any memory leak, but memory footprint is increasing. We observed that tomcat's memory footprint (not the heap size) keeps increasing if we run it for a long time under constant load. Initially it was 305 MB, but after running it for

RE: serializing java code

2006-01-23 Thread Nehal Sangoi
I do have objects that do db connections. I think i would need to dig out some more info into the direction you provided. I will look out for how to do it and work upon. Thank You.for providing useful information !! Nehal -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECT