我有使用编译器合规级别1.5编译的Spring/Java App .
我有一个新的Linux设置,我下载了Apache Tomcat 8.0.8.
我下载了JDK 8u5.
我在bash中设置路径如下:
PATH=$PATH:$HOME/jdk1.8.0_05/bin
export PATH
Run Code Online (Sandbox Code Playgroud)
Java -version报告:
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Run Code Online (Sandbox Code Playgroud)
并在setnenv.sh中设置(对于Tomcat):
JDK_HOME=/home/userid/jdk1.8.0_05
Run Code Online (Sandbox Code Playgroud)
当我部署我的WAR文件时,我得到以下错误.我认为Tomcat似乎没有使用我安装的Java.我按照设置说明进行操作.PS:我也试过JRE而不是JDK和同样的问题.
22-May-2014 11:34:54.070 INFO [http-nio-8080-exec-4] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
22-May-2014 11:34:54.512 SEVERE [http-nio-8080-exec-4] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/home/userid/apache-tomcat-8.0.8/webapps/myApplication-QA/WEB-INF/classes/config/spring/securityContext.xml]; nested exception is **java.lang.IllegalStateException: Context …Run Code Online (Sandbox Code Playgroud)