XQuery plugin not validating Java extensions
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 14
- Joined: Fri Sep 30, 2005 1:55 am
XQuery plugin not validating Java extensions
Hi,
I am trying to get the clipse plugin to work for XQuery validation. The problem is that if I have a Java class referenced from the XQuery, like:
declare namespace ju="java:com.a.b.c.XQueryUtils";
....
<adress>{ju:ipToString($address)}</address>
gives the following error when validating the XQuery file:
"Cannot find a matching 1-argument function named {java:com.a.b.c.XQueryUtils}ipToString() ... "
The java class is on the project's classpath.
It works when running standalone oXygen.
TIA,
Serban
I am trying to get the clipse plugin to work for XQuery validation. The problem is that if I have a Java class referenced from the XQuery, like:
declare namespace ju="java:com.a.b.c.XQueryUtils";
....
<adress>{ju:ipToString($address)}</address>
gives the following error when validating the XQuery file:
"Cannot find a matching 1-argument function named {java:com.a.b.c.XQueryUtils}ipToString() ... "
The java class is on the project's classpath.
It works when running standalone oXygen.
TIA,
Serban
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Serban,
Have you added your class in the classpath for the oXygen standalone, for instance have you placed the jar containing the class in the oXygen lib folder?
To add something in the classpath for the Eclipse plugin you need also to edit the plugin.xml file and add a library entry in the runtime section pointing to that jar then restart Eclipse making sure you pass -clean in the Eclipse command line.
Best Regards,
George
Have you added your class in the classpath for the oXygen standalone, for instance have you placed the jar containing the class in the oXygen lib folder?
To add something in the classpath for the Eclipse plugin you need also to edit the plugin.xml file and add a library entry in the runtime section pointing to that jar then restart Eclipse making sure you pass -clean in the Eclipse command line.
Best Regards,
George
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Serban,
You need to add then the folder that contains the class, if the class specifies a package then you need to add the folder that contains the first package folder, for instance if your class is in com/a/b/test.class then you need to add the parent folder of com. The [oXyge]/lib folder is already added so you can also copy the com/a/b/test.class in the [oXygen]/lib folder where [oXygen] is the oXygen plugin folder, the one that contains the plugin.xml descriptor file.
Best Regards,
George
You need to add then the folder that contains the class, if the class specifies a package then you need to add the folder that contains the first package folder, for instance if your class is in com/a/b/test.class then you need to add the parent folder of com. The [oXyge]/lib folder is already added so you can also copy the com/a/b/test.class in the [oXygen]/lib folder where [oXygen] is the oXygen plugin folder, the one that contains the plugin.xml descriptor file.
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service