Undetected custom DITAExtensionsBundle
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 64
- Joined: Wed Dec 03, 2014 11:25 am
Undetected custom DITAExtensionsBundle
Hi,
I have created a plugin for Oxygen XML Editor with custom DITAExtensionsBundle and AuthorDnDListener classes.
Then, I extend the DITA framework.
I specify "Use parent classloader from plugin with ID : <my plugin ID>" in the Classpath tab.
And go to Extensions tab.
If I choose for Extension bundle, CustomDITAExtensionsBundle isn't detected.
If I choose for an Author drag and drop listener, CustomAuthorAWTDnDListener class is detected.
If I add the dita.jar to my plugin libs, CustomDITAExtensionsBundle is now detected.
Is there a way to detect my custom DITA bundle without adding dita.jar to my plugin dependencies ?
Thanks,
Vince
I have created a plugin for Oxygen XML Editor with custom DITAExtensionsBundle and AuthorDnDListener classes.
Code: Select all
public class CustomDITAExtensionsBundle extends DITAExtensionsBundle {
@Override
public AuthorDnDListener createAuthorAWTDndListener() {
return new CustomAuthorAWTDnDListener();
}
}
Code: Select all
public class CustomAuthorAWTDnDListener implements AuthorDnDListener {
....
}
I specify "Use parent classloader from plugin with ID : <my plugin ID>" in the Classpath tab.
And go to Extensions tab.
If I choose for Extension bundle, CustomDITAExtensionsBundle isn't detected.
If I choose for an Author drag and drop listener, CustomAuthorAWTDnDListener class is detected.
If I add the dita.jar to my plugin libs, CustomDITAExtensionsBundle is now detected.
Is there a way to detect my custom DITA bundle without adding dita.jar to my plugin dependencies ?
Thanks,
Vince
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Undetected custom DITAExtensionsBundle
Post by alex_jitianu »
Hello,
DITAExtensionsBundle class is present inside dita.jar. If dita.jar is not present in the classpath then CustomDITAExtensionsBundle can't be loaded either because it extends DITAExtensionsBundle. Is there a reason not to add it inside the plugin classpath?
Best regards,
Alex
DITAExtensionsBundle class is present inside dita.jar. If dita.jar is not present in the classpath then CustomDITAExtensionsBundle can't be loaded either because it extends DITAExtensionsBundle. Is there a reason not to add it inside the plugin classpath?
Best regards,
Alex
-
- Posts: 64
- Joined: Wed Dec 03, 2014 11:25 am
Re: Undetected custom DITAExtensionsBundle
Hello,
Thanks for the fast reply!
I see in a topic of this forum it isn't a good practice to distribute the dita.jar inside our plugin for many reasons:
* because it could lead to class loader issues
* as Oxygen provides the dita.jar at runtime, we just need it at compile time
Last point could be checked in Extensions tab, dita.jar is listed in the classpath (file:/opt/oxygen/frameworks/dita/dita.jar) and DITAExtensionsBundle is detected.
Best regards,
Vince
Thanks for the fast reply!
I see in a topic of this forum it isn't a good practice to distribute the dita.jar inside our plugin for many reasons:
* because it could lead to class loader issues
* as Oxygen provides the dita.jar at runtime, we just need it at compile time
Last point could be checked in Extensions tab, dita.jar is listed in the classpath (file:/opt/oxygen/frameworks/dita/dita.jar) and DITAExtensionsBundle is detected.
Best regards,
Vince
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Undetected custom DITAExtensionsBundle
Post by alex_jitianu »
Hello,
The dita.jar is referred and shipped inside the DITA framework, it is not present inside Oxygen's global classpath. If your framework is an extension of the DITA framework or it ships the dita.jar file itself, then the plugin should not put the dita.jar file in it's classpath.
Best regards,
Alex
The dita.jar is referred and shipped inside the DITA framework, it is not present inside Oxygen's global classpath. If your framework is an extension of the DITA framework or it ships the dita.jar file itself, then the plugin should not put the dita.jar file in it's classpath.
Anyway, I did the same scenario and my extension bundle was detected. In fact, if i look inside the Classpath tab of my framework extension, I notice an entry: ${baseFramework}/dita.jar. So dita.jar file is indeed present inside the classpath. Is it there in your case?Then, I extend the DITA framework.
I specify "Use parent classloader from plugin with ID : <my plugin ID>" in the Classpath tab.
Best regards,
Alex
-
- Posts: 64
- Joined: Wed Dec 03, 2014 11:25 am
Re: Undetected custom DITAExtensionsBundle
Yes, dita.jar file is present inside the Classpath tab. I notice the entry ${baseFramework}/dita.jar too.
It is listed in the Classpath field inside the Extensions bundle modal view.
Regards,
Vince
It is listed in the Classpath field inside the Extensions bundle modal view.
Regards,
Vince
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Undetected custom DITAExtensionsBundle
Post by alex_jitianu »
Hi,
Could you send me the plugin on support@oxygenxml.com? After I reproduce the situation and understand what's happening I will remove it from my system.
Best regards,
Alex
Could you send me the plugin on support@oxygenxml.com? After I reproduce the situation and understand what's happening I will remove it from my system.
Best regards,
Alex
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