Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iPAQ and JAXB classes

 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to deploy an application in an iPAQ that reads from an XML file and unmarshalls it into JAXB classes.
When I run the class in my development PC, I can see the unmarshalled information, but when I run it in the iPAQ, I receive the following excepetion:
Exception in thread "main" java.util.MissingResourceException
at java.lang.Throwable.<init>(Unknown Source)
at java.lang.Throwable.<init>(Unknown Source)
at java.lang.Exception.<init>(Unknown Source)
at java.lang.RuntimeException.<init>(Unknown Source)
at java.util.MissingResourceException.<init>(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at javax.xml.bind.Messages.format(Unknown Source)
at javax.xml.bind.Messages.format(Unknown Source)
at javax.xml.bind.ContextFinder.searchcontextPath(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at com.personalProfile.ui.HelloFrame.getXMLInfo(Unknown Source)
at com.personalProfile.ui.HelloFrame.main(Unknown Source)
t's throwing the exception when executing this line:
JAXBContext jc = JAXBContext.newInstance("com.personalProfile.jaxbBean");
I already copy all the JAXB, JAXP libs that I imported in my project in the iPAQ, in the same folder where the WSDD libraried reside.
Is there any configurarion I should do in the iPAQ?
Thanks
Mary.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think JAXB is supported in PP. While the class files might work, it obviously misses some "resource" files. You would have to track them down -- possiblly by looking at the JAXB source code since it is probably not documented in the API.
I would re-examine the project to see if I can do it lighter J2ME XML tools like kXML.
 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,
Thanks for your suggestions!
I downloaded kXML 2 release 2.1.8.
Seems that this willdo the trick
[ February 18, 2004: Message edited by: Mary White ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic