JAXB ERROR

HI
I have DTD that has 2 tags by name
BORROWER and _BORROWER.
When I try to use the xjc tool of JAXB, both the tags result to BORROWER and I get the following error while parsing-
parsing a schema...
[ERROR] A class/interface with the same name "com.mhub.core.busobj.trans.mortgag
edata.response.BORROWER" is already in use.
line 1673 of CreditResponse_v2_3.dtd
[ERROR] (Relevant to above error) another one is generated from here.
line 1673 of CreditResponse_v2_3.dtd
Failed to parse a schema.
I donot want to change the DTD. How can I proceed further.
Can some one help me in this regard?
Its a bit important and urgent.
Thanks in advance

You can use customized binding to rename the class used for one of the elements. There's an explanation of this at http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXBUsing4.html#wp148576

Similar Messages

  • Beehive 2.0.1.4.0 JDK JAXB error

    I'm developing a module that communicates with Beehive.
    From what I understand there aren't SOAP webservices on version 2, only REST?!
    I'm trying to follow the BDK sample client (http://www.oracle.com/technetwork/middleware/beehive/java-bdk-082633.html), and I'm stuck in the JAXB generation part.
    I'm using JAXB 2.0.1-b01-fcs and JDK 1.6.0_18 (also tried with older JDK and even beehive JDK), but I keep getting 244 of this errors (only changes the type):
    Cannot resolve the name 'tns:accessControlFieldsUpdater' to a(n) 'type definition' component.
    I'm calling
    jaxb-ri-20060607\bin\xjc.bat schema-obh-xjc.xsd schema-obr.xsd -extension
    What am I doing wrong?

    From what I understand there aren't SOAP webservices on version 2, only REST?!SOAP is also available with Oracle Beehive 2.0.1.4. For now, the SOAP API is not exposed in the OTN site " [Oracle Beehive Collaboration Platform|http://www.oracle.com/technetwork/middleware/beehive/platform-098968.html] " but we are currently trying to fix this. In the meantime, you can access the SOAP API documentation in your Beehive environment at the following location: http://host:port/ws/docs
    Regards,
    Ward

  • JAXB error: DTDParse

    Hi,
    I have the following XML file:
    <company>
    <manager>
    <name>Fred</name>
    <name>Joe</name>
    </manager>
    <employee>
    <name>Dave</name>
    <name>Derek</name>
    </employee>
    </company>
    Now when I generate java source code using jaxb (and the default binding) I get a DTDParse error saying that the "name" element was already declared?
    Without renaming the <name> element is it possible to do this using jaxb, or is this simply an invalid dtd?
    thanks,
    Dean

    is your DTD like this?
    <!ELEMENT company (manager, employee)>
    <!ELEMENT employee (name+)>
    <!ELEMENT manager (name+)>
    <!ELEMENT name (#PCDATA)>

  • JAXB - Errors getting in binding the schema

    Hi! I have one xsd document that uses another xsd for list of values. First I bound the list of values xsd document and then tried to bind the original xsd. It is giving me the following error.
    [ERROR] length-minLength-maxLength: It is an error for both length and either of
    minLength or maxLength to be specified.
    line 762 of Origianl_DT.xsd
    [ERROR] length-minLength-maxLength: It is an error for both length and either of
    minLength or maxLength to be specified.
    line 1159 of Origianl_DT.xsd
    [ERROR] length-minLength-maxLength: It is an error for both length and either of
    minLength or maxLength to be specified.
    line 1295 of Origianl_DT.xsd
    Both of the xsd files were validated using xmlspy successfully. Now, I want to learn JAXB for simple xml file creation and validation against the xsd files. Please help me. Thanks,

    JAXB has extra rules that it uses to validate the schema. I believe this is for simplicity in the code generation side. For example, you can't have a maxOccurs="unbounded" element in an "all" complex element, it must be in a "sequence".
    In this case (and hopefully all others) fixing the schema so that JAXB will accept it is not going to hurt anything. A length requirement is both a maxLength and a minLength.
    There are some rules I don't appreciate that JAXB tacks on. For example, if you import another schema into your binding schema, and don't use every type specified in the imported schema, it will balk. Why? I can't think of a good reason. It really makes it a pain in the ass to create reusable custom XML types. I have to have a different schema for every type.

  • Jaxb error when using -p to create package

    I have been using jaxb in its various forms for a couple years. I am currently using jaxb 2.0 (with JAVA 1.5) and have run it successfully for about a year. Now all of a sudden it is giving me an error (even when I try to re-generate XML files that I could previously generate successfully). I have narrowed down the problem (I think) to the -p argument. If I don't use the -p argument and let jaxb create the XML files and put them in the "generated" directory, it works just fine. But if I try to use -p and specify a directory to put the files in, it gives me two errors:
    [ERROR] schema_reference.4: Failed to read schema document 'file:/C:/Pythagoras2
    .0/src/ûp', because 1) could not find the document; 2) the document could not be
    read; 3) the root element of the document is not <xsd:schema>.
    unknown location
    [ERROR] schema_reference.4: Failed to read schema document 'file:/C:/Pythagoras2
    .0/src/com.prototype.xml', because 1) could not find the document; 2) the docume
    nt could not be read; 3) the root element of the document is not <xsd:schema>.
    unknown location
    I am starting at the src directory and using the command: C:\jaxb-ri-2.0\bin\xjc -p com.prototype.xml ..\classes\Pythagoras.xsd
    I thought I could just get around the problem by not using the -p argument and just copying the XML files from the generated directory to the xml directory where my application is looking for them, but jaxb embeds the "package generated" in each XML file and that gives me a compiler error.
    Any ideas on why the -p argument would all of a sudden give me errors? Thanks!
    Donna

    Hi,
    In IDT - you can't create a BusinessLayer on a BEX query OLAP Connection, and generate a .UNX.
    As the warning says: Not supported.
    That tutorial shows "adventure works" which is a MS SQL Server Analysis Services demo/sample cube.
    As i said above: MSAS is OK for OLAP UNX.
    Regards,
    H
    please vote for these items if you feel so inclined https://cw.sdn.sap.com/cw/ideas/8701
    and https://cw.sdn.sap.com/cw/ideas/3657

  • JAXB error: unable to locate .../bgm.ser

    When call setValidating(true) on my unmarshaller I see the following error. This error does not stop the processing of my code i.e. I think it is being caught inside the JAXB implementation and not rethrown :(
    javax.xml.bind.JAXBException: unable to locate myclasspath/ObjectFactory$GrammarInfoImpl/bgm.ser
    The bgm.ser file is located in the root of myclasspath and is generated by the binding compiler. Why is JAXB looking for this file in a non-existent directory?

    I had the same error because the IDE I am using
    separates the .java from the .class so the bgm.ser is
    still sitting in your java directory. You need to move
    it across to the class directory and all will be fine.
    Of course be careful of rebuild all.Thanks. I guess I should have tried that. The error message was putting me on the wrong track. So now that works but I still have no use for the validation because it has no context. When I validate it this way, I at least get a line and column number but nothing else. I could dig into the file and figure out what element is there but it doesn't help me when I want to validate later.
    I've gone ahead and written my on validation class that allows me to use error message text that I embed in the schema.
    Thanks.

  • JAXB error!! confused

    please could u help i have this xsd i am trying to bind
    but the xjc complier .i don't see anything wrong with the schema and the xml validator is successful.
    the problem when it try to generate the classes with xjc
    i get this error
    C:\chi_codes\testApp\web>xjc -p com.generated personSchema.xsd -d c:\chi_codes\t
    estApp\src
    parsing a schema...
    [ERROR] A class/interface with the same name "com.generated.PersonType" is alrea
    dy in use. Use a class customization to resolve this conflict.
      line 18 of personSchema.xsd
    [ERROR] (Relevant to above error) another "PersonType" is generated from here.
      line 17 of personSchema.xsd
    Failed to parse a schema.there no dulipcate PersonType i am very confused.
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
        Document   : personSchema.xsd
        Created on : March 20, 2005, 12:10 PM
        Author     : Administrator
        Description:
            Purpose of XML Schema document follows.
    -->
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ns="http://xml.netbeans.org/examples/targetNS"
                targetNamespace="http://xml.netbeans.org/examples/targetNS"
                xmlns="http://xml.netbeans.org/examples/targetNS"
                elementFormDefault="qualified">
    <xsd:element name="PersonType" type="personType"/>
    <xsd:complexType name="personType">  
         <xsd:sequence>
           <xsd:element name="person" maxOccurs="unbounded" minOccurs="1">               
        <xsd:complexType >
           <xsd:sequence>         
           <xsd:element name="password"   type="xsd:string" minOccurs="0"/>      
           <xsd:element name="userName" type="xsd:string" minOccurs="0"/>      
           </xsd:sequence>
           <xsd:attribute name="id" use="required" type="xsd:string"/>
            </xsd:complexType>
            </xsd:element> 
               </xsd:sequence>  
             </xsd:complexType>
    </xsd:schema>The xml i am trying get with this schema is
    <?xml version="1.0" encoding="UTF-8"?>
    <PersonType>
    <person id="1">
    <userName>chEE</userName>
    <password>never0</password>
    </person>
    <person id="2">
    <userName>cdet</userName>
    <password>hgh</password>
    </person>
    <person id="3">
    <userName>jjj</userName>
    <password>hgjh0</password>
    </person>
    </PersonType>thanks i will really be very grateful if someone can explain this to me

    Hi.
    I'm still experiencing that kind of problem.
    I'm using JAXB RI 2.0 EA to generate Java classes from XML Schema (VoiceXML).
    As I was getting the customization error, I've created a bindings.xjb.
    The XML schema is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://www.w3.org/2001/vxml"
    xmlns="http://www.w3.org/2001/vxml"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
        <xsd:annotation>
            <xsd:documentation>VoiceXML 2.0 schema (20040116) </xsd:documentation>
        </xsd:annotation>
        <xsd:annotation>
            <xsd:documentation>
    Copyright 1998-2004 W3C (MIT, ERCIM, Keio), All Rights Reserved. Permission to
    use, copy, modify and distribute the VoiceXML schema and its accompanying
    documentation for any purpose and without fee is hereby granted in perpetuity,
    provided that the above copyright notice and this paragraph appear in all
    copies.  The copyright holders make no representation about the suitability of
    the schema for any purpose. It is provided "as is" without expressed or
    implied warranty.
    </xsd:documentation>
        </xsd:annotation>
        <xsd:annotation>
            <xsd:documentation>Numeric references are to sections in VoiceXML 2.0.
    [REFERENCE] refers to a reference in VoiceXML 2.0. </xsd:documentation>
        </xsd:annotation>
        <xsd:annotation>
            <xsd:documentation>Importing dependent schemas including datatypes,
         attributes and adapter schemas for SRGS 1.0  and SSML 1.0
        </xsd:documentation>
        </xsd:annotation>
       <xsd:include schemaLocation="vxml-datatypes.xsd"/>   
       <xsd:include schemaLocation="vxml-attribs.xsd"/>   
       <xsd:include schemaLocation="vxml-grammar-extension.xsd"/>
       <xsd:include schemaLocation="vxml-synthesis-extension.xsd"/>
       <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
        <xsd:element name="meta">
            <xsd:complexType>
                <xsd:attribute name="name" type="xsd:NMTOKEN"/>
                <xsd:attribute name="content" type="xsd:string" use="required"/>
                <xsd:attribute name="http-equiv" type="xsd:NMTOKEN"/>
            </xsd:complexType>
        </xsd:element>
    (..............)The bindings.xjb is:
    <jxb:bindings version="1.0"
    xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <jxb:bindings schemaLocation="vxml.xsd" node="/xs:schema">
              <jxb:bindings node="//xs:element[@name='Meta']">
                   <jxb:class name="MetaCustom"/>
              </jxb:bindings>
         </jxb:bindings>
    </jxb:bindings>The error I get is:
    C:\XML\VXMLSchema\vxml-schema\Teste1>xjc -nv -extension -b bindings.xjb vxml.xsd
    parsing a schema...
    [ERROR] XPath evaluation of "//xs:element[@name='Meta']" results in empty target node
      line 5 of file:/C:/XML/VXMLSchema/vxml-schema/Teste1/bindings.xjb
    Failed to parse a schema.Can anyone help me with this, I'm sure it's a little error of mine.
    Thanks.

  • JAXB: Error compiling classes generated by xjc (file name too long)

    Hi friends,
    I am trying to compile classes that are generated by using XJC tool on xsd file. The compilation fails with following message.
    buildxsdmodel:
        [javac] Compiling 794 source files to /home/uchamad/working/teleworker/ejb/build/classes
        [javac] /home/uchamad/working/teleworker/ejb/build/tmpsrc/uk/co/novatel/teleworker/model/wlr/bulksearch
    results/impl/ApplicationInformationTypeImpl.java:58372: error while writing
    uk.co.novatel.teleworker.model.wlr.bulksearchresults.impl.ApplicationInformationTypeImpl.XMLRequestID
    TypeImpl.SearchOrderResultsTypeImpl.SearchTypeDetailTypeImpl.OrderTypeImpl.OrderDetailsTypeImpl.
    OrderLinesTypeImpl.NumberPortingTypeImpl.OLODetailsTypeImpl.NumberLocationTypeImpl.OLOMainP
    STN1AddressTypeImpl.Unmarshaller: /home/uchamad/working/teleworker/ejb/build/classes/uk/co/novatel
    /teleworker/model/wlr/bulksearchresults/impl/ApplicationInformationTypeImpl$XMLRequestIDTypeImpl$S
    earchOrderResultsTypeImpl$SearchTypeDetailTypeImpl$OrderTypeImpl$OrderDetailsTypeImpl$OrderLin
    esTypeImpl$NumberPortingTypeImpl$OLODetailsTypeImpl$NumberLocationTypeImpl$OLOMainPSTN1A
    ddressTypeImpl$Unmarshaller.class (File name too long)
        [javac]                                             public class Unmarshaller
        [javac]                                                    ^
        [javac] 1 error
    The compiler is complaining about the file name being too long. This is happening because the java classes when generated from XSD contains deep nesting of inner classes. So when it comes to compile the .class name file is too long for the operating system.
    I am trying this on unix box.
    I wonder if there is a way to configure XJC so that it does not produce inner classes but instead keep them out.
    Any help would be appreciated.
    many thanks
    Usmangani

    Flattening your schema definition will flatten the output files, too -- that will probably be nice for coding as well since you wont have to use class names such as SomeTypeNestedInAnotherTypeThatHasYetAnotherType. Instead of having all of the elements defined directly within the enclosing root element, define logical chunks at the top level and incorporate them in the definition of real root element of your documents by reference.

  • JAXB error...urgent help needed

    I am trying to create an XML document from user input (via the request) and am recieving the following error. I am unsure where to look as I have exhausetd everything I can think of. Given the error, where should I be looking? Could it be I am not creating my elements properly?
    Any help would be greatly appreciated.
    Jesse
    error details:
    DefaultValidationEventHandler: [ERROR]: a required object is missing
    Location: unavailable
    com.sun.xml.bind.serializer.AbortSerializationException: a required object is missing
         at sdh.po.impl.runtime.SAXMarshaller.reportError(SAXMarshaller.java:416)
         at sdh.po.impl.runtime.SAXMarshaller.text(SAXMarshaller.java:262)
         at sdh.po.impl.ContactAddressTypeImpl.serializeElementBody(ContactAddressTypeImpl.java:77)
         at sdh.po.impl.runtime.SAXMarshaller.childAsElementBody(SAXMarshaller.java:378)
         at sdh.po.impl.ContactInformationImpl.serializeElementBody(ContactInformationImpl.java:115)
         at sdh.po.impl.runtime.SAXMarshaller.childAsElementBody(SAXMarshaller.java:378)
         at sdh.po.impl.MetadataTypeImpl.serializeElementBody(MetadataTypeImpl.java:60)
         at sdh.po.impl.MetadataImpl.serializeElementBody(MetadataImpl.java:43)
         at sdh.po.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:161)
         at sdh.po.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:134)
         at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
         at nfis.SubmissionServlet.doPost(SubmissionServlet.java:87)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    --------------- linked to ------------------
    javax.xml.bind.MarshalException
    - with linked exception:
    [com.sun.xml.bind.serializer.AbortSerializationException: a required object is missing]
         at sdh.po.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:166)
         at sdh.po.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:134)
         at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
         at nfis.SubmissionServlet.doPost(SubmissionServlet.java:87)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)

    It is probable that you are creating an element, and then explicitly setting its value to null. This will cause the error you are getting even if the minOccurs for the particular element is set to 0.

  • JAXB Flags an Error in XML Doc Related to a Choice of Elements

    With a fairly complex DTD, an error results when JAXB unmarshalls a valid XML document. Here is the relevant DTD fragment:
    <!ELEMENT Declaration (Variable+, (typeList | Drelation))>
    The elements Variable and Drelation are complex, and contain other elements. Element typeList contains only #PCDATA. If Varaible is followed by Drelation, everything is fine, but if Variable is follwed by typeList, then unmarshall reports the following error:
    Exception in thread "main" javax.xml.bind.UnrecognizedElementNameException: typeList
    I know there is not a real error, because I have validated the XML document against the DTD using Xeena, from IBM's Alphaworks.

    By way of additional information, I tried to circumvent the problem with the following change.
    <!ELEMENT Declaration (Variable+, DecType)>
    <!ATTLIST Declaration dpower (PowerSet) #IMPLIED>
    <!ELEMENT DecType (typeList | Drelation)>
    Now, each element is either a sequence or a choice, but not both. The result was the same problem. The unmarshall reports the same error when it gets to the DecType element, saying the typeList element is unexpected. Again, IBM's Xeena tool reports that the XML document is valid for the DTD.
    Here is the relevant XML fragment.
    <Declaration dpower="PowerSet">
    <Variable> members </Variable>
    <DecType> <typeList> Person </typeList> </DecType>
    </Declaration>
    Is this a JAXB error?

  • Welogic server error

    hi,
    I have installed 11.1.2.1 & everything is starting fine. On weblogic server i get the following error:
    <May 2, 2011 3:55:14 PM EDT> <Error> <oracle.as.config.persistence.jaxb.JAXBXmlP
    ersistenceManagerImpl> <J2EE JMX-47001> <A JAXB error occurred during unmarshall
    ing.>
    <May 2, 2011 3:55:14 PM EDT> <Warning> <oracle.as.config.notification.filesystem
    .WatchingDocumentChangeNotifier> <NOT-0022> <Exception during change of a docume
    nt.
    oracle.as.config.persistence.exceptions.ConfigException: A JAXB error occurred d
    uring unmarshalling.
    at oracle.as.config.persistence.jaxb.JAXBXmlPersistenceManagerImpl.load(
    JAXBXmlPersistenceManagerImpl.java:204)
    at oracle.as.jmx.framework.util.DefaultConfigObjectMBeanAssociationInfo.
    loadConfigObject(DefaultConfigObjectMBeanAssociationInfo.java:722)
    at oracle.as.jmx.framework.util.DocumentChangeListenerSupport.documentCh
    anged(DocumentChangeListenerSupport.java:154)
    at oracle.as.jmx.framework.wls.spi.activation.DocumentChangeDistributor.
    documentChanged(DocumentChangeDistributor.java:99)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$DocumentChangeListenerWrapper.documentChanged(WatchingDocumentChangeNotifier.
    java:707)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkUsingListeners(WatchingDocumentChangeNotifier.java:395)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkFiles(WatchingDocumentChangeNotifier.java:283)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$1.run(WatchingDocumentChangeNotifier.java:293)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.internalCheckFiles(WatchingDocumentChangeNotifier.java:298)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.run(WatchingDocumentChangeNotifier.java:270)
    at java.lang.Thread.run(Thread.java:619)
    Caused By: javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: Premature end of file.]
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalExcept
    ion(AbstractUnmarshallerImpl.java:315)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmar
    shalException(UnmarshallerImpl.java:514)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
    UnmarshallerImpl.java:215)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
    nmarshallerImpl.java:184)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:137)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:184)
    at oracle.as.config.persistence.jaxb.JAXBXmlPersistenceManagerImpl.load(
    JAXBXmlPersistenceManagerImpl.java:160)
    at oracle.as.jmx.framework.util.DefaultConfigObjectMBeanAssociationInfo.
    loadConfigObject(DefaultConfigObjectMBeanAssociationInfo.java:722)
    at oracle.as.jmx.framework.util.DocumentChangeListenerSupport.documentCh
    anged(DocumentChangeListenerSupport.java:154)
    at oracle.as.jmx.framework.wls.spi.activation.DocumentChangeDistributor.
    documentChanged(DocumentChangeDistributor.java:99)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$DocumentChangeListenerWrapper.documentChanged(WatchingDocumentChangeNotifier.
    java:707)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkUsingListeners(WatchingDocumentChangeNotifier.java:395)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkFiles(WatchingDocumentChangeNotifier.java:283)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$1.run(WatchingDocumentChangeNotifier.java:292)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.internalCheckFiles(WatchingDocumentChangeNotifier.java:289)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.run(WatchingDocumentChangeNotifier.java:270)
    at java.lang.Thread.run(Thread.java:619)
    Caused By: org.xml.sax.SAXParseException: Premature end of file.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
    ParseException(ErrorHandlerWrapper.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
    r(ErrorHandlerWrapper.java:174)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
    XMLErrorReporter.java:388)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
    MLScanner.java:1414)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
    Driver.next(XMLDocumentScannerImpl.java:1059)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
    MLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
    (XMLNSDocumentScannerImpl.java:140)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:808)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
    java:119)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
    stractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
    arse(SAXParserImpl.java:522)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
    UnmarshallerImpl.java:211)
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
    nmarshallerImpl.java:184)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:137)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:184)
    at oracle.as.config.persistence.jaxb.JAXBXmlPersistenceManagerImpl.load(
    JAXBXmlPersistenceManagerImpl.java:160)
    at oracle.as.jmx.framework.util.DefaultConfigObjectMBeanAssociationInfo.
    loadConfigObject(DefaultConfigObjectMBeanAssociationInfo.java:722)
    at oracle.as.jmx.framework.util.DocumentChangeListenerSupport.documentCh
    anged(DocumentChangeListenerSupport.java:154)
    at oracle.as.jmx.framework.wls.spi.activation.DocumentChangeDistributor.
    documentChanged(DocumentChangeDistributor.java:99)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$DocumentChangeListenerWrapper.documentChanged(WatchingDocumentChangeNotifier.
    java:707)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkUsingListeners(WatchingDocumentChangeNotifier.java:395)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.checkFiles(WatchingDocumentChangeNotifier.java:283)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er$1.run(WatchingDocumentChangeNotifier.java:292)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.internalCheckFiles(WatchingDocumentChangeNotifier.java:289)
    at oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifi
    er.run(WatchingDocumentChangeNotifier.java:270)
    at java.lang.Thread.run(Thread.java:619)
    Is there any patch that i need for weblogic server?

    You shouldn't need to patch anything to do with weblogic, the installer should handle it all, I have done a fresh 11.1.2.1 installs and applied the maintenance release patch and not come across the issue yet.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Exception while calling Webservice deployed in WAS 6.1

    Hi All,
    My application exposes web services and am getting below error when invoking from SOAP UI tool.
    Developed in RAD 7.5, deployed in WAS 6.1.0.21 and uses JAX-WS.
    Googling points to JAXB error when using Date, Timestamp data types. I am not using any such data types other than XMLGregorianCalendar for which the xsd data type generated was xs:anySimpleType.
    Any pointers would be of great help. Thanks in advance.
    Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#id-2"
    SystemOut O INFO [WebContainer : 1] (WSF[5/30/10 7:14:06:346 MST] 00000030 SystemOut O INFO [WebContainer : 1] (WSF2ProviderDefaultHandler.java:280) - EXIT --> WSF2ProviderDefaultHandler.verifySignature(), time taken= 431 ms
    00000030 JAXBUtils I org.apache.axis2.jaxws.message.databinding.JAXBUtils createJAXBContextValue Both ObjectFactory & package-infoException = org.apache.axis2.AxisFault
    Source = com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost
    at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:282)
    at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:459)
    at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:265)
    at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:262)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3507)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:122)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
    Caused by: javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 incompatible with com.sun.xml.bind.v2.model.impl.ClassInfoImpl
    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:180)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:134)
    at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMinimalMethodMarshaller.demarshalRequest(DocLitWrappedMinimalMethodMarshaller.java:229)
    at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.createRequestParameters(JavaBeanDispatcher.java:262)
    at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:81)
    at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:100)
    at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:140)
    ... 28 more
    Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 incompatible with com.sun.xml.bind.v2.model.impl.ClassInfoImpl
    at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:171)
    at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:61)
    at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:41)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:149)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:55)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:196)
    at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
    at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
    at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
    at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
    at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
    at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
    at java.util.AbstractList$Itr.next(AbstractList.java:437)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:146)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:55)
    at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
    at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
    at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
    at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
    at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
    at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
    at java.util.AbstractList$Itr.next(AbstractList.java:437)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:146)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:55)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:196)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:211)
    Regards,
    Gokul

    Hi sergey,
    I think the error you got because you have binded the node incorrectly as shown in the below line of code.
    wdContext.nodeCompanyCheck().bind(new Request_CompanyServiceViDocument_filterCompany0());
    I think you should do it like the below code.
    Request_CompanyServiceViDocument_filterCompany0() testObject = new Request_CompanyServiceViDocument_filterCompany0();
    testObject.setACompanyId(contextElement.getCompanyID());
    wdContext.nodeCompanyCheck().bind(testObject);
    wdContext.nodeCompanyCheck().currentCompanyCheckElement().modelObject().execute();
    Hope this will help as the error looks as its only because of binding miss match.
    Regards
    Narendra

  • CCE Web Administration - Active Directory issue when managing agent attributes

    I am experiencing an issue when managing agents (supervisors specifically) in CCE Web Admin.  When attempting to add / remove / modify an Attribute for a supervisor agent we are getting an error that the supervisor must have a valid active directory account.  (Screenshot attached)  The agents that this is affecting are correctly configured in ICM as a supervisor and ICM was able to successfully move their AD account into the 'Config' AD Security Group.  From looking at the logs on the AWS it appears that the Web Admin tool is attempting to lookup their account in AD via UPN by appending their username to the domain name.  
    Log Snippet:  
    exception=com.cisco.ccbu.api.jaxb.error.ApiException: supervisorUserInfo.userName: Could not find user. Check if a domain account exists for [email protected]
    This isn't going to work for some users in our account because we have multiple suffixes in our domain.  (Our domain is a single forest and I'm not aware of a requirement to have a single suffix.)
    I'm curious why it wouldn't use samaccountname which is what I believe ICM Configuration Manager is using.  Has anyone else experienced this issue?

    Lo and behold, my AD sync started working.
    Though I have added the site to my local intranet sites, I'm not very confident whether this was the actual solution. I've performed several actions configuring my farm before I started troubleshooting this issue again, so it might be another action that
    solved this.
    Alemaitre: can you try the following please:
    See if the SharePoint Web Service site is started in IIS.  If not, start it, see if that works.
    Instead of adding the site to your Trusted Sites, try Local Intranet Sites (click Advanced to add sites besides using auto-discovery)
    Turn the Security Level for the zone all the way down.
    Turn off Compression for your site in IIS, do an iisreset, see if that works.
    I've also had to remove a host header from my MySite portal (running on port 8080 here), unlikely for this to be the cause but it's just one of the things I did this morning :-)
    Should I think of anything else, I'll let you know.
    Bonne chance.

  • Clientgen - JAX-WS - Exception return

    The java class Exception extends throwable which does not contain a null constructor. Due to this fact JAX-WS with Clientgen can't generate a working client. I have read that if using JAX-WS directly and a JBoss extension you can inject annotations in and make throwable a transient type, but I need to know if there is anyway to accomplish this using weblogic toolings instead of using another third party.
    Example fix for the problem http://andy-malakov.blogspot.com/2008/06/jaxb-error-javalangstacktraceelement.html
    Are there any recommendations on how to generate a working client for a web service that can throw an exception?
    Thank you

    Hi Guys,
    I am getting the same error. Any resolution or updates on this.
    Were you able to fix this error.
    Thanks,
    Yomesh

  • Error while running simple JAXB test class

    I am new to JAXB and trying to run simple tutorial code.
    I created Java project and added required jar files in a classpath.
    But I get error as
    "com.jaxbtest" doesnt contain ObjectFactory.class or jaxb.index
    I am using Eclipse and I have added these external jars in build path as well as in "Open Run Dialog" classpath.
    Thank you in advance.
    YB

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

Maybe you are looking for

  • Do i have to reconnect all of my wireless devices if i creat a new network

    Do I have to reconnect all of my wireless devices if I creat a new network with my new Time Capsule?

  • How to get Operating systems Install Directory in Java

    Hey Friends I have a problem of getting to know Operating System Install directory in java for my application requriment.Can any body tell me how to know this or send me snippet of code THANKS

  • Windows won't load or install, K7N2G

    Running an AMD Athlon XP 2500+ on a K7N2G, just got it. Won't load windows or install from the CD, usually it either locks up or bluescreens, other times it will make it into the install/repair process before it crashes. Using Corsaire CMX512-3200C2P

  • My trackpad is acting goofy.

    Simply moving the cursor with the trackpad over a hyperlink will open the link. No clicking is required. Very annoying.

  • Wireless driver for HP15

    I'm trying to find the Win 7 64bit wireless driver for the HP 15-r029wm. It doesn't seem to be listed in the driver list. Is it bundled with another driver.  Thanks in advance! This question was solved. View Solution.