You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Lazar Kirchev <la...@gmail.com> on 2017/02/15 10:24:57 UTC

Question about web services support

Hello,

I noticed that in TomcatWsRegistry's constructor the first service with
engine container is used to initialize the registry. And after that in the
setWsContainer this engine is used to search for the contextRoot of the
application being deployed.
However, it is a valid scenario to have more than one service and more than
one engine. And if the application gets deployed on an engine different
from the first one, which is taken in the constructor, then the deployment
of the application fails with
"Could not find web application context <context_root> in host <host>",
because it is searched in the engine where it is not located.
Is this the expected behavior?

Kind regards,
Lazar

Re: Question about web services support

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

jaxws integration behaves this way yes but thought runtime tolerated other
hosts (we did for jaxrs for sure), no blocker to fix it but this usage is
quite rare actually so never has been a priority.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-02-15 11:24 GMT+01:00 Lazar Kirchev <la...@gmail.com>:

> Hello,
>
> I noticed that in TomcatWsRegistry's constructor the first service with
> engine container is used to initialize the registry. And after that in the
> setWsContainer this engine is used to search for the contextRoot of the
> application being deployed.
> However, it is a valid scenario to have more than one service and more than
> one engine. And if the application gets deployed on an engine different
> from the first one, which is taken in the constructor, then the deployment
> of the application fails with
> "Could not find web application context <context_root> in host <host>",
> because it is searched in the engine where it is not located.
> Is this the expected behavior?
>
> Kind regards,
> Lazar
>