ERROR LogManager.repositorySelector was null

2010-02-01 Thread Edwin Ansicodd
Apache Tomcat 6 on Windows Vista, using Alfresco 3.2 EE, attempt to shutdown Tomcat, Tomcat won't shut down. Shut down process starts, messages appear on console, then appears log4j Error on console window and then cpu goes to 100% or close to it, can barely move mouse, windows appears to log up.

Re: ERROR LogManager.repositorySelector was null

2010-02-01 Thread Mark Thomas
On 01/02/2010 09:58, Edwin Ansicodd wrote: > > Apache Tomcat 6 on Windows Vista, using Alfresco 3.2 EE, attempt to shutdown > Tomcat, Tomcat won't shut down. > > Shut down process starts, messages appear on console, then appears log4j > Error on console window and then cpu goes to 100% or close t

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-02-01 Thread Jesse Klaasse
In the meantime, the environment has been much more stable than it was before the move to Java 6 and the new JVM options. However, a few minutes ago, Tomcat became completely unresponsive, while the CPU usage was very low (~3%). This was on our external server, with these options: -Djavax.sql.Dat

AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread Alexander Diedler
Hello, Interesting, MaxRequestsPerChild limit is to low. How I should set the limit? I have made a downgrade to mod_jk 1.2.27 Some additionally logs from error.log: [Mon Feb 01 09:45:00 2010] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon Feb 01 09:45:00 2010] [notic

Re: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread Mark Thomas
On 01/02/2010 07:40, Alexander Diedler wrote: > 44 requests currently being processed, 1656 idle workers I doubt you have that many AJP threads available on Tomcat. AJP connector config in server.xml? mod_jk config in httpd.conf? Looks like my guess was right. Mark --

Re: ERROR LogManager.repositorySelector was null

2010-02-01 Thread Edwin Ansicodd
>Known side effect of reference clearing. Try: >-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES="false" where should I place this setting? -- View this message in context: http://old.nabble.com/ERROR-LogManager.repositorySelector-was-null-tp27401819p27402392.html Sent f

Application deployment on clusters

2010-02-01 Thread Fernando Morgenstern
Hello, I am trying to find out how can i deploy an application on all nodes at a Tomcat 6 cluster. Basically i have this on my server.xml: Does it means, that i have to move my war file to /tmp/war-deploy and it will be deployed on all nodes? I saw this post while searching on google ( htt

Re: ERROR LogManager.repositorySelector was null

2010-02-01 Thread Mark Thomas
On 01/02/2010 10:52, Edwin Ansicodd wrote: > >> Known side effect of reference clearing. Try: >> -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES="false" > > where should I place this setting? CATALINA_OPTS in setenv.bat|sh as appropriate Mark

Re: Application deployment on clusters

2010-02-01 Thread Mark Thomas
On 01/02/2010 10:52, Fernando Morgenstern wrote: > Hello, > > I am trying to find out how can i deploy an application on all nodes at a > Tomcat 6 cluster. > > Basically i have this on my server.xml: > > tempDir="/tmp/war-temp/" > deployDir="/tmp/war-dep

Embedding tomcat and bug in org.apache.catalina.startup.Catalina

2010-02-01 Thread Henning Blohm
Hi, this is a question about embedding Tomcat into an application so that it can still be configured using server.xml and web applications can be added or removed programmatically. I am using Tomcat 6.0.24. The way I tried to make it work is by instantiating an instance of Catalina, feedi

AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread Alexander Diedler
Hi Mark, I attach my current settings: In httpd.conf: ThreadLimit 1920 ThreadsPerChild 1920 MaxRequestsPerChild 1 Worker.properties worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=worker1 worker2 worker.loadbalancer.sticky_session=true worker.loadbalancer.sticky_session_force=

Re: Application deployment on clusters

2010-02-01 Thread Fernando Morgenstern
Em 01/02/2010, às 09:04, Mark Thomas escreveu: > On 01/02/2010 10:52, Fernando Morgenstern wrote: >> Hello, >> >> I am trying to find out how can i deploy an application on all nodes at a >> Tomcat 6 cluster. >> >> Basically i have this on my server.xml: >> >> >tempDir="/tm

smaller, faster tomcat?

2010-02-01 Thread Edwin Ansicodd
developing a web app on tomcat, restarting tomcat is taking up time. Is there a smaller tomcat or settings for development on tomcat that allow for faster development? -- View this message in context: http://old.nabble.com/smaller%2C-faster-tomcat--tp27404222p27404222.html Sent from the Tomca

Re: smaller, faster tomcat?

2010-02-01 Thread Aryeh M. Friedman
Edwin Ansicodd wrote: developing a web app on tomcat, restarting tomcat is taking up time. Is there a smaller tomcat or settings for development on tomcat that allow for faster development? If your not modifing the files in $CATALINA_BASE/conf then setting reloadable="true" in your Context

Re: smaller, faster tomcat?

2010-02-01 Thread Mark Thomas
On 01/02/2010 13:31, Edwin Ansicodd wrote: > > developing a web app on tomcat, restarting tomcat is taking up time. A clean Tomcat 6.0.24 install takes about 0.6 seconds to start. I have an installation in front of me now with ~50 webapps that only takes 3.5 seconds to start. Anything above that

Re: Embedded tomcat example

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/29/2010 4:41 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Embedded tomcat example >> >> That's how Tomcat typically "waits forever" before stopping, >> rather than stopp

Re: mod_jk codepage in header values

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 1/30/2010 7:56 AM, Rainer Jung wrote: > So I expect you can forward any binary garbage you like, as long as you > make sure the code putting it into the environment variables doesn't > already do any encoding or decoding. This was pretty m

RE: can't call my servlet on Tomcat 6 (Error 404)

2010-02-01 Thread hbral
n828cl wrote: > >> From: hbral [mailto:nro...@web.de] >> Subject: RE: can't call my servlet on Tomcat 6 (Error 404) >> >> i call: /download/file >> and i get the 404 error > > What's the entire URL? > > Enable the AccessLogValve in server.xml and see if the request is even > getting to Tomca

RE: can't call my servlet on Tomcat 6 (Error 404)

2010-02-01 Thread Caldarale, Charles R
> From: hbral [mailto:nro...@web.de] > Subject: RE: can't call my servlet on Tomcat 6 (Error 404) > > i called only for /download/file > when i should have called for /download/download/file as u guys told > me. Or correct the to avoid the redundancy. - Chuck THIS COMMUNICATION MAY CONTAIN C

environment entries web.xml localhost/context.xml confusion

2010-02-01 Thread che10234
Hi, I'm trying to figure out how to use/modify environment entries. I have a Tomcat5.5 application and I don't understand why the env entries appear in two different xml files, and with different values. For example, I have this env-entry in my myapp/WEB-INF/web.xml file: besjClefName /cgi/

RE: environment entries web.xml localhost/context.xml confusion

2010-02-01 Thread Caldarale, Charles R
> From: che10234 [mailto:cheni...@rogers.com] > Subject: environment entries web.xml localhost/context.xml confusion > > I don't understand why the env entries appear in > two different xml files, and with different values. Tomcat doesn't create these; the developer (or administrator) does. You

RE: environment entries web.xml localhost/context.xml confusion

2010-02-01 Thread che10234
> Tomcat doesn't create these; the developer (or administrator) does. You > have the choice of placing environment entries in either location. IIRC, > the ones in the element will supersede the ones in web.xml, > allowing the administrator to replace any the developer set without the > need o

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, On 2/1/2010 5:22 AM, Jesse Klaasse wrote: > > In the meantime, the environment has been much more stable than it was before > the move to Java 6 and the new JVM options. However, a few minutes ago, > Tomcat became completely unresponsive, whil

Re: Application deployment on clusters

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/1/2010 6:04 AM, Mark Thomas wrote: >>From a quick scan of the code: > watchDir - the directory where we watch for changes - put your WAR to > deploy here > deployDir - the directory where we install applications So, would that often be set

Re: AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander, I took at look at your log file, and everything looks good to me, honestly. There are no errors that I can see, other than the setsockopt(SO_UPDATE_ACCEPT_CONTEXT) warning that apparently accompanies every child process shutdown.\ On 2/1/2

Re: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Laird, On 1/31/2010 10:44 AM, Laird Nelson wrote: > I have Tomcat 6 running as a service on Windows 2003. > > I go to the Tomcat service monitor, choose configure, choose the Java tab, > and add: > > -XX:+HeapDumpOnOutOfMemoryError > > ...as one of

Re: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Laird Nelson
On Mon, Feb 1, 2010 at 1:32 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Have you tried the -XX:HeapDumpPath option as well? > Yes, with no results. > I suspect that your service doesn't have privileges to write to the cwd > of the java process, so it doesn't write to the fi

mod_jk connector and iis7.5

2010-02-01 Thread Luis Esquivel
Has anyone tried to make the mod_jk work with IIS7.5? Thanks! Luis Esquivel Application Development Public Employees' Retirement Assoc. of Colorado 1301 Pennsylvania Street Denver, CO 80203 303 - 837 - 6296

Re: mod_jk connector and iis7.5

2010-02-01 Thread Jordan Michaels
Just set one up about 3 minutes ago. Works great. =) Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Railo Community Distributions Luis Esquivel wrote: Has anyone tried to make the mod_jk work with IIS7.5? Thanks! Luis Esquivel Ap

"Currency code not supported", gcc 4.1, and related issues

2010-02-01 Thread Peter Smith
Hi all, Having a bit of a nightmare here. On a clean installation of CentOS 5.4 I installed Tomcat 5.5, Java 1.4.2 etc via yum. When I start up Tomcat (sites and code ported over from another server running Tomcat 5.5 and Java 1.4.2), it gives me: java.lang.IllegalArgumentException: The curren

RE: "Currency code not supported", gcc 4.1, and related issues

2010-02-01 Thread Caldarale, Charles R
> From: Peter Smith [mailto:p...@citadelsecure.com] > Subject: "Currency code not supported", gcc 4.1, and related issues > > java.lang.IllegalArgumentException: The currency code, £, is not > supported. >at java.util.Currency.getInstance(libgcj.so.7rh) That's coming from GNU Java - which i

Re: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread André Warnier
Alexander Diedler wrote: Hello, Interesting, MaxRequestsPerChild limit is to low. How I should set the limit? Unless you have an application which leaks memory, you could try setting it to zero (= unlimited) Or, since you appear to be under Windows, just comment it out, since 0 is the defau

Re: AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread André Warnier
worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=worker1 worker2 Should this not be : >> worker.loadbalancer.balance_workers=worker1,worker2 http://tomcat.apache.org/connectors-doc/reference/workers.html balance_workers - A comma separated list of workers that the load balan

Re: AW: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily Unavailable

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/1/2010 3:54 PM, André Warnier wrote: >> >>> worker.loadbalancer.type=lb >>> worker.loadbalancer.balance_workers=worker1 worker2 > > Should this not be : >>> worker.loadbalancer.balance_workers=worker1,worker2 > > http://tomcat.apache.org

Re: Tomcat dies suddenly

2010-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carl, On 1/30/2010 12:32 PM, Carl wrote: > I have had the problem on both openSuse and Slackware which has lead me > to believe the problem is in the JVM. ...or the kernel. Is there an appreciable difference between OpenSUSE and Slackware in your en

Tomcat cleaning up work folder by itself

2010-02-01 Thread Anand HS
Hi , I am facing a wierd problem that I would need help on. Here is my set up - 1. I have a exploded war file inside a folder abc-web and my context.xml points to this folder as docBase. 2. abc-web has abc-ejb.jar as a dependent library and this jar is at abc-web\WEB-INF\lib. 3. abc-ejb.jar has a

Re: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Laird Nelson
On Mon, Feb 1, 2010 at 1:35 PM, Laird Nelson wrote: > On Mon, Feb 1, 2010 at 1:32 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> Have you tried the -XX:HeapDumpPath option as well? >> > > Yes, with no results. > > >> I suspect that your service doesn't have privileges to wr

RE: Tomcat cleaning up work folder by itself

2010-02-01 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] > Subject: Tomcat cleaning up work folder by itself > > 1. I have a exploded war file inside a folder abc-web and my > context.xml points to this folder as docBase. Where is your context.xml file located? The docBase attribute is normally not allowed.

