Problem init AuthorComponentFactory in version 22.0.0.0
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Problem init AuthorComponentFactory in version 22.0.0.0
Hello,
We have installed the version 22.0.0.0 of oxygen sdk and we face an issue when initialise AuthorComponentFactory.
Here is a peace of our code :
and when application come to we have this exception :
Maybe we missed a jar.
Thanks for your help.
Regards,
Isabelle
We have installed the version 22.0.0.0 of oxygen sdk and we face an issue when initialise AuthorComponentFactory.
Here is a peace of our code :
Code: Select all
final AuthorComponentFactory factory = AuthorComponentFactory.getInstance();
final URL[] frameworkZips = FrameworksLoader.loadFrameworksUrls();
final File frameworkCacheDirectory = new File(getCacheDirectory(), currentFramework + File.separator + currentFramework);
if(frameworkZips != null && frameworkZips.length > 1 && isCurrentFrameworkUpToDate(frameworkZips)) {
factory.init(frameworkCacheDirectory, optionsZipURL, codeBase, APPLET_ID, null);
} else {
factory.init(frameworkZips, optionsZipURL, codeBase, APPLET_ID, null);
}
Code: Select all
factory.init(frameworkZips, optionsZipURL, codeBase, APPLET_ID, null);
Can you tell me where should be these class ?java.lang.NoClassDefFoundError: ro/sync/util/editorvars/expander/EditorVariableResolver
at ro.sync.exml.mc.d(Unknown Source) ~[oxygen-22.0.0.0.jar:na]
at ro.sync.ecss.extensions.api.component.AuthorComponentFactory.init(Unknown Source) ~[oxygen-22.0.0.0.jar:na]
at ro.sync.ecss.extensions.api.component.AuthorComponentFactory.init(Unknown Source) ~[oxygen-22.0.0.0.jar:na]
at com._4dconcept.adam.author.standalone.AuthorComponentFactoryInitializer.initAuthorComponentFactory(AuthorComponentFactoryInitializer.java:62) ~[classes/:na]
at com._4dconcept.adam.author.standalone.ApplicationLauncher.lambda$null$3(ApplicationLauncher.java:195) ~[classes/:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_202]
Caused by: java.lang.ClassNotFoundException: ro.sync.util.editorvars.expander.EditorVariableResolver
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_202]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_202]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_202]
... 6 common frames omitted
Maybe we missed a jar.
Thanks for your help.
Regards,
Isabelle
-
- Posts: 9433
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problem init AuthorComponentFactory in version 22.0.0.0
HI Isabelle,
Yes, you are missing a JAR called "oxygen-editor-variables-parser.jar". We moved some common functionalities to external JAR libraries.
The Jar is available in our Maven repository:
https://www.oxygenxml.com/maven/com/oxy ... es-parser/
Regards,
Radu
Yes, you are missing a JAR called "oxygen-editor-variables-parser.jar". We moved some common functionalities to external JAR libraries.
The Jar is available in our Maven repository:
https://www.oxygenxml.com/maven/com/oxy ... es-parser/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
Re: Problem init AuthorComponentFactory in version 22.0.0.0
Hello Radu,
Ok, it seems we are missing another JAR because we have another error:
Where can we find the list of new external JAR libraries created in version 22.0 ?
Thanks,
Johann
Ok, it seems we are missing another JAR because we have another error:
Code: Select all
java.lang.NoClassDefFoundError: ro/sync/syntaxhighlight/marker/TokenMarker
Thanks,
Johann
-
- Posts: 9433
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problem init AuthorComponentFactory in version 22.0.0.0
Hi Johann,
We do not have a list will all the new added JAR libraries.
How about if you download a zip containing all our JARs:
https://www.oxygenxml.com/oxygen_sdk/ox ... _22_0.html
then create a Java project with all those jars in the class path and search in the project's classpath to see where those not found classes are located.
The "TokenMarker" interface is in the "oxygen-token-markers.jar".
Regards,
Radu
We do not have a list will all the new added JAR libraries.
How about if you download a zip containing all our JARs:
https://www.oxygenxml.com/oxygen_sdk/ox ... _22_0.html
then create a Java project with all those jars in the class path and search in the project's classpath to see where those not found classes are located.
The "TokenMarker" interface is in the "oxygen-token-markers.jar".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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