5 Replies Latest reply on Dec 13, 2006 8:52 PM by Ly Le

    Seam + Tomcat + microcontainer without ejb3

    Ly Le Newbie


      I downloaded Seam 1.1CR2 and installed the jboss-seam-hibernate examples. Everything worked fine if I included hibernate-all.jar and jboss-ejb3-all.jar

      However, if I removed these 2 files and replace the hibernate-all.jar with the 4 jar files under hibernate/lib directory (ejb3-persistence.jar, hibernate3.jar, hibernate-annotations.jar, hibernate-entitymanager.jar), then I will get two ClassNotFoundException for the following class at Tomcat startup:


      The first one is due to the following configuration in log4j.xml under microcontainer/conf:
      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

      The second one is due to the component initialization of remoting

      According to Gavin in one of the topics, for Seam 1.1CR2, we can remove the jboss-ejb3-all.jar for Tomcat installation and if we do not use ejb3. That doesn't seem to be the case. Is there any other smaller jar we can use so that it won't generate any errors if we don't use ejb3?