Re: Tomcat cleaning up work folder by itself

2010-02-01 Thread Anand HS
On Mon, Feb 1, 2010 at 2:23 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Anand HS [mailto:anan...@gmail.com] > > Subject: Tomcat cleaning up work folder by itself > > > > 1. I have a exploded war file inside a folder abc-web and my > > context.xml points to this folder a

RE: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Sateesh Narahari
When you view service properties, does it run under system account or did you give it a specific account to run under. You might try to use your account under 'Log On' tab and see if you get results. (Assume this works when you run this from commandline ). -Original Message- From: Laird

RE: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Caldarale, Charles R
> From: Laird Nelson [mailto:ljnel...@gmail.com] > Subject: Re: Getting a heap dump on OOME from Tomcat-as-a-service on > Windows? > > Heap dumped, but no file was produced. Searched the entire computer > for .hprof files; no results. I'm running Tomcat 6.0.24 as a service on Vista 64, and get t

Re: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?

2010-02-01 Thread Laird Nelson
On Mon, Feb 1, 2010 at 5:41 PM, Sateesh Narahari wrote: > When you view service properties, does it run under system account or did > you give it a specific account to run under. LocalService I believe. I didn't give it a specific account to run under. Best, Laird

RE: Tomcat cleaning up work folder by itself

