cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] Resolved: (CXF-1463) java2ws produces mystifying error when service attempts to use a Map with JAX-B
Date Sat, 10 Oct 2009 18:48:31 GMT


Christian Schneider resolved CXF-1463.

       Resolution: Fixed
    Fix Version/s: 2.2.4
         Assignee: Christian Schneider

I just tried to generate a wsdl from a java service that contains a Map in one data class.

public class Customer {
    Map<String, String> products;

    public Map<String, String> getProducts() {
        return products;

    public void setProducts(Map<String, String> products) {
        this.products = products;

The wsdl was generated without errors and contains the following:
<xs:complexType name="customer">
					<xs:element name="products">
								<xs:element maxOccurs="unbounded" minOccurs="0" name="entry">
											<xs:element minOccurs="0" name="key" type="xs:string" />
											<xs:element minOccurs="0" name="value" type="xs:string" />

So I think this issue is solved. Please reopen if this is incorrect.

> java2ws produces mystifying error when service attempts to use a Map with JAX-B
> -------------------------------------------------------------------------------
>                 Key: CXF-1463
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Christian Schneider
>             Fix For: 2.2.4
> Step 1: build the current tip, including the distribution directory.
> Step 2: apply the current build to itself, as follows.
> I don't know what this error is trying to tell me.
> bim-1330% $CXF_HOME/bin/java2ws -cp /home/benson/cxf/trunk/systests/target/test-classes
> Error: org.apache.cxf.service.factory.ServiceConstructionException
> JavaToWS Error: org.apache.cxf.service.factory.ServiceConstructionException

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message