Hi Marc,

I found the solution!

In fact when you run wildfly via the command

./bin/standalone.sh -c standalone-apiman.xml

You must add the argument -b=0.0.0.0

Therefore, instead of execute the command
./bin/standalone.sh -c standalone-apiman.xml

You must run the command :

./bin/standalone.sh -c standalone-apiman.xml -b=0.0.0.0

Thank you for your help.

Olivier

Le 05/09/2017 à 14:26, Marc Savy a écrit :
Hi Olivier,

Does *hostname* not work for you:

https://github.com/apiman/apiman/blob/master/distro/vertx/src/main/resources/overlay/configs/conf-es.json#L219

You can also alter the reported endpoint with *publicEndpoint*:

https://github.com/apiman/apiman/blob/master/distro/vertx/src/main/resources/overlay/configs/conf-es.json#L223

It seems to work (on 1.3.1.Final, at least), but please verify and let us know.

Regards,
Marc

On 5 September 2017 at 07:32, Olivier ROZIER <orozier@ac-dijon.fr> wrote:

Hello Mark,

I forgot to say you that I use APIMAN 1.3.1.Final overlayfor Wildfly 10 and APIMAN 1.3.1.Final Vert.x Gateway.

Thank you for your help.

Olivier


Le 04/09/2017 à 11:46, Marc Savy a écrit :
Thanks for the clarification, that's helpful. I'll look into it and get back to you shortly.

Regards,
Marc

On 4 September 2017 at 09:47, Olivier ROZIER <orozier@ac-dijon.fr> wrote:

Hello Eric,

Thank you for your answer.

In fact, when I say "it doesn't work", I would say that there is no result in the client REST but also, there is no error message. I haven't got response in fact...

When I execute the command netstat -ltanu, I have this result :

As you can see, I have got the line 127.0.0.1:8080 but I haven't got the line 169.254.107.101:8080

I think the problem comes from here but I don't know in which file I must specify the IP Address and the port (169.254.107.101:8080).

Moreover, I haven't got firewall.

Do you understand better?

Thank you in advance for your help.

Olivier



Le 01/09/2017 à 17:56, Eric Wittmann a écrit :
When you say it "doesn't work" can you be more specific?  Is the host unreachable or do you receive an error from the Apiman server?

I'll assume that the host is simply unreachable and answer that. :)

Marc will need to confirm, but I believe the vert.x server automatically binds to 0.0.0.0 when it starts up, so I don't think you should need to configure anything to bind to a specific network host.

The only other thing I can think of is that your Ubuntu system has a firewall enabled and that you need to open port 8080 on that firewall so that external TCP requests can be made.


-Eric

On Fri, Sep 1, 2017 at 10:39 AM, Olivier ROZIER <orozier@ac-dijon.fr> wrote:

Hello,

I would like to know how to change the first part of the gateway endpoint.

In fact, the endpoint takes this form :

http://gatewayhostname:port/apiman-gateway/{organizationId}/{API ID}/{API version}/

When I try to access to this endpoint from a REST client on local host with this URL :  
http://localhost:8080/apiman-gateway/{organizationId}/{API ID}/{API version}/

it works fine.

But when I try to access to this endpoint from a remote host with the IP address of the host where APIMAN and the gateway are installed like this :  
http://172.56.56.123:8080/apiman-gateway/{organizationId}/{API ID}/{API version}/

it doesn't work.

APIMAN and the gateway (vert.x) are installed on the same ubuntu (ssh is activated).

Please, could you say me what file I can configure.

Thank you in advance.

Best regards. 
--

Olivier ROZIER
Équipe nationale de développement et intégration d'applications
Direction des Systèmes d'Information
DSI

Rectorat de Dijon
2G rue du Général Delaborde - 21000 Dijon

LD : 03 80 44 88 78 - Fax : 03 80 44 88 10
www.ac-dijon.fr

Pensez à l'environnement avant d'imprimer ce message



_______________________________________________
Apiman-user mailing list
Apiman-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/apiman-user



--

Olivier ROZIER
Équipe nationale de développement et intégration d'applications
Direction des Systèmes d'Information
DSI

Rectorat de Dijon
2G rue du Général Delaborde - 21000 Dijon

LD : 03 80 44 88 78 - Fax : 03 80 44 88 10
www.ac-dijon.fr

Pensez à l'environnement avant d'imprimer ce message



_______________________________________________
Apiman-user mailing list
Apiman-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/apiman-user



--

Olivier ROZIER
Équipe nationale de développement et intégration d'applications
Direction des Systèmes d'Information
DSI

Rectorat de Dijon
2G rue du Général Delaborde - 21000 Dijon

LD : 03 80 44 88 78 - Fax : 03 80 44 88 10
www.ac-dijon.fr

Pensez à l'environnement avant d'imprimer ce message




--

Olivier ROZIER
Équipe nationale de développement et intégration d'applications
Direction des Systèmes d'Information
DSI

Rectorat de Dijon
2G rue du Général Delaborde - 21000 Dijon

LD : 03 80 44 88 78 - Fax : 03 80 44 88 10
www.ac-dijon.fr

Pensez à l'environnement avant d'imprimer ce message