4 Replies Latest reply on Sep 28, 2005 7:33 AM by Gavin King

    Eclipse configurations?

    Rene Lavoie Newbie

      I been trying to get the examples to run under eclipse and I came to the conclusion that I should just give up. :)
      (I did get it partially working of course since by trying I meant spent the weekend :( )

      Now, before I spend even more time trying to configure a new Seam project in Eclipse, Id like to know that someone got it working :) And if so, if you can offer any tips.

      Thanks




        • 1. Re: Eclipse configurations?
          Gavin King Master

          Um, sure, both Thomas and I develop and test Seam in eclipse. But you havn't really given any details on what your actual problem is...

          • 2. Re: Eclipse configurations?
            Thomas Heute Master

            If you want an easy way, get the code from the CVS using Eclipse (tagged or HEAD) there are the eclipse files in it. So your project will be automatically configured

            • 3. Re: Eclipse configurations?
              Rene Lavoie Newbie

              I kind of solved a lot of my problems while trying to write up this post. :)

              Since you guys used Eclipse to create the examples, I am curious if you tried the JSR220ORM plugin and/or if you were using any JSF plugins.

              I am still getting some errors running the Booking example test. I tried copying the embedded-ejb conf and lib over to the booking's WEB-INF as well as set seam.properties but that didn't help and breaks the app at next deployment in JBoss.

              The error stack for the TestNG is:
              INFO 27-09 19:20:30,687 (Ejb.java:startup:39) -starting the embedded EJB container
              FAILED: org.jboss.seam.mock.SeamTest.init()
              java.lang.RuntimeException: cannot find default.persistence.properties
              at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:379)
              at org.jboss.seam.core.Ejb.startup(Ejb.java:51)
              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:13)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
              at org.jboss.seam.Component.callCreateMethod(Component.java:872)
              at org.jboss.seam.Component.newInstance(Component.java:853)
              at org.jboss.seam.Component.getInstance(Component.java:818)
              at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:67)
              at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:47)
              at org.jboss.seam.init.Initialization.init(Initialization.java:62)
              at org.jboss.seam.mock.SeamTest.init(SeamTest.java:150)
              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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:306)
              at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:282)
              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:151)
              at org.testng.TestRunner.invokeClassConfigurations(TestRunner.java:700)
              at org.testng.TestRunner.privateRun(TestRunner.java:504)
              at org.testng.TestRunner.run(TestRunner.java:480)
              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191)
              at org.testng.SuiteRunner.run(SuiteRunner.java:117)
              at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:99)
              at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)

              FAILED: org.jboss.seam.example.booking.test.BookingTest.testBookHotel()
              java.lang.NullPointerException
              at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:75)
              at org.jboss.seam.example.booking.test.BookingTest.testBookHotel(BookingTest.java:67)
              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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:306)
              at org.testng.internal.Invoker.invokeMethod(Invoker.java:343)
              at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:490)
              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:61)
              at org.testng.TestRunner.privateRun(TestRunner.java:585)
              at org.testng.TestRunner.run(TestRunner.java:480)
              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191)
              at org.testng.SuiteRunner.run(SuiteRunner.java:117)
              at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:99)
              at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)


              • 4. Re: Eclipse configurations?
                Gavin King Master

                you need embedded-ejb/conf in your classpath