ERROR: Failed to obtain auth service url from server: null://null:null

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ERROR: Failed to obtain auth service url from server: null://null:null

Olivier Rivat
Hi,

I am trying to setup a J2EE policy agent using tomcat

<a href="https://backstage.forgerock.com/#!/docs/openam-policy-agents/3.3.0/jee-install-guide#install-tomcat-agent">https://backstage.forgerock.com/#!/docs/openam-policy-agents/3.3.0/jee-install-guide#install-tomcat-agent


I have using
JDK 1.8
openam V12
J2EE policy agent 3.50
Tomcat server

I have 2 servers:
-1) openam http://openam.example.com:18080/openam
-2) tomcat with examples default webapp that I would like to protect
(http://openam.example.com:28080/examples/servlets)


Installation of J2E policy agent has gone well (cf step 1)
But as soon as I start tomcat on 28080, an error message is generated
for the J2EE policy agent
ERROR: Failed to obtain auth service url from server: null://null:null


and of course, URL http://openam.example.com:28080/examples/servlets is
never protected


What coudl be teh reason, issue of
ERROR: Failed to obtain auth service url from server: null://null:null

Regards,
Olivier





J2EE policy installation trace
===============================
[06/03/2016 09:03:41:414 CEST] BEGIN SUMMARY OF USER INPUT
[06/03/2016 09:03:41:414 CEST] ---------------------------
[06/03/2016 09:03:41:414 CEST] Tomcat Server Config Directory :
/opt/tomcats/am2/conf
[06/03/2016 09:03:41:414 CEST] OpenAM server URL :
http://openam.example.com:18080/openam
[06/03/2016 09:03:41:414 CEST] $CATALINA_HOME environment variable :
/opt/tomcats/am2
[06/03/2016 09:03:41:414 CEST] Agent URL :
http://openam.example.com:28080/examples/servlets
[06/03/2016 09:03:41:414 CEST] Agent Profile name :
tomcat_am2_examples_servlets
[06/03/2016 09:03:41:414 CEST] Agent Profile Password file name :
/tmp/pwd.txt

[06/03/2016 09:03:41:504 CEST] Updating the
/opt/tomcats/am2/bin/setenv.sh script with the Agent configuration JVM
option ...SUCCESSFUL.
[06/03/2016 09:03:44:010 CEST] Creating directory layout and configuring
Agent file for Agent_001 instance ...SUCCESSFUL.
[06/03/2016 09:03:45:345 CEST] Reading data from file /tmp/pwd.txt and
encrypting it ...SUCCESSFUL.
[06/03/2016 09:03:45:345 CEST] Generating audit log file name ...SUCCESSFUL.
[06/03/2016 09:03:45:408 CEST] Creating tag swapped
OpenSSOAgentBootstrap.properties file for instance Agent_001 ...SUCCESSFUL.
[06/03/2016 09:03:45:411 CEST] Creating a backup for file
/opt/tomcats/am2/conf/server.xml ...SUCCESSFUL.
[06/03/2016 09:03:45:422 CEST] Creating a backup for file
/opt/tomcats/am2/conf/web.xml ...SUCCESSFUL.
[06/03/2016 09:03:45:442 CEST] Adding OpenAM Tomcat Agent Realm to
Server XML file : /opt/tomcats/am2/conf/server.xml ...SUCCESSFUL.
[06/03/2016 09:03:45:443 CEST] Adding filter to Global deployment
descriptor file : /opt/tomcats/am2/conf/web.xml ...SUCCESSFUL.
[06/03/2016 09:03:45:572 CEST] Adding OpenAM Tomcat Agent Filter and
Form login authentication to selected Web applications ...SUCCESSFUL.

[06/03/2016 09:03:45:640 CEST] SUMMARY OF AGENT INSTALLATION
[06/03/2016 09:03:45:641 CEST] -----------------------------
[06/03/2016 09:03:45:643 CEST] Agent instance name: Agent_001
[06/03/2016 09:03:45:644 CEST] Agent Bootstrap file location:
/home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/config/OpenSSOAgentBootstrap.properties
[06/03/2016 09:03:45:644 CEST] Agent Configuration file location
/home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/config/OpenSSOAgentConfiguration.properties
[06/03/2016 09:03:45:645 CEST] Agent Audit directory location:
/home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/logs/audit
[06/03/2016 09:03:45:646 CEST] Agent Debug directory location:
/home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/logs/debug




2) J2EE policy agent (28080) debug trace
=========================================
~/j2ee_agents/tomcat_v6_agent/Agent_001/logs/debug$ cat debug.out
amAuthContext:06/03/2016 09:29:30:165 AM CEST: Thread[main,5,main]
**********************************************
amAuthContext:06/03/2016 09:29:30:146 AM CEST: Thread[main,5,main]
ERROR: Failed to obtain auth service url from server: null://null:null
amAgentCore:06/03/2016 09:29:36:299 AM CEST: Thread[main,5,main]
**********************************************
amAgentCore:06/03/2016 09:29:36:296 AM CEST: Thread[main,5,main]
ERROR:
=======================================
Version: 3.5.0
Revision: 12236
Build Date: 2015-Jan-28 15:07:46
Build Machine: builds.internal.forgerock.com
=======================================

