DOYENSYS Knowledge Portal

We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal

Wednesday, April 24, 2013

Configure Apex 4.0 with Apex Listener using Glassfish

Software Requirement:

1.JDK 1.6 or Higher (Download it from  /jdk7-downloads-1880260.html )  (Download it from (Glassfish) (Download it from
 Installation Steps

Install JDK RPM on Server:

                                 #rpm –ivh jdk-7-linux-i586.rpm

Create Environment file for JAVA and Glassfish:

         Login into oracle user create and add the bellow lines.
         $ vim glassfish.env
           export JAVA_HOME=/usr/java/jdk1.7.0
           export GLASSFISH_HOME=/home/oracle/glassfish3/glassfish
           export PATH=$JAVA_HOME/bin:$GLASSFISH_HOME/bin:$PATH

Run the script:
       $ sh

Now Press Next Button 

Select Custom Installation and Press Next Button

Select Install and Configure and click on Next Button

Select the Java Location

Select the “Create a Server domain”

Select the domain name and port no leave default as it is and enter the password

Click exit to quit the Installation.
Now we can able to login in Glassfish server with the port 4848 and enter the username as “admin” and enter the password that we enter in Installation time.

Now create users those are required by APEX  security realm
Click on Configuration  Server-config  Security  Realms  New

Name: apex-realm
Class Name:
JAAS Context: fileRealm
Key File: ${com.sun.aas.instanceRoot}/config/keyfile
Now click OK

Now select apex-realm and click manage user -->New
userid: adminlsn
Groups: Admin
Password: Admin

Add another New user
userid: mnglsn
Groups: Manager
Password: Manager

Enable the Default role mapping by  clicking the Principal to Role Mapping after selecting the security

Deploy the Apex Listener in GlassFish

now go to the server and remove "xmlparserv2-11.2.0.jar" from  "/home/oracle/glassfish3/glassfish/domains/domain1/applications/apex/WEB-INF/lib
Now Move the Images from Apex directory to I directory so enter this command.
$cd  /home/oracle/glassfish3/glassfish/domains/domain1/docroot
$mkdir i
$ cd /home/oracle/apex/images/
$ cp * -rf  /home/oracle/glassfish3/glassfish/domains/domain1/docroot/i/

 Now click on the “Launch” Button to enable the Server.
Now click any one of  the link and enter the url http://ip-address:8080/apex/listenerConfigure

Now Enter the Hostname, Listener Port no and Database SID then click on “Apply” Button Installation was Completed.

No comments: