I think I finally found the work-around for this. (at least it works
well so far)
I created a war target that would make a "war" folder that has
everything I need for jaring the actual war file that can be deployed
in tomcat or jetty, it also creates a "embedded-webapp" folder that is
used for embedded jetty deployment for eclipse. Turned out the
setWar() method of WebAppContext class is where it looks for the
files, but it's only my guess since there is no detailed documentation
on this method.
The only difference between this two folders is the wicket-
{version}.jar file in the WEB-INF/lib directory, I still don't know
why having that file would cause embedded jetty deployment to throw
slf4j class not found exception, and missing of that file in war file
deployment would cause WicketFilter class not found exception.
So now to deploy the webapp from eclipse, a "ant war" command is
needed for renewing the "embedded-webapp" folder. I'm thinking some
tweaking of eclipse output folder and project directories setup could
eliminate that, but I can live with that 1 extra ant task for now.
Also an important note, to reflect the change in the applet, a restart
of the browser is required. I'm guessing the applet has something to
do with the browser caching. But this isn't really a big deal.
On Apr 14, 10:35 pm, "Jianfei Liao" <
jianfeil...@gmail.com> wrote:
> I notice there is a war target in the build.xml (but it needs some small fix
> to run), and the WebAppContext class has a addWebApplications method, I
> wonder would this be one possible direction to go for solving the problem.
>