Topic
  • 1 reply
  • Latest Post - ‏2011-05-04T12:54:45Z by JasonBouknight
amithkashyap
amithkashyap
1 Post

Pinned topic IllegalArgumentException: The feature 'annotated-classes' is not a valid

‏2011-05-04T12:04:49Z |
We have a WAR file, which when deployed on WAS v7, does not throw any exception.. but on WAS v8, it throws this in SystemOut.log,

5/4/11 16:30:24:135 GMT+05:30 0000001f annotations E CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annotated-classes' is not a valid feature

What might have gone wrong ? any idea ?

Here are some information I have collected
(1) I tried enabling "AppMgmt=all" in log settings.

I see following messages in SystemOut.log

5/4/11 16:30:18:555 GMT+05:30 00000019 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: isclite [/ibm/console] [/com.ibm.ws.console.appmanageme
nt/Upload.jsp]: Initialization successful.
5/4/11 16:30:23:579 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/filter/LoginFilter.class in [ /usr/IBM
/WebSphere/AppServer/profiles/AppSrv01/wstemp/0/upload/SMDemo.war ]
5/4/11 16:30:23:580 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/SMController.class in [ /usr/IBM/WebSp
here/AppServer/profiles/AppSrv01/wstemp/0/upload/SMDemo.war ]
5/4/11 16:30:23:752 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/filter/LoginFilter.class in [ SMDemo.w
ar ]
5/4/11 16:30:23:753 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/SMController.class in http:// SMDemo.war
5/4/11 16:30:24:102 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/filter/LoginFilter.class in [ SMDemo.w
ar ]
5/4/11 16:30:24:103 GMT+05:30 0000001f annotations I ArchiveInputStreamData mapData Collision on http:// WEB-INF/classes/com/ibm/cc/smdemo/SMController.class in http:// SMDemo.war
5/4/11 16:30:24:135 GMT+05:30 0000001f annotations E CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annot
ated-classes' is not a valid feature
5/4/11 16:30:24:551 GMT+05:30 0000001f servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: isclite [/ibm/console] [/com.ibm.ws.console.appmanageme
nt/DefaultBindings.jsp]: Initialization successful.

And few selected lines from trace.log

5/4/11 16:31:01:499 GMT+05:30 00000022 ArchiveSchedu > getArchive Entry
useReflection=false
readOnly=true
validateSchema=false
5/4/11 16:31:01:499 GMT+05:30 00000022 ArchiveSchedu < getArchive Exit
com.ibm.etools.commonarchive.impl.EARFileImpl@9d3da4a (URI: /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/0/workspace/cells/ashNode01Cel
l/applications/SMDemo_war.ear/SMDemo_war.ear, lastModified: 0, size: 0, directoryEntry: <unset>, originalURI: /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/0/workspace/c
ells/ashNode01Cell/applications/SMDemo_war.ear/SMDemo_war.ear) (types: null)
5/4/11 16:31:01:499 GMT+05:30 00000022 ActivationPla 3 enhEarProps props: null
5/4/11 16:31:01:500 GMT+05:30 00000022 ActivationPla 3 saved props: null
5/4/11 16:31:01:500 GMT+05:30 00000022 ActivationPla > getDefaultComps Entry
[]
5/4/11 16:31:01:500 GMT+05:30 00000022 ActivationPla 3 getDefaultComps
moduleFile: com.ibm.etools.commonarchive.impl.WARFileImpl@9d4a4a5 (URI: SMDemo.war, lastModified: 1304506850000, size: 174574, directoryEntry: <
unset>, originalURI: SMDemo.war) (types: null)
5/4/11 16:31:01:500 GMT+05:30 00000022 ActivationPla > addCompsForWAR Entry
com.ibm.etools.commonarchive.impl.WebModuleRefImpl@9db39f3
[]
com.ibm.etools.commonarchive.impl.WARFileImpl@9d4a4a5 (URI: SMDemo.war, lastModified: 1304506850000, size: 174574, directoryEntry: <unset>, orig
inalURI: SMDemo.war) (types: null)
5/4/11 16:31:01:500 GMT+05:30 00000022 ActivationPla > containsJSFDependency Entry
5/4/11 16:31:01:680 GMT+05:30 00000022 ActivationPla < containsJSFDependency Exit
false
5/4/11 16:31:01:680 GMT+05:30 00000022 ActivationPla > containsManagedBean Entry
moduleFile=com.ibm.etools.commonarchive.impl.WARFileImpl@9d4a4a5 (URI: SMDemo.war, lastModified: 1304506850000, size: 174574, directoryEntry: , originalURI: SMDemo.war) (types: null)
5/4/11 16:31:01:723 GMT+05:30 00000022 annotations E CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annotated-classes' is not a valid feature


(2) Though it throws this exception, if I try to start the app, it gets started successfully and I can access it too.
Messages in SystemOut.log when application is started