2010-02-01 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] > Subject: Re: Tomcat cleaning up work folder by itself > > My context is located under /conf/Catalina/ > abc-web/ROOT.xml In which case the docBase attribute is not allowed, unless the webapp is located completely outside of the Tomcat directory struc

Re: Tomcat cleaning up work folder by itself

2010-02-01 Thread Anand HS
My webapp ( abc-web ) is located outside the Tomcat. Here is my server.xml On Mon, Feb 1, 2010 at 2:55 PM, Caldarale, Charles R < chuck.caldar...@unisy

64bit IIS 7 and ISAPI Connector Question

2010-02-01 Thread Luis Esquivel
Hello, Has anyone gotten the above combination to work together? (64bit IIS 7 and ISAPI connector) I get the following error: HTTP Error 500.0 - Internal Server Error Calling GetFilterVersion on ISAPI Filter "c:\\isapi_redirect.dll" failed ... Error Code 0x80070002 Any help on this would b

RE: Tomcat cleaning up work folder by itself

2010-02-01 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] > Subject: Re: Tomcat cleaning up work folder by itself > > My webapp ( abc-web ) is located outside the Tomcat. That's good, and I don't see anything amiss in your server.xml. I think we're back to how you reference these property files. Tomcat is u

Re: Tomcat cleaning up work folder by itself

