10 Replies Latest reply on Jun 23, 2008 9:17 PM by Alex Kavo

    SEAM Eclipse plugin cannot deploy projects to JBoss

    Alex Kavo Novice

      Hello SEAM Friends!


      I'm trying to work with the Eclipse plugin.
      After I successfully created a new simple HelloWorld prject it deploys automatically. But while deploying an error arise:


      11:24:15,743 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/
      org.jboss.deployment.DeploymentException: url file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/jboss-seam.jar could not be opened, does it exist?
              at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)



      If I copy the jboss-seam.jar myself to the project directory I get new errors after executing the project:


      11:40:08,892 ERROR [STDERR] 23.06.2008 11:40:08 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      11:40:08,908 ERROR [STDERR] 23.06.2008 11:40:08 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      11:40:08,970 ERROR [STDERR] 23.06.2008 11:40:08 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      11:40:09,049 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      11:40:09,064 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      11:40:09,111 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      11:40:09,142 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      11:40:09,142 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      11:40:09,189 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
      11:40:09,189 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
      11:40:09,267 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
      11:40:09,267 ERROR [STDERR] 23.06.2008 11:40:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss/server/default/deploy/HelloWorld-ear.ear/HelloWorld.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
      


      Everything is new installed.


      Thanks for help.

        • 1. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
          Alex Kavo Novice

          I forgot to tell you that I use the Eclipse IDE for Java EE Developers version with the Jboss Tools and Jboss 4.2.2GA.

          • 2. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
            Mike Kuul Newbie

            Hello Axel,


            I have the same problem. The second errors come even up during deploying a project created with the seam-gen.
            Do you have any solution yet?

            • 3. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
              Jay Balunas Novice

              Hello,


              This is a known issue with JBoss tools - take a look at this JBIDE-1862, and the forum reference


              This was fixed in JBTools 2.1.0 release, but the basic fix is to modify the application.xml and remove the dependent jar entries.    Not the EJB entries.


              The second set of errors you are getting are unfortunately standard part of facelets and are harmless. 


              -Jay

              • 4. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                Alex Kavo Novice

                Hi Jay!


                Many thanks! I installed JBTools 2.1.1 but still get the same error. Only after removing this part (as you told me):



                <module>
                     <ejb>jboss-seam.jar</ejb>
                </module>



                and restarting the server it deploys without the error. Does this remove have any effect on my application? Do I have remove this XML part each time I create a new project? Hope not.


                • 5. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                  Alex Kavo Novice

                  This is very disapointing.
                  I did the things I described above and now I just wanted to create a simple entity with the plugin. I created something that calls saecke and tried to deploy it. Now I'm getting much more errors:



                  Incomplete Deployment listing:
                  
                  --- MBeans waiting for other MBeans ---
                  ObjectName: persistence.units:ear=HelloWorld-ear.ear,unitName=HelloWorld
                    State: NOTYETINSTALLED
                    I Depend On:
                      jboss.jca:name=HelloWorldDatasource,service=DataSourceBinding
                  
                  --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                  ObjectName: jboss.jca:name=HelloWorldDatasource,service=DataSourceBinding
                    State: NOTYETINSTALLED
                    Depends On Me:
                      persistence.units:ear=HelloWorld-ear.ear,unitName=HelloWorld



                  After these errors I get these errors:


                  SCHWERWIEGEND: Error Rendering View[/home.xhtml]
                  org.jboss.seam.InstantiationException: Could not instantiate Seam component: saeckeList
                          at org.jboss.seam.Component.newInstance(Component.java:1986)
                          at org.jboss.seam.Component.getInstance(Component.java:1876)
                          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                          at  
                  [..] 
                  
                  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Unknown Source)
                  Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI : java:/HelloWorldEntityManagerFactory
                          at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:247)
                          at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:79)
                          at  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                          at java.lang.reflect.Method.invoke(Unknown Source)
                          at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
                          at org.jboss.seam.Component.unwrap(Component.java:2118)
                  org.jboss.seam.Component.getInstance(Component.java:1890)
                          at org.jboss.seam.framework.EntityQuery.getEntityManager(EntityQuery.java:153)
                          at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                          at org.jboss.seam.inte
                  18:44:29,780 ERROR [STDERR] rcept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                          at org.domain.HelloWorld.session.SaeckeList_$$_javassist_1.validate(SaeckeList_$$_javassist_1.java)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                          at org.jboss.seam.Component.newInstance(Component.java:1976)
                          ... 67 more
                  Caused by: javax.naming.NameNotFoundException: HelloWorldEntityManagerFactory not bound
                          at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                          at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                          at javax.naming.InitialContext.lookup(Unknown Source)
                          at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:243)
                          ... 112 more
                  


                  I don't understand all this errors because I downloaded the latest versions of all components and still have only errors and problems. I even didn't program anything yet.
                  Is there any alternative to develop SEAM projects without all these errors?

                  • 6. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                    Jay Balunas Novice

                    I'm not sure about these errors, can you enter this in the JBoss Tools mailing list, or forum


                    • 7. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                      Pawel Wrzeszcz Novice

                      Axel Kavo wrote on Jun 23, 2008 18:52:


                      Incomplete Deployment listing:
                      
                      --- MBeans waiting for other MBeans ---
                      ObjectName: persistence.units:ear=HelloWorld-ear.ear,unitName=HelloWorld
                        State: NOTYETINSTALLED
                        I Depend On:
                          jboss.jca:name=HelloWorldDatasource,service=DataSourceBinding
                      
                      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                      ObjectName: jboss.jca:name=HelloWorldDatasource,service=DataSourceBinding
                        State: NOTYETINSTALLED
                        Depends On Me:
                          persistence.units:ear=HelloWorld-ear.ear,unitName=HelloWorld





                      Seems you didn't deploy datasource. Select resources/helloworld-ds.xml and "Deploy to Server".


                      HTH
                      -Pawel

                      • 8. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                        Alex Kavo Novice

                        Is it possible that I don't create the project properly with the wizard? Is there any tutorial that demonstrate how to setup the project with the plugin (wizard)?

                        • 9. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                          Alex Kavo Novice

                          No, sorry.
                          Actually it is not the goal of the plugin to deploy each part of the project separated fromthe other parts. Correct me, if I'm wrong.


                          I tried to create a new project again, but this time I choosed in Configuration Default Configuration for JBoss 4.2 Runtime and the deployment is now working. But when I created the entities and generate them I see the menu items in home.seam. By clicking them I get an error message


                          The requested resource (/HelloWorld/CarsList.seam) is not available.



                          To solve it I have to write CarsList.seam with a small letter at the beginning: carsList.seam. But why? Is this a plugin bug.



                          • 10. Re: SEAM Eclipse plugin cannot deploy projects to JBoss
                            Alex Kavo Novice

                            Is there any solution concerning the problem lower vs. case letters ?