"Transformer Xalan not present" error when launching a custom transformation
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Fri Sep 09, 2011 3:02 pm
"Transformer Xalan not present" error when launching a custom transformation
Hi !
I'm trying to add a Xalan extension to my XSL transformation using the procedure explained in the manual (and here as well), but it fails and returns the following error message :
There is of course a xalan.jar in this directory, so I'm not sure what's happening.
Can anyone help ?
Thanks in advance,
Gilles
I'm trying to add a Xalan extension to my XSL transformation using the procedure explained in the manual (and here as well), but it fails and returns the following error message :
Code: Select all
The transformer 'Xalan' is not present! Please install it in the folder: file:/D:/Program Files (x86)/Oxygen XML Editor 13/lib/
Can anyone help ?
Thanks in advance,
Gilles
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: "Transformer Xalan not present" error when launching a custom transformation
Hi,
For some reason Oxygen seems to fail when loading the transformer from xalan.jar and it assumes the jar isn't there(it could be missing or broken).
Did you copy another version of Xalan(xalan.jar) to the Oxygen/lib directory?
Have you tried to run a transformation with Xalan with a fresh/clean scenario(no extensions configured)?
If it works without the extensions, make sure you haven't added the Xalan.jar to the extensions from the transformation scenario.
If all else fails, a solution would be to download Oxygen again and reinstall it(first uninstall and delete the directory of the previous installation to avoid leftovers).
Regards,
Adrian
For some reason Oxygen seems to fail when loading the transformer from xalan.jar and it assumes the jar isn't there(it could be missing or broken).
Did you copy another version of Xalan(xalan.jar) to the Oxygen/lib directory?
Have you tried to run a transformation with Xalan with a fresh/clean scenario(no extensions configured)?
If it works without the extensions, make sure you haven't added the Xalan.jar to the extensions from the transformation scenario.
If all else fails, a solution would be to download Oxygen again and reinstall it(first uninstall and delete the directory of the previous installation to avoid leftovers).
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Fri Sep 09, 2011 3:02 pm
Re: "Transformer Xalan not present" error when launching a custom transformation
Thanks for your quick reply !
See my answers below.
See my answers below.
No, I'm using the original jar bundled with <oXygen/>. I've already tried the latest Xalan bundle, but it didn't solve the problem.adrian wrote:Hi,
For some reason Oxygen seems to fail when loading the transformer from xalan.jar and it assumes the jar isn't there(it could be missing or broken).
Did you copy another version of Xalan(xalan.jar) to the Oxygen/lib directory?
I've just tried, and it does work with no extension. Could it be that the error message is misleading and that it actually fails when invoking the extension ?adrian wrote: Have you tried to run a transformation with Xalan with a fresh/clean scenario(no extensions configured)?
I haven't added the Xalan.jar to the extensions.adrian wrote: If it works without the extensions, make sure you haven't added the Xalan.jar to the extensions from the transformation scenario.
I kinda did that already, since I first faced the issue with the Eclipse plugin version, I thought I would give the standalone version a try, but it failed exactly the same way.adrian wrote: If all else fails, a solution would be to download Oxygen again and reinstall it(first uninstall and delete the directory of the previous installation to avoid leftovers).
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: "Transformer Xalan not present" error when launching a custom transformation
Hi,
Oxygen adds the extensions to the classpath when it creates the transformer(Xalan). It's possible that the extensions are interfering with the actual initialization of Xalan classes and Oxygen assumes the jar is not there.
If you want to enable logging in Oxygen to try and understand what happens, create a file named log4j.properties in the Oxygen installation directory with this content:
Restart Oxygen, reproduce the problem and close Oxygen. You will find a directory named 'oxygenLog' on your Desktop and inside it the generated log files(oxygen.log.*). Please zip those files and send them to support@oxygenxml.com
Note that the file 'log4j.properties' triggers the debug mode which decreases the application performance severely. At the end of the procedure please do not forget to remove this file from the Oxygen installation directory.
Regards,
Adrian
Oxygen adds the extensions to the classpath when it creates the transformer(Xalan). It's possible that the extensions are interfering with the actual initialization of Xalan classes and Oxygen assumes the jar is not there.
If you want to enable logging in Oxygen to try and understand what happens, create a file named log4j.properties in the Oxygen installation directory with this content:
Code: Select all
log4j.rootCategory= debug, R2
log4j.appender.R2=org.apache.log4j.RollingFileAppender
log4j.appender.R2.File=${user.home}/Desktop/oxygenLog/oxygen.log
log4j.appender.R2.MaxFileSize=12000KB
log4j.appender.R2.MaxBackupIndex=20
log4j.appender.R2.layout=org.apache.log4j.PatternLayout
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n
Note that the file 'log4j.properties' triggers the debug mode which decreases the application performance severely. At the end of the procedure please do not forget to remove this file from the Oxygen installation directory.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Fri Sep 09, 2011 3:02 pm
Re: "Transformer Xalan not present" error when launching a custom transformation
I finally got it to work, thanks for your help !
It turns out I was the culprit : my jar contained a MANIFEST file with classpath entries and a main-class attribute, which apparently <oXygen/> didn't like very much.
It turns out I was the culprit : my jar contained a MANIFEST file with classpath entries and a main-class attribute, which apparently <oXygen/> didn't like very much.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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