Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Jean-Guilhem Rouel edited this page Feb 24, 2016 · 3 revisions

Three main tasks :

  • [wiki:week2+]
  • Install XMLBeans under eclipse to replace Jaxb :
  • Installing and testing with Jigsaw
This part will be devoted to the change from jaxb to XMLBeans.BR In order to test that XMLBeans works under Jigsaw we 'll install jigsaw server and run several tests.BR You can see the jigsaw installation further in the page.BR

Installing XMLBeans to replace Jaxb

First why XMLBeans?BR Here are some answers : Xml parsers test suite BR As it passes quite all the test we were confirmed by Yves that XMLBeans would be suitable in order to solve the jigsaw problems.BR We had considered the XGEN parser for same reasons but as XMLBeans were more documented and known by the team here at W3C we decided to take it.BR BR BR Here is the guide to install XMLBeansBR Here is the help for the eclipse pluginBR This plugin can't enable the download of the import in the schema xsd. You'd better use the scomp command to generate the java classes.BR Here is some practice to test XMLBeans BR Personally as we already have some tasklist and observers schemas we'll use them to test under jigsaw. BR There might be a problem with classloader as you can see here BRBR We could install and launch XMLBeans. We could generate the classes using the command:

We'll now create a servlet to test XMLBeans under jigsaw, we'll only perform simple things to test it.BR We created a test servlet parsing an old-version tasklist to print out the id.BR BR We have to write the new schema for the tasklist. You can see it in attached files.BR BR We had some problems configuring XMLBeans in order to launch it. Once the schema is compiled into jar files and java classes , you got to insert the jar in your project libraries. BR The test under jigsaw was successful so we'll now begin to replace all the occurrence of jaxb in unicorn.BRBR We have 2 problems currently in the first part of change for observation response :

  • Date problems. The date we catch doesn't fit in Calendar java Type :
      • Invalid date value: 2008-07-03T06:5459Z XmlObjectBase$ValueOutOfRangeValidationContext
      • Solved by changing the bad format in CSS validator
  • The Longmessage doesn't include a content attribute like before so we have to manage it in an other way now.
      • Same for A and Code tag
      • We solved it using XMLCursor to parse all the results : Here for the XMLCursor in XMLBeans at the bottom of the page.BR
You can check the comments in the code for more details.

Installing Jigsaw

Download the appropriate version of Jigsaw on http://www.w3.org/Jigsaw/

On Windows :BR - Setup : go to scripts and click on install.bat BR - Server launch : still in the scripts directory, launch jigsaw.bat . The command window should print the URL you'll have to enter in your browser.

On Unix :BR - Setup : run the following command : scripts/install.sh BR - Server launch : run : scripts/jigsaw.sh

Use an extra layer of security with two factor authentication (2FA) when logging into google

Clone this wiki locally