do i have to guess or is it possible to have a detailed log output. The server must have a reason to refuse my bean. Why doesnt it output anything?
A NoClassDefFound-Exception is theoretically possible, so i added a jboss-deployment-structure.xml to the ear-project, (path EarContent\WEB-INF). It had no effect.
<jboss-deployment-structure>
<deployment>
<dependencies>
<!-- Add dependency on log4j, this is not automatic dependency, it has to be explicitly defined, like follows: -->
<module name="org.apache.log4j" />
</dependencies>
</deployment>
</jboss-deployment-structure>