This content has been marked as final. Show 9 replies
if anyone is interested, I found the jar file containing the class FacesUtils
It is stored in the war file named oracle.iam.ui.custom-dev-starter-pack.war. This war is located in IDM_HOME/server/apps directory.
The jar file is named ADFSpyke.jar and is located in WEB-INF/lib folder.
Strange, I just unpacked the war file and in my one there is lib folder.
This is the cheksum of my original war (the one provided with the installation):
4233950274 92775 /opt/Oracle/Middleware/Oracle_IDM1/server/apps/oracle.iam.ui.custom-dev-starter-pack.war
sorry for the wrong information....There isn't any jar named ADFSpyke.jar in the original oracle.iam.ui.custom-dev-starter-pack.war.
In mine it was there because a colleague create it without tell me.
Sorry again for the mistake.
P.S. Anyway if you need the FacesUtils class, you can create it copying it from here http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/facesutils.htm (as mentioned in my first post)
To workaround the problem, I created a class FacesUtils in my project (copying the java code snippet provided in the last document) and use it in myBye
ManagedBean, but which is the right solution? I mean where can I find the library containing the correct FacesUtils class?
There will be no lib folder under WEB-INF of "oracle.iam.ui.custom-dev-starter-pack.war". whatever managed bean or taskflow you have created you should add it as a ADFlibrary jar inside lib folder. If there is no lib folder then you have to manually create it and put your jar file inside it. The post in this thread tells about some ADFSpyke.jar which will not be present by default. I think they would have created this jar with FacesUtils.java and added it inside lib folder so that it can be referenced for any other custom development
You need to follow the below steps to include the libraries in your jdeveloper project which are having FacesUtils class
Click on Project Properties
1. Select Libraries and Classpath
2. Click Add Library.
3. Navigate to \Oracle_IDM1\server\jdev.lib folder and select to add library
4. Click OK.
5. Click Add Library.
6. Select OIM Client Library.
7. Confirm selection by clicking on Select.
8. Click OK.
9. Click Add Library.
10. Click Load Dir.
11. Select OIM Model Shared Library and OIM View Shared Library.
12. Confirm selection by clicking on Select.
13. Click OK.
14. Save the project.