Type-safe logger cannot be injected into bean with passivating scope
--------------------------------------------------------------------

                 Key: SOLDER-81
                 URL: https://issues.jboss.org/browse/SOLDER-81
             Project: Seam Solder
          Issue Type: Bug
          Components: Logging
    Affects Versions: 3.0.0.CR1
            Reporter: Dan Allen
            Assignee: Dan Allen
             Fix For: 3.0.0.Final


Type-safe logger beans cannot be injected into a bean with a passivating scope 
because the producer is not serializable. This results in the following 
exception (assume BaldEagle is a session-scoped bean):

DEPLOYMENTS IN ERROR:
  Deployment 
"vfs:///home/dallen/opt/jboss-as-6.0.0.Final/server/default/deploy/test.war_WeldBootstrapBean"
 is in error due to the following reason(s): **ERROR**, 
org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413 The 
bean Managed Bean [class org.jboss.seam.solder.test.log.BaldEagle] with 
qualifiers [@Any @Default] declares passivating scope but has non-serializable 
dependency Custom Bean with bean class class 
org.jboss.seam.solder.log.LoggerProducers and qualifiers 
[@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]

The solution is to make LoggerProducers serializable.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to