5 Replies Latest reply on Jan 15, 2008 2:18 AM by Nicklas Karlsson

    Inc. hot deployment classloader blues

    Nicklas Karlsson Master

      I start out in JBoss Tools Seam Module by creating a new seam project (WAR), add an entity, and a backing bean method that inserts an entity and a button that calls that method => everything is inserted fine.

      Then I add a dependency from the model to the action (all this domain-driven-rich-model-stuff, you know) => NoClassDefFounderror for the action. Not surprising, since the WEB-INF/dev has it's own classloader, so I try to put everything under /dev (the entities are POJOs anyway so I would like to have them there). Edit the output folder for the model. Now I get a "java.lang.IllegalArgumentException: Unknown entity: org.domain.Concept.model.Foo".

      How come? The classes are there, the persistence.xml is there, seam.properties is there. How can you get the entire source tree available for incremental hot deployment?