Intellij Idea 8 & Seam

Hello guys,
I'm having a question regarding hot redeployment of seam action components. Does anyone knows if Intellij Idea 8 currently supports it?

Thanks in advance.



I think that I found a clue:

"Also, I found it quite simple to configure the output of POJO classed to /WEB-INF/dev for hot-swap of changed POJOs (yes, class structure change is supported here by seam)"

Any Idea how to configure my project on this way, cause I don't find it so simple.

Thanks in advance


Did you make it work?

I just found a suboptimal workaround, by changing the URI to 'WEB-INF/dev' in my .iml-file:

<containerElement type="module" name="%MODULE-NAME%">
             <attribute name="method" value="1" />
             <attribute name="URI" value="/WEB-INF/classes" />

But everytime I re-import my maven files it's overriden by IDEA again. Not sure yet which maven setting to change to keep it.

What I also needed to for the workaround to function properly, I had to define an ant-task (in Maven) to copy the non-class files (e.g. persistence.xml) from the /dev folder to the /classes folder:
                                 <echo>Moving non-classes to /classes</echo>
                                 <move todir="${}/exploded/WEB-INF/classes"
                                     <fileset dir="${}/exploded/WEB-INF/dev">
                                         <exclude name="**/*.class"/>

I put this into a special 'dev'-profile in maven and call it once everytime I start Tomcat. This way all the class changes are directly hot deployed when doing Make instead of having an ant-task EVERY time I want to hot deploy.

PS: I get this error:
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
org.jboss.seam.InstantiationException: Could not instantiate Seam component: PU
    at org.jboss.seam.Component.newInstance(
    at org.jboss.seam.contexts.Contexts.startup(
    at org.jboss.seam.contexts.Contexts.startup(
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: PU] Unable to configure EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.configure(
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(



Is there any easier way to enable compiling to WEB-INF/dev?

I have 4 source folders, one of which is for my hot-deployed classes. How can I set this source folder to compile to WEB-INF/dev so that Jboss will pick it up? I'm not using Maven.

Is this approach the recommended method :




Workaround is to use an Ant task to compile the classes and set it to run after compilation (right click on the Ant task -> Execute On -> After Compilation.)


Please sign in to leave a comment.