Author |
Message |
26/11/2018 18:16:41
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
(from mail conversation)
Anything to consider when running CC/Tomcat with Java11 (e.g. using OpenJava SDK)?
|
Björn Müller, CaptainCasa GmbH |
|
|
26/11/2018 18:20:42
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
"nothing special to consider"
And this means: Java 11 does not include JAXB binding anymore - the libraries were removed from the JRE/JDK. So have to bring in JAXB as own libraries in WEB-INF/lib.
You receive the libraries through the following dependeny:
Code:
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
</dependency>
So, include the corresonding libraries (screenshot of the list is attached), that's it.
|
Filename |
jaxblibraries.png |
Download
|
Description |
List of libraries - result of resolving the dependency |
Filesize |
4 Kbytes
|
Downloaded: |
500 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
07/12/2018 07:09:27
|
dstrigel
Power User
Joined: 09/12/2010 09:23:42
Messages: 69
Offline
|
If you need a Windows OpenJDK 8 you can find it at Red Hat Website
OpenJDK 8 Windows 64-bit
https://developers.redhat.com/products/openjdk/download/
|
|
|
07/12/2018 07:14:52
|
dstrigel
Power User
Joined: 09/12/2010 09:23:42
Messages: 69
Offline
|
heise Developer Artikel der das Thema sehr gut erklärt...
https://www.heise.de/developer/artikel/Wird-Java-jetzt-kostenpflichtig-4144533.html
|
|
|
18/12/2018 10:37:45
|
sbaranov
Joined: 22/05/2018 16:13:48
Messages: 3
Offline
|
After add org.glassfish.jaxb i start receive alot of exceptions like in file during starting poject
|
Filename |
error.png |
Download
|
Description |
error |
Filesize |
8 Kbytes
|
Downloaded: |
515 time(s) |
|
|
|
19/12/2018 07:40:33
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Open JDK builds are also available here for Java-8: https://adoptopenjdk.net/
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
07/08/2019 14:25:50
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
I just checked the site https://adoptopenjdk.net/ - and am 200% happy to see that there are in the meantime pre-packaged "JRE"s available.
Up to now CaptainCasa delivers with a JRE8 runtime, bevause this was the last distribute-able Java-release (the setup.exe of CaptainCasa comes with some own jre in order to simplify the distribution process. - We did not want to deliver with a full OpenJDK version, because of its huge size.
So, now the question, when to switch to Java 11/12/... as default delivery runtime for CaptainCasa is much clearer!
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
25/06/2021 06:02:59
|
wwillemsens
Power User
Joined: 14/11/2016 18:05:48
Messages: 32
Offline
|
sbaranov wrote:
After add org.glassfish.jaxb i start receive alot of exceptions like in file during starting poject
I also see this messages in server log like :
25-Jun-2021 07:51:57.711 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar entry [module-info.class] from Jar [file:/C:/EnterpriseClient/server/tomcat/webapps/Beursfuif2022/WEB-INF/lib/jaxb-api-2.3.1.jar] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97)
at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:55)
at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:176)
at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:85)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2042)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:198
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:195
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1912)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1157)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:306)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5202)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Anyone an idea what to do?
|
|
|
|