1 Reply Latest reply on Jun 8, 2009 8:25 AM by Arbi Sookazian

    build error with Seam 3 booking app

    Arbi Sookazian Master

      after doing anon svn co tonite, i'm following instructions in examples/booking/readme.txt.  I'm using JBoss 5.0.0.GA and Maven 2.0.10.


      side note: as per Seam 3 install instructions from this forum, which bean validator libraries exactly are required?  I'm assuming from Hibernate Validator 4.0 as that's the RI.


      Getting following when i run 'clean explode' using cli plugin (mrdon-maven-cli-plugin):


      [INFO] Compiling 29 source files to C:\java\seam-trunk\examples\booking\ejb-jar\
      target\classes
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure
      C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
      s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
      found   : javax.enterprise.inject.spi.Bean<capture of ?>
      required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
      .User>
      
      
      
      C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
      s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
      found   : javax.enterprise.inject.spi.Bean<capture of ?>
      required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
      .User>
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.BuildFailureException: Compilation failure
      C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
      s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
      found   : javax.enterprise.inject.spi.Bean<capture of ?>
      required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
      .User>
      
      
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:580)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
      fecycle(DefaultLifecycleExecutor.java:500)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:479)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:331)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:292)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:142)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
              at org.twdata.maven.cli.ExecutePhaseCliMojo.executeCommand(ExecutePhaseC
      liMojo.java:403)
              at org.twdata.maven.cli.ExecutePhaseCliMojo.execute(ExecutePhaseCliMojo.
      java:204)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:453)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:559)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
      Goal(DefaultLifecycleExecutor.java:513)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:483)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:331)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:228)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:142)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.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.CompilationFailureException: Compilation fail
      ure
      C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
      s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
      found   : javax.enterprise.inject.spi.Bean<capture of ?>
      required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
      .User>
      
      
              at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
      Mojo.java:516)
              at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:453)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:559)
              ... 27 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 34 seconds
      [INFO] Finished at: Sun Jun 07 23:18:00 PDT 2009
      [INFO] Final Memory: 28M/50M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute '[clean, package]' on 'seam-booking'
      [INFO] Execution time: 34294 ms
      seam-booking>