3 Replies Latest reply on Mar 17, 2009 12:14 PM by Nicklas Karlsson

    How to run Web Beans Examples ?

    Mac Tre Newbie

      When i try to deploy web beans example i get error :


      C:\Users\mac\Desktop\webbeans-1.0.0.BETA1\examples\numberguess>C:\Users\mac\Desktop\apache-ant-1.7.1\bin\ant.bat deploy
      Buildfile: build.xml
      
      package:
           [java] [INFO] Scanning for projects...
           [java] Downloading: http://repo1.maven.org/maven2/org/jboss/webbeans/webbeans-version-matrix/1.0.0.BETA1/webbeans-v
      ersion-matrix-1.0.0.BETA1.pom
           [java] [INFO] ------------------------------------------------------------------------
           [java] [ERROR] FATAL ERROR
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Error building POM (may not be this project's POM).
           [java]
           [java]
           [java] Project ID: org.jboss.webbeans.examples:parent:pom:1.0.0.BETA1
           [java]
           [java] Reason: Cannot find parent: org.jboss.webbeans:webbeans-version-matrix for project: org.jboss.webbeans.examp
      les:parent:pom:1.0.0.BETA1 for project org.jboss.webbeans.examples:parent:pom:1.0.0.BETA1
           [java]
           [java]
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Trace
           [java] org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.webbeans:webbeans-version-ma
      trix for project: org.jboss.webbeans.examples:parent:pom:1.0.0.BETA1 for project org.jboss.webbeans.examples:parent:pom:
      1.0.0.BETA1
           [java]     at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
           [java]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
           [java]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
           [java]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           [java]     at java.lang.reflect.Method.invoke(Method.java:597)
           [java]     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           [java]     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           [java]     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           [java]     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
           [java] Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jboss.webbeans:webbean
      s-version-matrix for project: org.jboss.webbeans.examples:parent:pom:1.0.0.BETA1 for project org.jboss.webbeans.examples
      :parent:pom:1.0.0.BETA1
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1
      370)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1
      387)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821
      )
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBu
      ilder.java:506)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
           [java]     at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
           [java]     at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
           [java]     at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
           [java]     ... 11 more
           [java] Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.webbeans:webbeans-version-matri
      x' not found in repository: Unable to download the artifact from any repository
           [java]
           [java]   org.jboss.webbeans:webbeans-version-matrix:pom:1.0.0.BETA1
           [java]
           [java] from the specified remote repositories:
           [java]   central (http://repo1.maven.org/maven2)
           [java]  for project org.jboss.webbeans:webbeans-version-matrix
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilde
      r.java:603)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1
      366)
           [java]     ... 18 more
           [java] Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact fro
      m any repository
           [java]
           [java]   org.jboss.webbeans:webbeans-version-matrix:pom:1.0.0.BETA1
           [java]
           [java] from the specified remote repositories:
           [java]   central (http://repo1.maven.org/maven2)
           [java]
           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
           [java]     at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilde
      r.java:556)
           [java]     ... 19 more
           [java] Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any re
      pository
           [java]     at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
           [java]     at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
           [java]     ... 21 more
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Total time: 1 second
           [java] [INFO] Finished at: Sun Mar 15 20:36:53 CET 2009
           [java] [INFO] Final Memory: 1M/4M
           [java] [INFO] ------------------------------------------------------------------------
      
      BUILD FAILED
      C:\Users\mac\Desktop\webbeans-1.0.0.BETA1\examples\build.xml:32: The following error occurred while executing this line:
      
      C:\Users\mac\Desktop\webbeans-1.0.0.BETA1\examples\build.xml:73: Java returned: 1
      
      Total time: 2 seconds



      how to fix it ?

        • 1. Re: How to run Web Beans Examples ?
          Pete Muir Master

          Looks like i screwed up the release. Please try adding


             <repositories>
                <repository>
                   <id>repository.jboss.org</id>
                   <name>JBoss Repository</name>
                   <url>http://repository.jboss.org/maven2</url>
                   <releases>
                      <enabled>true</enabled>
                   </releases>
                   <snapshots>
                      <enabled>false</enabled>
                   </snapshots>
                </repository>
             </repositories>



          to the examples/pom.xml (anywhere in the project element).

          • 2. Re: How to run Web Beans Examples ?
            Mac Tre Newbie

            thx dude ;) it's solve deployment problem
            but when i try to use example i get exepction:



            21:43:04,472 INFO  [JBossASKernel] Created KernelDeployment for: webbeans-translator.jar
            21:43:04,488 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,n
            ame=SentenceTranslator,service=EJB3
            21:43:04,488 INFO  [JBossASKernel]   with dependencies:
            21:43:04,503 INFO  [JBossASKernel]   and demands:
            21:43:04,519 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
            21:43:04,519 INFO  [JBossASKernel]   and supplies:
            21:43:04,519 INFO  [JBossASKernel]      jndi:webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.tr
            anslator.Translator
            21:43:04,519 INFO  [JBossASKernel]      Class:org.jboss.webbeans.examples.translator.Translator
            21:43:04,534 INFO  [JBossASKernel]      jndi:webbeans-translator/SentenceTranslator/local
            21:43:04,534 INFO  [JBossASKernel]      jndi:webbeans-translator/SentenceTranslator/remote
            21:43:04,534 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=Se
            ntenceTranslator,service=EJB3) to KernelDeployment of: webbeans-translator.jar
            21:43:04,550 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,n
            ame=TranslatorControllerBean,service=EJB3
            21:43:04,550 INFO  [JBossASKernel]   with dependencies:
            21:43:04,550 INFO  [JBossASKernel]   and demands:
            21:43:04,550 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
            21:43:04,550 INFO  [JBossASKernel]   and supplies:
            21:43:04,550 INFO  [JBossASKernel]      jndi:webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examp
            les.translator.TranslatorController
            21:43:04,566 INFO  [JBossASKernel]      Class:org.jboss.webbeans.examples.translator.TranslatorController
            21:43:04,566 INFO  [JBossASKernel]      jndi:webbeans-translator/TranslatorControllerBean/remote
            21:43:04,566 INFO  [JBossASKernel]      jndi:webbeans-translator/TranslatorControllerBean/local
            21:43:04,566 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=Tr
            anslatorControllerBean,service=EJB3) to KernelDeployment of: webbeans-translator.jar
            21:43:05,626 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,na
            me=SentenceTranslator,service=EJB3
            21:43:05,658 INFO  [EJBContainer] STARTED EJB: org.jboss.webbeans.examples.translator.SentenceTranslator ejbName: Senten
            ceTranslator
            21:43:05,767 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
            
                    webbeans-translator/SentenceTranslator/local - EJB3.x Default Local Business Interface
                    webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.translator.Translator - EJB3.x Local Bu
            siness Interface
            
            21:43:05,970 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,na
            me=TranslatorControllerBean,service=EJB3
            21:43:06,016 INFO  [EJBContainer] STARTED EJB: org.jboss.webbeans.examples.translator.TranslatorControllerBean ejbName:
            TranslatorControllerBean
            21:43:06,204 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
            
                    webbeans-translator/TranslatorControllerBean/local - EJB3.x Default Local Business Interface
                    webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examples.translator.TranslatorController -
             EJB3.x Local Business Interface
            
            21:43:06,438 INFO  [TomcatDeployment] deploy, ctxPath=/webbeans-translator
            21:43:08,122 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
            21:43:08,154 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            21:43:08,169 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Start
            ed in 41s:855ms
            21:46:07,460 INFO  [compiler] Added Library from: vfszip:/C:/Users/mac/Desktop/jboss-5.0.1.GA/server/default/deploy/webb
            eans-translator.ear/webbeans-translator.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-core.taglib.xml
            21:46:07,491 INFO  [compiler] Added Library from: vfszip:/C:/Users/mac/Desktop/jboss-5.0.1.GA/server/default/deploy/webb
            eans-translator.ear/webbeans-translator.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-html.taglib.xml
            21:46:07,507 INFO  [compiler] Added Library from: vfszip:/C:/Users/mac/Desktop/jboss-5.0.1.GA/server/default/deploy/webb
            eans-translator.ear/webbeans-translator.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-ui.taglib.xml
            21:46:07,538 INFO  [compiler] Added Library from: vfszip:/C:/Users/mac/Desktop/jboss-5.0.1.GA/server/default/deploy/webb
            eans-translator.ear/webbeans-translator.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jstl-core.taglib.xml
            21:46:07,554 INFO  [compiler] Added Library from: vfszip:/C:/Users/mac/Desktop/jboss-5.0.1.GA/server/default/deploy/webb
            eans-translator.ear/webbeans-translator.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jstl-fn.taglib.xml
            21:46:14,745 WARN  [lifecycle] /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translato
            r' resolved to null
            javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'tran
            slator' resolved to null
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                    at javax.faces.component.UIInput.validate(UIInput.java:868)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:235)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.jav
            a:126)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java
            :70)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    at java.lang.Thread.run(Thread.java:619)
            21:46:14,839 ERROR [lifecycle] JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /home.xhtml) Exception thrown during
            phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1bc965]
            21:46:14,839 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
            javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'tran
            slator' resolved to null
                    at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
                    at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                    at javax.faces.component.UIInput.validate(UIInput.java:868)
                    at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                    at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                    at javax.faces.component.UIForm.processValidators(UIForm.java:235)
                    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
                    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
                    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.jav
            a:126)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java
            :70)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    at java.lang.Thread.run(Thread.java:619)
            
            
            


            • 3. Re: How to run Web Beans Examples ?
              Nicklas Karlsson Master

              Tried JBoss 5.0.1 and running the ant update in jboss-as to make sure your server side bling-bling is up to date?