I did placed Impinj.xsd under the org/llrp/ltk in the jar and this resulted in
not having a problem for core llrp messages, however impinj's custom messages
still cannot be validated against Impinj.xsd. One initial problem was the code
"$extensionSchemas.get($namespace.getPrefix().toLowerCase())" in
javaConstantsTemplate.vm. Impinj's namespace prefix is with capital I.
Anyway, to sum up i have
1) the entry << definition =
Impinj;../Definitions/LLRP.org/Impinjdef.xml;org/llrp/ltk/Impinj.xsd >> in
generator.properties
2) the entry << public static final String
$namespace.getPrefix().toUpperCase()$path =
"$extensionSchemas.get($namespace.getPrefix())" >> in javaConstantsTemplate.vm
3) edited the build.xml in order to copy the Impinj.xsd under org/llrp/ltk in
the jar
When i try to call the toXMLString() on a custom message i still get the << LTK
XML message can not be validated against schema org/llrp/ltk/Impinj.xsd >>
exception.
Thanks,
Nikos
----------------------------------------
From: "Basil Gasser" <[EMAIL PROTECTED]>
Sent: Tuesday, May 06, 2008 6:15 PM
To: [EMAIL PROTECTED], "LLRP Toolkit Development List"
<[email protected]>
Subject: Re: [ltk-d] LTKJava
Schemas are loaded as resources. Therefore they have to be in the build
path, i.e. if you are using eclipse add the folders containing your xsd
files to the build path. This should fix your problem.
Please do a cvs update and regenerate the code, I made some small
changes to the templates.
++ basil
Nikos Zarokostas wrote:
> Hello,
>
> i have been successfully using LTKJava (compiled from sources checked
> out from the llrp-toolkit project on sourceforge) without the Impinj
> extensions in order to communicate with the Speedway reader. When i
> compiled LTKJava with the Impinj extensions (edited
> generator.properties) i had the following problem: <<
> org.llrp.ltk.exceptions.InvalidLLRPMessageException: LTK XML message
> can not be validated against schema ../Definitions/Core/llrp-1x0.xsd
> >> for all messages, both LLRP core and custom ones. The file
> Definitions/Core/llrp-1x0.xsd is located where it should be since the
> same code using LTKJava_with_dep_0_1_0-SNAPSHOT.jar without the Impinj
> extensions works.
>
> Any help is greatly appreciated
> Nikos Zarokostas
> Software Engineer
> Sensap Microsystems
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel