I think i found it. In the reference docu i found:
You need to be aware of the following limitations:
? the components must be JavaBean components, they cannot be EJB3 beans (we are working on fixing this
? entities can never be hot-deloyed
? components deployed via components.xml may not be hot-deployed
? the hot-deployable components will not be visible to any classes deployed outside of WEB-INF/dev
? Seam debug mode must be enabled
This is about <core:init debug="true"/>
I've set debug=false.
The result is :
10:38:02,453 INFO [Initialization] Installing components...
10:38:02,484 INFO [Component] Component: mainWindow, scope: SESSION, type: STAT
EFUL_SESSION_BEAN, class: test.MainWindowBean, JNDI: java:com
10:38:02,484 ERROR [[/eptosiv]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: Could not create Component: mainWindow
Solution was to create a method anotated with @Remove