[seam-issues] [JBoss JIRA] Commented: (SOLDER-47) Cannot use Solder in Glassfish 3.1

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Dec 27 16:10:17 EST 2010


    [ https://issues.jboss.org/browse/SOLDER-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572365#comment-12572365 ] 

Dan Allen commented on SOLDER-47:
---------------------------------

There's an important detail left out in the explanation here. Seam Solder registers it's own beans manually using the BeanManager#addAnnotatedType() API. See ELExtension [1] for an example. That's one reason why it doesn't require a beans.xml. This is the spec way of registering classes from third-party libraries as beans.

Also, the reason beans.xml isn't require in an extension library is because extensions are loaded as META-INF/services, which makes no mention (nor has no prerequisite) on a beans.xml file. This is a standard part of Java 6 (which can be provided for Java 5 by a spec implementation, as Weld does).

[1] https://github.com/seam/solder/blob/master/impl/src/main/java/org/jboss/seam/solder/el/ELExtension.java

> Cannot use Solder in Glassfish 3.1
> ----------------------------------
>
>                 Key: SOLDER-47
>                 URL: https://issues.jboss.org/browse/SOLDER-47
>             Project: Seam Solder
>          Issue Type: Bug
>          Components: Compliance
>            Reporter: Jason Porter
>            Assignee: Shane Bryzak
>            Priority: Blocker
>             Fix For: 3.0.0.Beta2
>
>
> Please see http://java.net/jira/browse/GLASSFISH-14808 for additional information I communicated to Siva.
> Siva has closed this bug saying it's not a bug because weld-extensions.jar doesn't have a beans.xml file, which isn't valid, it doesn't need one.  You can see the exceptions I've been fighting trying to get my catch jaxrs example running in glassfish 3.1

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list