3 Replies Latest reply on Oct 11, 2009 2:21 PM by Pete Muir

    Annotations in NightlyBuild

    Alexander Bell Newbie

      Hi,


      I've introduced the latest nightly build of Weld in my Application. There are some compile errors because of renamed Annotations (e.g. @DeploymentType).
      Pete told me that DeploymentType is now Policy (see http://seamframework.org/Community/DeprecatedAnnotationDeploymentType). I cannot find a Annotation named Policy.
      The Annotations @Current and @BindingType don't exsists anymore as well.
      Unfortunately I've used the org.jboss.webbeans.CurrentManager in my application but there's no CurrentManager anymore :-(


      Any suggestions?


      Thanks Alex

        • 1. Re: Annotations in NightlyBuild
          Pete Muir Master

          @DeploymentType -> @Alternative


          @Current ~> @Inject


          @BindingType -> @Qualifier


          @CurrentManger -> @Inject BeanManager manager or ctx.lookup("java:comp/BeanManager")

          • 2. Re: Annotations in NightlyBuild
            Alexander Bell Newbie

            Thanks Pete I've fixed my compile errors.
            Unfortunately I get an exception during Tomcat-startup:


            SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.jboss.webbeans.environment.servlet.Listener
            java.lang.NoClassDefFoundError: org/jboss/interceptor/registry/InterceptorRegistry
                 at org.jboss.webbeans.BeanManagerImpl.<init>(BeanManagerImpl.java:267)
                 at org.jboss.webbeans.BeanManagerImpl.newRootManager(BeanManagerImpl.java:287)
                 at org.jboss.webbeans.bootstrap.WebBeansBootstrap.startContainer(WebBeansBootstrap.java:204)
                 at org.jboss.webbeans.environment.servlet.Listener.contextInitialized(Listener.java:107)
                 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
                 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
                 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
                 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
                 at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
                 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
                 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
                 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
                 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
                 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
                 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                 at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
                 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
                 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

            • 3. Re: Annotations in NightlyBuild
              Pete Muir Master

              Please file an issue in https://jira.jboss.org/jira/browse/WELDX - I'll fix it Monday or Tuesday.