1 2 Previous Next 17 Replies Latest reply on Jun 24, 2010 8:59 AM by isonisak

    Seam 3 booking example matrix dependency ?

    isonisak

      In what repository is now org.jboss.seam:seam-version-matrix:pom:3.0.0-SNAPSHOT   ?

      This relates to example .\examples\trunk\booking in Seam V3 source code.


      [ERROR]     Non-resolvable parent POM org.jboss.seam:seam-version-matrix:3.0.0-SNAPSHOT for org.jboss.seam.examples:seam
      -examples-parent:3.0.0-SNAPSHOT: Failed to resolve POM for org.jboss.seam:seam-version-matrix:3.0.0-SNAPSHOT due to Miss
      ing:
      ----------
      1) org.jboss.seam:seam-version-matrix:pom:3.0.0-SNAPSHOT
      ----------
      1 required artifact is missing.

      for artifact:
        org.jboss.seam:seam-version-matrix:pom:3.0.0-SNAPSHOT


      from the specified remote repositories:
        repository.jboss.org (http://repo2.maven.org/maven2/, releases=true, snapshots=true),
        jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true
      ),
        oss.sonatype.org/jboss-snapshots (http://oss.sonatype.org/content/repositories/jboss-snapshots/, releases=true, snapsh
      ots=true),
        central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
      @ org.jboss.seam.examples:seam-examples-parent:3.0.0-SNAPSHOT, D:\sakari\IT\Tutorials\Seam\V3\20100604_2\examples\trunk
      \pom.xml
        • 1. Re: Seam 3 booking example matrix dependency ?
          lincolnthree

          Hi Sakari,


          Try this:


          svn co http://anonsvn.jboss.org/repos/seam/examples/trunk seam-examples



          Then:


          cd seam-examples



          And

          mvn package

          .


          The latest trunk should build - not sure about deploy, currently.

          • 2. Re: Seam 3 booking example matrix dependency ?
            lincolnthree

            sorry:


            cd seam-examples/booking-simplified/

            • 3. Re: Seam 3 booking example matrix dependency ?
              isonisak

              Hai

              In repo  http://anonsvn.jboss.org/repos/seam/examples/trunk
              is not seam-examples folder but booking, booking-simplified etc.


              After adding element <repositories> to pom.xml ( booking-simplified) with
              - http://repository.jboss.org/nexus/content/groups/public and
              - http://oss.sonatype.org/content/repositories/jboss-snapshots/

              and running

              .\examples\trunk\booking-simplified> mvn compile


                  [ERROR] COMPILATION ERROR :
                  [INFO] -------------------------------------------------------------
                  [ERROR] ...\examples\trunk\booking-simplified\src\main\java\org\jboss\seam\examples\
                  booking\booking\BookingHistoryBean.java:[59,47] annotation   org.jboss.seam.examples.booking.booking.Confirmed is missing


                  => Annotation Confirmed is missing from source ?

              JDK = 1.6.017,  Maven = 3.0 beta-1

              PS.  booking-simplified was updated today but other examples are almost one year old !
              • 4. Re: Seam 3 booking example matrix dependency ?
                isonisak
                Morning

                Build (seam-booking-simplified.war) succeeded after retry.

                Deployment as "mvn deploy" fails to

                       [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy
                       (default-deploy) on project seam-booking-simplified: Error deploying artifact:
                       Failed to transfer file: http://oss.sonatype.org/content/repositories/jbos
                       s-snapshots/org/jboss/seam/examples/seam-booking-simplified/3.0.0-SNAPSHOT/
                       seam-booking-simplified-3.0.0-20100615.060546-1.war. Return code is: 401

                In JBoss logs are:

                2010-06-15 09:27:20,096 INFO  [javax.enterprise.resource.webcontainer.jsf.config]
                      (HDScanner) Initializing Mojarra 2.0.2 (FCS b10) for context '/seam-booking-simplified'
                2010-06-15 09:27:24,916 SEVERE [javax.enterprise.resource.webcontainer.jsf.config]
                      (HDScanner) Unable to process annotations for url,
                       vfs:/C:/Programs/Java/JBoss/jboss-6.0.0.20100429-M3/server/default/deploy/
                       seam-booking-simplified.war/WEB-INF/lib/seam-faces-api-3.0.0.Alpha3.jar/META-INF/faces-config.xml. 
                       Reason: java.util.zip.ZipException: error in opening zip file
                2010-06-15 09:27:24,916 SEVERE [javax.enterprise.resource.webcontainer.jsf.config]
                       (HDScanner) : java.util.zip.ZipException: error in opening zip file
                     at java.util.zip.ZipFile.open(Native Method) [:1.6.0_17]
                     at java.util.zip.ZipFile.<init>(ZipFile.java:114) [:1.6.0_17]
                     at java.util.jar.JarFile.<init>(JarFile.java:133) [:1.6.0_17]
                     at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [:1.6.0_17]
                     at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [:1.6.0_17]


                Maybe the cause is mismatch in tools ?

                          Maven = 3.0 Beta
                          Maven plugin = maven-deploy-plugin:2.5
                          JBoss = jboss-6.0.0.20100429-M3

                In .war packet I didn't find core Seam 3 ( seam-3.0.0-SNAPSHOT.jar )
                Maybe it isn't needed in this tutorial.

                Br. "Seam Hacker"
                • 5. Re: Seam 3 booking example matrix dependency ?
                  nickarls

                  Onneksi olkoon, you have stumbled upon this one

                  • 6. Re: Seam 3 booking example matrix dependency ?
                    isonisak

                    Thanks

                    I continue "hacking" with JBoss 6 M2 later.

                    Meanwhile your "rival" Oracle / NetBeans has done very streamlined
                    tutorial environment with GlassFish V3 and NetBeans (6.9)

                    http://netbeans.org/kb/docs/javaee/cdi-inject.html

                    This track belongs to "J6EE track" that is also required in
                    "Seam track".
                    • 7. Re: Seam 3 booking example matrix dependency ?
                      asookazian

                      Sakari Isoniemi wrote on Jun 15, 2010 11:04:



                      Thanks

                      I continue hacking with JBoss 6 M2 later.

                      Meanwhile your rival Oracle / NetBeans has done very streamlined
                      tutorial environment with GlassFish V3 and NetBeans (6.9)

                      http://netbeans.org/kb/docs/javaee/cdi-inject.html

                      This track belongs to J6EE track that is also required in
                      Seam track.


                      That netbeans tutorial/doc was very good.  Maybe I should check out Netbeans/GF at some point.  The mgmt console in JBoss 6 still is weak (you must use jopr or JBoss ON)...

                      • 8. Re: Seam 3 booking example matrix dependency ?
                        isonisak

                        Agree

                        I haven't tried to deploy Seam V3 examples to GlassFish V3.
                        If this succeeds (has anyone tried ?) then this NetBeans + GF is one
                        of the quickest environments to do development.

                        Then one development scenario is that developers develop against
                        GF and prod. platrform is JBoss.

                        -Sakke
                        • 9. Re: Seam 3 booking example matrix dependency ?
                          isonisak

                          Evening

                          With JBoss M2 comes a diffrent error that seems to relete seam-faces

                          http://ocpsoft.com/java/seam-faces-3-0-0-alpha2-jsf-2-0-just-got-even-easier/

                          22:28:23,871 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-booking-simplified]] Exception
                          sending context initialized event to listener instance of
                          class org.jboss.web.jsf.integration.config.
                          JBossJSFConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
                          Could not locate a BeanManager from the providers
                          org.jboss.seam.faces.beanManager.FacesServletContextBeanManagerProvider(20),
                          org.jboss.weld.extensions.beanManager
                          .DefaultJndiBeanManagerProvider(11),
                          org.jboss.weld.extensions.beanManager.DefaultJndiBeanManagerProvider(11),
                          org.jboss.weld.extensions.beanManager.JBossJndiBeanManagerProvider(10),
                          org.jboss.weld.extensions.beanManager.JBossJndiBeanManagerProvider(10)
                               at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
                               at com.sun.faces.config.ConfigureListener.
                               contextInitialized(ConfigureListener.java:223)
                               at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.
                               contextInitialized(JBossJSFConfigureListener.java:72)
                               at org.apache.catalina.core.StandardContext.
                               contextListenerStart(StandardContext.java:3926)
                               at org.apache.catalina.core.StandardContext.
                               start(StandardContext.java:4447)
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.
                               performDeployInternal(TomcatDeployment.java:315)
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.
                               performDeploy(TomcatDeployment.java:145)
                               at org.jboss.web.deployers.AbstractWarDeployment.
                               start(AbstractWarDeployment.java:462)
                               at org.jboss.web.deployers.WebModule.
                               startModule(WebModule.java:116)
                               at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
                               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:597)
                               at org.jboss.mx.interceptor.ReflectedDispatcher.
                               invoke(ReflectedDispatcher.java:157)
                               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)59)

                          The versions of jars are

                          14.06.2010  21:57           534 827 joda-time-1.6.jar
                          14.06.2010  21:56            47 708 ocpsoft-pretty-time-1.0.6.jar
                          14.06.2010  21:56            56 738 seam-faces-3.0.0.Alpha3.jar
                          14.06.2010  21:56            36 720 seam-faces-api-3.0.0.Alpha3.jar
                          14.06.2010  21:56            19 416 seam-international-3.0.0.Alpha1.jar
                          14.06.2010  21:56            14 910 seam-international-api-3.0.0.Alpha1.jar
                          10.06.2010  22:53            97 408 seam-xml-config-3.0.0.Alpha2.jar
                          14.06.2010  21:56           103 916 weld-extensions-1.0.0.Alpha2.jar
                          • 10. Re: Seam 3 booking example matrix dependency ?
                            dan.j.allen

                            Sakari,


                            This is a known issue if you deploy a WAR to JBoss AS M2 that contains EJBs (which the Seam 3 booking example contains). We have people actively working on this issue up and down the chain at JBoss, so rest assured it's not just we're not just ignoring it. Lincoln, Pete and/or I will do an announcement out when we get it all working. Stay tuned.

                            • 11. Re: Seam 3 booking example matrix dependency ?
                              nickarls

                              Yes. WAR-packed EJBs (with or without interfaces) and the ZipException have a special place in my anatomy (heart, that is), too ;-)


                              But yes, it's pick your poison with M2, M3 and SNAPSHOT currently...

                              • 12. Re: Seam 3 booking example matrix dependency ?
                                isonisak

                                Any Seam 3 demo with whatever Jboss version and whatever architecture
                                (with or without EJBs) suits to me, but now it seems that this community
                                has great difficulties to get anything to work :-)


                                • 13. Re: Seam 3 booking example matrix dependency ?
                                  dan.j.allen

                                  Sakari Isoniemi wrote on Jun 16, 2010 11:48:



                                  Any Seam 3 demo with whatever Jboss version and whatever architecture
                                  (with or without EJBs) suits to me, but now it seems that this community
                                  has great difficulties to get anything to work :-)




                                  Sakari, this is all coming together just in the past week. There's a lot of activity on the JBoss AS mailinglist/forums/jira to get all these problems ironed out for JBoss AS 6.0.0.M4...so as soon as that is released, that will become the recommended version for running Seam 3 demos.


                                  ...and the only Seam 3 aggregate demo that is working at the moment is booking-simplified.


                                  http://anonsvn.jboss.org/repos/seam/examples/trunk/booking-simplified/


                                  Though that is likely going to get moved to either booking or booking-encore and the other stuff cleaned out. Again, there's a lot of cleanups going right now. Hang tight.

                                  • 14. Re: Seam 3 booking example matrix dependency ?
                                    isonisak

                                    Evening

                                    - JSDK 1.6.17, Maven 3.0 beta
                                    - Downloaded JBoss AS nightly build this AM
                                    - Refreshed booking-simplified app from
                                         http://anonsvn.jboss.org/repos/seam/examples/trunk/booking-simplified
                                    - Compile: OK
                                    - Deployment to JBoss AS throws errors


                                    DEPLOYMENTS IN ERROR:
                                      Deployment "vfs:///C:/Programs/Java/JBoss/NightlyBuilds/20100622/jboss-6.0.0-SNAPSHOT/
                                      server/default/deploy/seam-booking.war" is in error due to the following
                                      reason(s): java.lang.IncompatibleClassChangeError: Implementing class

                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.
                                            checkComplete(DeployersImpl.java:1370) [:2.2.0.Alpha5]
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.
                                            checkComplete(DeployersImpl.java:1316) [:2.2.0.Alpha5]
                                            at org.jboss.deployers.plugins.main.MainDeployerImpl.
                                            checkComplete(MainDeployerImpl.java:968) [:2.2.0.Alpha5]
                                            at org.jboss.system.server.profileservice.deployers.
                                            MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82)
                                         [:6.0.0-SNAPSHOT]
                                            at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.
                                            checkComplete(ProfileController
                                         Context.java:125) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.
                                            doPrepare(DeploymentStartAction.java:10
                                         4) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.
                                            prepare(AbstractTwoPhaseModifi
                                         cationAction.java:100) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.ModificationSession.
                                            prepare(ModificationSession.java:87) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.AbstractActionController.
                                            internalPerfom(AbstractActionController.java:234
                                         ) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.AbstractActionController.
                                            performWrite(AbstractActionController.java:213)
                                         [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.AbstractActionController.
                                            perform(AbstractActionController.java:150) [:0.1
                                         .0.Alpha1]
                                            at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.
                                            startDeployments(AbstractDeployHandler.java:168
                                         ) [:0.1.0.Alpha1]
                                            at org.jboss.profileservice.management.upload.remoting.
                                            DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.
                                            java:74) [:6.0.0-SNAPSHOT]
                                            at org.jboss.profileservice.management.upload.remoting.
                                            DeployHandler.invoke(DeployHandler.java:148) [:6.0.0-SNAPSHOT]
                                    1 2 Previous Next