You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alexey Moskvin (JIRA)" <ji...@apache.org> on 2009/08/05 16:11:15 UTC
[jira] Created: (CXF-2382) Problem with annotations in Aegis & CXF
Problem with annotations in Aegis & CXF
---------------------------------------
Key: CXF-2382
URL: https://issues.apache.org/jira/browse/CXF-2382
Project: CXF
Issue Type: Bug
Components: Aegis Databinding
Affects Versions: 2.2.2
Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
Reporter: Alexey Moskvin
I am using cxf 2.2 with aegis. Here is a part of my spring config:
<bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
<property name="configuration">
<bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
<property name="defaultNillable" value="false"/>
</bean>
</property>
</bean>
So by default all members of classes/parameters of methods are with micOccures="0" and without
nillable="true".
I need to make some fields of classes nillable.
I added annotation like this:
class C{
@XmlElement(nillable=true) private Calendar cal;
..}
but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
because new fields are added and so, but there are no changes when I set nillable=true with
annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-2382) Problem with annotations in Aegis & CXF
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies reassigned CXF-2382:
-------------------------------------
Assignee: Benson Margulies
> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
> Key: CXF-2382
> URL: https://issues.apache.org/jira/browse/CXF-2382
> Project: CXF
> Issue Type: Bug
> Components: Aegis Databinding
> Affects Versions: 2.2.2
> Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
> Reporter: Alexey Moskvin
> Assignee: Benson Margulies
> Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> <property name="defaultNillable" value="false"/>
> </bean>
> </property>
> </bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
> @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
> because new fields are added and so, but there are no changes when I set nillable=true with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2382) Problem with annotations in Aegis & CXF
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved CXF-2382.
-----------------------------------
Resolution: Invalid
All is well, I hope.
> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
> Key: CXF-2382
> URL: https://issues.apache.org/jira/browse/CXF-2382
> Project: CXF
> Issue Type: Bug
> Components: Aegis Databinding
> Affects Versions: 2.2.2
> Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
> Reporter: Alexey Moskvin
> Assignee: Benson Margulies
> Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> <property name="defaultNillable" value="false"/>
> </bean>
> </property>
> </bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
> @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
> because new fields are added and so, but there are no changes when I set nillable=true with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2382) Problem with annotations in Aegis &
CXF
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739784#action_12739784 ]
Benson Margulies commented on CXF-2382:
---------------------------------------
Oh, dear. What makes you think that hanging an @XmlElement on a private member will have any effect at all? It belongs on the getter or the setter, I'll let you know which in a moment.
> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
> Key: CXF-2382
> URL: https://issues.apache.org/jira/browse/CXF-2382
> Project: CXF
> Issue Type: Bug
> Components: Aegis Databinding
> Affects Versions: 2.2.2
> Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
> Reporter: Alexey Moskvin
> Assignee: Benson Margulies
> Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> <property name="defaultNillable" value="false"/>
> </bean>
> </property>
> </bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
> @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
> because new fields are added and so, but there are no changes when I set nillable=true with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2382) Problem with annotations in Aegis &
CXF
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739797#action_12739797 ]
Benson Margulies commented on CXF-2382:
---------------------------------------
Put the annotation on the get method and all will be well. I'm checking in a unit test of this.
> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
> Key: CXF-2382
> URL: https://issues.apache.org/jira/browse/CXF-2382
> Project: CXF
> Issue Type: Bug
> Components: Aegis Databinding
> Affects Versions: 2.2.2
> Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
> Reporter: Alexey Moskvin
> Assignee: Benson Margulies
> Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> <property name="defaultNillable" value="false"/>
> </bean>
> </property>
> </bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
> @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
> because new fields are added and so, but there are no changes when I set nillable=true with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2382) Problem with annotations in Aegis & CXF
Posted by "Alexey Moskvin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Moskvin updated CXF-2382:
--------------------------------
Attachment: test_project.zip
This is a full sources, except apache-cxf-2.2.2.zip which is upacked to WebContent/WEB-INF/lib.
> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
> Key: CXF-2382
> URL: https://issues.apache.org/jira/browse/CXF-2382
> Project: CXF
> Issue Type: Bug
> Components: Aegis Databinding
> Affects Versions: 2.2.2
> Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
> Reporter: Alexey Moskvin
> Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
> <property name="configuration">
> <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
> <property name="defaultNillable" value="false"/>
> </bean>
> </property>
> </bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
> @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are deployed,
> because new fields are added and so, but there are no changes when I set nillable=true with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.