Failure while compiling a schema with jaxb

HI
I used jaxb in netbeans to generate java classes for an xml Schema but i have the errors below:
xjc-typedef-target:
jaxb-code-generation:
Created dir: C:\Documents and Settings\\Mes documents\NetBeansProjects\Testjaxb\build\generated\addons\jaxb
Created dir: C:\Documents and Settings\\Mes documents\NetBeansProjects\Testjaxb\build\generated\jaxbCache
Created dir: C:\Documents and Settings\\Mes documents\NetBeansProjects\Testjaxb\build\classes
Created dir: C:\Documents and Settings\\Mes documents\NetBeansProjects\Testjaxb\build\generated\jaxbCache\p3p
Compiling file:/C:/Documents and Settings/Mes documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[WARNING] schema_reference.4: Failed to read schema document 'http://www.w3.org/2001/xml.xsd', 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>.
  line 2 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[ERROR] src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
  line 21 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[ERROR] s4s-elt-invalid-content.1: The content of '#AnonType_META' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
  line 21 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[ERROR] s4s-elt-invalid-content.1: The content of '#AnonType_POLICIES' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
  line 79 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[ERROR] s4s-elt-invalid-content.1: The content of '#AnonType_POLICY' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
  line 108 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
[ERROR] s4s-elt-invalid-content.1: The content of '#AnonType_DATASCHEMA' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
  line 389 of file:/C:/Documents%20and%20Settings//Mes%20documents/NetBeansProjects/Testjaxb/xml-resources/jaxb/p3p/P3PSchema.xsd
failure in the XJC task. Use the Ant -verbose switch for more details
C:\Documents and Settings\\Mes documents\NetBeansProjects\Testjaxb\nbproject\xml_binding_build.xml:18: unable to parse the schema. Error messages should have been provided
BUILD FAILED (total time: 0 seconds)

My schema xml is :
http://www.w3.org/2002/01/P3Pv1

