• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Tomcat Start up error with Java 11

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I am facing below error when I start up my tomcat instance on local system with java version 11.0.8.
Tomcat version - 8.55.56

Can any please help to learn work around .

java.lang.ExceptionInInitializerError
at org.eclipse.persistence.internal.helper.ClassConstants.<clinit>(ClassConstants.java:64)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.createElementsForTypeMappingInfo(AnnotationsProcessor.java:361)
at org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processClassesAndProperties(AnnotationsProcessor.java:305)
at org.eclipse.persistence.jaxb.compiler.Generator.<init>(Generator.java:158)
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:1131)



java.lang.NullPointerException
at org.eclipse.persistence.indirection.IndirectCollectionsFactory.getProvider(IndirectCollectionsFactory.java:202)
at org.eclipse.persistence.indirection.IndirectCollectionsFactory.<clinit>(IndirectCollectionsFactory.java:45)
at org.eclipse.persistence.internal.helper.ClassConstants.<clinit>(ClassConstants.java:64)
 
Saloon Keeper
Posts: 12499
269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you have an application that uses JAX-B annotations. Is it a Maven application? Can you show us the POM? Can you show us an example of where you use the JAX-B annotations?
 
pari Nagda
Ranch Hand
Posts: 46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Looks like you have an application that uses JAX-B annotations. Is it a Maven application? Can you show us the POM? Can you show us an example of where you use the JAX-B annotations?



Thank you for the response . I have solved it now. Its the jaxws-ri artifact in the pom which was downloading the eclipselink.jar 2.6 version . This version was not supporting the java 11 and causing the issue.
Upgrading the version of jaxws-ri has solve the problem as the new version of it downloading 2.7+ version of eclipselink .
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic