guess you need to do the same in conf/conf.d/cxf-rs.properties for 1.6.x

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-07-16 0:42 GMT+02:00 Leonardo K. Shikida <shik...@gmail.com>:

> well, still having this weird message
>
> SEVERE: error invoking
> Observer{class=org.apache.tomee.webservices.TomeeJaxRsService}
> java.lang.IllegalArgumentException: Invalid virtual host 'localhost'.  Do
> you have a matching Host entry in the server.xml?
>     at
>
> org.apache.tomee.webservices.TomcatRsRegistry.createRsHttpListener(TomcatRsRegistry.java:65)
>     at
>
> org.apache.openejb.server.rest.RESTService.deployApplication(RESTService.java:450)
>     at
>
> org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:231)
>     at
>
> org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
>
> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:149)
>     at
>
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
>     at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:108)
>     at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1608)
>     at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:113)
>     at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>     at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>     at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
>     at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>     at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>     at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>     at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:724)
>
>
> []
>
> Leo
>
> On Wed, Jul 15, 2015 at 7:33 PM, Romain Manni-Bucau <rmannibu...@gmail.com
> >
> wrote:
>
> > Yes
> >
> > Think the issue is not fully linked but tge conf looks good
> > Le 16 juil. 2015 00:29, "Leonardo K. Shikida" <shik...@gmail.com> a
> écrit
> > :
> >
> > > btw it's 1.6.0.2 (just saw some discussion about 1.7.1/2 here --
> > > https://issues.apache.org/jira/browse/TOMEE-1460)
> > >
> > > cxf.properties must have something like this?
> > >
> > > virtualHost = myhost.mydomain.com
> > >
> > > []
> > >
> > > Leo
> > >
> > > On Wed, Jul 15, 2015 at 3:52 PM, Romain Manni-Bucau <
> > rmannibu...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hi
> > > >
> > > > Weird if on a recent version, if not editing host in
> > > > conf/conf.d/cxf.properties can help
> > > > Le 15 juil. 2015 20:27, "Leonardo K. Shikida" <shik...@gmail.com> a
> > > écrit
> > > > :
> > > >
> > > > > not sure if I am doing it right
> > > > >
> > > > > I've changed tomee's server.xml like
> > > > >
> > > > > <Engine name="Catalina" defaultHost="myhost.mydomain.com">
> > > > >
> > > > > and
> > > > >
> > > > > <Host name="myhost.mydomain.com"  appBase="webapps"
> > > > >             unpackWARs="true" autoDeploy="true">
> > > > >
> > > > > and I am getting
> > > > >
> > > > > java.lang.IllegalArgumentException: Invalid virtual host
> 'localhost'.
> > > Do
> > > > > you have a matchiing Host entry in the server.xml?
> > > > >
> > > > > and
> > > > >
> > > > > javax.naming.NameNotFoundException: Name [global/MyApp/TimerWorker]
> > is
> > > > not
> > > > > bound in this Context. Unable to find [global].
> > > > >     at
> org.apache.naming.NamingContext.lookup(NamingContext.java:819)
> > > > >     at
> org.apache.naming.NamingContext.lookup(NamingContext.java:167)
> > > > >     at
> > > org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)
> > > > >     at javax.naming.InitialContext.lookup(InitialContext.java:411)
> > > > >
> > > > >
> > > > >
> > > > > []
> > > > >
> > > > > Leo
> > > > >
> > > > > On Wed, Jul 15, 2015 at 12:47 PM, Romain Manni-Bucau <
> > > > > rmannibu...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > did you change the host inserver.xml? guess you kept localhost.
> > That
> > > > said
> > > > > > not sure you can get the host instead of the IP. Alternative is
> to
> > > > > provide
> > > > > > the wsdl instead of letting it be generated
> > > > > >
> > > > > >
> > > > > > Romain Manni-Bucau
> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > https://github.com/rmannibucau> |
> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > > > <http://www.tomitribe.com>
> > > > > >
> > > > > > 2015-07-15 17:42 GMT+02:00 Leonardo K. Shikida <
> shik...@gmail.com
> > >:
> > > > > >
> > > > > > > Hi
> > > > > > >
> > > > > > > my generated wsdl is generated like this
> > > > > > >
> > > > > > > <wsdl:service name="XYZWSService">
> > > > > > >     <wsdl:port binding="tns:XYZWSServiceSoapBinding"
> > > > name="XYZWSPort">
> > > > > > >       <soap:address location="*
> > > > > > http://127.0.0.1:9998/ABC/webservices/XYZWS
> > > > > > > <http://127.0.0.1:9998/ABC/webservices/XYZWS>*"/>
> > > > > > >     </wsdl:port>
> > > > > > >   </wsdl:service>
> > > > > > > </wsdl:definitions>
> > > > > > >
> > > > > > > I'd like it to be
> > > > > > >
> > > > > > > <wsdl:service name="XYZWSService">
> > > > > > >     <wsdl:port binding="tns:XYZWSServiceSoapBinding"
> > > > name="XYZWSPort">
> > > > > > >       <soap:address
> > > > > > > location="*http://mysite.mydomain:9998/ABC/webservices/XYZWS
> > > > > > > <http://mysite.mydomain:9998/ABC/webservices/XYZWS>*"/>
> > > > > > >     </wsdl:port>
> > > > > > >   </wsdl:service>
> > > > > > > </wsdl:definitions>
> > > > > > >
> > > > > > > how do I do that?
> > > > > > >
> > > > > > > TIA
> > > > > > >
> > > > > > > Leo
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to