2. Download and Install Glassfish: http://www.oracle.com/technetwork/middleware/glassfish/downloads/index.html
3. Copy ADF zip file into $DOMAIN_HOME/lib/ (Ex.: C:\glassfish3\glassfish\domains\glassdomain\lib)
4. Unzip the file: Open a cmd and cd C:\glassfish3\glassfish\domains\glassdomain\lib and unzip -j adf-essentials.zip
5. Go to admin console http:\\localhost:4848 and login
6. Click on Configurations > server-config > JVM Settings > JVM Options
7. Click on Add JVM Option
8. Put -Doracle.mds.cache=simple on the field and Save
9. Restart the server: cd C:\glassfish3\glassfish\bin and asadmin stop-domain [YourDomainName]
Done.
If you need to deploy ADF application you need to configure DB connection in Admin console.
1. Go to Admin console and login;
2. JDBC > JDBC Connection Pools;
3. Click on New;
4. Pool Name: [AnyNameYouWant]
5. on Additional Properties: put User, Database Name, Password, ServerName, DriverType: thin and Port number. Press Finish;
6. Define JDBC resource: JDBC > JDBC Resources. Enter JNDI name: jdbc/
7. On JDeveloper change JDBC DataSource in Model and put exact JNDI name there.
8. On View and Application Properties Deployment profile change Platform as Glassfish Server.
9. Open Deployment connection to Glassfish and Deploy your application.
Note: If you are connected remotely, Admin console login page may give you the following note:
Secure Admin must be enabled to access the DAS remotely.
To fix it, you need to run:
asadmin --host [IP or ServerName]
To disable it:
asadmin --host [IP or ServerName]
No comments:
Post a Comment