Hi,
I have a problem with my ltk application.
If I run it as a jar it works perfectly, but when I build it as
Deployable Plug-in (OSGi bundle) using Eclipse and then I run it in
ServiceMix 4.2 I encountered this problem while executing this command
LLRPMessage setReader =
Util.loadXMLLLRPMessage(readFile("LLRPMessage/SET_READER_CONFIG.llrp")).
This is the error:
org.llrp.ltk.exceptions.InvalidLLRPMessageException:
http://www.w3.org/2001/XMLSchema
at
org.llrp.ltk.generated.messages.SET_READER_CONFIG.decodeXML(SET_READER_CONFIG.java:1185)
at
org.llrp.ltk.generated.messages.SET_READER_CONFIG.<init>(SET_READER_CONFIG.java:131)
at
org.llrp.ltk.generated.LLRPMessageFactory.createLLRPMessage(LLRPMessageFactory.java:424)
at org.llrp.ltk.util.Util.loadXMLLLRPMessage(Util.java:132)
at llrposgicomponent.LLRPJmsConnector.start(LLRPJmsConnector.java:123)
at llrposgicomponent.Activator.start(Activator.java:15)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1090)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1076)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:405)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:212)
The ROspec is correct, it works if i run the jar and it is loaded
correctly in both the cases.
I think that loadXMLLLRPMessage method isn't able to validate the
ROspec because it don't find the XMLSchema.
Can anyone help me, please?
THANKS!!!!
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel