Thnk you Romain, yes the issue was defaultHost in server.xml, I didn't need to change cxf.properties, only server.xml and it worked.
This thread can be closed now. On 10/27/2012 05:57 PM, Romain Manni-Bucau wrote:
isn't localhost mentionned as defaultHost in the engined defined in server.xml? <Engine name="Catalina" defaultHost="localhost"... /> if it is correct you should probably define the expected host in conf/conf.d/cxf.properties (key virtualHost) *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/10/26 Reinis Vicups <[email protected]>Hi, I am running TomEE 1.5.1-SNAPSHOT behind apache2 with mod-jk and this VirtualHost config: <Virtualhost my.co.com> JkMount /* ajp13_worker ServerName my.co.com DocumentRoot /usr/local/tomee/webapps ErrorLog /usr/local/tomee/logs/error.**log CustomLog /usr/local/tomee/logs/access.**log common <Directory /usr/local/tomee/webapps> Options -Indexes </Directory> </Virtualhost> When I start TomEE, I get this exception: 2012-10-26 22:45:12,646 [my.co.com-startStop-1] INFO org.apache.cxf.service.**factory.**ReflectionServiceFactoryBean - Creating Service {http://someblubb.co.de/}**SchedulerService<http://someblubb.co.de/%7DSchedulerService>from class de.blubb.web.service. **SchedulerService 2012-10-26 22:45:13,429 [my.co.com-startStop-1] INFO org.apache.cxf.endpoint.**ServerImpl - Setting the server's publish address to be http://nopath:80 Oct 26, 2012 10:45:13 PM org.apache.openejb.server.**webservices.WsService afterApplicationCreated SEVERE: Error deploying JAX-WS Web Service for EJB services/SchedulerServiceWS java.lang.**IllegalArgumentException: Invalid virtual host 'localhost'. Do you have a matchiing Host entry in the server.xml? at org.apache.tomee.webservices.**TomcatWsRegistry.** addWsContainer(**TomcatWsRegistry.java:168) at org.apache.openejb.server.**webservices.WsService.** afterApplicationCreated(**WsService.java:281) at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) at sun.reflect.**NativeMethodAccessorImpl.**invoke(Unknown Source) at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(Unknown Source) at java.lang.reflect.Method.**invoke(Unknown Source) at org.apache.openejb.observer.**ObserverManager$Observer.** invoke(ObserverManager.java:**145) at org.apache.openejb.observer.**ObserverManager.fireEvent(** ObserverManager.java:69) at org.apache.openejb.loader.**SystemInstance.fireEvent(** SystemInstance.java:107) at org.apache.openejb.assembler.**classic.Assembler.** createApplication(Assembler.**java:929) at org.apache.openejb.assembler.**classic.Assembler.** createApplication(Assembler.**java:532) at org.apache.tomee.catalina.**TomcatWebAppBuilder.** startInternal(**TomcatWebAppBuilder.java:887) at org.apache.tomee.catalina.**TomcatWebAppBuilder.** configureStart(**TomcatWebAppBuilder.java:833) at org.apache.tomee.catalina.**GlobalListenerSupport.** lifecycleEvent(**GlobalListenerSupport.java:**121) at org.apache.catalina.util.**LifecycleSupport.** fireLifecycleEvent(**LifecycleSupport.java:119) at org.apache.catalina.util.**LifecycleBase.**fireLifecycleEvent(* *LifecycleBase.java:90) at org.apache.catalina.core.**StandardContext.startInternal(** StandardContext.java:5173) at org.apache.catalina.util.**LifecycleBase.start(** LifecycleBase.java:150) 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:633) at org.apache.catalina.startup.**HostConfig.deployWAR(** HostConfig.java:968) at org.apache.catalina.startup.**HostConfig$DeployWar.run(** HostConfig.java:1646) at java.util.concurrent.**Executors$RunnableAdapter.**call(Unknown Source) at java.util.concurrent.**FutureTask$Sync.innerRun(**Unknown Source) at java.util.concurrent.**FutureTask.run(Unknown Source) at java.util.concurrent.**ThreadPoolExecutor.runWorker(**Unknown Source) at java.util.concurrent.**ThreadPoolExecutor$Worker.run(**Unknown Source) at java.lang.Thread.run(Unknown Source) I checked and rechecked my source - theres nowhere localhost. Has anyone a hint on what to look for here? thanks and br reinis
