This discussion is archived
9 Replies Latest reply: Nov 22, 2012 1:40 AM by Udo RSS

Cannot Access listenerAdmin

Mindmap Pro
Currently Being Moderated
Hi Udo,

I deployed APEX listener 1.1.3 on Glassfish 3.1.1 on Java 7 u3..
I am trying to access my admin listener, but I cannot:
I use this URL:

http://<host>:<port>/apex/listenerAdmin
user: adminlistener
pwd: my password

* adminlistener in Group ID : Admin

I cannot access the admin listener page ????

-----
With that combination (APEX listener 1.1.3 on Glassfish 3.1.1 on Java 7 u3..) :
there is already a problem with authentication when trying to access Glassfish console.
I type the username and password in the right way, yet not able to access unless I type this command on asadmin utility:
enable-secure-admin
-----------

I hope my question is clear ....

Regards,
Fateh
I
  • 1. Re: Cannot Access listenerAdmin
    Mindmap Pro
    Currently Being Moderated
    Hi,

    I uninstalled Java 7 and now working on Java 6.
    I did the needed change for glassfish to work with Java 6.

    But when trying to access :

    http://<host>:<port>/apex/listenerAdmin

    I get access denied even though the credential are correct ...

    Regards,
    Fateh
  • 2. Re: Cannot Access listenerAdmin
    Wouter Breeuwsma Newbie
    Currently Being Moderated
    Hello Fateh,

    Have you tried to acces it through https (since you had to turn enable-secure-admin on for GlassFish as well)?
    https://<host>:<secure_port>/apex/listenerAdmin

    Regards, Wouter
  • 3. Re: Cannot Access listenerAdmin
    Mindmap Pro
    Currently Being Moderated
    Thanks,
    But does not work...
    this is the message i am getting :

    HTTP Status 403 - Access to the requested resource has been denied

    type Status report

    messageAccess to the requested resource has been denied

    descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden.

    GlassFish Server Open Source Edition 3.1.1
  • 4. Re: Cannot Access listenerAdmin
    Mindmap Pro
    Currently Being Moderated
    Hi guys,
    I was checking the Configuration in Glass fish, and found the following:
         default-config     
         server-config     server Running
    How can I make the default-config running ??

    * By the way: I am aware that Group IDshould be ( Admin )
    Regards,
    Fateh
  • 5. Re: Cannot Access listenerAdmin
    Udo Guru
    Currently Being Moderated
    Hi Fateh,

    403 means your user has been authenticated successfully but it doesn't have the right role mapped.
    You indicate that your user has Admin role, and probably you also defined that role case sensitive. Did you also choose the right realm for that user? It should be the realm file .
    Perhaps you have to restart GlassFish to make sure the user and role information are present for APEX Listener.
    How can I make the default-config running ??
    You can't. See the [url http://docs.oracle.com/cd/E18930_01/html/821-2426/abdjl.html#scrolltoc]corresponding section of the HA-Admin Guide for more details. Though for Oracle GlassFish, these concepts are implemented equally in the OSE.
    Why would you think there is a need to switch to that one?
    I'm not a GlassFish expert (and this is no GlassFish-Forum... ;) ), but if you want a fresh start, you could do one of the following two things:
    1) overwrite your server-config with default values
    2) create and assign a new config

    In both cases, stop your instance and create a backup of your domain.xml.

    For 1) you edit the domain.xml and overwrite the block below
        <config name="server-config">
    up to the closing tag for config with the values from
    <config name="default-config">
    and restart your instance. Note that the default-config has different ports and settings than you might expect from your server-config.

    For 2) you could either start your instance again and copy the config via admin console (or GUI), or edit the domain.xml manuall by creating a copy of the whole block of the default-config within the configs tag and rename it, e.g. to test-cofnig. Then change your instance to use that config by editing the referenced config, e.g.
    <server name="server" config-ref="test-config">
    -Udo
  • 6. Re: Cannot Access listenerAdmin
    Mindmap Pro
    Currently Being Moderated
    Hi Udo,
    Why would you think there is a need to switch to that one?
    I was checking the Forum for a similar problem, and I found a long thread between you and one of Oracle Advocate.... you suggested to make sure that the default server is running ...
    However, I think the cause of my problem is that I installed Glassfish first with Java 7 then changed to Java 6 .... The ideal solution was to uninstall Glassfish and reinstall it again ....

    Thanks,
    Fateh
  • 7. Re: Cannot Access listenerAdmin
    Udo Guru
    Currently Being Moderated
    Hi Fateh,

    I'm glad to hear you've got it working.
    you suggested to make sure that the default server is running
    Yeah, that meant more or less that I wanted to make sure that no other configuration change (like JVM parameter) had been effective without noticing. "default server" in that sense meant to (re)create the configuration that shipped, not actually the "default-config". Sorry for any confusion I might have caused by that. ;)
    However, I think the cause of my problem is that I installed Glassfish first with Java 7 then changed to Java 6.
    I think so, too. Probably some issue with different versions of the hash/encryption function or something like that used in Java 7 without downward compatibility. Though I'm not a GlassFish expert, I assume that the authentication in file realm is somehow linked with Java's keytool which had several changes from Java 6 to Java 7.

    Anyhow, have fun with your new instance. And thanks for reporting back after you've solved the problem!

    -Udo
  • 8. Re: Cannot Access listenerAdmin
    812052 Newbie
    Currently Being Moderated
    I have the same problem with accessing listenerAdmin and listenerStatus...

    Access to the specified resource (Access to the requested resource has been denied) has been forbidden.

    Glassfish 3.1.2 and Apex...

    after changes in domain.xml to use default-config i cant access GlassfishAdmin interface

    Ive already created two users: adminlistener(group Admin) and managerlistener(group Manager).

    Glassfish admin interface use port 4848
    port for domain (apex) is 8080.

    I have change apex http port:
    dbms_xdb.sethttpport('0');

    Everything works ok, but just cant access to listenerAdmin and listenerStatus

    Here is my domain xml http://www.textswell.com/read,4234894017551

    Edited by: Nihad Haskovic on Nov 21, 2012 3:25 AM
  • 9. Re: Cannot Access listenerAdmin
    Udo Guru
    Currently Being Moderated
    Hello,

    please don't resurrect threads for questions that have been answered long before, but open a new one for your issue.

    Thanks,

    Udo

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points