Similar Messages

  • Critical Error while compiling / exporting *.ipa with AIR16

    Hey,
    my application crashed while compiling with AIR16. (Flex 4.13.0-AIR 16.0) With AIR15 it works well.
    First I thought, the reason might be the included ANE, but it isn't. The ANE works fine with another project. In fact other projects also work with AIR16.
    The project works fine in the Simulator without any crashes or compile errors!
    We've built a lot of test-apps including the same components and libraries as in this app, but we are not able to reproduce this crash in other projects.
    Edit: We just tested an *.apk export. works also fine!
    Any ideas?
    EDIT:
    Tried out AIR17beta. And who wonderes? It works!
    But I really want to know, what the problem is/was!
    Flex 4.13.0-AIR 16.0:
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
    "_traits:AOTBuildOutput-0000000101_6:234::Span", referenced from:
    _AOTBuildOutput-0000000101_6:9729:Edge in AOTBuildOutput-0000000101_6.o
    "_traits:AOTBuildOutput-0000000101_6:234::Edge", referenced from:
    _AOTBuildOutput-0000000101_6:9706:flashx.textLayout.compose::Parcel/allocateEdge in AOTBuildOutput-0000000101_6.o
    "_traits:AOTBuildOutput-0000000100_5:18::LocaleID", referenced from:
    _AOTBuildOutput-0000000100_5:265:mx.resources::LocaleSorter$/sortLocalesByPreference in AOTBuildOutput-0000000100_5.o
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    Flex 4.14.0-AIR 16.0:
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
    "_traits:AOTBuildOutput-0000000101_6:248::Span", referenced from:
    _AOTBuildOutput-0000000101_6:11261:Edge in AOTBuildOutput-0000000101_6_1.o
    "_traits:AOTBuildOutput-0000000101_6:248::Edge", referenced from:
    _AOTBuildOutput-0000000101_6:11238:flashx.textLayout.compose::Parcel/allocateEdge in AOTBuildOutput-0000000101_6_1.o
    "_traits:AOTBuildOutput-0000000101_6:207::CellCoords", referenced from:
    _AOTBuildOutput-0000000101_6:8073:flashx.textLayout.elements::TableElement/normalizeCells in AOTBuildOutput-0000000101_6.o
    _AOTBuildOutput-0000000101_6:8072:flashx.textLayout.elements::TableElement/getBlockedCoor ds in AOTBuildOutput-0000000101_6.o
    "_traits:AOTBuildOutput-0000000100_5:18::LocaleID", referenced from:
    _AOTBuildOutput-0000000100_5:340:mx.resources::LocaleSorter$/sortLocalesByPreference in AOTBuildOutput-0000000100_5.o
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64

    We've built a lot of test-apps including the same components and libraries as in this app, but we are not able to reproduce this crash in other projects.
    The project works fine in the Simulator without any crashes or compile errors!

  • Error while generating an XML Document from XML Schema with JAXB

    Hi,
    I am following this OTN tutorial to generate the XML document from Java classes got from the XSD document.
    http://www.oracle.com/technology/pub/notes/technote_jaxb.html
    I am able to generate all the Java classes but getting error on compiling the XMLConstructor.java class which is use for generating the XML document :
    I am using JDK 1.5 and
    Oracle 10g XML Developer's Kit (XDK) Production for Java. xdk_nt_10_1_0_2_0_production
    (though these are warnings I am not able to run it.)
    Error
    C:\Prototype\classes\jaxbderived\catalog>javac -Xlint XMLConstructor.java
    warning: [path] bad path element "%CLASSPATH%": no such file or directory
    XMLConstructor.java:42: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
    journalList.add(journal);
    ^
    XMLConstructor.java:46: warning: [unchecked] unchecked call to add(E) as a membe
    r of the raw type java.util.List
    articleList.add(article);
    Thanks
    Sanjeev ([email protected])

    Use JDK 1.4.

  • Error while compiling CUSTOM.PLL with frmcmp_batch

    We have a strange issue here. One of the users is unable to compile custom.pll . He is getting the issue
    PDE-PLI038 Cannot open file for use as a PL/SQL Library
    This is the below file permission for the custom.pll
    -rwxrwxrwx 1 applmgr oaa 20480 Apr 29 02:57 CUSTOM.pll
    This is the one with custom developments in it.
    This is user id
    uid=114(ccankim) gid=1026(oaa)*
    But when I as a applmgr user is able to compile the CUSTOM.pll successfully.
    applmgr>frmcmp_batch module=CUSTOM.pll userid=apps/***** module_type=library
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release  - Production
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0      Production
    Compiling library CUSTOM...
    Compiling Package Spec CUSTOM......
    Compiling Package Body CUSTOM......
    Done.
    Any idea Gurus...
    EBS 12.1.3
    UNIX HP-UX B.11.31 U ia64 4294967040 unlimited-user license
    DB 11.2.0.2

    $ which frmcmp_batch
    /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    $ ll -ltr /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    -rwxr-xr-x 1 applmgr oaa 22544380 Dec 21 12:17 /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    The user has execute permission.( because his user id belongs to group oaa which has execute permission)
    Full 777 permission on the directory where this CUSTOM.pll exists.
    The confusing part is, if the file would have been corrupted, it would not have been compiled successfully under applmgr user. So the doc id 1082077.1 as of now doesn't help a lot.
    :(

  • Error while adding XML Schemas with cyclic references

    I have to use the 3rd party bunch of XML Schema files, but two of them reference each other, i.e. there are cyclic references. ESB displays a conflict in this case.
    Is there any way to resolve the problem without changing source xsd-files?
    My configuration is WebLogic Platform 9.2.1 + AquaLogic Service Bus 2.6

    Our scenario is that the corporate data model (in UML) is transformed into XSD and delivered as several separate XSD files. Our modellers argue that cyclic references make sense in this context and are not forbidden by the standard.
    We restructured the transformation so that only a single XSD file is delivered (~550K) but this is unwieldy, inflexible and ALSB is sloooooooooow when manipulating a schema of this size inside the console.

  • Building Objects with JAXB...

    How on earth do I write the .xjs file for this DTD? It should be simple but
              I'm really stumped. What I want is for all of the elements within <inpea>
              to end up in a single list (<choice collection="list"....>) so that I can
              cycle through depending on which element in the fields is etc. add delete
              and append new records to the XML from a web based form.
              Here is the DTD:
              <!ELEMENT inpea (cols*)>
              <!ELEMENT cols (header1*, header2*, content*, link*, options*)>
              <!ATTLIST cols number CDATA "1">
              <!ELEMENT header1 (#PCDATA)>
              <!ELEMENT header2 (#PCDATA)>
              <!ELEMENT content (#PCDATA)>
              <!ELEMENT link (#PCDATA)>
              <!ATTLIST link href CDATA "">
              <!ELEMENT options (option*)>
              <!ELEMENT option (#PCDATA)>
              The .xjs file is currently as follows...
              <xml-java-binding-schema version="1.0ea">
                   <element name="inpea" type="class" root="true"/>
                   <element name="cols" type="class" root="true">
                   <attribute name="number" convert="int"/>
                   </element>
              </xml-java-binding-schema>
              Any help on doing this is very much appreciated! Thank you!
              I also thought that I would be able to use #CDATA to preserve the formatting
              of the <content> contents... I don't seem to be able to get it to work hence
              why its not in the DTD.
              Thanks Again!
              

    Hi everybody,
    I am working on an example with the JAXB, which in
    many ways is an extraordinary technology, but I have
    quite a problem.
    I have compiled my schema with xjc - no problem, but i
    am missing to setMethods both of which is regarding a
    List. I've got
    java.util.List getSparepart() and java.util.List
    getCategory() but am missing the two set methods and I
    don't understand why.You don't need the SET methods for that. You can get to the list via the GET methods and then add/remove elements to/from it or empty/clear it. If you want to set an entirely different list, you could always use-
    getSparePart().clear();
    getSparePart().addAll(myNewList);
    Hope this helps.

  • Set methods or typecasting objects with JAXB

    Hi everybody,
    I am working on an example with the JAXB, which in many ways is an extraordinary technology, but I have quite a problem.
    I have compiled my schema with xjc - no problem, but i am missing to setMethods both of which is regarding a List. I've got
    java.util.List getSparepart() and java.util.List getCategory() but am missing the two set methods and I don't understand why.
    I have tried to solve the problem by defining the methods myself, which is allright right until the point where I use the methods.
    Here is a snip of the code:
    spTest.jaxb.CatalogType.VendorType vNowTemp = (spTest.jaxb.CatalogType.VendorType) objFactory.createCatalogTypeVendorType();
    vNowTemp = vNow;
    vNowTemp.setSparePartCategory(categoryResult);
    vNowTemp = vNow;
    result.add(vNowTemp);
    The problem is that there seems to be no difference between vNow or vNowTemp at any point, which there should be.
    I have tried to convert the java.util.List I get when I use getSparePart to a com.sun.xml.bind.util.ListImpl (which is the object type used within the classes JAXB's xjc produced) but this seems to be impossible.
    Could any one help me on this one please
    /Sebastian
    [email protected]

    Hi everybody,
    I am working on an example with the JAXB, which in
    many ways is an extraordinary technology, but I have
    quite a problem.
    I have compiled my schema with xjc - no problem, but i
    am missing to setMethods both of which is regarding a
    List. I've got
    java.util.List getSparepart() and java.util.List
    getCategory() but am missing the two set methods and I
    don't understand why.You don't need the SET methods for that. You can get to the list via the GET methods and then add/remove elements to/from it or empty/clear it. If you want to set an entirely different list, you could always use-
    getSparePart().clear();
    getSparePart().addAll(myNewList);
    Hope this helps.

  • Error while compiling schema using JAXB 1.0.2 to

    Hi ,
    Please help ! i am trying to compile my schema using JAXB1.0.2 (bundled with Java Web Services Developer Pack 1.3 ) .I am getting a java.util.MissingResourceException . Can anyone help as to which portion of the schema i should look at.Here are the error details.
    thanks
    Rahul
    parsing a schema...
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.util.MissingResourceException: Can't find resource for bundle ja
    va.util.PropertyResourceBundle, key parser.cc.8
    at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
    at java.util.ResourceBundle.getString(ResourceBundle.java:274)
    at com.sun.msv.datatype.xsd.regex.RegexParser.ex(RegexParser.java:138)
    at com.sun.msv.datatype.xsd.regex.ParserForXMLSchema.parseCharacterClass
    (ParserForXMLSchema.java:291)
    at com.sun.msv.datatype.xsd.regex.RegexParser.parseAtom(RegexParser.java
    :736)
    at com.sun.msv.datatype.xsd.regex.RegexParser.parseFactor(RegexParser.ja
    va:638)
    at com.sun.msv.datatype.xsd.regex.RegexParser.parseTerm(RegexParser.java
    :342)
    at com.sun.msv.datatype.xsd.regex.RegexParser.parseRegex(RegexParser.jav
    a:320)
    at com.sun.msv.datatype.xsd.regex.RegexParser.parse(RegexParser.java:158
    at com.sun.msv.datatype.xsd.regex.RegularExpression.setPattern(RegularEx
    pression.java:3040)
    at com.sun.msv.datatype.xsd.regex.RegularExpression.setPattern(RegularEx
    pression.java:3051)
    at com.sun.msv.datatype.xsd.regex.RegularExpression.<init>(RegularExpres
    sion.java:3017)
    at com.sun.msv.datatype.xsd.PatternFacet.compileRegExps(PatternFacet.jav
    a:79)
    at com.sun.msv.datatype.xsd.PatternFacet.<init>(PatternFacet.java:67)
    at com.sun.msv.datatype.xsd.TypeIncubator.derive(TypeIncubator.java:261)
    at com.sun.tools.xjc.reader.xmlschema.DatatypeBuilder.restrictionSimpleT
    ype(DatatypeBuilder.java:82)
    at com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl.apply(RestrictionSimp
    leTypeImpl.java:66)
    at com.sun.tools.xjc.reader.xmlschema.DatatypeBuilder.build(DatatypeBuil
    der.java:65)
    at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.buildPrimitiveTy
    pe(SimpleTypeBuilder.java:161)
    at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.access$100(Simpl
    eTypeBuilder.java:50)
    at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder$Functor.checkCon
    version(SimpleTypeBuilder.java:201)
    at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder$Functor.restrict
    ionSimpleType(SimpleTypeBuilder.java:276)
    at com.sun.xml.xsom.impl.RestrictionSimpleTypeImpl.apply(RestrictionSimp
    leTypeImpl.java:66)
    at com.sun.tools.xjc.reader.xmlschema.SimpleTypeBuilder.build(SimpleType
    Builder.java:93)
    at com.sun.tools.xjc.reader.xmlschema.cs.DefaultClassBinder.simpleType(D
    efaultClassBinder.java:130)
    at com.sun.xml.xsom.impl.SimpleTypeImpl.apply(SimpleTypeImpl.java:89)
    at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector._bindToClass(Clas
    sSelector.java:212)
    at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector.bindToType(ClassS
    elector.java:177)
    at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.populate(BGMBuilder.jav
    a:254)
    at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.buildContents(BGMBuilde
    r.java:223)
    at com.sun.tools.xjc.reader.xmlschema.BGMBuilder._build(BGMBuilder.java:
    116)
    at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:8
    0)
    at com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:
    424)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:130)
    at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:79)
    at com.sun.tools.xjc.Driver.run(Driver.java:177)
    at com.sun.tools.xjc.Driver._main(Driver.java:80)
    at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
    at com.sun.tools.xjc.Driver$1.run(Driver.java:60)

    Hi,
    A similar problem occur to me once.
    In that case it was that I copied the files from:
    JWSDP_HOME\jaxb\lib
    to
    JAVA_HOME\jre\lib\endorsed
    when I shouldn�t.
    I should take the files only from JWSDP_HOME\jwsdp-sahred\lib\endorsed
    So try taking the files:
    jaxb-api.jar
    jaxb-impl.jar
    jaxb-xjc.jar
    jaxb-libs.jar
    out of the JAVA_HOME\jre\lib\endorsed directory living them only in jaxb\lib where they should be.
    Try that, and let�s see if the compilation improves.

  • JAXB Bindings - error while compiling Schema(s)

    Hello, I want to create Java classes from a XML Schema by using JAXB Binding. However, when I do that a message error appears: "Error while compiling Schema" and then it says:
    "C:\...\NetBeansProjects\myproject\build.xml:12: Problem: failed to create task or type import
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place."
    Does anybody know what it's happening? It could be that there is a .jar missing?
    Thank you very much

    The document build.xml at line 12 says <import file="nbproject/build-impl.xml"/>. The file nbproject / build-impl.xml exists. If you want I could send it to you.You could post it here (the build-impl.xml, I mean).
    I have a working example, we could compare.
    I have included all the .jar you mentioned (excep the jaxb1-imp.jar).?
    If you added this JAXB compiling target via NB's wizard, as you describe below, you shouldn't have to "include" whatever jars wich are already in the JDK. That is, if you're using JDK6 - JAXB was not (or not so much) included in the JDK prior to 1.6.
    If the JDK is 1.5, I have no idea where you have to add these jars, possibly you're not add them in the correct classpath. Presumably Ant itself would need them in its classpath to be able to define the task.
    And I have not touched anythingThey all say that... :o)
    the only thing I did was to add other .jars (for other purposes).See?
    Is it possible that you removed one of the important jars when doing back-and-forth tries?
    But anyway I went back to remove this new .jars and the JAXB Binding still doesn't work .
    Should I uninstall the IDE and re-install? I do not know what else to do ...Do you have any reason to believe you did corrupt the JDK or NetBeans's installation? For example, when you write about adding/removing the mentioned jars, did you do that somewhere in the JDK or NB installation?
    Other than that, I don't see what reinstalling NB would do.
    Without going to such extremes, have you tried simply to remove the JAXBBinding, and add it again in the NetBeans project, using the wizard?

  • SAXParseException while compiling  example files provided with JAXB

    compile:
    [echo] Compiling the schema...
    [xjc] Compiling file:/C:/jaxbnew/jaxb-1.0-beta/examples/users-guide/Sample
    App1/po.xsd
    [xjc] org.xml.sax.SAXParseException: Unexpected </xs:restriction> appears
    at line 17 column 22
    [xjc] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.unexpectedXXX(NGCC
    RuntimeEx.java:323)
    [xjc] at com.sun.xml.xsom.impl.parser.state.NGCCHandler.unexpectedLeav
    eElement(NGCCHandler.java:81)
    [xjc] at com.sun.xml.xsom.impl.parser.state.SimpleType_Restriction.lea
    veElement(SimpleType_Restriction.java:159)
    [xjc] at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGC
    CRuntime.java:250)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja
    va:595)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja
    va:595)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.ja
    va:595)
    [xjc] at org.iso_relax.verifier.impl.VerifierFilterImpl.endElement(Unk
    nown Source)
    [xjc] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknow
    n Source)
    [xjc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElemen
    t(Unknown Source)
    [xjc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
    tContentDispatcher.dispatch(Unknown Source)
    [xjc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
    ument(Unknown Source)
    [xjc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Sour
    ce)
    [xjc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Sour
    ce)
    [xjc] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [xjc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
    rce)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:37
    1)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:37
    1)
    [xjc] at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:37
    1)
    [xjc] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRu
    ntimeEx.java:151)
    [xjc] at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java
    :116)
    [xjc] at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java
    :113)
    [xjc] at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java
    :110)
    [xjc] at com.sun.xml.xsom.impl.parser.XSOMParser.<init>(XSOMParser.jav
    a:87)
    [xjc] at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476
    [xjc] at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    [xjc] at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
    [xjc] at org.apache.tools.ant.Task.perform(Task.java:319)
    [xjc] at org.apache.tools.ant.Target.execute(Target.java:309)
    [xjc] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [xjc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [xjc] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
    [xjc] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [xjc] at org.apache.tools.ant.Main.start(Main.java:196)
    [xjc] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    java.lang.InternalError
    at com.sun.xml.xsom.impl.parser.XSOMParser.<init>(XSOMParser.java:99)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
    at org.apache.tools.ant.Task.perform(Task.java:319)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    Total time: 4 seconds
    java.lang.InternalError
    at com.sun.xml.xsom.impl.parser.XSOMParser.<init>(XSOMParser.java:99)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:476)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
    at org.apache.tools.ant.Task.perform(Task.java:319)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)

    Make sure you are using the same version of Xerces in ant, tomcat, jaxb and java (endorsed folder). Preferably 2.2.1. Still, for some reason I cannot make it work under Tomcat 4.1.12, works fine whenever my app is run outside tomcat, but if I run it in tomcat, it doesn't recognize the XML document as it was defined in the schema (especifically the attributes). I have posted the question but no answers yet.
    I had your problem, and checked what I was doing and had different versions of Xerces, one packaged with JVM 1.4.1_01, another with Ant 1.5, another with tomcat and yet another one used in my app. Just downloaded the latest version, replaced all instances of xercesImpl.jar, xalan.jar (if you are using it), xmlParsersAPI.jar and xsltc.jar (if using latest v. of xalan) everywhere and it worked fine, compiles fine and runs fine (outside of tomcat). Make sure you copy them in your endorsed folder (inside the jre/lib folder of your java installation).
    In any case, if you run the JVM with the parameter -verbose:class you will be able to see from where the DOM and SAX classes are being loaded.

  • Failure FRM-32029 while compiling Form with Forms Builder

    Hi.
    I have problem. I compile a form with Forms Builder from DevSuiteHome and get the failure:
    "FRM-32029 Window WINDOW not found; canvas-section CG$LOVCAN" (I translate it, it´s not the original terms).
    I google and search the forum and oracle page, but found nothing about this failure. In Forms-Builder itself is also nothing recorded about this problem.
    Do someone know more about this error?
    Thanks.

    Thanks inolau for answering.
    The problem is, that I don´t have a documentation about the sourcecode and these forms worked under from 6i to 9i upgraded Oracle AS and DB servers. So the problem is not only "where is the WINDOW", than more "why doesn´t works it under a new 10g version and how get it working?".
    That´s why I was searching for this not recorded error.
    And I´m worry about that searching for the part of the sourcecode where I found the "WINDOW" is like looking for a needle in a haystack. ;)

  • Generating and compiling jaxb 1.0 source with jaxb 2.0 binaries

    Hi
    Does anyone know if v 2.13 is backwards compatible in terms of generating the source files for version 1 and also compiling and deploying the code?
    I am developing a project that needs to use jaxb 1.0 and jaxb 2.0 for legacy reasons. I have downloaded 2.1.3 an managed to use xjc to generate the new code (2.1) but when I try and generate the 1.0 classes I get this error
    Couldn't load Resource 1.0/com/sun/xml/bind/JAXBAssertionError.class
    java.lang.NoClassDefFoundError: com/sun/xml/bind/JAXBAssertionError
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
    cutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NoClassDefFoundError: com/sun/xml/bind/JAXBAssertionError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.tools.xjc.Options.class$(Options.java:154)
    at com.sun.tools.xjc.Options.findServices(Options.java:482)
    at com.sun.tools.xjc.Options.<clinit>(Options.java:154)
    at com.sun.tools.xjc.XJCTask.<init>(XJCTask.java:49)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruc
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegating
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:49)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    And this is the ant build file
    <?xml version="1.0" encoding="windows-1252"?>
    <project name="jaxb" default="compile" basedir=".">
    <path id="classpath">
    <pathelement location="activation.jar"/>
    <pathelement location="jaxb-api.jar"/>
    <pathelement location="jaxb-impl.jar"/>
    <pathelement location="jaxb1-impl.jar"/>
    <pathelement location="jaxb-xjc.jar"/>
    <pathelement location="jsr173_1.0_api.jar"/>
    </path>
    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
    <classpath refid="classpath"/>
    </taskdef>
    <target name="compile">
    <xjc schema="import.xsd" destdir="generated"
    package=".jaxb.importxsd" source="1.0" target="1.0" />
    </target>
    </project>
    I have checked the classpath and there is nothing untoward there and
    all the jars are in the same folder as the ant file. I thought jaxb
    2.1 is meant to be backwards compatible?
    Many thanks for your help.
    With the version of the JAXB binaries installed with the web services pack I get this error message instead
    Class com.sun.tools.xjc.XJCTask$AntElement loaded from ant loader (parentFirst)
    ResourceStream for 1.0/com/sun/tools/xjc/XJCTask$AngProgressCodeWriter.class loaded from ant loader
    BUILD FAILED
    java.lang.IncompatibleClassChangeError: Implementing class
    It seems to want to load the 1.0/com...version of xjc but has loaded the 2.0 version already.

    Hi,
    Can you please check your classpath incase there are still jaxb-ea jars in it.
    We have had such problems reported to us because of this reason.
    If the problem still persists can you pls provide more information like the stack trace the schema files etc.
    Thanks,
    Bhakti Mehta
    Sun Microsystems Inc.

  • Marshalling HashMap with JAXB 2.0 - empty tags & ill schema

    Hi all,
    I expected JAXB 2.0 to be capable to handle basic classes like HashMap, but it does not look so. I have two classes: SimpleNegotiationManager which has a property HashMap in which are stored the instances of SimpleInitiatedConversation:
    package xml;
    import javax.xml.bind.annotation.*;
    import java.util.HashMap;
    @XmlAccessorType(AccessType.FIELD)
    @XmlRootElement
    public class SimpleNegotiationManager {
        @XmlElement
        protected HashMap<String, SimpleInitiatedConversation> initiatedConversations;
        public SimpleNegotiationManager() {
        public HashMap<String, SimpleInitiatedConversation> getInitiatedConversations() {
            if (initiatedConversations == null) {
                initiatedConversations = new HashMap();
            return initiatedConversations;
        public void setInitiatedConversations(HashMap<String, SimpleInitiatedConversation> initiatedConversations) {
            this.initiatedConversations = initiatedConversations;
    }and
    package xml;
    import javax.xml.bind.annotation.*;
    import java.util.ArrayList;
    import java.util.List;
    @XmlAccessorType(AccessType.FIELD)
    @XmlType
    public class SimpleInitiatedConversation {
        @XmlElement
        protected List<String> messages;
        protected String conversationID;
        protected int protocolState;
        public SimpleInitiatedConversation() {
        public List<String> getMessages() {
            if (messages == null) {
                messages = new ArrayList();
            return messages;
        public void setMessages(List<String> messages) {
            this.messages = messages;
        public int getProtocolState() {
            return protocolState;
        public void setProtocolState(int protocolState) {
            this.protocolState = protocolState;
        public String getConversationID() {
            return conversationID;
        public void setConversationID(String conversationID) {
            this.conversationID = conversationID;
    }When I marshalled SimpleNegotiationManager while the HashMap was filled with several <String,SimpleInitiatedConversation> entries, in the output were empty tags initiatedConversations:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <simpleNegotiationManager>
      <initiatedConversations>
      </initiatedConversations>
    </simpleNegotiationManager>When I used schemagen to generate a schema, it produced:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="simpleInitiatedConversation">
        <xs:sequence>
          <xs:element name="messages" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
          <xs:element name="conversationID" type="xs:string" minOccurs="0"/>
          <xs:element name="protocolState" type="xs:int"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="simpleNegotiationManager" type="simpleNegotiationManager"/>
      <xs:complexType name="simpleNegotiationManager">
        <xs:sequence>
          <xs:element name="initiatedConversations" type="hashMap" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="hashMap">
        <xs:complexContent>
          <xs:extension base="abstractMap">
            <xs:sequence/>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
      <xs:complexType name="abstractMap" abstract="true"/>
    </xs:schema>Particularly the description of HashMap seems ill - there is not specified that the HashMap has keys String and values SimpleInitiatedConversation.
    Unfortunatelly, the j2s-xmlAdapter-field example available with JAXB 2.0 is more complicated than I need. I just need to store/load HashMap into/from XML and I do not care what it looks like. Is it possible to avoid extending XmlJavaTypeAdaptor for a simple storing a HashMap into XML? Perhaps I use improper annotations in the source code, but I cannot get it working. Any clue?

    Ok i figured out one way of doing this by using some classes from JAXP...
    SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema s = null;
    try{
        s = sf.newSchema(new File("Sources/schema/test.xsd"));                    
    }catch(Exception e){
        System.err.println("Exception e: " + e.getMessage());
    marshaller.setSchema(s);
    //MyValidationHandler class implements the ValidationEventHandler interface
    MyValidationHandler gv = new MyValidationHandler();
    marshaller.setEventHandler(gv);If anyone has something to add let me know!!

  • Validating datatypes with JAXB while unmarshalling

    Hi,
    is there in JAXB any method to check correct datatypes while JAXB unmarshalling
    For example, I tried to unmarshall an xml file to objects and in on element of this XML file there was the data "AAAA"
    <testElement>AAAA</testElement>
    in the XSD Shema this element was declared as type Integer.
    After unmarshalling the xml doc I've got an Object with an Attribut testElement which has the value "0" ... so can I test
    type while unmarshalling an throw an exception?
    Thanks a lot for your help!
    with best regards
    Rene
    Forget it ... problem almost solved ...
    Edited by: Gambler79 on Mar 10, 2008 2:48 PM

    I'm having what I think is a related problem to what's mentioned in this thread. Has anyone successfully used targetNamespace with JAXB? Below is the sample schema and xml I'm trying to unmarshal via JAXB version 1.02. Any help would be greatly appreciated.
    This is the schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://foo.com/repository/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://foo.com/repository/"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified">
    <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
    <xsd:complexType name="PurchaseOrderType">
    <xsd:sequence>
    <xsd:element name="poText" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    ====================================
    This is the XML:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <purchaseOrder xmlns="http://foo.com/repository/">
    <poText>foo</poText>
    </purchaseOrder>
    ====================================
    After calling unmarshal (with appropriate namespace), I get:
    DefaultValidationEventHandler: [ERROR]: Unexpected element {http://foo.com/repository/}:poText
    Location: line 3 of file:/C:/project/dev/prototype/repository/example/query.xml
    javax.xml.bind.UnmarshalException: Unexpected element {http://foo.com/repository/}:poText
    Can someone please let me know what I'm doing wrong here?
    Thanks.
    --S.

  • "No tag library could be found with this URI" error while compiling jsp

    I am using WebLogic Server 9.2 MP1, JDK 1.5.0_09, Struts 1.3.5
              I am pre-compiling jsp pages with wlappc ant task. However, I got following errors when a jsp page contains ant taglib:
              No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
              The jsp page looks like:
              <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
              wlappc complains taglib could not be retrieved from this uri. Actually, since Struts 1.3.5, those ".tld" files are contained in strust-taglib-1.3.5.jar, folder META-INF/tld/. And I don't need to set anything in web.xml <tag-lib> tab anymore.
              All the jsp pages can be successfully compiled while being deployed to Server. So what am I missing? My build.xml file looks like:
                   <target name="compile-jsp">
                        <wlappc source="${src.dir}" output="${out.dir}"
                             keepgenerated="true" optimize="true" classpathref="wl_classpath"/>
                   </target>
              where "wl_classpath" contains all the struts related jar files, e.g. struts-core-1.3.5.jar, struts-taglib-1.3.5.jar, ...., and weblogic related jars, e.g. weblogic.jar.....
              I checked "beehive" samples coming with weblogic92, and found it pretty much did the same thing regarding build script and jsp files. So I am totally lost!
              Please help me out. Many thanks.
              Edited by jqian at 02/02/2007 10:24 AM

    Yes sorry, you're correct. The uri I mentioned is just 1.0.
    Do you have the "Oracle WebLogic Web App Extension" Facet for your web project? If not, try adding that and making sure that there is a weblogic.xml file created in the WEB-INF dir. The weblogic.xml file allows you to deploy usig a shared lib for JSTL. It should contain a library-ref element something like the following, with a version of 1.1.
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.1</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>

Maybe you are looking for

  • How to convert VHS to DVD using FCP 7?

    Hello. For a brief, non-technical, introduction: I have dozens of family VHS tapes that I'd like to convert into a digital format where I can edit them and eventually transfer them onto an external hard drive and possibly DVDs as well. Ideally, I'd l

  • Webcam NX problem - its not being detected

    its not detecting the camera - I have everything installed - and it used to work before - now for some reason when I plug it into the USB port its not being recognized as being plugged in or anything - help!

  • Tcode in production client but not in development & quality client

    I am facing this particular situation, I am seeing a particular Ztode which is in production client but not in development & quality client Is it possible to have a tcode in production client but not in development & quality client, If yes what would

  • Can't export Quicktime H.264 from AE CS4

    Whenever I try to set the export module to Quicktime H.264 I immediately get the error/message, "For reliable output with H.264 compression, please choose it directly from the Output Module Format menu instead of via Quicktime." If you try ro render,

  • Hp pavilion zv6000 "no audio output devise is installed"

    Hi I have a big problem with my HP Pavilion zv6000. It`s a very old notebook but was working fine till i install win7 ultimate. I understand that HP doesn`t have drivers for win7 but i hope that you will have some decision for me. The problem is that