Configuring projects for Java EE security annotations

Java EE security annotations are used in Enterprise Java Beans and JPA to protect user access to methods exposed in entities and the session façade. Creating a new EJB project in Oracle JDeveloper, or using the Java EE Web Application template to build a web application using EJB and ADF Faces, does not add the classes of the javax.annotation.security package to the project class path. To solve this issue, and to make security annotations like @DenyAll available in the code editor, you need to add the WebLogic 10.3. Remote Client library as follows:

·         Open the Model project properties by double clicking onto the project node or using the context menu

·         Select Libraries and Classpath

·         Click the Add Library button

·         Search for and add the WebLogic 10.3. Remote Client entry

Comments:

Post a Comment:
Comments are closed for this entry.
About

A blog on Oracle JDeveloper, ADF, MAF, MCS and other mobile and web topics inspired by questions and answers posted on the OTN forums.



Frank Nimphius

Search

Archives
« February 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
       
       
Today