jaxb

Tomcat possible way that don't load TOMCAT JAR from JAXB before my Web Application built in JRUBY

I get this error on my application when i try to run in "Tomcat", in WEBrick works fine: SEVERE: Application Error org.jruby.rack.RackInitializationException: wrong # of arguments(0 for 1) from /home/gpereira/apache/apache-tomcat-6.0.18/webapps/vtsbackoffice/WEB-INF/app/controllers/application_controller.rb:5 and in line 5 i h...

Can I configure XJC bindings to generate collections as Set instead of List

Given a schema such as this: <xs:element name="Group" type="GroupType"/> <xs:complexType name="GroupType"> <xs:sequence> <xs:element type="OptionsType" name="Options" maxOccurs="1" minOccurs="1"/> <xs:element type="PageContainerType" name="PageContainer" maxOccurs="unbounded" minOccurs="0"/> </xs:sequence> </xs:...

cxf / jaxb complex types

Hello, I use CXF to generate the classes from WSDL but I don't know how to access the following field : <s:complexType name="text-with-layout-type" mixed="true"> <s:sequence> <s:any minOccurs="0" maxOccurs="unbounded"/> </s:sequence> <s:attribute name="L" type="s:string"/> </s:complexType> The resulting class is : @XmlAccessorType(X...

How to create class with java.util.Set using jaxb xjc?

Hi I am able to crate java class using jaxb xjc with java.util.List. How to create the same class with java.util.Set ? I like create the java class as follows. protected Set<ActivitiesByType> activitiesByType; public Set<ActivitiesByType> getActivitiesByType() { if (activitiesByType == null) { activitiesByType = new HashS...

JAXB in java 6 not prefixing the correct namespace prefix in marshalled XML file

Hi I have a schema with following attributes in schema element: <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abc="http://abc.example.com" targetNamespace="http://abc.example.com" elementFormDefault="qualified" attributeFormDefault="unqualified"> I could compile it and get java classes. Using these classes, I filled in data ...

How to import a Schema (XSD) which is in a jar file into another Schema(XSD)

I have some common types which are defined in an xsd file which is then later bundled as a jar file. I have this jar file in my classpath and I want to include this xsd into another xsd to use those types. How to refer the schema in a jar file? Also I want to create JAXB objects from the new schema is it possible. Also I want to use this...

Mapping Java collections which contains super- and sub-types with JAXB

I'm trying to produce something like this with JAXB: <person> <firstName>Foo</firstName> <lastName>Bar</lastName> <identities> <green id="greenId"> <some_elements.... </green> <blue id="blueId"/> </identities> The child elements of <identities> all stem from a common super-class. In Jav...

JAXB XJC compiler disregarding mixed=true on XML Schema documents

XJC seems to be completely ignoring mixed="true" on my XML Schema elements thereby not allowing me to extract text content. From the sample XML below, I need to be able to extract "Title Text." Without mixed="true" being recognized, no accessor is created nor is it unmarshalled from XML: <?xml version="1.0" encoding="UTF-8"?> <title xml...

JAXB annotations to deal with same element name in different namespaces.

The problem that I am trying to solve is that JAXB cannot handle the parent and inherited objects of the same name in different namespaces. I have two schemas: schemaA.xsd <xs:schema xmlns:A="..."> <xs:complexType name="mytype"> ... schemaB.xsd <xs:schema xmlns:B="..." xmlns:A="..."> <xs:import namespace="..." schemaLocation="schem...

Spring Roo does not generate CRUD

In Spring Roo I used this tutorial with my custom xsd to generate objects. After that I used command controller all ~.web, controller is generated but without CRUD functions. If I make manual objects in Roo controller with CRUD functions is generated. Any idea what is the problem? Schema file xsd is in my case important for REST data exc...