[ 
https://issues.apache.org/jira/browse/TOMEE-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228659#comment-14228659
 ] 

Matthew Broadhead commented on TOMEE-1460:
------------------------------------------

OK i have tried apache-tomee-1.7.2-20141129.040852-80-plume and it doesn't work 
as expected.  It still deploys the webservice to localhost:8080 instead of 
test.com:8080.  relevant parts of log:
{noformat}
INFO: ------------------------- test.com -> /testws
Nov 29, 2014 8:01:23 AM org.apache.openejb.config.ConfigurationFactory 
configureApplication
INFO: Configuring enterprise application: 
/Users/matthewbroadhead/Documents/test/testws
Nov 29, 2014 8:01:24 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb Test: EjbDeployment(deployment-id=Test)
Nov 29, 2014 8:01:24 AM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "/Users/matthewbroadhead/Documents/test/testws" 
loaded.
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.Assembler 
createApplication
INFO: Assembling app: /Users/matthewbroadhead/Documents/test/testws
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.JndiBuilder bind
INFO: Jndi(name=TestLocal) --> Ejb(deployment-id=Test)
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.JndiBuilder bind
INFO: Jndi(name=global/testws/Test!testws.TestWs) --> Ejb(deployment-id=Test)
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.JndiBuilder bind
INFO: Jndi(name=global/testws/Test) --> Ejb(deployment-id=Test)
Nov 29, 2014 8:01:24 AM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance(): 
org.apache.openejb.cdi.ThreadSingletonServiceImpl@400cff1a
Nov 29, 2014 8:01:24 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container is starting...
Nov 29, 2014 8:01:24 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Nov 29, 2014 8:01:24 AM org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
Nov 29, 2014 8:01:24 AM org.apache.webbeans.config.BeansDeployer 
validateInjectionPoints
INFO: All injection points were validated successfully.
Nov 29, 2014 8:01:24 AM org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container has started, it took 15 ms.
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.Assembler startEjbs
INFO: Created Ejb(deployment-id=Test, ejb-name=Test, container=Default 
Stateless Container)
Nov 29, 2014 8:01:24 AM org.apache.openejb.assembler.classic.Assembler startEjbs
INFO: Started Ejb(deployment-id=Test, ejb-name=Test, container=Default 
Stateless Container)
Nov 29, 2014 8:01:25 AM org.apache.openejb.server.webservices.WsService 
deployApp
INFO: Webservice(wsdl=http://localhost:8080/testws/Test, 
qname={http://test.com/testws/webservices/test}TestService) --> Ejb(id=Test)
Nov 29, 2014 8:01:25 AM org.apache.openejb.assembler.classic.Assembler 
createApplication
INFO: Deployed Application(path=/Users/matthewbroadhead/Documents/test/testws)
Nov 29, 2014 8:01:25 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive 
/Users/matthewbroadhead/Documents/test/testws.war has finished in 2,029 ms
{noformat}

> deploying cxf webservice in host other than localhost
> -----------------------------------------------------
>
>                 Key: TOMEE-1460
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1460
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.7.1, 1.7.2
>            Reporter: Matthew Broadhead
>
> i have a basic test webservice with interface TestWs
> {code}
>     package testws;
>     import javax.jws.WebService;
>     @WebService(targetNamespace = "http://test.com/testws/webservices/test";)
>     public interface TestWs {
>         void test();
>     }
> {code}
> and class Test
> {code}
>     package testws;
>     import javax.ejb.Stateless;
>     import javax.jws.WebService;
>     @Stateless
>     @WebService(portName = "TestPort", serviceName = "TestService", 
> targetNamespace = "http://test.com/testws/webservices/test";, 
> endpointInterface = "testws.TestWs")
>     public class Test implements TestWs {
>         @Override
>         public void test() {
>         }
>     }
> {code}
> in server.xml i have two host elements
> {code:xml}
>     <Host name="localhost">
>     <Host name="test.com">
> {code}
> deploying the war to localhost everything is fine.  deploying to test.com it 
> does not work.  the log reads:
> {code}
>     INFO: Webservice(wsdl=http://localhost:8080/testws/Test, 
> qname={http://test.com/testws/webservices/test}TestService) --> Ejb(id=Test)
> {code}
> whereas the expected result might be
> {code}
>     INFO: Webservice(wsdl=http://test.com:8080/testws/Test, 
> qname={http://test.com/testws/webservices/test}TestService) --> Ejb(id=Test)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to