You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roque Alexander Lozano Lozano <al...@hotmail.com> on 2017/02/21 21:51:31 UTC

Deploy app by JMX

Hello

I am trying to create application deployment using JMX through MBeanFactory.

The methods used were:

1. createStandardServiceEngine
2. createStandardHost
3 In the service I invoke addConnector to listen via http port.

When entering through the url http://191.168.0.1:8091/myapp it generates an error of type 404.

But when adding as an alias the ip address to the Host object if it works

Is there any way to make it work without specifying alias?

I'm using Apache Tomcat 8.5.11

Pd: In the version of Apache Tomcat 7.0.57 it worked

Thanks.


Alexander.


Re: Deploy app by JMX

Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 21.02.2017 22:51, Roque Alexander Lozano Lozano wrote:
> Hello
>
> I am trying to create application deployment using JMX through MBeanFactory..
>
> The methods used were:
>
> 1. createStandardServiceEngine
> 2. createStandardHost
> 3 In the service I invoke addConnector to listen via http port.
>
> When entering through the url http://191.168.0.1:8091/myapp it generates an error of type 404.

As it probably should. My guess is that this URL, internally, gets directed to the 
"default host", which does not have this "myapp" application.
The question being : why would you try to access the application that way, instead of 
using a hostname ?

>
> But when adding as an alias the ip address to the Host object if it works

That is a bit obscure (at least to me). Can you try to rephrase this in a clearer way ?
(Maybe provide an example, with dummy (but consistent) IP addresses and hostnames ?)

>
> Is there any way to make it work without specifying alias?
>
> I'm using Apache Tomcat 8.5.11
>
> Pd: In the version of Apache Tomcat 7.0.57 it worked
>
> Thanks.
>
>
> Alexander.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org