1 2 3 4 5 6 Previous Next 89 Replies Latest reply on Dec 16, 2007 10:54 AM by nugyentv Go to original post
      • 60. Re: Seam & Maven2
        mzeijen

        I did peek at your work today. It looked pretty good. I wanted to test it now but I am not feeling that good. Hopefully I will be better tomorrow and then I will certainly test your work. But I already appreciate the work you are doing.

        I wanted to spent more time to this project. I even told you guys that I would do all that stuff. But I am doing this at home and off course a lot of stuff became between that I didn't expect to cost so much time.

        One more question: Does the unit testing work with TestNG? I got it working on one of my own prototypes, but it took some time to configure it right.

        • 61. Re: Seam & Maven2

           

          "mzeijen" wrote:
          I wanted to spent more time to this project. I even told you guys that I would do all that stuff.


          I think the project needs some more workanyway so there will be a lot of place you can help :-). And I will appriciate it.

          [quot="mzeijen"]One more question: Does the unit testing work with TestNG? I got it working on one of my own prototypes, but it took some time to configure it right.

          • 62. Re: Seam & Maven2
            fabricio.lemos

            I decided to try it out on an existing project.

            I removed all my dependencies and added jboss.seam.profiles:seam-facelets one. Maven downloaded a lot of jars, but it seems that there is not, among them, a (transitive) dependency for javax.ejb package.

            • 63. Re: Seam & Maven2

              Hello,

              I wanted to let you know that I just published support for JBoss Seam 1.1.6.GA.

              Petr Ferschmann

              • 64. Re: Seam & Maven2

                 

                "fabricio.lemos" wrote:
                I decided to try it out on an existing project.

                I removed all my dependencies and added jboss.seam.profiles:seam-facelets one. Maven downloaded a lot of jars, but it seems that there is not, among them, a (transitive) dependency for javax.ejb package.


                At first I thought that you can add dependency directly on javax.ejb. But I think you are right. The profile should at least specify which version seam works with.

                So I just added new two profiles:
                seam-ejb (depends on seam-jpa).
                seam-jpa

                So you need to add two profiles:
                seam-ejb + seam-facelets

                I hope it helped. Petr



                • 65. Re: Seam & Maven2

                  Hello,

                  I have updated the integration (http://software.softeu.cz/seam/). I have integrated new features from seamgen 1.1.6.GA (security, ...) and added support for container profiles:
                  modify jdbc.properties and profiles.xml to reflect your database / container configuration.

                  What is still missing:
                  fix support for embedded-ejb (missing jar dependency)
                  * fix problems for deploying to jboss
                  * add support for testng + embedded EJB (some support is already there)
                  * test support for weblogic, websphere and flassfish containers
                  * add support for multiproject (separate ear, jar and war)
                  * I will be very thankfull for testing/feedback.

                  Petr Ferschmann

                  • 66. Re: Seam & Maven2
                    mzeijen

                    I finally have been playing around with it a bit. I must say that I am impressed.

                    When I have remarks, bug reports or other stuff then you will certainly here from me.

                    • 67. Re: Seam & Maven2
                      fip

                      I tried your archetypes, but when I tried to run mvn jetty:run (without changing the newly created project), I ended up with the following exception.
                      Anyone else ever had this problem? I'm a bit lost at the moment on where to look for the error.

                      Cheers

                      org.apache.maven.lifecycle.LifecycleExecutionException: Failure
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
                       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
                       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
                       at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:747)
                       at org.apache.maven.cli.MavenCli.main(MavenCli.java:380)
                       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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
                       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
                       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
                       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
                      Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
                       at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:340)
                       at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:272)
                       at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:177)
                       at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
                       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
                       ... 17 more
                      Caused by: java.lang.RuntimeException: exception invoking: startup
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:112)
                       at org.jboss.seam.Component.callComponentMethod(Component.java:1835)
                       at org.jboss.seam.Component.callCreateMethod(Component.java:1783)
                       at org.jboss.seam.Component.newInstance(Component.java:1772)
                       at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:163)
                       at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:156)
                       at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:135)
                       at org.jboss.seam.init.Initialization.init(Initialization.java:452)
                       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
                       at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
                       at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
                       at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
                       at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
                       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                       at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
                       at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:120)
                       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                       at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
                       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                       at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
                       at org.mortbay.jetty.Server.doStart(Server.java:210)
                       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                       at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
                       at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:327)
                       ... 22 more
                      Caused by: java.lang.reflect.InvocationTargetException
                       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:18)
                       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
                       ... 45 more
                      Caused by: java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/unmarshalling/ElementInterceptor
                       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.<init>(BeanXMLDeployer.java:49)
                       at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.bootstrap(StandaloneBootstrap.java:80)
                       at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:91)
                       at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.main(StandaloneBootstrap.java:61)
                       at org.jboss.seam.core.Microcontainer.startup(Microcontainer.java:31)
                       ... 51 more
                      


                      • 68. Re: Seam & Maven2

                        To fip: it should be resolved now. I was trying to upgrade JBoss Microcontainer but it was not working.

                        You may need to remove part of your mave repository:
                        rm ~/.m2/repository/jboss/* -r

                        • 69. Re: Seam & Maven2
                          fip

                          Thanks for your reply, fers, I deleted the jboss artifacts from my repository an created a new project using your archetype. Now I get a bit further but run into another exception, is there anything else that might not be up-to-date and should be deleted from the local repository?

                          org.apache.maven.lifecycle.LifecycleExecutionException: Failure
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
                           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
                           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
                           at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:747)
                           at org.apache.maven.cli.MavenCli.main(MavenCli.java:380)
                           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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
                           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
                           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
                           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
                          Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
                           at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:340)
                           at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:272)
                           at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:177)
                           at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
                           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
                           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
                           ... 17 more
                          Caused by: java.lang.IllegalStateException: Failed to create schema loader: org.apache.xerces.dom.DOMXSImplementationSourceImpl
                           at org.jboss.xb.binding.Util.getXSImplementation(Util.java:420)
                           at org.jboss.xb.binding.Util.loadSchema(Util.java:269)
                           at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:103)
                           at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:90)
                           at org.jboss.kernel.plugins.deployment.xml.BeanSchemaBinding.readXsd(BeanSchemaBinding.java:997)
                           at org.jboss.kernel.plugins.deployment.xml.BeanSchemaBinding.getSchemaBinding(BeanSchemaBinding.java:211)
                           at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.<init>(BeanXMLDeployer.java:34)
                           at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.bootstrap(StandaloneBootstrap.java:65)
                           at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:87)
                           at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.main(StandaloneBootstrap.java:46)
                           at org.jboss.seam.core.Microcontainer.startup(Microcontainer.java:31)
                           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:18)
                           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
                           at org.jboss.seam.Component.callComponentMethod(Component.java:1835)
                           at org.jboss.seam.Component.callCreateMethod(Component.java:1783)
                           at org.jboss.seam.Component.newInstance(Component.java:1772)
                           at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:163)
                           at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:156)
                           at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:135)
                           at org.jboss.seam.init.Initialization.init(Initialization.java:452)
                           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
                           at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450)
                           at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1129)
                           at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
                           at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457)
                           at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                           at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
                           at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:120)
                           at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                           at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
                           at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                           at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
                           at org.mortbay.jetty.Server.doStart(Server.java:210)
                           at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
                           at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
                           at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:327)
                           ... 22 more


                          • 70. Re: Seam & Maven2

                            to fip: try the current version. It should be really fixed it this time :-)

                            There was problem with picking wrong version of xercesImpl.jar (2.6.x instead of 2.7.x). But everything was working on my computer.

                            I hope it helps.

                            • 71. Re: Seam & Maven2
                              fip

                              Thanks fers, works now like a charm.
                              Keep up the good work!

                              • 72. Re: Seam & Maven2
                                ido_tamir

                                Yes it http://software.softeu.cz/seam works very well.
                                Thank you very much.

                                Are there any plans to add deployment to Jboss (maybe even exploded to the archetypes)?


                                Thank you very much

                                ido

                                • 73. Re: Seam & Maven2
                                  mzeijen

                                   

                                  "ido_tamir" wrote:
                                  Are there any plans to add deployment to Jboss (maybe even exploded to the archetypes)?


                                  If I may answer for Fers: Yep

                                  I already discussed with Fers that I would try to get the embeddable ejb3 things working (within testng and the microcontainer). After getting more and more insane trying to figure out the Jboss CVS (it is hell in there) to get the ejb3 project and all it dependencies, I discovered that CVS isn't used anymore and that the project is moved to SVN. I here by want to thank those people that keep the jboss.org site up to date ;). Now that I checked out the SVN project I feel that things are becoming much easier. I am not there yet but very soon I will have my own compiled embeddable ejb3 lib.




                                  • 74. Re: Seam & Maven2
                                    mzeijen

                                    I wonder how the JBoss developers develop... I have been trying to build the ejb3 library from the Jboss_4_0_5_GA Tag (SVN) for some time now. But there are just errors in the other projects that are unsolvable.

                                    Can't someone from the JBoss crew explain me how to do it (or referrer me)?

                                    I have been thinking of another solution to get the missing embedded ejb3 parts. Maybe I will try to rip it out of the jboss-ejb3-all.jar file and create my own jar that only contains those parts that I want. Maybe I will try that tomorrow...