5ol.cc 发表于 2017-12-26 06:12:05

tomcat常见问题

Unable to process>  pom.xml中过滤icu4j
  icu4j com.ibm.icu
  The Apache Tomcat Native library which allows optimal performance in production environments was not found ……
  下载tcnative-1.dll文件放到path目录下, 区分32位/64位
  解决SSL证书PKIX问题
  解决SSL证书PKIX问题 Java安全通信:HTTPS与SSL Java#PKIX path building failed
  java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh’ before accessing beans via the ApplicationContext
  重新编译

  JRebel-SDK-CBP: ERROR>  mybatis要用3.2.7, 3.3.0版本中Reflector类缺少forClass方法
  WARN CacheConfiguration - Cache ‘Cache1’ is set to eternal but also has TTI/TTL set. To avoid this warning, clean up the config removing conflicting values of eternal, TTI and TTL. Effective configuration for Cache ‘Cache1’ will be eternal=’true’, timeToIdleSeconds=’0’, timeToLiveSeconds=’0’.
  可以不管,或者修改ehcache.xml中配置
  java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet.class
  缺少jar包
  <dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-webmvc</artifactId>
  <version>3.0.5.RELEASE</version>
  </dependency>
  org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
  缺少jar包
  <dependency>
  <groupId>jstl</groupId>
  <artifactId>jstl</artifactId>
  <version>1.2</version>
  </dependency>
  java.lang.IllegalStateException: Cannot map handler ‘com.lzk.controller.ViewController0’ to URL path : There is already handler of type mapped.
  java 代码里使用了注解 又在配置文件配置了bean

  Unsupported major.minor version 52.0 (unable to load>  Eclipse配置Tomcat的JDK版本与项目的JDK版本不一致, 属性设置Tomcat的JDK版本 unsupported major.minor version 解决方法 错误:Unsupported major.minor version 51.0(jdk版本错误)
  WARN UUIDHexGenerator:59 - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
  Using org.hibernate.id.UUIDHexGenerator的解决方案
  org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
  缺少jar包 ```xml
  org.codehaus.jackson jackson-core-asl org.codehaus.jackson jackson-mapper-asl
  ```
  org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file
  在$TOMCAT_HOME/conf/catalina.properties文件 的tomcat.util.scan.DefaultJarScanner.jarsToSkip中添加DB2驱动的Jar包文件名如” db2jcc4.jar” 即可。
  本文选自福州楼凤
页: [1]
查看完整版本: tomcat常见问题