2010-02-01 Thread Anand HS
One of the property files is called PasswordRules.properties. here is how it is loaded - ClassLoader cl = Thread.currentThread().getContextClassLoader(); java.net.URL url = cl.getResource("PasswordRules.properties"); System.out.println("url available"+(null!=url)); When the server first starts a

Re: 64bit IIS 7 and ISAPI Connector Question

2010-02-01 Thread Jordan Michaels
Not personally, no (which was disappointing). I'd suggest giving the 32-bit version of the connector a try. I got that one to work on a 64-bit server very quickly and I have yet to see performance issues due to it only being 32-bit. Unless you have specific 64-bit connector requirements, the 3

Trouble accessing application resources from default web app

2010-02-01 Thread Lonnie Lewis
I have an application I've deployed to a 5.5 server. It works fine if using the application name in the URL: http://.../myApp However I would like it to be my default application so I've edited the ROOT.xml file as: The application come up fine (the home page) by not supplying the "myApp" conte

How to do error page forwarding...

2010-02-01 Thread Dan Armbrust
After content has been committed? Is there a proper way to write an error page, so that it will work even when the response has already been committed? There seems to be a bug or inconsistency in how tomcat handles the error page. In Tomcat 6.0.20, if I define my error page like this in web.xml

Re: How to do error page forwarding...

2010-02-01 Thread Mark Thomas
On 02/02/2010 00:10, Dan Armbrust wrote: > After content has been committed? > > Is there a proper way to write an error page, so that it will work > even when the response has already been committed? > > There seems to be a bug or inconsistency in how tomcat handles the error page. > > In Tomca

More details required about using cacheMaxSize and cachingAllowed

2010-02-01 Thread Anand HS
Hi, Im trying to understand the significance of using the cache based attributes inside the element of Tomcat configuration. My current understanding cacheMaxSize specifies the maximum amount of static resources that can be cached in work folder for a particular Host, and Web Application . The

Trouble redeploying WAR that uses SQL Server integrated authentication

2010-02-01 Thread Eric Fikus
Hello, I have an application that is configured to use Windows integrated security to connect to a SQL Server database. This is a Grails application--I don't know if that is a factor or not. The application is packaged as a WAR file. I can deploy this application and it works as expected. How

RE: Trouble accessing application resources from default web app

2010-02-01 Thread Caldarale, Charles R
> From: Lonnie Lewis [mailto:lonnie.le...@gmail.com] > Subject: Trouble accessing application resources from default web app > > However I would like it to be my default application so I've edited the > ROOT.xml file as: > That's a bit of a risky deployment, and it won't work in Tomcat versions

RE: Tomcat cleaning up work folder by itself

2010-02-01 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] > Subject: Re: Tomcat cleaning up work folder by itself > > ClassLoader cl = Thread.currentThread().getContextClassLoader(); > java.net.URL url = cl.getResource("PasswordRules.properties"); > System.out.println("url available"+(null!=url)); > > However

Problem on Tomcat 6.0.20

2010-02-01 Thread Richard Sickler
Hi, I have a small web app that I've created using NetBeans 6.1 IDE. It works fine on my IDE/development system, but when I copy the war, (WebApplication2.war) to c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps on my Windows Server 2008 machine, and rename it to ROOT.war (There is

RE: Problem on Tomcat 6.0.20

2010-02-01 Thread Caldarale, Charles R
> From: Richard Sickler [mailto:richard.sick...@avagotech.com] > Subject: Problem on Tomcat 6.0.20 > > when I copy the war, (WebApplication2.war) to > c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps > on my Windows Server 2008 machine, and rename it to ROOT.war Unless Tomcat is sto