classformatexception

Unable to process file module-info.class within a Java9 project results in ClassFormatException

蓝咒 提交于 2020-01-20 07:00:21
问题 Trying to Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2 I was able to build a vaadinjavanine.war using a fresh project and host the same using Jetty Server. I ended up trying to deploy the generated war to a tomcat server. But, during the startup of the tomcat server, I am getting the following exception: 21-Aug-2017 22:53:38.830 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsFile Unable to process file [/Library/Tomcat/apache

Unable to process file module-info.class within a Java9 project results in ClassFormatException

一曲冷凌霜 提交于 2019-11-29 12:12:22
Trying to Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2 I was able to build a vaadinjavanine.war using a fresh project and host the same using Jetty Server. I ended up trying to deploy the generated war to a tomcat server. But, during the startup of the tomcat server, I am getting the following exception: 21-Aug-2017 22:53:38.830 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsFile Unable to process file [/Library/Tomcat/apache-tomcat-8.0.22/webapps/vaadinjavanine/WEB-INF/classes/module-info.class] for annotations org.apache.tomcat

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 - Tomcat 7, JDK incompatibilty? [duplicate]

强颜欢笑 提交于 2019-11-26 21:00:20
This question already has an answer here: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 8 answers I tried upgrading to Java 8. When starting our tomcat7 server, with a Java 7-compiled .war file, I get the mysteriously error below. Should I expect this to work? This post says tomcat 7 should work with 1.6 and up. I can't tell if Tomcat is to blame, or the .war. Switching out different Java versions I get: JDK 7.45 installed - works (same version used to compile .war) JDK 7.55 installed - fails as below JDK 8.05 installed - fails as below Is

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 - Tomcat 7, JDK incompatibilty? [duplicate]

有些话、适合烂在心里 提交于 2019-11-26 07:47:10
问题 This question already has answers here : org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 (8 answers) Closed 3 years ago . I tried upgrading to Java 8. When starting our tomcat7 server, with a Java 7-compiled .war file, I get the mysteriously error below. Should I expect this to work? This post says tomcat 7 should work with 1.6 and up. I can\'t tell if Tomcat is to blame, or the .war. Switching out different Java versions I get: JDK 7.45

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15

帅比萌擦擦* 提交于 2019-11-26 01:15:37
问题 I\'m porting a webapp from Tomcat 7 to another server with Tomcat 7 but with Java 8. Tomcat starts successfully but in log catalina.out I get: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131) at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60) at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)