Apache tomcat 8.0服务器无法编译jsps

时间:2015-09-02 10:10:55

标签: java eclipse tomcat

我通过使用apache tomcat 8.0来解决问题:

  

2015年9月2日下午12:20:33 org.apache.jasper.compiler.JDTCompiler $ 1   findType SEVERE:编译错误   org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException at   org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader。(ClassFileReader.java:372)     在   org.apache.jasper.compiler.JDTCompiler $ 1.findType(JDTCompiler.java:210)     在   org.apache.jasper.compiler.JDTCompiler $ 1.findType(JDTCompiler.java:165)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:103)     在   org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)     在   org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1237)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromVariantTypeSignature(LookupEnvironment.java:1293)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeArgumentsFromSignature(LookupEnvironment.java:1080)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1242)     在   org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethod(BinaryTypeBinding.java:509)     在   org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethods(BinaryTypeBinding.java:590)     在   org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:329)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:674)     在   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:653)

1 个答案:

答案 0 :(得分:1)

删除现有的localhost服务器并添加新服务器。这将解决您的问题。