apex listener with oc4j - server control issues - ORDS, SODA & JSON in the Database

I'm on Windows 7 64 bit, with fresh 11g install trying to get Apex40 served with OC4J (after failing with Tomcat)
I can start the server, and I get the welcome page here
http://localhost:8888/
but I can't ignite
http://localhost:8888/em/
This is the application server control page - which is where I can deploy my apex.war from, apparently. I tried doing that via the command line, but got this:
java -jar admin_client.jar deployer:oc4j:localhost oc4jadmin apex40 -deploy -file C:\app\Scott\apex_listener\apex.war -deploymentName apex -contextRoot apex40Failed at "Could not get DeploymentManager".
This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
More information is available by enabling logging -- please see the Oracle Containers for J2EE Configuration and Administration Guide for details.
(I just followed the instructions successfully to reset the admin password, so that should be fine)
Ring any bells? 

hi,
try using this
java -jar admin_client.jar deployer:oc4j:localhost:8888 oc4jadmin apex40 -deploy -file C:\app\Scott\apex_listener\apex.war -deploymentName apex -contextRoot apex40
regards,
kartik 

Thanks Kartik,
It got me a different response - it just sat there, seemingly doing nothing - is that expected?
I started my oc4j
C:\app\Scott>call C:\app\Scott\oracle\11.2.0\11gr2_home\oc4j\bin\oc4j -start
Starting OC4J from C:\app\Scott\oracle\11.2.0\11gr2_home\oc4j\j2ee\home ...
10/06/30 21:07:24 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized
Then invoked this in a separate console window
java -jar admin_client.jar deployer:oc4j:localhost:8888 oc4jadmin apex40 -deploy -file C:\app\Scott\apex_listener\apex.war -deploymentName apex -contextRoot apex40
with no output, it was waiting? I waited a while...
I tried visiting the address in a few formats
http://localhost:8888/apex40/config
http://localhost:8888/apex40/Config
http://localhost:8888/apex/config
http://localhost:8888/apex/Config
That's how I interpret the documentation - the address it specifies.
I think all my files are where they should be, I find it a little hard to meld the two sets of instructions. 

hi,
Try to deploy the application using web GUI, i.e from em
regars,
kartik 

Unfortunately as mentioned in the original post, the /em is not working for some reason, and I can't work that out either. 

I've ended up using the new production release of Apex Listener with Glassfish.
Good work on the new installation instructions, they are much more informative.
My major hurdle with Glassfish was attempting to use the JDK that came with 11gr2. It took a colleague to spot I was using 1.5.x instead of 1.6.0.20 - I sourced this version from my Windows 7 64bit install.
Now to attempt installing 10gR2 with Apex3.2 on the same box
Scott 

Hi,
i know its 7 months old, but just chking.. is the ascontrol up ?
for latest Oracle AS 10.1.3.5 ( eg) ascontrol is not started by default, you need to
opmnctl startproc application=ascontrol
This will start and /em must work alright now. Else you may need to dbl check the port provided during install
HTH 

Dear Scott,
I am also facing the same issue. Have you got the fix ?
Regards,
Anand.

Related

Portal 7 - more issues...

