ok...
I can't seem to fix it
read this bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4950148
(and there are more on the bug list)
we do this:
// Load components used by all applications
for (Enumeration e = getClass().getClassLoader().getResources(
"wicket.properties"); e.hasMoreElements();)
{
InputStream is = null;
try
{
final URL url = (URL)e.nextElement();
final Properties properties = new Properties();
is = url.openStream();
properties.load(is);
initializeComponents(properties);
}
finally
{
log.info("closing input");
if(is != null) is.close();
}
}
and at the moment this line is executed:
is = url.openStream();
we are in the hands of the GarbageCollector/Finalizer..
Because under water (Very very deep) a JarEntry/JarFile is opened
and those are only closed by the finalizer.. (when that happens)
we can't close that thing... So everybody i would start voting for that
one...
johan
Scott Sauyet wrote:
This may be off-topic and really belong on some Tomcat list, but if
anyone here has a suggestion, please let me know.
I'm doing an awful lot of update-compile-deploy cycles as I try to
learn Wicket, and Tomcat is giving me grief. Usually when I drop a
WAR file in Tomcat's webapps directory, the expanded folder is removed
and replaced with the new version. On my new 3.0 GHz laptop with 1 GB
memory, this is quite quick. For some reason this doesn't happen with
my Wicket application. Tomcat removes everything in the folder except
for lib/wicket-1.1-b3.jar. Then it doesn't expand the WAR file.
While Tomcat is running, I can't even remove this file manually. I
have to shut down Tomcat before I can test my work.
This happens whether I manually copy the file, have Ant copy it, or
let Tomct's manager take care of it.
Does anyone know why this happens, or even better, have a suggestion
for how to fix it? Maybe I'll be able to test with Jetty, but for
most of my webapps, a drop into Tomcat is close to instant
gratification. By the time I switch to the browser and refresh the
page, the application is running. Last I tried it, Jetty was not as
quick.
Please let me know what you think,
-- Scott
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user