[oXygen-user] Creating a RELAX NG datatype library .jar for use with the v.Nu schemas

Oxygen XML Editor Support (Adrian Buza)
Mon Mar 14 03:52:14 CDT 2016


Hi Graham,

> It's as if my .jar is being ignored. This is partly what prompted my
> niggling thought that perhaps Oxygen has some persistent parser cache that
> expects the other jar (from the jEdit XML plugin developer that I used
> first); but if so, the stickiness is deeper than just the .jar file name,
> because I get the same behavior when I use the same .jar file name.
I just wanted to mention that there is no such cache, restarting the 
application will result in the new jar being loaded.

The problem is most likely the one that George mentioned. When you 
re-create the jar, make sure that in the 'META-INF/services' folder from 
within the .jar the appropriate factory class is specified (use a ZIP 
archive tool like 7-zip to check).

Regards,
Adrian

Adrian Buza
oXygen XML Editor and Author Support

Tel: +1-650-352-1250 ext.2020
Fax: +40-251-461482


On 14.03.2016 10:34, George Bina wrote:
> Hi Graham,
>
> Check the
> META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory
> in both JARs. I think Jing uses this to identify the available 
> datatype libraries and if your JAR file does not provide the entry 
> there then Jing will not load your datatype library.
>
> Best Regards,
> George
> -- 
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
> On 14/03/16 01:35, Graham Hannington wrote:
>> I forget to mention in my previous post: I've run Oxygen XML Author with
>> oxygenDebug.bat and with the log4j.properties specified on the Oxygen
>> website (to write logs under my desktop), but the only error I see 
>> when I
>> use "my" .jar is the same one I get when there is no datatype .jar
>> present:
>>
>>> E [Jing] datatype library "http://whattf.org/datatype-draft" not
>> recognized
>>
>> It's as if my .jar is being ignored. This is partly what prompted my
>> niggling thought that perhaps Oxygen has some persistent parser cache 
>> that
>> expects the other jar (from the jEdit XML plugin developer that I used
>> first); but if so, the stickiness is deeper than just the .jar file 
>> name,
>> because I get the same behavior when I use the same .jar file name.
>>
>> If I close Oxygen, replace my .jar with the .jar from the jEdit XML 
>> plugin
>> developer, and restart Oxygen, then I don't get that Jing error, and
>> validation works using the v.Nu schemas that refer to those datatypes.
>>
>> I need to investigate whether I can turn on additional diagnostic 
>> options
>> for Jing that might indicate whether or not my .jar is being used. I'd
>> appreciate advice on that.
>>
>> (I've had confirmation from the jEdit XML plugin developer that all 
>> he did
>> was to cut down the vnu.jar.)
>>
>> Regards,
>> Graham Hannington
>>
>> Fundi Software Pty Ltd  2016  ABN 89 009 120 290
>>
>>
>> This message has been scanned for malware by Websense. www.websense.com
>> _______________________________________________
>> oXygen-user mailing list
>> 
>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
> _______________________________________________
> oXygen-user mailing list
> 
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>



More information about the oXygen-user mailing list