5/4/11 17:22:01:175 GMT+05:30 0000002d AdminHelper A ADMN1009I: An attempt is made to start the SMDemo_war application.
5/4/11 17:22:01:276 GMT+05:30 0000002d CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=SMDemo_war in BLA WebSphere:blaname=SMDemo_war.
5/4/11 17:22:01:304 GMT+05:30 0000002d ApplicationMg A WSVR0200I: Starting application: SMDemo_war
5/4/11 17:22:01:305 GMT+05:30 0000002d ApplicationMg A WSVR0204I: Application: SMDemo_war Application build level: Unknown
5/4/11 17:22:01:397 GMT+05:30 0000002d annotations E CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annot
ated-classes' is not a valid feature
5/4/11 17:22:01:401 GMT+05:30 0000002d webapp I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: SMDemo.
5/4/11 17:22:01:461 GMT+05:30 0000002d WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key default_host/S
MSample
5/4/11 17:22:01:507 GMT+05:30 0000002d webcontainer I com.ibm.ws.webcontainer.VirtualHostImpl addWebApplication SRVE0250I: Web Module SMDemo has been bound to default_host[*:
9080,:80,:9443,:5060,:5061,*:443].
5/4/11 17:22:01:524 GMT+05:30 0000002d ApplicationMg A WSVR0221I: Application started: SMDemo_war
5/4/11 17:22:01:524 GMT+05:30 0000002d CompositionUn A WSVR0191I: Composition unit WebSphere:cuname=SMDemo_war in BLA WebSphere:blaname=SMDemo_war started.
5/4/11 17:22:02:109 GMT+05:30 0000001a servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: isclite [/ibm/console] [/secure/javascriptToSession.jsp
]: Initialization successful.
5/4/11 17:22:14:876 GMT+05:30 0000001a servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: SMDemo_war [/SMSample] [/ShoppingMall/login.jsp]: Initi
alization successful.
Selected messages in trace.log during start

5/4/11 17:22:01:304 GMT+05:30 0000002d ApplicationMg A WSVR0200I: Starting application: SMDemo_war
5/4/11 17:22:01:305 GMT+05:30 0000002d ApplicationMg A WSVR0204I: Application: SMDemo_war Application build level: Unknown
5/4/11 17:22:01:314 GMT+05:30 0000002d EditionHelper > isEditionSupportEnabled Entry
5/4/11 17:22:01:314 GMT+05:30 0000002d EditionHelper < isEditionSupportEnabled Exit
false
5/4/11 17:22:01:315 GMT+05:30 0000002d EditionHelper > isEditionSupportEnabled Entry
5/4/11 17:22:01:315 GMT+05:30 0000002d EditionHelper < isEditionSupportEnabled Exit
false
5/4/11 17:22:01:317 GMT+05:30 0000002d EditionHelper > isEditionSupportEnabled Entry
5/4/11 17:22:01:317 GMT+05:30 0000002d EditionHelper < isEditionSupportEnabled Exit
false
5/4/11 17:22:01:318 GMT+05:30 0000002d EditionHelper > isEditionSupportEnabled Entry
5/4/11 17:22:01:318 GMT+05:30 0000002d EditionHelper < isEditionSupportEnabled Exit
false
5/4/11 17:22:01:328 GMT+05:30 0000002d AppResourceEl > getAppData Entry
appName=SMDemo_war
5/4/11 17:22:01:328 GMT+05:30 0000002d AppResourceEl < getAppData Exit
[]
5/4/11 17:22:01:333 GMT+05:30 00000032 EditionHelper > isEditionSupportEnabled Entry
5/4/11 17:22:01:333 GMT+05:30 00000032 EditionHelper < isEditionSupportEnabled Exit
false
5/4/11 17:22:01:397 GMT+05:30 0000002d annotations E CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annotated-classes' is not a valid feature
(3) I grepped for "annotated-classes" in profile's installedApps directory for this particular application. This is what I found,

  1. cd /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/ashNode01Cell/SMDemo_war.ear
  2. find . -type f | xargs grep annotated-classes
./SMDemo.war/WEB-INF/ibm-metadata.xml: <annotated-classes name="com.ibm.cc.smdemo.SMController"/>
./SMDemo.war/WEB-INF/ibm-metadata.xml: <annotated-classes name="com.ibm.cc.smdemo.filter.LoginFilter"/>

If I grep in the same folder in WAS v7, I dont find this file
(4) versionInfo.sh output

Name IBM WebSphere Application Server
Version 8.0.0.0
ID BASE
Build Level m1116.12
Build Date 4/24/11
Architecture PPC64
Installed Features IBM 64-bit SDK for Java, Version 6
EJBDeploy tool for pre-EJB 3.0 modules
Embeddable EJB container
Stand-alone thin clients and resource adapters
(5) This application is not built through RAD. We build it through ant script.

Really appriciate if somebody can help me in figuring out what is going wrong. Whether it is some bug in WAS v8 or any changes we are expected to make for WAS v8. (If you want the complete log messages, please let me know. I can send them )

Thanks.
Updated on 2011-05-04T12:54:45Z at 2011-05-04T12:54:45Z by JasonBouknight
  • JasonBouknight
    JasonBouknight
    4 Posts

    Re: IllegalArgumentException: The feature 'annotated-classes' is not a valid

    ‏2011-05-04T12:54:45Z  
    Hello,

    This is a bug in the product regarding additional information we persist for annotations. This error is not caused by a missing update or expected change to your application or product configuration.

    The bug has been opened as a formal defect.

    Thanks,
    Jason Bouknight
    EE6 Deployment Lead