Java version compatibility
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 8
- Joined: Mon Sep 12, 2022 8:22 am
Java version compatibility
Hello
On servers with Oxygen Web Editor appeared non-related to editor issue that can be fixed only by upgrade of Java to 19
But after upgrade Editor servlet refuses to start
My question is - is editor expected to work in Tomcat9+Java19 environment?
Error I get - java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release in ro.sync.ecss.extensions.api.webapp.WebappAuthorDocumentFactory.init
Tried with 24 and 25 Editor
(I apologize for likely trivial question, but Java is not my specialization)
On servers with Oxygen Web Editor appeared non-related to editor issue that can be fixed only by upgrade of Java to 19
But after upgrade Editor servlet refuses to start
My question is - is editor expected to work in Tomcat9+Java19 environment?
Error I get - java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release in ro.sync.ecss.extensions.api.webapp.WebappAuthorDocumentFactory.init
Tried with 24 and 25 Editor
(I apologize for likely trivial question, but Java is not my specialization)
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Java version compatibility
Post by cristi_talau »
Hello,
Oxygen XML Web Author officially supports only Java 8 and 11.
We are currently working to add official support Java 17 in an upcoming release. Fortunately, there compatibility is pretty decent - we only had to do the following changes:
1. Set the JDK_JAVA_OPTIONS environment variable to
2. If you configured Web Author to use a catalina.policy file, replace these lines
with
3. If you use a date picker form control in your CSS files with the default format, you have to provide an explicit format.
In Java 19 it seems that you need to also set the system property "-Djava.security.manager=allow" among VM parameters.
Best,
Cristian
Oxygen XML Web Author officially supports only Java 8 and 11.
We are currently working to add official support Java 17 in an upcoming release. Fortunately, there compatibility is pretty decent - we only had to do the following changes:
1. Set the JDK_JAVA_OPTIONS environment variable to
Code: Select all
--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/sun.net.util=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.xni=ALL-UNNAMED
Code: Select all
// Oxygen requires these permissions to connect to a URL.
permission java.net.URLPermission "http:*", "*";
permission java.net.URLPermission "https:*", "*";
Code: Select all
// Oxygen requires these permissions to connect to a URL.
permission java.net.URLPermission "http:*", "*";
permission java.net.URLPermission "https:*", "*";
permission ro.sync.security.manager.URLPermission "http:*", "*";
permission ro.sync.security.manager.URLPermission "https:*", "*";
In Java 19 it seems that you need to also set the system property "-Djava.security.manager=allow" among VM parameters.
Best,
Cristian
-
- Posts: 8
- Joined: Mon Sep 12, 2022 8:22 am
Re: Java version compatibility
Huge thank you for your answer.
I managed to run editor in required environment after those changes.
But editor seems to be unable to connect to both License Server and data source through RestConnector -
getting
and
correspondingly
catalina.policy was updated with config from here - https://www.oxygenxml.com/doc/versions/ ... ina.policy plus ro.sync.security.manager.URLPermission lines from your message (though couldn't find where to put -security in Windows service Tomcat - assumed that -Djava.security.manager=allow does it).
"Authomatically accept security certificates" setting is on (but License Server is on http)
I managed to run editor in required environment after those changes.
But editor seems to be unable to connect to both License Server and data source through RestConnector -
getting
Code: Select all
Cannot connect to the license server.
org/apache/commons/collections4/map/HashedMap (http://user@...../oXygenLicenseServlet/license-servlet?action=LIC_REQUEST&serverURL=http://...../oXygenLicenseServlet/license-servlet&name=...&hostname=.....&macaddr=.....)
Code: Select all
Document could not be loaded
Details:
org/apache/commons/collections4/map/HashedMap (https://......url to data that works if i open it directly)
catalina.policy was updated with config from here - https://www.oxygenxml.com/doc/versions/ ... ina.policy plus ro.sync.security.manager.URLPermission lines from your message (though couldn't find where to put -security in Windows service Tomcat - assumed that -Djava.security.manager=allow does it).
"Authomatically accept security certificates" setting is on (but License Server is on http)
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Java version compatibility
Post by cristi_talau »
Hello,
This kind of error comes with more details in the server logs [1]. Can you look inside the log and post also the stack trace of that Exception?
Also, it is better to use Java 17 which is a long-term support release and will be also officially supported in Web Author in a future relase.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... vwf_ptq_2v
This kind of error comes with more details in the server logs [1]. Can you look inside the log and post also the stack trace of that Exception?
Also, it is better to use Java 17 which is a long-term support release and will be also officially supported in Web Author in a future relase.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... vwf_ptq_2v
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