This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
From: rd_blaha@hotmail.com Subject: [nbusers] NB6.0, EJB, and the Verifier - Refers to EJB 3.0 Specifications that cannot be found Date: March 5, 2008 4:49:29 PM GMT+01:00 To: nbusers@netbeans.org This is my first time using the EJB verifier. I receive the following Warning: Enterprise bean class must declare all class static fields as final. Please refer to EJB 3.0 "Core Contracts and Requirements" Specification Section #20.1.2* for further information. After which I logically receive the following Fail: The field or method where injection annotation is used must not be static or final. Please refer to EJB 3.0 "Core Contracts and Requirements" Specification Section #15.2.2 for further information. The problem I a m running into is that I did a search for the specifications listed. Under the http://jcp.org/en/jsr/all Java Community Process for 220 Enterprise Java Beans(TM) 3.0 with its appropriate Description and Spec Lead listings. So I select that to look at the specs. I get a listing of the various stages of the Specifications so I select the Final Release (sounds reasonable). Selecting the download page I get two possible download pages to which to go. I select the first since it refers to downloading the Specification for Evaluation or Developing. To my chagrin I get not one, but three specs. I check them each out to find which has a Chapter 15 and a Chapter 20 (according to my NB verifier results). The JSR-000220 Enterprise JavaBeans 3.0 Final Release (ejbcore) was the only one of the three that had both of those specific chapter sections. At this point, much to my dismay I search for Section 20.1.2 (but it only has 20.1, not 20.1.1 and definitely not 2.1.2). The other Section referenced 15.2.2 is not to be found either, but it does have 15.2.1. What in the world is the NB 6.0 EJB Verifier referring to???? When I did a Google search for > EJB 3.0 "Core Contracts and Requirement" Specification Section 20.1.2 < all I found was documents that made reference to the Specification, not the Specification itself. This is very aggravating in that I don't know if NB 6.0 is wrong and the Specification I found that it references is right or that NB 6.0 is right and the Specification is still out there hiding someplace. Can someone point me to the correct specification or tell me NB 6.0 is giving me the wrong information and please tell me the correct reference I need to go to to find the corrective actions the specification is supposedly referring to. Thank you. -- View this message in context: http://www.nabble.com/NB6.0%2C-EJB%2C-and-the-Verifier---Refers-to-EJB-3.0-Specifications-that-cannot-be-found- tp15853358p15853358.html Sent from the Netbeans - Users mailing list archive at Nabble.com.
The specification can be downloaded from http://jcp.org/aboutJava/communityprocess/pfd/jsr220/index.html (final draft). The file name is ejb-3_0-fr-spec-ejbcore.pdf. The first error message can be found in section 21.1.2 Programming Restrictions: An enterprise bean must not use read/write static fields. Using read-only static fields is allowed. Therefore, it is recommended that all static fields in the enterprise bean class be declared as final. The second error message can be located in section 16.2.2 Annotations for Environment Entries... So it seems that the numbers are shifted by one... :-)
Correction: (final release) not (final draft).
Verifier is part of Glassfish distribution. I created bug against this component: https://glassfish.dev.java.net/issues/show_bug.cgi?id=5290 Closing this issue as WONTFIX because the problem is not in NetBeans code. For more details about the problem please follow the Glassfish issue (the link above).