Tuesday, August 16, 2011

Apex listener starting issue

Hi,
Usually we start the apex listener as given below,But when you see the error messages as given below don't get shock as it is because the apex war file is not able to pick the right jdk version(jdk6) while starting apex listener.

Error message:-bash-3.2$ java -Dapex.images=/apex_4.0.2/apex/images -Dapex.port=8080 -jar apex.war
INFO: Starting: /apex_4.0.2/apex.war
See: 'java -jar apex.war --help' for full range of configuration options
INFO: Extracting to: /tmp/apex
SEVERE: method java.lang.System.console with signature ()Ljava.io.Console; was not found.
java.lang.NoSuchMethodError: method java.lang.System.console with signature ()Ljava.io.Console; was not found.
at ____embedded.____EntryPoint.apexImages(____EntryPoint.java:104)
at ____embedded.____EntryPoint.main(____EntryPoint.java:91)


Solution: Installed the jdk6 update version latest one and execute the .war file directly as given below.

# rpm -Uvh jdk-6u26-linux-i586-rpm.bin

Go to the path where we unzip the apex_listener.zip file:

In an EBS R12 environment don't set the environment for oracle or apps and execute the 'apex.war' file with 'oracle' user.

-bash-3.2$ ./apex.war
INFO: Starting: /apex_listener_status/apex.war
See: 'java -jar apex.war --help' for full range of configuration options
INFO: Extracting to: /tmp/apex
Enter the path to the directory containing the APEX static resources
Example: /Users/myuser/apex/images
or press Enter to skip: /apex_4.0.2/apex/images/
INFO: Using classpath: file:/tmp/apex/apex/____embedded/start.jar:file:/tmp/apex/apex/WEB-INF/lib/xmlparserv2-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojmisc.jar:file:/tmp/apex/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/tmp/apex/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/tmp/apex/apex/WEB-INF/lib/ucp.jar:file:/tmp/apex/apex/WEB-INF/lib/xdb-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/tmp/apex/apex/WEB-INF/lib/apex.jar:file:/tmp/apex/apex/WEB-INF/lib/je-4.0.103.jar:
INFO: Starting Embedded Web Container in: /tmp/apex
Enter a username for the APEX Listener Administrator [adminlistener]: admin
Enter a password for admin:
Confirm password for admin:
Enter a username for the APEX Listener Manager [managerlistener]: apex
Enter a password for apex:
Confirm password for apex:
Aug 17, 2011 3:22:06 AM ____bootstrap.Deployer deploy
INFO: Will deploy application path=/tmp/apex/apex/WEB-INF/web.xml
Aug 17, 2011 3:22:10 AM ____bootstrap.Deployer deploy
INFO: deployed application path=/tmp/apex/apex/WEB-INF/web.xml
Using config file: /tmp/apex/apex-config.xml

In Database side:

alter user apex_public_user identified by apex_public_user;

Listener configuration:
URL: http://:/apex/listenerConfigure

where:host=ipadrress/machine name,port:8080(default)

Now,
We are ready to configure the apex listener and carry the remaining workspace administration tasks or leave to the apex team to do rest of the task.


Happy APEX learning.


Best regards,

Rafi.







No comments:

Post a Comment