[jboss-jira] [JBoss JIRA] Reopened: (JBAS-8310) Optional dependencies that are not present for classes in a bean archive can cause the deployment to fail
Jason Greene (JIRA)
jira-events at lists.jboss.org
Thu Apr 21 14:27:23 EDT 2011
[ https://issues.jboss.org/browse/JBAS-8310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene reopened JBAS-8310:
--------------------------------
Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all unscheduled AS6 issues that are a year or less old. This will make it easier community members to find and work on them.
Future releases beyond 6.1 can be done provided a community member steps up to coordinate them.
> Optional dependencies that are not present for classes in a bean archive can cause the deployment to fail
> ---------------------------------------------------------------------------------------------------------
>
> Key: JBAS-8310
> URL: https://issues.jboss.org/browse/JBAS-8310
> Project: Legacy JBoss Application Server 6
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Weld/CDI
> Affects Versions: 6.0.0.M4
> Reporter: Stuart Douglas
> Assignee: Marius Bogoevici
> Fix For: No Release
>
>
> If you have a class with optional dependencies that are not present in a bean archive it can cause the deployment to fail if these they are part of the classes external schema (i.e. method parameters or return values, field types).
> This is because the NoClassDefFoundError will not be thrown when the class is loaded, but at the first call to getMethods() or getFields(). This causes introspection to fail and the deployment will abort.
> The best solution would probably be to call getDeclaredMethods/Fields on the class and all parent classes early, so the NoClassDefFoundError can be caught and handled.
> If the optional dependency is used by the class but not part of the schema the deployment will work as expected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list