Question

I'm using Jboss tools (3.0.0 alpha, on Eclipse 3.4) to hot deploy my war on Jboss 4.2.3. My war depends on another project (packed inside a jar) I 'm working on. But, when I save a file in this project(the jar project), Jboss Tools republish the compiled classes of the war project, but does not re deploy the classes changed in the jar project.(actually the war project is deployed "exploded" in the deploy directory, but the jar project is deployed, as a jar, in the WEB-INF/libs directory) I would like eclipse and JBoss tools to republish the classes from the jar project, like they do for the JSPs and classes inside the war project... Thank you for your help ! Anthony

Was it helpful?

Solution

For that to happen you need your jar to be a dependent utility jar so when the packaging via web tools happens it will package the jar changes too.

If that is not enough flexibility for you then consider using the Project Archives functionality of JBoss Tools which allows you to define the dependencies as you want it.

p.s. using solutions like JavaRebel does not help if the problem is about getting the proper files copied.

OTHER TIPS

Use JavaRebel. They use Java Instrumentation API (javaagent) to reload classes when they change on the file system.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top