---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus

_______________________________________________
Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
OpenAM mailing list
[hidden email]
https://lists.forgerock.org/mailman/listinfo/openam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ERROR: Failed to obtain auth service url from server: null://null:null

Bernhard Thalmayr
Hi Olivier, if you search the alias, you will find my answers regarding
this issue ... it's not an error at all (also see my comment on
https://bugster.forgerock.org/jira/browse/OPENAM-1106) and not the root
cause of your issue.

-Bernhard

Am 03/06/16 um 09:52 schrieb Olivier Rivat:

> Hi,
>
> I am trying to setup a J2EE policy agent using tomcat
>
> <a href="https://backstage.forgerock.com/#!/docs/openam-policy-agents/3.3.0/jee-install-guide#install-tomcat-agent">https://backstage.forgerock.com/#!/docs/openam-policy-agents/3.3.0/jee-install-guide#install-tomcat-agent
>
>
>
> I have using
> JDK 1.8
> openam V12
> J2EE policy agent 3.50
> Tomcat server
>
> I have 2 servers:
> -1) openam http://openam.example.com:18080/openam
> -2) tomcat with examples default webapp that I would like to protect
> (http://openam.example.com:28080/examples/servlets)
>
>
> Installation of J2E policy agent has gone well (cf step 1)
> But as soon as I start tomcat on 28080, an error message is generated
> for the J2EE policy agent
> ERROR: Failed to obtain auth service url from server: null://null:null
>
>
> and of course, URL http://openam.example.com:28080/examples/servlets is
> never protected
>
>
> What coudl be teh reason, issue of
> ERROR: Failed to obtain auth service url from server: null://null:null
>
> Regards,
> Olivier
>
>
>
>
>
> J2EE policy installation trace
> ===============================
> [06/03/2016 09:03:41:414 CEST] BEGIN SUMMARY OF USER INPUT
> [06/03/2016 09:03:41:414 CEST] ---------------------------
> [06/03/2016 09:03:41:414 CEST] Tomcat Server Config Directory :
> /opt/tomcats/am2/conf
> [06/03/2016 09:03:41:414 CEST] OpenAM server URL :
> http://openam.example.com:18080/openam
> [06/03/2016 09:03:41:414 CEST] $CATALINA_HOME environment variable :
> /opt/tomcats/am2
> [06/03/2016 09:03:41:414 CEST] Agent URL :
> http://openam.example.com:28080/examples/servlets
> [06/03/2016 09:03:41:414 CEST] Agent Profile name :
> tomcat_am2_examples_servlets
> [06/03/2016 09:03:41:414 CEST] Agent Profile Password file name :
> /tmp/pwd.txt
>
> [06/03/2016 09:03:41:504 CEST] Updating the
> /opt/tomcats/am2/bin/setenv.sh script with the Agent configuration JVM
> option ...SUCCESSFUL.
> [06/03/2016 09:03:44:010 CEST] Creating directory layout and configuring
> Agent file for Agent_001 instance ...SUCCESSFUL.
> [06/03/2016 09:03:45:345 CEST] Reading data from file /tmp/pwd.txt and
> encrypting it ...SUCCESSFUL.
> [06/03/2016 09:03:45:345 CEST] Generating audit log file name
> ...SUCCESSFUL.
> [06/03/2016 09:03:45:408 CEST] Creating tag swapped
> OpenSSOAgentBootstrap.properties file for instance Agent_001 ...SUCCESSFUL.
> [06/03/2016 09:03:45:411 CEST] Creating a backup for file
> /opt/tomcats/am2/conf/server.xml ...SUCCESSFUL.
> [06/03/2016 09:03:45:422 CEST] Creating a backup for file
> /opt/tomcats/am2/conf/web.xml ...SUCCESSFUL.
> [06/03/2016 09:03:45:442 CEST] Adding OpenAM Tomcat Agent Realm to
> Server XML file : /opt/tomcats/am2/conf/server.xml ...SUCCESSFUL.
> [06/03/2016 09:03:45:443 CEST] Adding filter to Global deployment
> descriptor file : /opt/tomcats/am2/conf/web.xml ...SUCCESSFUL.
> [06/03/2016 09:03:45:572 CEST] Adding OpenAM Tomcat Agent Filter and
> Form login authentication to selected Web applications ...SUCCESSFUL.
>
> [06/03/2016 09:03:45:640 CEST] SUMMARY OF AGENT INSTALLATION
> [06/03/2016 09:03:45:641 CEST] -----------------------------
> [06/03/2016 09:03:45:643 CEST] Agent instance name: Agent_001
> [06/03/2016 09:03:45:644 CEST] Agent Bootstrap file location:
> /home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/config/OpenSSOAgentBootstrap.properties
>
> [06/03/2016 09:03:45:644 CEST] Agent Configuration file location
> /home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/config/OpenSSOAgentConfiguration.properties
>
> [06/03/2016 09:03:45:645 CEST] Agent Audit directory location:
> /home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/logs/audit
> [06/03/2016 09:03:45:646 CEST] Agent Debug directory location:
> /home/orivat/j2ee_agents/tomcat_v6_agent/Agent_001/logs/debug
>
>
>
>
> 2) J2EE policy agent (28080) debug trace
> =========================================
> ~/j2ee_agents/tomcat_v6_agent/Agent_001/logs/debug$ cat debug.out
> amAuthContext:06/03/2016 09:29:30:165 AM CEST: Thread[main,5,main]
> **********************************************
> amAuthContext:06/03/2016 09:29:30:146 AM CEST: Thread[main,5,main]
> ERROR: Failed to obtain auth service url from server: null://null:null
> amAgentCore:06/03/2016 09:29:36:299 AM CEST: Thread[main,5,main]
> **********************************************
> amAgentCore:06/03/2016 09:29:36:296 AM CEST: Thread[main,5,main]
> ERROR:
> =======================================
> Version: 3.5.0
> Revision: 12236
> Build Date: 2015-Jan-28 15:07:46
> Build Machine: builds.internal.forgerock.com
> =======================================
>
> ---
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> https://www.avast.com/antivirus
>
> _______________________________________________
> Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
> OpenAM mailing list
> [hidden email]
> https://lists.forgerock.org/mailman/listinfo/openam


--
Painstaking Minds
IT-Consulting Bernhard Thalmayr
Herxheimer Str. 5, 83620 Vagen (Munich area), Germany
Tel: +49 (0)8062 7769174
Mobile: +49 (0)176 55060699

[hidden email] - Solution Architect
http://www.xing.com/profile/Bernhard_Thalmayr
http://de.linkedin.com/in/bernhardthalmayr

This e-mail may contain confidential and/or privileged information.If
you are not the intended recipient (or have received this email in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
_______________________________________________
Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
OpenAM mailing list
[hidden email]
https://lists.forgerock.org/mailman/listinfo/openam
Loading...