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 > > >