3 Replies Latest reply on Nov 10, 2006 6:15 PM by kasim

    Trouble with embedded server running

    kasim


      I know this error might not be very self explanatory .... but figured i'd ask anyway


      1:10:00,890 INFO [Component] Component: person, scope: EVENT, type: JAVA_BEAN, class: com.integrallis.ec.domain.Person
      01:10:00,895 INFO [Component] Component: helloWorld, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.integrallis.ec.business.HelloWorldAction, JNDI: helloWorld
      01:10:00,900 INFO [Lifecycle] starting up: org.jboss.seam.core.ejb
      01:10:00,900 INFO [Ejb] starting the embedded EJB container
      01:10:00,943 ERROR [[/chapter9_ec]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
      at org.jboss.seam.core.Ejb.startup(Ejb.java:39)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)


      ...

      Caused by: java.lang.InstantiationException: org.jboss.aop.microcontainer.prototype.AOPClassAdapterFactory
      at java.lang.Class.newInstance0(Class.java:335)
      at java.lang.Class.newInstance(Class.java:303)
      at org.jboss.config.plugins.AbstractConfiguration.createDef


      I have the seam.properties in the jar.

      I am using the Alpha5 version of the JBoss Embeddable

      the 1.1beta1 seam

      any ideas on the top of anyones head?

        • 1. Re: Trouble with embedded server running
          gavin.king

          Do you have the files from embedded-ejb/conf in the right place in your war?

          • 2. Re: Trouble with embedded server running
            kasim

             

            "gavin.king@jboss.com" wrote:
            Do you have the files from embedded-ejb/conf in the right place in your war?


            I tried it two different ways

            I took the files from embedded-ejb/conf on the Seam distro and tried to -

            1) Put them in WEB-INF/classes

            2) Jared them up and put them in WEB-INF/jar


            (i also unjarred the file to make sure my build script was actually correct)

            • 3. Re: Trouble with embedded server running
              kasim


              btw ... i dont have it working yet ... but i have that other problem fixed.

              Eh who knows must have missed a file i started over with the beta2 version instead today.

              Fyi - 12.3.1 says


              Seam ships with a build of the Embeddable EJB3 container in the embedded-ejb directory. To use the Embeddable EJB3 container with Seam, add the embedded-ejb/conf directory, and all jars in the lib and embedded-ejb/lib directories to your classpath. Then, add the following line to components.xml:



              there is no embedded-ejb/lib directory. They are all in the lib directory it seems.