Open GoogleCodeExporter opened 9 years ago
On Tomcat?
Original comment by kyrill...@gmail.com
on 17 Sep 2010 at 7:28
Yes, the "catalina.out" is from Tomcat's log file. I can't exactly understand
why it works on one OpenSuse linux machine and not on another. It may have
something to do with starting Tomcat with "jsvc" but I am using the same "jsvc"
compilation on both machines. And in both cases, "jsvc" runs Tomcat as a
non-root user.
A bit of a mystery why loosejar failed to invoke the "findResources" method on
the classloader.
Original comment by wayne.we...@gmail.com
on 17 Sep 2010 at 8:47
I think I may know the cause of this problem. It appears this problem happens
if an application fails to start up or if an application is manually stopped
through the mananger. Even if I manually stopped and started the application,
the problem would still happen. After stopping and restarting an application
via the Tomcat mananger, I had to restart Tomcat in order to get loosejar to
work.
Loosejar is really a great application! Thanks for your contribution.
Original comment by wayne.we...@gmail.com
on 20 Sep 2010 at 4:36
I've confirmed that the problem is Tomcat starting up with an application that
failed to start: an exception at startup prevented the application from
starting. Under this circumstance loosejar will generate the error as described
in the beginning of this thread.
Original comment by wayne.we...@gmail.com
on 20 Sep 2010 at 9:36
So, basically loosejar fails to invoke "findResources(String)" on a classloader
from a stopped application... I wonder if I should guard against such errors
with a simple try/catch... Interesting...
Original comment by kyrill...@gmail.com
on 21 Sep 2010 at 12:41
I've patched it up and uploaded 1.0.1 version. This should take care of it. Let
me know how it goes.
Original comment by kyrill...@gmail.com
on 21 Sep 2010 at 12:48
YES! IT WORKS! Thanks a lot, I really appreciate it.
I also wrote a quick little program which crunches the outputs from loosejar
and finds all those jars that are unused and I attached it here, in case anyone
doesn't feel like writing it.
Original comment by wayne.we...@gmail.com
on 21 Sep 2010 at 8:40
Attachments:
Original issue reported on code.google.com by
wayne.we...@gmail.com
on 17 Sep 2010 at 6:20