I'm curious to know if the utility jar gets packaged when you export
the web project out as a .war. Can you try that and crack it open to
see whats there?
- sachin
On Mar 7, 2006, at 6:59 AM, Jens Nicolay wrote:
Hello,
I'm trying to do something very simple but I cannot get it to work.
In Eclipse I create a new EAR project with a Web module.
In the Web application I create a servlet that simply prints "Hello"
on the response.
If I run the Web application on a Geronimo server and test the
servlet: no problem.
Now I create a new (simple) Java project, let's call it Utility, and I
define a web library dependency in my Web application to the Utility
project. In Utility project I define a simple class with a static
method that returns String.valueOf(currentTimeMillis). I change the
servlet to print the result of this method call. Everything compiles
fine.
Publish and run: nothing changed, still see "Hello".
Change the printed text back to "Hello again", run again: still
nothing changed. Take out the web library dependency, run again: I see
"Hello again".
So it seems that from the moment I introduce the web library
dependency, the servlet does not get recompiled. Am I missing
something?
I already had a look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=118622 and comment #6
seems to tell the same story with less words.
I am using Geronimo 1.0, WPT 1.0.1, JDK 1.4.2_10, Eclipse 3.1.2.
Thanks,
Jens.