Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1007

AcceptHeaderByFileSuffixFilter has public fields which is not allowed by CDI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • 3.0.7.Final
    • 3.0.6.Final
    • jaxrs
    • None

      We are building RESTFul applications using RESTEasy framework. All our applications deploy fine in Wildfly Beta 8.0.0.Beta. When we are trying to deploy the exact same applications in 8.0.0.CR1 we are getting the following exception:

      16:27:44,276 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."TestControllerWebApp.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."TestControllerWebApp.war".WeldStartService: Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000075: Normal scoped managed bean implementation class has a public field: [EnhancedAnnotatedFieldImpl] public org.jboss.resteasy.core.AcceptHeaderByFileSuffixFilter.languageMappings
      at org.jboss.weld.bean.ManagedBean.checkBeanImplementation(ManagedBean.java:218)
      at org.jboss.weld.bean.AbstractClassBean.internalInitialize(AbstractClassBean.java:74)
      at org.jboss.weld.bean.ManagedBean.internalInitialize(ManagedBean.java:96)
      at org.jboss.weld.bean.RIBean.initialize(RIBean.java:65)
      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$5.doWork(ConcurrentBeanDeployer.java:114)
      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$5.doWork(ConcurrentBeanDeployer.java:112)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
      ... 3 more

      We are not able to identify the cause for this. Please help.

              patriot1burke@gmail.com Bill Burke (Inactive)
              stanzelivinski Stan Zelivinski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: