Version 1


    When using JBoss-4.2.3 GA with JDK 1.5, you see errors such as this, during the server startup:

    2008-10-12 21:24:13,656 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
    java.lang.NoClassDefFoundError: javax/annotation/Resource

    2008-10-12 21:24:13,672 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init Error invoking method addChild

    Caused by: Error invoking method addChild




    There are 2 versions of JBoss-4.2.3 GA. One for JDK6 and one for JDK5. You probably downloaded the JDK6 version which cannot be used with a JDK5.




    You have two options - either to use JDK6 or to download the JDK5 version of JBoss-4.2.3 GA