You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Matthew Broadhead (JIRA)" <ji...@apache.org> on 2014/11/28 10:20:12 UTC
[jira] [Comment Edited] (TOMEE-1460) deploying cxf webservice in
host other than localhost
[ https://issues.apache.org/jira/browse/TOMEE-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228177#comment-14228177 ]
Matthew Broadhead edited comment on TOMEE-1460 at 11/28/14 9:19 AM:
--------------------------------------------------------------------
on a clean install putting testws.war in webapps and adding to the bottom of server.xml
{code:xml}
<Host name="test.com">
<Context path="/testws" docBase="/Applications/apache-tomee-plume-1.7.2/webapps/testws"></Context>
</Host>
{code}
results in
{code}
SEVERE: Application cannot be deployed as it contains deployment-ids which are in use: app: /Applications/apache-tomee-plume-1.7.2/webapps/testws
Nov 28, 2014 10:14:03 AM org.apache.openejb.assembler.classic.Assembler createApplication
SEVERE: DeploymentId already used: Test
Nov 28, 2014 10:14:03 AM org.apache.tomee.catalina.TomcatWebAppBuilder startInternal
SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[www.kis.sy].StandardContext[/testws]
org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use: app: /Applications/apache-tomee-plume-1.7.2/webapps/testws
{code}
was (Author: chongma):
on a clean install putting testws.war in webapps and adding to the bottom of server.xml
{code}
<Host name="test.com">
<Context path="/testws" docBase="/Applications/apache-tomee-plume-1.7.2/webapps/testws"></Context>
</Host>
{code}
results in
{code}
SEVERE: Application cannot be deployed as it contains deployment-ids which are in use: app: /Applications/apache-tomee-plume-1.7.2/webapps/testws
Nov 28, 2014 10:14:03 AM org.apache.openejb.assembler.classic.Assembler createApplication
SEVERE: DeploymentId already used: Test
Nov 28, 2014 10:14:03 AM org.apache.tomee.catalina.TomcatWebAppBuilder startInternal
SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[www.kis.sy].StandardContext[/testws]
org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use: app: /Applications/apache-tomee-plume-1.7.2/webapps/testws
{code}
> 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)