RHEL 3
1. Creating a new community fails at point where you give the community a name and description. Clicking next does nothing, re-displays page (no errors with the name according to the rules and no log entries). This worked on a clean install yesterday.
2. Cannot login to psconsole, authentication fails with access manager user, can login to access manager console though. This worked fine yesterday on a fresh install.
I have been examining the install logs, completely re-installing the software after a through cleaning (rm install directories and checking that all rpms are removed) and I get different subtle problems each time. 
hi keith,
w/ regard to #1, can you ensure that the derby database is running?
$ ant -DPS_CONFIG=/etc/opt/SUNWportal/PSConfig.properties -buildfile /opt/SUNWportal/lib/derby.xml stop-instance
$ ant -DPS_CONFIG=/etc/opt/SUNWportal/PSConfig.properties -buildfile /opt/SUNWportal/lib/derby.xml start-instancenote that these are non-public shortcuts for starting / stopping the server. the somewhat more verbose derby standard method is described in the documentation. 
Hi Keith,
On issue #2, can you try the following workaround?
retype the full psconsole url (i.e. http://host:port/psconsole/faces/common/Login.jsp) in the browser address bar.
Thanks.

Authentication refused for admin

Hi there,
I installed Sun studio Creator 2, wich is released with Sun Application server 8.1 bundled - So far, I didn't change any configuration settings, a part the admin username and password trough the properties pannel on the IDE - everytime I try to start the server from the IDE I got an error message wich says that is not possible start it. Seems that the admin login failes. Apparently the server is running, because the admin login mask appears on the borwser and even the icon at the bottom is showed, but as I said I can't even login manually from this mask. I got an invalid username or password.
Belowe the server log:
[#|2006-06-07T11:26:40.578+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1501: Here is the JMXServiceURL for the JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://computer:28686/management/rmi-jmx-connector]. This is where the remote administrative clients should connect using the JSR 160 JMX Connectors.|#]
[#|2006-06-07T11:26:40.578+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1502: Status of System JMX Connector: Active = [true]|#]
[#|2006-06-07T11:26:41.312+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]
[#|2006-06-07T11:26:41.453+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.security|_ThreadID=11;|SEC5046: Audit: Authentication refused for [root].|#]Any suggestions?
Thanks in advance 
Can you:
- cd your home directory.
- cat .asadminprefs
- use the AS_ADMIN_USER and AS_ADMIN_PASSWORD that is present in this file?
Thanks,
Kedar 
Hello,
I have a similar problem but i don't know whether it is exactly the same problem...
I try to install sun application server shipped with the AVK 1.4.2 tool. In the log file, the error message is the same. But during the installation, the installer ask for a password for the admin user, then after it is the installer that run the server to configure it in AVK mode.
In the .asadminprefs file, the user/password are those that I entered during the installation...
I reported this problem to the AVK support. But they think the issue comes from the SJAS 8.2 PE. Could you help me?
Thanks for your Help 
Hello,
I have a similar problem but i don't know whether it
is exactly the same problem...
I try to install sun application server shipped with
the AVK 1.4.2 tool. In the log file, the error
message is the same. But during the installation,
the installer ask for a password for the admin user,
then after it is the installer that run the server
to configure it in AVK mode.
n the .asadminprefs file, the user/password are those
that I entered during the installation...
I reported this problem to the AVK support. But they
think the issue comes from the SJAS 8.2 PE. Could you
help me?
Thanks for your HelpI need to talk to AVK support folks. What alias did you try? Please let me know.
Basically, this error means that you don't have the correct user name and password for the administrative user. If you can't figure out how to resurrect the admin user name and password, try the suggestion at:
http://blogs.sun.com/roller/page/bloggerkedar?catname=%2Fappserverfaq#a1
Let me know if it worked.
Thanks,
Kedar 
Hello,
SJAS is bundled with AVK Tool. During the installation of AVK, the SJAS is also installed. When SJAS is installing a administration user and password are asked. I enter admin/mypassword. After it is AVK that automatically run the script with admin/mypassword... I have no hand on that...
I do not lose the admin password...
Thanks for your help

listenerConfig is currently unavailable

Hello!
I have Linux machine with SUN JDK and GlassFish server 3.1. I deployed apex.war to the GlassFish. When i tried to launch it throw http://localhost:8080/apex i had an errors:
"HTTP Status 503 - Requested url http://localhost:8080/apex/ is currently unavailable.
type Status report
messageRequested url http://localhost:8080/apex/ is currently unavailable.
descriptionThe requested service (Requested url http://localhost:8080/apex/ is currently unavailable.) is not currently available.
Oracle GlassFish Server 3.1"
While it is still unavaible i can't use listenerConfig.
Help me please.
P.S.: i have tried it on 2 different Linux systems and i had the same problems.
Apex Listener version is 1.1.2.
P.S.S.:
I have just tried Windows XP + GlassFish Server3.1 + Apex Listener and result was the same.
After that i have tried Windows XP + WebLogicServer 10.3 + Apex Listener and all was OK.
Now i think that there is a problem with GlassFish Server3.1.
Edited by: Alexys on 24.07.2011 8:18 
problem with GlassFish Server3.1Maybe, the install docs show getting to the config via a different port with a Glassfish setup, 4848. Or are you doing a standalone setup?
http://www.oracle.com/technetwork/developer-tools/apex-listener/documentation/index.html 
No, not a standalong.
I tried other applications and they worked fine on 8080 port.
I have a problems just with Apex Listener. 
No, not a standalong.
I tried other applications and they worked fine on 8080 port.
I have a problems just with Apex Listener. 
Hello,
have you actually tried to run http://localhost:8080/apex/listenerConfigure yet? (P.S.: Since you post ".../listenerConfig" - did you really use the correct URL?)
If so: What's the applications error log output for that 503 error you get there?
And one last question: You posted you use Sun JDK. Which version is it? You probably know that it has to be at least 1.6 Update 20. Please check if your GlassFish is actually using the appropriate version. Even if you have it installed it could be that the GlassFish is using an older one available on your system.
-Udo
Edited by: Udo on 25.07.2011 00:30 
I have tried to run:
http://localhost:8080/apex/listenerConfigure
http://localhost:8080/apex/
http://localhost:8080/apex/listenerAdmin
and all that urls gave me 503 error on windows and linux machines.
On linux i use SUN JDK 1.6 Update 24 x65.
On windows i used SUN JDK 1.6 Update 20 i586.
P.S.: while i wrote this answes i have tried GlassFish on WIndows machine. Url: http://localhost:8080/apex/listenerConfigure work fine!! What happend? 
I'm glad to hear you got it working now.
If you want to dig deeper into the cause for the problem you had on your first attempts, you need to look for the application log files.
Otherwhise, please mark this thread as answered, and if you find any answer helpful or correct, you could mark them accordingly to help others spot relevant answers easily.
Thanks,
Udo 
On Linux machine GlassFish work fine too! And now i am using APEX 4.0.2.
But i have some other subquestion:
http://localhost:8080/apex/listenerAdmin gives me Authentication request:
"A username and password are being requested by http://localhost:8080. The site says: "APEX" ".
Am i right if i say that i must use login and password of users which were added to Security -> Realms -> file by me? They are Admin and Manager.
Edited by: Alexys on 25.07.2011 0:46 
Alexys wrote:
On Linux machine GlassFish work fine too! And now i am using APEX 4.0.2.
But i have some other subquestion:
http://localhost:8080/apex/listenerAdmin gives me Authentication request:
"A username and password are being requested by http://localhost:8080. The site says: "APEX" ".
Am i right if i say that i must use login and password of users which were added to Security -> Realms -> file by me? They are Admin and Manager.Yes, but Admin and Manager are groups, not users. The user names and passwords can be anything you want, but must belong to the Admin and/or Manager groups. 
Am i right if i say that i must use login and password of users which were added to Security -> Realms -> file by me? They are Admin and Manager.Right, you have to create the roles "Admin" and "Manager" (whatch case-sensitivity) and assign these to users.
Note that only users with role "Admin" may access listenerAdmin, while "Manager" is the role needed for "listenerStatus".
-Udo 
Sorry, John, didn't see your answer when I finally came to get the submit of my reply through the broadband. I'll requery the thread next time when answering from a moving high-speed rail... ;) 
Thank you, guys!
I mixed up User and Group. I tried to use Group name like loggin.
Stupid mistakes. Must be more attentive :-)

Running the native Listener as a Windows (Startup) Service

Hi,
i already did try some ways to get the Apex Listener run as a Service. I currently do not close my cmd-window so the listener is still running.
I would like to have the listener as a Service as Windows starts. Any Ideas?
Thx 
Hi,
did you already try a "service helper" like nssm or srvany, as described here: {message:id=9606494} ?
-Udo 
>
Hi,
did you already try a "service helper" like nssm or srvany, as described here: {message:id=9606494} ?
-UdoA word of warning though - after struggling a bit with errors in the logs I found that i needed to run the java command manually for the first time (in a command prompt as administrator) - just to setup the passwords for the adminlistener and managerlistener accounts. But once setup the service now works really well, Thanks!
>
Does this mean, that after I need to reboot the machine i need to manual run the .war again setting up the passwords? 
This could happen if you configure your apex.home to be in a temporary location that is cleaned up upon reboot or some time before )as the APEX Listener reads the configfile at startup it can happen it's still working while the file has already been deleted).
Otherwhise, once you've configured the APEX Listener and the service accordingly, there is no need for a manual start.
Anyway, the APEX Listener in Standalone Mode is not intented to be used for productive deployments. It's highly recommended to use a "real" JEE Server for that purpose.
-Udo

Fresh installation of Glassfish => empty page

hello there,
I just installed GlassFish on a Debian server.
My debian has the following configuration:
SSH : OpenSSH 4.3p2-Debian9
HTTP : Apache 2.2.3
PHP 5.2.0-8+etch4
MySQL 5.0.32
PhpMyAdmin 2.9.1.1-Debian3
FTP : Vsftpd 2.0.5
PostGreSQL 8.1.8
JDK : Java Sun 1.5.0 update 11
TomCat 5.5
DNS : Bind9
My glassfish version is glassfish-installer-v2ur1-b09d-linux-ml.jar, size 81M (Multilingual)
Then I launch the domain  : asadmin start-domain domain1
Everything is fine . log redirected and everything
and when I wanna test :
http://http://192.168.9.201:8080
or
http://192.168.9.201:4848/
It tries to load and ends up with an empty page.
How can I fix this?
thanks
Message was edited by: cotede2
What does the server log say?
here
http://www.turboupload.com/download/qW81jmF7yen4/server.log
Message was edited by: cotede2
What I meant was /var/www/glassfish/domains/domain1/logs/server.log.  I'm guessing you'll see an error there. 
I see you have Tomcat installed.  Is that currently running?  If it is, it should have interfered with the installation of GlassFish, but I don't know how that Debian package handles the install.
I have stopped Tomcat.
I have attached the file.
I have recently downloaded glassfish sources from tag: SJSAS91_UR1_BRANCH and built on FreeBSD-7.0-RELEASE using the instructions posted here: http://blogs.sun.com/hyau/entry/glassfish_on_freebsd_too
When I try to start the app server, my server.log looks substantially the same as what you've attached... (see my attached server.log).
Hi all,
  I will try to build on FreeBSD 7.0 (production release build) to see, if it works for me or not.  I will cross my fingers.  ;-)
  By the way, those ports issue, empty page issue, are they related to firewall block, other software occupy those ports address which glassfish could not use.
Does the process owner have the permission to read those static html file in ../domains/domain1/docroot/index.html?
If tomcat is not running, it should not have any port conflict issue.  ???
Thanks,
Homer
I can't be 100% positive, but the port issue (failed to bind on port 0) seems to have been related to my jdk16 build: I had chosen to build jdk16 with support for IPv6. When I added the -Djava.net.preferIPv4Stack=true, that error went away. Eventually, I just ended up rebuilding jdk16 without IPv6 support, and now I don't ever see the failed-to-bind-port-0 error that has been reported, and I don't have to use the element in the domain.xml.
HTH
Hi,
  Cool !  You are use JDK 1.6 with GlassFish V2UR1
  By the way, it works for me to.
  I have using an old pentinum II system to build GlassFish v2 ur1 on FreeBSD 7.0 Release on IPv4 network. So most of the existing systems should be able to build and run this GlassFish v2ur1 build..
  And keep us posted on your project progress.
Thanks
Hyau
An error was located in /etc/hosts/ and so it could not bind to the correct IP address.

Categories

Resources