Re: RMI reaper thread prevents JVM from exiting

2010-01-26 Thread Thomas Chabaud
Le 25/01/2010 20:53, Christopher Schultz a écrit : You've reached way beyond my understanding of RMI at this point. Is it possible that, like JNDI, you might have trees of objects instead of just a flat list? In that case, you'd have to recursively unexport/unbind objects to make sure you got eve

Re: tomcat memory usage

2010-01-26 Thread Hüsnü Þentürk
As far as I know, heap memory is used by objects. On the other hand, our application has static variables and references to the objects residing in heap area. Does it mean, static variables and references of our application are stored outside of reserved 512MB area? Or, the memory outside of 512

Tomcat on Ubuntu 8.04 VPS and presumably multiple socket problems

2010-01-26 Thread fatzopilot
Hi, I switched from a Windows XP based VPS to a Ubuntu 8.04 linux machine. Both run Tomcat 6.0.18 and 2.2.8 on tcp4. I now face several problems that might be related to some low level socket issue but do not necessarily need to. I am already glad to receive some hints to further boil down the is

Re: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread Pid
On 26/01/2010 18:12, ssmith wrote: Sorry, new to Nabble. I am defining a servlet filter. I tried to use the existing wars built for Tomcat 5.0.28, but they would not deploy at all. So, yes, I rebuilt them for Tomcat 5.5.28. You should rebuild, especially if you are compiling JSPs. Yes, I

Re: FW: JNDIRealm and roleNested

2010-01-26 Thread TahitianGabriel
Hi Mark, Tomcat 6.0.24 has been released and the roleNested="true" still doesn't work with roleSearch="(member={1})" Shall I open a bug in https://issues.apache.org/bugzilla bugzilla ? regards, Gabriel. -- View this message in context: http://old.nabble.com/JNDIRealm-and-roleNested-tp2475

Re: JasperException in 6.0.24 with JSF tag

2010-01-26 Thread Mark Thomas
On 26/01/2010 13:26, Michael Heinen wrote: > Hi, > > I recently updated from Tomcat 6.0.20 to 6.0.24. > Now some jsps with jsf tags are not compiling anymore. > > Following tag results in a JasperException in 6.0.24 but compiles fine with > older versions: > > > > Question: > Should I file

Re: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Konstantin Kolinko
2010/1/26 Dan Denton : > > Can anyone point out any instances they've had where Tomcat or Tomcat with > the Oracle JDBC driver has exhibited similar behavior? Is your JDBC driver up-to-date, or as old as the Tomcat version that you are using? I once solved a thing by updating the driver. Best re

Re: Global JNDI resource loaded from a webapp

2010-01-26 Thread Mark Thomas
On 26/01/2010 07:59, Woonsan Ko wrote: > Does *global JNDI resource* mean that all implementation jars must be in > shared lib path together with the sharable interfaces? Yes. > If sharable interfaces are in the shared lib path like javax.sql.DataSource > or javax.jcr.Repository, but the real i

User Authentication via Unix passwd File

2010-01-26 Thread Fulford, William
Has anybody implemented user authentication, using Tomcat (6.0) realms, via standard old-school Unix passwd files? I've already implemented JDNIRealm (LDAP) authentication, but some of our sites aren't using LDAP yet. Doug Fulford Software Engineering Specialist (626)812-2248

RE: Tomcat access is very slow

2010-01-26 Thread Caldarale, Charles R
> From: Yu Chao [mailto:yves0...@gmail.com] > Subject: Re: Tomcat access is very slow > > it takes 5 minutes to open a homepage, but in my colleague's > computer, only 10-20 seconds. Might be network timeouts, waiting for something like DNS resolution (as someone else already suggested, I belie

Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
using my colleague's computer, means using his tomcat to run the project, not related with brower. 2010/1/27 Yu Chao > thank you. > > 1. XP > 2. 1.5.0 > 3. I have a tomcat project, which is running fast on my colleague's > computer, but very slow on mine. > 4. examples is very fast. > 5. no data

Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
thank you. 1. XP 2. 1.5.0 3. I have a tomcat project, which is running fast on my colleague's computer, but very slow on mine. 4. examples is very fast. 5. no database, but webservice. 6. IE, chrome, firefox, i tried all of them, same result. I even copied my colleague's tomcat to my computer, bu

