users@jaxb.java.net

Error

From: Cosette Kamakian <Cosette.Kamakian_at_itello.se>
Date: Thu, 28 Feb 2008 14:27:59 +0100

 

Dear mailinglist

 

Could anyone explain what is the problem with this msg

Buildfile: build.xml

 

compile:

     [echo] Compiling the schema...

      [xjc] files are up to date

     [echo] Compiling the java source files...

 

run:

     [echo] Running the sample application...

     [java] Exception in thread "main" javax.xml.bind.UnmarshalException: unexpected element (uri:"http://jakarta.apache.org/log4j/", local:"configuration"). Expected elements are <{}appender>,<{}appender-ref>,<{}category>,<{}categoryFactory>,<{}connectionSource>,<{}dataSource>,<{}errorHandler>,<{}filter>,<{}layout>,<{}level>,<{}log4j:configuration>,<{}log4j:data>,<{}log4j:event>,<{}log4j:eventSet>,<{}log4j:locationInfo>,<{}log4j:properties>,<{}logger>,<{}logger-ref>,<{}loggerFactory>,<{}param>,<{}plugin>,<{}priority>,<{}renderer>,<{}rollingPolicy>,<{}root>,<{}root-ref>,<{}triggeringPolicy>

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:603)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:244)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:239)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1009)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:446)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:427)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)

     [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)

     [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)

     [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)

     [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)

     [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)

     [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

     [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)

     [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

     [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

     [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)

     [java] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)

     [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)

     [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)

     [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151)

     [java] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:169)

     [java] at DTDSample.test(DTDSample.java:70)

     [java] at DTDSample.main(DTDSample.java:56)

     [java] Java Result: 1

 

BUILD SUCCESSFUL

Total time: 1 second

 

 

 

I attached all the files needed

 

thanks

 

 

Cosette Kamakian

Tel: +46 8 508 922 06

Mobil: +46 76 54 80 606

e-mail : cosette.kamakian_at_itello.se

 

Itello AB

Kungsgatan 44, 1tr

111 35 STOCKHOLM

http://www.itello.se <http://www.itello.se/>

Växel:+46 8 508 922 00

Fax:+46 8 508 922 89