[
https://issues.jboss.org/browse/AS7-708?page=com.atlassian.jira.plugin.sy...
]
jaikiran pai commented on AS7-708:
----------------------------------
{quote}
So the logic here is: JBoss AS 7 is trying to load the class to see what annotations it
has, because if it has annotations like @ManagedBean or @Stateless then JBoss AS 7 needs
to prepare it for injection/something?
{quote}
I think I was a bit vague when I mentioned that
org.metawidget.jsp.tagext.html.spring.SpringMetawidgetTag being eligible for annotation
scanning. A EE module class (org.metawidget.jsp.tagext.html.spring.SpringMetawidgetTag is
considered one as per spec) is eligible for various other things other than annotation
scanning. It's eligible for Java EE resource injection for example (@EJB, @Resource
etc... on fields/methods)
{quote}
Could we perhaps say that 'being unable to determine if an eligible class has
annotations' and 'being unable to act upon the annotations defined in an eligible
class' are (subtly) different things? That the first could be a warning and the latter
an error? Because presumably many classes are 'eligible' and this is going to
cause problems for JARs with optional dependencies?
{quote}
There's a fixed list of classes (type of classes) which are eligible for such resource
injection. This is defined in the Java EE6 platform spec. Tag libraries (like this spring
one) belong to that set.
Having said that, I do think it would be good to have a feature which would allow skipping
certain jars (or maybe even more fine grained) from deployment processing.
Ability to specify classloading exceptions to ignore similar to
scanning-deployers-jboss-beans.xml
--------------------------------------------------------------------------------------------------
Key: AS7-708
URL:
https://issues.jboss.org/browse/AS7-708
Project: Application Server 7
Issue Type: Bug
Reporter: Jason Porter
Assignee: David Lloyd
Attachments: catch-demo.war
We need to be able to specify exceptions to ignore during classpath scanning. This was
available in AS6, we need it in AS7, or something similar. Please see
https://issues.jboss.org/browse/SEAMFORGE-156
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira