[jbossws-issues] [JBoss JIRA] (JBWS-3539) java.net.BindException: Address already in use when <cxf:bus> is defined in jbossws-cxf.xml
Vaughn Butt (JIRA)
jira-events at lists.jboss.org
Sun Aug 26 18:04:15 EDT 2012
[ https://issues.jboss.org/browse/JBWS-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713718#comment-12713718 ]
Vaughn Butt commented on JBWS-3539:
-----------------------------------
There _appears_ to be a workaround for this. You can put the <cxf:bus> element in a cxf.xml file that is in the classpath. This file is in addition to the jbossws-cxf.xml file. I have tested this with:
{code:title=cxf.xml|borderStyle=solid}
<?xml version="1.0"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation=" http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
</beans>
{code}
I say _appears_ because I have not checked what happens with any other elements.
> java.net.BindException: Address already in use when <cxf:bus> is defined in jbossws-cxf.xml
> -------------------------------------------------------------------------------------------
>
> Key: JBWS-3539
> URL: https://issues.jboss.org/browse/JBWS-3539
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.1.0.Beta1
> Reporter: Jim Ma
> Assignee: Jim Ma
>
> When the <cxf:bus> is defined in jbossws-cxf.xml, cxf tries to create http connector and fails with address in use error. We need to look at how to replace the DestinationFactory in the bus created by jbossws-cxf with ServletDestinationFactory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list