JAXM and JAXB

How can I use JAXM and JAXB togather to build an web service application?
Actually, I don't know how to use XML exported by Marshaller method marshal() for JAXM.
Can you give some sample code?
Thanks.

There's a huge tutorial (19 chapters and 7 appendices) with the JavaTM Web Services Developer Pack 1.1 - it includes masses of samples applications.
All the best,
Fergus.

Similar Messages

  • Bgm.ser and jaxb.properties not created

    Is there a particular reason to why the bgm.ser and jaxb.properties files are not created when a schema only consists of a simpletype and I run the binding compiler???
    The two files seem to be created when I include a 'dummy' complextype in the schema. Is a complextype needed in order for the files to be created?
    Cheers.
    Anders
    <simpleType name="Values">
        <restriction base="string">
            <enumeration value="ValueOne"/>
            <enumeration value="ValueTwo"/>
            <enumeration value="ValueThree"/>
            <enumeration value="ValueFour"/>
        </restriction>
    </simpleType>

    I've had the same exact problem! I had the property file in my JAR file properly, but the JAXBContext.newInstance( "package.name" ) call was failing - while at the same time I could load the property file via the ClassLoader just fine, by hand.
    I played around with source for the jaxb beta a bit and I think I found the problem. I recompiled the JAR file after changing the "fileSep" variable in the "searchforcontextPath" method from "file.separatorChar" to "/".
    This seemed to fix the problem. Well, the problem of it not finding the properties file that is... now I've got some kinda non-marshalable exception (but I haven't even spent 3 minutes on that problem yet, as opposed to the hours wasted on this bug).
    I'm not sure if this bug only cropped up when running under a Windows env or not (my test was running under JBoss on XP... though I was building/compiling under Linux).
    Anyway... to fix this just change that variable.. it's on line 228 (i think... i might have added some debug lines of my own in the code) of the javax/xml/bind/ContextFinder.java file. Then just re-jar it over the old JAR -- oh yeah, you'll need a few Message.property files from the jaxb-api.jar file for the new jar file to work (so make sure you unjar the old file 1st or back it up or whatnot).

  • JAXM and a non Java Web Service Client

    How can I acces a web service buit using JAXM with a client written using other technology?
    Where do I have to send the SOAP message from the client?
    I saw that JAXM optains the messeage from the HttpRequest! How do I put the SOAP message there?
    Thanks

    if you are not taking advantage of asynchronous messaging via a messaging provider, but want a standard web service that speaks to non java clients then JAX-RPC should be the API of your choice. It is simpler then JAXM and more standard compliant.
    If you want to do asynchronous messaging your client has to have some kind of messaging provider, too, to be able to continously listen to messages. Then the SOAP messages are then exchanged between the two message providers who both in turn notify onMessage the relevant application (message consumer).
    I hope this helps you solve your problem ;-)

  • XML and JAXB

    Hi All,
    I am planning to use Oracle XML DB 10g for persistence of XML documents and JAXB for XML-Java conversions. I would like to know
    <ul><li>     Whether this is a good approach or any better approch exists. The aim is to allow manipulation of the XML documents in XML DB tables from Java layer. </li>
    <li>What is the best way to retrieve the XMLTYPE columns using the JDBC APIs for THIN driver?</li>
    </ul>
    Thanks,
    Ramesh

    It's a bit cumbersome, but I guess as a hack , after generating your xml file, you could try just reading the input file using a regular FileReader, then writing out just the lines that start with <!doctype & <? xml > (they should be at the top right, so you know the location in the output file). Of course the efficiency for this is terrible--you're reading & writing the file all over!
    That's an interesting analogy, heh. One of the surprising things I found about JAXB is that it doesn't validate enumerations (as far as I know).

  • JSP and JAXB

    DB Structure
    Parent Table - Incident --> Child Table - IncidentCharges --> Child Table of IncidentCharges --> IncidentChargeWeapons
    Container
    Oracle Containers for JAVA(OC4J)
    We have a schema (Incident.xsd) which comprises of our entire database structure. We unmarshalled the schema using JAXB to Java classes and interfaces .
    It created 2 .java classes and 2 .java interfaces for each high level tag . for eg for our Incident tag it created a Incident interface and a IncidentType Interface
    and also it created 2 classes IncidentImpl and IncidentTypeImpl . The IncidentTypeImpl has all the get and set properties we require eg. getIncidentType,
    setIncidentType,getIncidentNumber,setIncidentNumber,getOccuranceDate,setOccuranceDate etc.
    Our objective is to create a JSP page which has form fields to enter data which use these JAXB generated classes get and set properties. In other words
    we want to bind the JSP form fields to these JAXB generated classes. And once these JAXB objects are populated we want to marshal it and create a XML file with the data from those JAXB . Our database would then consume the generated XML. We tried creating a simple incident form with just 3 fields IncidentType,Occurance date and Incident Number and tried to bind these fields with the properties from IncidentTypeImpl classes using the <jsp:usebean> tag . When we deployed it to our container and tried to load the Incident.jsp page , it would not load up . Only when we cleared all the bindings it loaded up .
    Then we tried another workaround (just to get it working. Not a preferred approach) . We created another simple JAVA bean(not JAXB generated beans) which has set and get properties for the form fields and bound the form fields to it.
    On submitting the JSP page we called a servlet which takes data from our created bean and transfers it to the JAXB generated IncidentTypeImpl bean. When we deployed this the jsp page loads up and also our bean is filled with data . But the servlet bombs with this error below.
    500 Internal Server Error
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
    at Servlets.IncidentServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    We have 2 questions .
    1. Can a JSP page be bound directly to this JAXB generated bean in pretty much the same way as we bind it to our own bean ? (We would like to do this so that we dont have to create duplicate classes which mirror the JAXB generated classes.)
    2. Is there something special we have to do to deploy this application to recognize the JAXB classes. Do we have to deploy some jar file for it to recognize those classes ?

    I've used oracle's xdk to generate both the interfaces and the implementation classes. Next i've implemented a service class with some methods to return java classes as generated by oracle's jaxb. The return types of these service methods are interfaces, not the implementation classes.
    I can generate an adf data control for this service class, but the data control palette doesn't show the attributes for the jaxb generated classes (i have changed the bean class property in the data control description xml file).
    It's not possible to ignore the interfaces and just use the implementation classes, as the implementation classes specify their return types in interfaces. I don't want to rewrite all the generated code.

  • JAXB 1.0 and JAXB 2.0 APIs

    Hi, Folks.
    I've just inherited a test application that was written using JAXB 1.0. The application it tested has since moved onto JAXB 2.0 but the test application has lain dormant for the last 12 months. I now have the task of bringing the test application up to date and as you might expect, I am seeing lots of errors. I need to figure out how to convert the old to the new but all my searches for a JAXB 1.0 javadoc API document have failed. Does someone know where I can find this please?
    Thanks, Max

    Maybee here
    http://java.sun.com/webservices/docs/1.4/api/index.html

  • Add java classes as Additional Classes to web service and JAXB 2.0 usage

    Hi,
    I start using JDeveloper 11g TP3 to create web service. I encounter two problems.
    1. I created a schema file as the following,
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://FromWSDL/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://FromWSDL/">
    <xsd:complexType name="sayHello">
    <xsd:sequence>
    <xsd:element name="arg0" type="xsd:string" default="Tommy"/>
    <xsd:element name="arg1" type="tns:arg1Enum"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="arg1Enum">
         <xsd:restriction base="xsd:string">
         <xsd:enumeration value="preserve"/>
         <xsd:enumeration value="replace"/>
         <xsd:enumeration value="collapse"/>
         </xsd:restriction>
    </xsd:simpleType>                         
    <xsd:element name="sayHello" type="tns:sayHello"/>
    <xsd:complexType name="sayHelloResponse">
    <xsd:sequence>
    <xsd:element name="return" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
    </schema>
    then I used TopLink/JPA-->JAXB 2.0 Content Model from Schema, I got four java files: Arg1Enum.java, ObjectFactory.java, SayHello.java, and SayHelloResponse.java.
    After, I create a java class with @WebService and @WebMethod annotation. Right Click on the web service class,
    select Web Service Properties-->Additional Classes, I added the four java classes. but there are error message for SayHello and Arg1Enum
    "the type SayHello cannot be serialized into XML and no custom serilizer has been defined for it"
    2. In JDeveloper, I create Java model from the above schema, then reverse the steps, create a new schema from Java Model, the original schema and the schema from Java Model are not same, especially for "defaultValue" and "required" fields for the custom element(SayHello and Arg1Enum).
    Any help will be appreciated

    First what you mean by "deploying classes as web services"? Chances are you
    can do it with something like Glue from The Mind Electric ... but chances
    are that you don't want to. What are you trying to accomplish?
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Simon Wallis" <[email protected]> wrote in message
    news:[email protected]..
    Hi, can WebLogic deploy simple Java classes (not EJB's or JB's, just
    classes) as a web service? How easy it is to do?
    The WebLogic installation has one measly web services example, and it's an
    EJB which is not what I want to do.
    Thanks,
    Simon.

  • Restriction and the Fixed attribute and JAXB

    Hi
    I have what I believe is a valid XSD, with two complex types BaseType and OtherType. What I want is for BaseType (abstract) to have an attribute but no fixed value for it. OtherType would restrict the allowable values to just "Test". I have checked the XSD with xmlspy and the W3C site.
    so happy with the xsd I try to use JAXB to generate classes:
    xjc.bat -p com.me.test example.xsd -d gen
    but I get :
    [ERROR] derivation-ok-restriction.2.1.1: Error for type 'OtherType'. An attibute use in this type has a REQUIRED setting which is inconsistent with a matching attribute use in the base type.
    (removing the Fixed attribute solves it but I'd like to keep it)
    Any ideas?
    Thanks
    Des Field Corbett
    XSD Follows:
    ================================================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:complexType name="BaseType" abstract="true">
    <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="OtherType">
    <xs:complexContent>
    <xs:restriction base="BaseType">
    <xs:attribute name="name" fixed="Test"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <xs:element name="root" type="OtherType"></xs:element>
    </xs:schema>

    Got it to work...
    My XSD had the line in BaseTypes:
    <xs:attribute name="name" type="xs:string" use="required"/>
    and the line in OtherTypes:
    <xs:attribute name="name" fixed="Test"/>
    Changing this to:
    <xs:attribute name="name" type="xs:string" use="required" fixed="Test"/>
    Got it to work.
    Not sure if this is a Bug in JAXB or its just being fussy... Sure going to make it a pain to hand code in the extra tags in to my real life XSD!
    If there is a better way I'd be grateful to know....
    Thanks
    Des
    BTW getting a java.lang.reflect.InvocationTargetException now - but as I'm just learning JAXB so I'm guessing thats something else.

  • Web Service Object Parameters and JAXB

    Hi All,
    This is my first post here and I'm hoping one of you might have encountered a similar problem before. One of our business partners provided us with a WSDL for their service, with an embedded XML schema. My job in this case is to write a message driven bean (MDB) that will take a message containing XML off of a queue and call this web service. However, their web service requires an object to be passed as input. So, I've used JAXB to generate a set of classes (from the schema I ripped out of their WSDL) that will unmarshal the XML document that comes off the queue. This works fine, however, the resulting object is an inherently different object than the object I need to pass to the web service, that one was created by auto-generating the Java proxy for the web service. Since these two classes come from the same schema definition, they have the same structure and can hold the same data, but they have different implementations. My plan is to write a method to copy the data from one object to another, but this feels redundant. Is there any approach I could use to make these two auto-generated sets of code be more compatible, other than the obvious answer of having written everything by hand? Thanks in advance for any replies.

    Are the XML instances coming from the queue and the request object to the WS defined by the same schema (from the business partner)? If they are different, there's no other option than to do a copy or some sort of XSLT (not that that's any easier though). But if the instances are defined by the same schema, just use some data binding framework that you can use for both reading the XML from the queue and that is incorporated into the WS toolkit you're using.
    For example, Axis2 allows you to use XMLBeans as a the data binding framework. Using the generated classes from Axis2, you can read in the XML instances from the queue and at the same time have the request object for the WS call.

  • Update Unbounded element using SOAP_CLIENT and JAXB classes

    I am writing a custom worklist application using 10.1.3.3. I am able to successfully kick off my BPEL process from my Java application and I am even able to modify most of the fields defined in my XSD. My problem occurs when I try to update the unbounded elements. They are of complex type and each request can have an unlimited number of these elements.
    I used JDeveloper's tool to generate the JAXB classes I'm using to interact and modify the payload of my task. I know that JAXB does not generate setter methods for unbounded elements. I should be able to get the list of elements and simply add to it. Unfortunately, the new list elements are not being saved when I marshall my payload and update the task with the new payload.
    Any ideas on what I'm doing wrong or if there is another way to do this? I've posted code snippets below.
    Thanks!
    Quote Element from XSD:
    <xsd:element name="Quote" nillable="true" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="WorksheetId" type="xsd:int" minOccurs="0"/>
    <xsd:element name="QuoteId" type="xsd:int" minOccurs="0"/>
    <xsd:element name="Description" nillable="true" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="250"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Quantity" type="xsd:int" nillable="true" minOccurs="0"/>
    <xsd:element name="UnitPrice" type="xsd:float" nillable="true" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    AddQuote java code:
    JAXBContext jc = JAXBContext.newInstance("myproject.xml");
    Unmarshaller u = jc.createUnmarshaller();
    Task detailTask = wfSvcClient.getTaskQueryService().getTaskDetailsById(ctx, thisId);
    Element detailPayload = detailTask.getPayloadAsElement();
    ObjectFactory objFactory = new ObjectFactory();
    XMLWorksheet xRequest = objFactory.createWorksheet();
    xRequest = (XMLWorksheet)u.unmarshal(detailPayload.getFirstChild());
    List quotes = xRequest.getQuote();
    quotes.add(quote);
    Marshaller m = jc.createMarshaller();
    m.marshal(xRequest, detailPayload);
    detailTask.setPayloadAsElement(detailPayload);
    taskService.updateTask(ctx, detailTask);

    who actually managed to make the SOAP_CLIENT working ?
    What is the jar list and order you use ?
    Does it work with java 5 ?
    Thanks for the help!

  • JAX-WS and JAXB 2.0 for ComplexTypes

    I have a simple web service method that returns a string. I want to enhance this method to return a Java object. Do I have to explicitly use JAXB and have the web service method return the marshalled data string? And then unmarshall on the client side? Or does JAX-WS handle this implicitly?
    For complex return types, what is the best practice when using JAX-WS? Are there any books out there for beginners?
    Thanks

    Maybee here
    http://java.sun.com/webservices/docs/1.4/api/index.html

  • XML "container" elements and JAXB

    Hi,
    Does anyone know if there is a way to tell the JAXB compiler not to create classes for certain elements which are just containers for a collection of some other elements. For example, suppose the resultant XML (snippet) is like this:
    <library>
    <books>
      <book .... />
      <book .... />
      <book .... />
    </books>
    </library>What I want to accomplish is tell JAXB compiler to create Library class like this:
    public class Library {
    private Collection books;
    }Currently, what would happen is that JAXB would create Library class like this:
    public class Library {
    private Books books;
    }and then create another class Books like this:
    public class Book {
    private ArrayList book;
    public ArrayList getBook();
    }Obviously, when working with Java code, what I would want is to skip all this nonsense in the middle and just have it the way I showed it in the first example.
    Of course, one solution is not to declare the "books" container element in the schema. However, what I want to know if this is the only solution or there is a way to customize JAXB to get it to produce a class shown in the very first example.
    Thanks,
    Yaakov.

    I believe this question is cross-posted and already answered in http://forums.java.net/jive/forum.jspa?forumID=46

  • JAXM and Tomcat 4.0.1

    I try to run JAXM on Tomcat 4.0.1.
    I read java_xml_pack-fall01\jaxm-1.0\docs\tomcat.html
    and set up.
    I access http://localhost:8080/provideradmin,
    JAXM Administration Tool Page is appeared.
    However I select Profile->ebXML->HTTP,
    Exception occured.
    java.lang.NullPointerException
         at provideradmin.util.MessageUtil.initializeConfig(MessageUtil.java:286)
    What is wrong?
    I want to run JAXM with Tomcat fine.
    Thanks.

    Sorry, it is my mistake.
    I forgot to copy provider.war.
    Thanks.

  • JAXM and entities in SOAP document

    I've been trying out JAXM (1.0.0) and I've reached a situation where JAXM is telling me that I can't have entities (such as & lt ;) in my SOAP document. I've not seen this restriction mentioned anywhere before -- I can't find it in the SOAP 1.1 spec. Can anyone provide me with a clue here?
    The exception is:
    javax.xml.soap.SOAPException: Unable to create envelope from given source: Entities are illegal in a SOAP document Nested exception: Entities are illegal in a SOAP document at com.sun.xml.messaging.soap.dom4j.EnvelopeFactoryImpl.createEnvelope(EnvelopeFactoryImpl.java:76)
    at com.sun.xml.messaging.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:92)
    I'm trying to do the following; for testing I thought it would be useful to modify the simple.war/ReceiveServlet to return the message it receives in a SOAP response. That is, if I send a message like this.....
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
    <f:checksheet-request xmlns:f="http://someone.com/SOAP/checksheet" locale="en_GB">
    <VIN>12345678901234567
    </VIN>
    </f:checksheet-request>
    </soap-env:Body>
    </soap-env:Envelope>
    I'd get back the following......
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header/>
    <soap-env:Body>
    <Response><soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><f:checksheet-request xmlns:f="http://someone.com/SOAP/checksheet" locale="en_GB"><VIN>12345678901234567</VIN></f:checksheet-request></soap-env:Body></soap-env:Envelope>
    </Response>
    </soap-env:Body>
    </soap-env:Envelope>
    ...and those are the messages that are sent (I watched the messages using the Axis project's tcpmon tool).
    This is the code I'm using the read the message:
    SOAPMessage response = connection.call(message, endpoint);
    SOAPPart soapPart = response.getSOAPPart();
    // The next line throws the exeption....
    SOAPEnvelope env = soapPart.getEnvelope();
    What's the problem with having entities in the response?
    Many thanks
    Richard

    Thanks for the help. The onMessage implementation is as follows:
    public SOAPMessage onMessage(SOAPMessage message)
            logger.debug("onMessage called in receiving servlet");
            try
                logger.debug("Here's the message: ");
                   ByteArrayOutputStream bytes = new ByteArrayOutputStream();
                   message.writeTo(bytes);
                   String receivedMessage = bytes.toString();
                logger.debug(receivedMessage);
                SOAPMessage msg = fac.createMessage();
                SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
                env.getBody()
                    .addChildElement(env.createName("Response"))
                    .addTextNode(receivedMessage);
                return msg;
            catch(Exception e)
                logger.error("Error in processing or replying to a message", e);
                return null;
        }As you can probably tell, that's just a small change to one of the sample servlets in the JAXM distribution.
    The client that sends the message is a junit test class as follows:
         public void testEchoSendRequest() throws SOAPException
              SOAPConnectionFactory scFactory =  SOAPConnectionFactory.newInstance();
              SOAPConnection connection = scFactory.createConnection();
              MessageFactory mf = MessageFactory.newInstance();
             SOAPMessage message = mf.createMessage();
               SOAPPart sp = message.getSOAPPart();
             SOAPEnvelope envelope = sp.getEnvelope();
             SOAPHeader header = envelope.getHeader();
              header.detachNode();
             SOAPBody body = envelope.getBody();
              Name bodyName = envelope.createName("checksheet-request",     
                   "f", "http://someone.com/SOAP/checksheet");     
              SOAPBodyElement checksheetRequest = body.addBodyElement(bodyName);
              SOAPElement vin = checksheetRequest.addChildElement("VIN");
              vin.addTextNode("12345678901234567");
              checksheetRequest.addAttribute(envelope.createName("locale"), "en_GB");
              URLEndpoint endpoint = new URLEndpoint("http://127.0.0.1:9888/etis/soap-echo");     
              SOAPMessage response = connection.call(message, endpoint);
              assertTrue("Expected non-null response", response !=null);
              SOAPPart soapPart = response.getSOAPPart();
              SOAPEnvelope env = soapPart.getEnvelope();
              SOAPBody contents = env.getBody();
              assertTrue("Didn't expect a fault: "+ contents.getFault().getFaultString(), contents.hasFault() == false);
              Iterator it = contents.getChildElements(env.createName("Response"));
              assertTrue("Expected content in response", it != null && it.hasNext());
              SOAPBodyElement bodyElement = (SOAPBodyElement)it.next();     
              assertTrue("Expected non-empty response", bodyElement != null);
              String sentMsg = bodyElement.getValue();     
              System.out.println("Got back: "+sentMsg);
         }Thanks for looking into this.
    Richard

  • Dublin Core and JAXB

    If I try to compile this schema using xjc (1.0.4-b18-fcs):
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified">
       <xs:import namespace="http://purl.org/dc/elements/1.1/"
                  schemaLocation="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd"/>
       <xs:element name="simpledc" type="dc:elementContainer"/>
    </xs:schema>from http://dublincore.org/schemas/xmls/
    I get an error while parsing the imported schema:
    [ERROR] the property "Content" is empty and contains no value
    line 45 of dc.xsd
    What does this mean? I have no idea what it's referring to. Line 45 of dc.xsd is just the start of the definition of a complexType.
    This schema is valid, according to http://tools.decisionsoft.com/schemaValidate.html
    Any ideas why JAXB is unhappy?
    Thanks,
    J

    I am also getting the same error. for some reason.
    are you using the JAXB 1.5?
    Jin

Maybe you are looking for