Hi Ilya,
I think I see what the issue is, you are pointing Induction at the the
directory for the .war file, this is incorrect. The correct way to do
it is as follows:
1) Make sure to setup the IDEA artifact to NOT include your
application classes in the .war file (i.e. it should NOT go in c:/
private/java/web/induction-demo/out/artifacts/
induction_demo_war_exploded/WEB-INF/classes)
2) Next point Induction directly to where your class compiled output
goes. For example it could be c:/private/java/web/induction-demo/out/
classes or something
For example it would look like:
<java-class-path>
<compiled-directory>
<directory>c:/private/java/web/induction-demo/out/
classes</directory>
</compiled-directory>
</java-class-path>
3) It's ok to put stuff you don't need to be reloaded in c:/private/
java/web/induction-demo/out/artifacts/induction_demo_war_exploded/WEB-
INF/classes
This should fix your issue. You should be able to to now just compile
in IDEA (using Ctrl-Shift-F9) and hit F5 on the browser!
> And one more minor question...When reload application (for example
> from tomcat admin interface) in the log appears the following text
>
> INFO: Undeploying context [/induction-demo]
> 26.09.2010 16:30:51 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type
> [com.acciente.commons.loader.ReloadingClassLoader.ClassNameSet] (value
> [com.acciente.commons.loader.ReloadingClassLoader
> $ClassNameSet@54140fee]) and a value of type [java.util.HashSet]
> (value [[]]) but failed to remove it when the web application was
> stopped. To prevent a memory leak, the ThreadLocal has been forcibly
> removed.
You don't need to worry about this as far as I know.
Adi