3 Replies Latest reply on Jul 25, 2006 11:27 AM by mygol

    Maven2 and Embeddable EJB3

    oranheim

      I'm trying to figure out what it takes to have the Embeddable EJB3 running in Maven2. I use JBoss 4.0.4 and Seam 1.0.1. I have turned to the Seam forum, but as my error seem to be releated to the EJB3 container I turn to the EJB3-user forum instead.

      You can read more about my issue here:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86127

      My resource configuration looks like this:

      /src/main/resources/META-INF/dvd-ds.xml
      /src/main/resources/META-INF/ejb-jar.xml
      /src/main/resources/META-INF/persistence.xml
      /src/main/resources/components.xml
      /src/main/resources/mport.sql
      /src/main/resources/seam.properties
      
      /src/test/resources/jboss-jms-beans.xml
      /src/test/resources/seam.properties
      /src/test/resources/default.persistence.properties
      /src/test/resources/jndi.properties
      /src/test/resources/security-beans.xml
      /src/test/resources/ejb3-interceptors-aop.xml
      /src/test/resources/log4j.xml
      /src/test/resources/embedded-jboss-beans.xml
      /src/test/resources/login-config.xml
      /src/test/resources/testng.xml
      


      Does the above listing look correct? Are my paths right.

      This error prone simply prohibits me to develop and test EJB3 beans. With Spring everything was so simple, but I want to back-port my whole project using JEE standards instead.

      Ove


        • 1. Re: Maven2 and Embeddable EJB3
          jc7442

          I had some problems with tests (junit) and embeddable EJB3. It was a problem due to the deployer. It seems that some resources are searched in jar files (not in directory).
          http://www.jboss.com/index.html?module=bb&op=viewforum&f=221&topicDays=0&start=240

          • 2. Re: Maven2 and Embeddable EJB3
            jc7442
            • 3. Re: Maven2 and Embeddable EJB3
              mygol

              java.lang.RuntimeException: java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.init()V
              at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
              at net.youngsoft.erp.test.EjbTest.setUp(EjbTest.java:20)
              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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
              at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
              at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
              at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
              at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
              at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
              at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
              at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
              at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
              at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
              at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
              at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
              Caused by: java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.init()V
              at org.jboss.kernel.plugins.config.xml.JavaBeanSchemaInitializer.(JavaBeanSchemaInitializer.java:96)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
              at java.lang.Class.newInstance0(Class.java:350)
              at java.lang.Class.newInstance(Class.java:303)
              at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.addSchemaInitializer(DefaultSchemaResolver.java:165)
              at org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory.addSchema(SingletonSchemaResolverFactory.java:83)
              at org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory.addSchema(SingletonSchemaResolverFactory.java:104)
              at org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory.(SingletonSchemaResolverFactory.java:64)
              at org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory.(SingletonSchemaResolverFactory.java:41)
              at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.(BeanXMLDeployer.java:53)
              at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:377)
              ... 21 more



              i miss something?