Hi,
I've just finished changing over my code from sun jaxb to jaxme and
straight away my test suite fails complaining that
my xml file doesn't contain a root element:
org.xml.sax.SAXParseException: Document root element is missing.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:
668)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse
(XMLReaderImpl.java:448)
at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal
(JMUnmarshallerImpl.java:92)
at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal
(JMUnmarshallerImpl.java:83)
at com.williams1000.command.CommandService.<init>
(CommandService.java:37)
at com.williams1000.command.ServiceWrapperTest.getBankingService
(ServiceWrapperTest.java:36)
at com.williams1000.command.ServiceWrapperTest.testTerminal
(ServiceWrapperTest.java:24)
I've pasted the xml file below and haven't changed it at all since
the tests passed with sun jaxb. Maybe the sun
implementation was more generous and allowed some sort of error
through that jaxme doesn't. Any clues
would be welcome.
Thanks
AW
<services
xmlns="http://www.williams1000.com/command"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.williams1000.com/command http://
agwilliams1000.dyndns.org/services.xsd">
<id>banking</id>
<resourceBundle>com.williams1000.command.bankingmessages</
resourceBundle>
<service>
<id>connect</id>
<type>java.lang.Void</type>
<target>
<type>com.williams1000.command.BankingService</type>
<method>connect</method>
<params>
<param>
<id>username</id>
<type>java.lang.String</type>
</param>
<param>
<id>password</id>
<type>java.lang.String</type>
</param>
</params>
</target>
</service>
<service>
<id>disconnect</id>
<type>java.lang.Void</type>
<target>
<type>com.williams1000.command.BankingService</type>
<method>disconnect</method>
</target>
</service>
<service>
<id>balance</id>
<type>java.lang.Double</type>
<target>
<type>com.williams1000.command.BankingService</type>
<method>getBalance</method>
</target>
</service>
<service>
<id>deposit</id>
<type>java.lang.Void</type>
<target>
<type>com.williams1000.command.BankingService</type>
<method>deposit</method>
<params>
<param>
<id>amount</id>
<type>java.lang.Double</type>
</param>
</params>
</target>
</service>
<service>
<id>withdraw</id>
<type>java.lang.Void</type>
<target>
<type>com.williams1000.command.BankingService</type>
<method>withdraw</method>
<params>
<param>
<id>amount</id>
<type>java.lang.Double</type>
</param>
</params>
</target>
</service>
</services>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]