Re: Tomcat 6.0.24 empty logs with windows (not flushed?)

2010-01-26 Thread TahitianGabriel
I've found that it's a known bug : https://issues.apache.org/bugzilla/show_bug.cgi?id=48614 https://issues.apache.org/bugzilla/show_bug.cgi?id=48614 I should have looked in bugzilla before :-). adding the following lines in the logging.properties (under the conf directory) solve the problem :

Tomcat 6.0.24 empty logs with windows (not flushed?)

2010-01-26 Thread TahitianGabriel
I've just migrated my tomcat 6.0.18 to 6.0.24 under windows. When I start tomcat, the log files are created under the $catalina_home\logs directory. But they are empty (catalina.log, localhost.log, ...). My tomcat server start correctly and the logs are displayed in the console. After a while so

RE: Grails WAR file not working

2010-01-26 Thread Caldarale, Charles R
> From: AwTIn [mailto:tanner.kl...@gmail.com] > Subject: RE: Grails WAR file not working > > Tomcat version: 5.5.7 That's over 4.5 years old, so it might be time to upgrade... > JVM: 1.5.0-b64 That's nearly 6 years old... > OS: Ubuntu Are you running a real Tomcat (one downloaded from tomcat.

RE: Grails WAR file not working

2010-01-26 Thread AwTIn
n828cl wrote: > >> From: AwTIn [mailto:tanner.kl...@gmail.com] >> Subject: Grails WAR file not working > >> What might cause this problem? > > Not telling us your exact Tomcat version, the JVM you're using, the OS > you're running on... for starters. > > You might want to look in the Tomcat

RE: Grails WAR file not working

2010-01-26 Thread Caldarale, Charles R
> From: AwTIn [mailto:tanner.kl...@gmail.com] > Subject: Grails WAR file not working > What might cause this problem? Not telling us your exact Tomcat version, the JVM you're using, the OS you're running on... for starters. You might want to look in the Tomcat logs. - Chuck THIS COMMUNICATI

Re: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread ssmith
Sorry, new to Nabble. I am defining a servlet filter. I tried to use the existing wars built for Tomcat 5.0.28, but they would not deploy at all. So, yes, I rebuilt them for Tomcat 5.5.28. Yes, I have a servlet-api.jar in the WEB-INF/lib/ and tomcat/common/lib directories. Eclipse (really MyE

RE: Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Jeffrey Janner
Dan - I'd look into why Oracle took an "improper" index (whatever that means). There is nothing in Tomcat/JDK that would mess with your queries that I'm aware of. I'd also investigate all the standard reasons why Oracle recomputes explain plans for queries - most of which are related to the query.

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

2010-01-26 Thread Peter Crowther
2010/1/26 Leon Rosenberg > Another customer of mine was playing with gc settings for nearly a > year, because his tomcats collection times went higher and higher, and > after a short look at the heap dump with jmap and jhat, we found out > that he had 100.000.000 uncollectable garbage objects in

Re: Tomcat access is very slow

2010-01-26 Thread Konstantin Kolinko
2010/1/26 Yu Chao : > sorry for my later response because I reinstalled my computer... the > situation is still slow, I got mad... 1. Your operating system = ? 2. Your Java runtime vendor and its version = ? 3. What are you trying to do, step by step. At what step do you observe the delays? 4. Is

Grails WAR file not working

2010-01-26 Thread AwTIn
I have a WAR file created by Grails Web Framework that should (and has) worked over the Internet simply by placing the file in the Tomcat 'webapps' directory. When I place the WAR file and restart the server, the file is expanded correctly into a directory, but when I browse to its URL, I get an

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

2010-01-26 Thread Leon Rosenberg
On Tue, Jan 26, 2010 at 4:50 PM, Jesse Klaasse wrote: > > Hi Chuck, thanks for your extensive comments about the JVM options.. > On a site note... I have made the observation that the JVM is performing best without any explicit gc settings. Most time explicit GC settings just cause havoc (fixes s

Tomcat/JDBC Thin Client and Oracle SQL Parsing

2010-01-26 Thread Dan Denton
Hello all. Several days ago we saw some strange behavior with an Oracle database after the restart of a tomcat webapp. Immediately after restart, Oracle was processing the query for a certain page using an improper index that caused the page/query to hang. We've taken a look at the configuration

JasperException in 6.0.24 with JSF tag

2010-01-26 Thread Michael Heinen
Hi, I recently updated from Tomcat 6.0.20 to 6.0.24. Now some jsps with jsf tags are not compiling anymore. Following tag results in a JasperException in 6.0.24 but compiles fine with older versions: Stack: Caused by: org.apache.jasper.JasperException: /pages/preferences.jsp(147,100) Accordi

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

2010-01-26 Thread Jesse Klaasse
Hi Chuck, thanks for your extensive comments about the JVM options.. n828cl wrote: > >>-Xms10240m -Xmx10240m > > That's a very large heap; shouldn't hurt as long as you have enough RAM to > support it all without paging. (But see below for use with compressed > OOPs.) > This shouldn't be a

Re: tomcat memory usage

2010-01-26 Thread Peter Crowther
2010/1/26 Hüsnü Þentürk > Hi, > In our company, we are using apache tomcat as a windows service. We defined > jvm parameters "--JvmMs 512 --JvmMx 512" in service.bat. But application is > using 600,980 KB memory. I expect the application not to use more then 512 > MB. > > Can you explain me, the

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

2010-01-26 Thread Caldarale, Charles R
> From: Jesse Klaasse [mailto:jesse.klaa...@indicia.nl] > Subject: Re: Tomcat 100% CPU usage after moving from Java 5 to 6 > > I found the following article particularly useful: > http://confluence.atlassian.com/display/DOC/Garbage+Collector+Performance+Issues Unfortunately, that article is so fu

RE: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-26 Thread Caldarale, Charles R
> From: Steve Ryder [mailto:sry...@jsrsys.com] > Subject: Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to > javax.sql.DataSource > > Oops: > sry...@srv:~$ java -version > java version "1.5.0" > gij (GNU libgcj) version 4.2.3 (Ubuntu 4.2.3-2ubuntu6) A very big oops. > I need to rep

Re: tomcat memory usage

2010-01-26 Thread Pid
On 26/01/2010 15:12, Hüsnü Þentürk wrote: Hi, In our company, we are using apache tomcat as a windows service. We defined jvm parameters "--JvmMs 512 --JvmMx 512" in service.bat. But application is using 600,980 KB memory. I expect the application not to use more then 512 MB. Can you explain m

Re: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread Pid
On 26/01/2010 14:25, ssmith wrote: Spacing improves legibility. I have two filters within my web.xml--one uses a sitemesh plugin and the other uses a wikiUrlSessionIdFilter plugin---from sitemesh.jar and jboss-seam.jar respectively. If I place the two jars in tomcat/common/lib directory and s

tomcat memory usage

2010-01-26 Thread Hüsnü Þentürk
Hi, In our company, we are using apache tomcat as a windows service. We defined jvm parameters "--JvmMs 512 --JvmMx 512" in service.bat. But application is using 600,980 KB memory. I expect the application not to use more then 512 MB. Can you explain me, the reason of this stuation. Informatio

RE: Disabled use of AcceptEx() WinSock2 API" error on Windows 7

2010-01-26 Thread Caldarale, Charles R
> From: Richard Cooke [mailto:richa...@saratoga.co.za] > Subject: Re: Disabled use of AcceptEx() WinSock2 API" error on Windows > 7 > > The zip version starts without any problems using startup.bat. I did get Tomcat 6.0.20 running as a service on Win7, with a few caveats: 1) The OS is Win7 Ultim

Tomcat 5.5.28 Class loading issue

2010-01-26 Thread ssmith
I have two filters within my web.xml--one uses a sitemesh plugin and the other uses a wikiUrlSessionIdFilter plugin---from sitemesh.jar and jboss-seam.jar respectively. If I place the two jars in tomcat/common/lib directory and start the server, I get ClassNotFoundExceptions when Tomcat tries to

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

2010-01-26 Thread Jesse Klaasse
I also added the -XX:+UseCompressedOops JVM option (as suggested in the Confluence article I mentioned earlier). BTW, for those who want to know: this option is available since update 14 of JDK 6 (see also http://java.sun.com/javase/6/webnotes/6u14.html), you don't need the "Performance branch" as

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-26 Thread Steve Ryder
Oops: sry...@srv:~$ java -version java version "1.5.0" gij (GNU libgcj) version 4.2.3 (Ubuntu 4.2.3-2ubuntu6) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTIC

Re: Global JNDI resource loaded from a webapp

2010-01-26 Thread Woonsan Ko
- Original Message > From: Pid > To: users@tomcat.apache.org > Sent: Tue, January 26, 2010 12:21:20 PM > Subject: Re: Global JNDI resource loaded from a webapp > > On 26/01/2010 10:02, Woonsan Ko wrote: > > Hi All, > > > > Is it possible to configure a global JNDI resource which is l

Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
sorry for my later response because I reinstalled my computer... the situation is still slow, I got mad... 2010/1/26 Yu Chao > what ever I use localhost:8080, or direct 192.168.0.127:8080 > > 2010/1/16 Ziggy > > Is it slow when you try to access it directly using the IP address? >> >> On Fri, J

Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
what ever I use localhost:8080, or direct 192.168.0.127:8080 2010/1/16 Ziggy > Is it slow when you try to access it directly using the IP address? > > On Fri, Jan 15, 2010 at 7:54 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash:

Re: Global JNDI resource loaded from a webapp

2010-01-26 Thread Pid
On 26/01/2010 10:02, Woonsan Ko wrote: Hi All, Is it possible to configure a global JNDI resource which is loaded from a webapp? If it is defined in a webapp, it's not a global JNDI resource. So, no. p I want to keep all related libraries for the resource in a web application, not in sha

Global JNDI resource loaded from a webapp

2010-01-26 Thread Woonsan Ko
Hi All, Is it possible to configure a global JNDI resource which is loaded from a webapp? I want to keep all related libraries for the resource in a web application, not in shared library path, but I want the resource to be shared by other web applications. The primary reason is because there a

MultiViews analogon for web-apps?

2010-01-26 Thread Adrian Mueller
Hi, For Apache httpd the "MultiViews" option can be set in the configuration-file. This allows resources to be called without providing the the file-extension in the URL, e.g. the URL "http://localhost/images/myImage"; returns the file "myImage.png" in the "images" folder (same as calling "ht

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

2010-01-26 Thread André Warnier
Jesse Klaasse wrote: I have now fixed the infinite loop, and again did the update from Java 5 to Java 6. This time all seems to be working like a charm! Along with fixing the infinite loop, I have dug a little deeper into the JVM arguments. I found the following article particularly useful: http

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

2010-01-26 Thread Jesse Klaasse
I have now fixed the infinite loop, and again did the update from Java 5 to Java 6. This time all seems to be working like a charm! Along with fixing the infinite loop, I have dug a little deeper into the JVM arguments. I found the following article particularly useful: http://confluence.atlassia