3 Replies Latest reply on Mar 6, 2009 3:48 AM by Alexey Koloskov

    Couldn't deploy Envers+Seam demo

    Alexey Koloskov Newbie

      Hello!
      I'am new to Jboss AS, Seam, but I want to try Envers out through Envers+Seam demo . I installed Jboss AS 5.0.1.GA but Envers+Seam demo is not deployed because of errors about missing errors, e.g. cglib, asm etc.
      I started resolving these errors and managed to deploy ear without errors, but I end up with exception when I go to http://localhost:8080/envers_seam_demo:

      javax.servlet.ServletException: java.lang.IllegalStateException: Must set application-class using <wicket:web-application /> in components.xml
       org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:74)
       org.jboss.seam.web.WicketFilter.doFilter(WicketFilter.java:74)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.wicket.web.WicketRedirectFilter.doFilter(WicketRedirectFilter.java:42)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      

      May be I use wrong Seam version 2.1.1? Please, help me run Envers+Seam demo?

      Thanks in advance,
      Alexey

        • 1. Re: Couldn't deploy Envers+Seam demo
          Alexey Koloskov Newbie

          If I deploy Envers+Seam demo out of box I get many errors the first of which is:

          21:39:15,544 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=envers_seam_demo.ear/enver
          s_seam_demo.jar#envers_seam_demo state=Create
          java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
           at org.hibernate.bytecode.cglib.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:33)
           at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:182)
           at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:160)
           at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
           at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
           at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
           at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:302)
           at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
           at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
           at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
           at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
           at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
           at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
          


          • 2. Re: Couldn't deploy Envers+Seam demo
            Adam Warski Master

            Hello,

            I haven't really tried deploying on AS5. AS 4.2 and Seam 2.1 should be fine :)

            --
            Adam

            • 3. Re: Couldn't deploy Envers+Seam demo
              Alexey Koloskov Newbie

              That is really so, on AS 4.2.3 it works perfectly.