Note that there are some explanatory texts on larger screens.

plurals
  1. POusing xjc (jaxb) on xsd like web-app_2_5.xsd doesn't create useable mappings
    primarykey
    data
    text
    <h2>using xjc (jaxb) on xsd like web-app_2_5.xsd doesn't create useable mappings</h2> <p>there is no @XmlAccessorType and no way to Marshall and UnMarshall XML using the mappings. What can be done to modify these mappings to create useable files? (the ant,maven,xjc command line all give same output)</p> <p>here is the WebAppType generated for example:</p> <pre><code>@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "web-appType", propOrder = { "descriptionAndDisplayNameAndIcon" }) public class WebAppType { @XmlElementRefs({ @XmlElementRef(name = "resource-env-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "post-construct", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "icon", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "error-page", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "jsp-config", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "message-destination", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "display-name", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "security-constraint", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "message-destination-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "security-role", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "pre-destroy", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "filter", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "env-entry", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "ejb-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "filter-mapping", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "mime-mapping", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "distributable", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "persistence-unit-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "login-config", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "servlet", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "ejb-local-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "description", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "service-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "persistence-context-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "context-param", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "resource-ref", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "session-config", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "locale-encoding-mapping-list", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "servlet-mapping", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "welcome-file-list", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class), @XmlElementRef(name = "listener", namespace = "http://java.sun.com/xml/ns/javaee", type = JAXBElement.class) }) protected List&lt;JAXBElement&lt;?&gt;&gt; descriptionAndDisplayNameAndIcon; @XmlAttribute(name = "version", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected java.lang.String version; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected java.lang.String id; @XmlAttribute(name = "metadata-complete") protected Boolean metadataComplete; /** * Gets the value of the descriptionAndDisplayNameAndIcon property. * * &lt;p&gt; * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the descriptionAndDisplayNameAndIcon property. * * &lt;p&gt; * For example, to add a new item, do as follows: * &lt;pre&gt; * getDescriptionAndDisplayNameAndIcon().add(newItem); * &lt;/pre&gt; * * * &lt;p&gt; * Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code &lt;}{@link ResourceEnvRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link LifecycleCallbackType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link IconType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ErrorPageType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link JspConfigType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link MessageDestinationType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link DisplayNameType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link SecurityConstraintType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link MessageDestinationRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link SecurityRoleType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link LifecycleCallbackType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link FilterType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link EnvEntryType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link EjbRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link FilterMappingType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link MimeMappingType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link EmptyType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link PersistenceUnitRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link LoginConfigType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ServletType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link EjbLocalRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link DescriptionType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ServiceRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link PersistenceContextRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ParamValueType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ResourceRefType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link SessionConfigType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ServletMappingType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link LocaleEncodingMappingListType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link WelcomeFileListType }{@code &gt;} * {@link JAXBElement }{@code &lt;}{@link ListenerType }{@code &gt;} * * */ public List&lt;JAXBElement&lt;?&gt;&gt; getDescriptionAndDisplayNameAndIcon() { if (descriptionAndDisplayNameAndIcon == null) { descriptionAndDisplayNameAndIcon = new ArrayList&lt;JAXBElement&lt;?&gt;&gt;(); } return this.descriptionAndDisplayNameAndIcon; } /** * Gets the value of the version property. * * @return * possible object is * {@link java.lang.String } * */ public java.lang.String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link java.lang.String } * */ public void setVersion(java.lang.String value) { this.version = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link java.lang.String } * */ public java.lang.String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link java.lang.String } * */ public void setId(java.lang.String value) { this.id = value; } /** * Gets the value of the metadataComplete property. * * @return * possible object is * {@link Boolean } * */ public Boolean isMetadataComplete() { return metadataComplete; } /** * Sets the value of the metadataComplete property. * * @param value * allowed object is * {@link Boolean } * */ public void setMetadataComplete(Boolean value) { this.metadataComplete = value; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload