Hi,
I'm trying to debug another issue I was having, than I downloaded the source
for Castor 1.2, instead of checkout. Please, let me know if checking out
would solve this issue.
While calling the SchemaReader.read() method, I get this exception:
org.exolab.castor.xml.schema.SchemaException: An error occured at line: 9:
Error: The schema built in types could not be loaded or created.;
org.exolab.castor.mapping.MappingException: Nested error:
org.exolab.castor.xml.MarshalException
at org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(
IncludeUnmarshaller.java:177)
at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(
SchemaUnmarshaller.java:536)
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(
Sax2ComponentReader.java:255)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.schema.reader.SchemaReader.read(
SchemaReader.java:304)
at soapclient.SampleXMLCreator.readSchema(SampleXMLCreator.java:52)
at soapclient.SampleXMLCreator.fetch(SampleXMLCreator.java:58)
at soapclient.SampleXMLCreatorView.btnFetchXSDActionPerformed(
SampleXMLCreatorView.java:155)
at soapclient.SampleXMLCreatorView.access$2(SampleXMLCreatorView.java
:153)
at soapclient.SampleXMLCreatorView$4.actionPerformed(
SampleXMLCreatorView.java:100)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java
:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(
AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(
DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java
:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java
:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(
EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(
EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: org.exolab.castor.xml.XMLException: An error occured at line: 9:
Error: The schema built in types could not be loaded or created.;
org.exolab.castor.mapping.MappingException: Nested error:
org.exolab.castor.xml.MarshalException
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(
Sax2ComponentReader.java:258)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(
IncludeUnmarshaller.java:171)
... 42 more
I'm not sure if my code is correctly configured to run. Is there any guide
where I can check the steps necessary to run the code I've got?
Thank you,
Fausto.
--
Obrigado,
Fausto.