jdk-struts2 出现错误 求帮忙

问题描述

struts2 出现错误 求帮忙

可能是Jdk环境不兼容的问题,但我以前用时没出现这样的错误啊,请大家给一个修改方向
console 出现以下错误:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
17:40:14.334 [localhost-startStop-2] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Parent package is not defined: default

2015-10-15 17:40:14 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]

Caused by: Unable to load configuration. - [unknown location]

2015-10-15 17:40:14 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2015-10-15 17:40:14 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Esell] startup failed due to previous errors
2015-10-15 17:40:14 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Esell] created a ThreadLocal with key of type com.sun.faces.util.Util$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2015-10-15 17:43:24 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/Esell]
2015-10-15 17:43:25 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/Esell' 的 Mojarra 2.0.3 (FCS b03)
2015-10-15 17:43:25 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
17:43:26.301 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Parent package is not defined: default

2015-10-15 17:43:26 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2015-10-15 17:43:26 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Esell] startup failed due to previous errors
2015-10-15 17:43:26 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Esell] created a ThreadLocal with key of type com.sun.faces.util.Util$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2015-10-15 17:43:56 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/Esell]
2015-10-15 17:43:57 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/Esell' 的 Mojarra 2.0.3 (FCS b03)
2015-10-15 17:43:57 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
17:43:58.424 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Parent package is not defined: default

2015-10-15 17:43:58 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]

Caused by: Unable to load configuration. - [unknown location]

Caused by: Parent package is not defined: default - [unknown location]

2015-10-15 17:43:58 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2015-10-15 17:43:58 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Esell] startup failed due to previous errors
2015-10-15 17:43:58 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Esell] created a ThreadLocal with key of type com.sun.faces.util.Util$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2015-10-15 17:44:28 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/Esell]
2015-10-15 17:44:29 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/Esell' 的 Mojarra 2.0.3 (FCS b03)
2015-10-15 17:44:29 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
17:44:30.614 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Parent package is not defined: default

2015-10-15 17:44:30 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]

Caused by: Unable to load configuration. - [unknown location]

Caused by: Parent package is not defined: default - [unknown location]

2015-10-15 17:44:30 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2015-10-15 17:44:30 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Esell] startup failed due to previous errors
2015-10-15 17:44:30 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Esell] created a ThreadLocal with key of type com.sun.faces.util.Util$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

解决方案

struts2项目出现500错误

解决方案二:

没有Log4J配置文件...

时间: 2024-10-02 18:09:26

jdk-struts2 出现错误 求帮忙的相关文章

from错误求帮忙改下啊

问题描述 from错误求帮忙改下啊 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace 专科医院门诊系统_眼科_

JAVA错误求帮忙解决一下

问题描述 页面500...请大神们帮一下,就是servlet和JSP实现的一个用户登录连接数据库登录成功显示登录者的IP和MAC物理地址图如下 解决方案 解决方案二:断点跟进去,com.dao.Dao.logoin的第26行,看看conn是不是null.解决方案三:引用1楼defonds的回复: 断点跟进去,com.dao.Dao.logoin的第26行,看看conn是不是null. Debug吗解决方案四:引用1楼defonds的回复: 断点跟进去,com.dao.Dao.logoin的第26

wcf-WCF寄宿在MVC,将MVC发布在IIS上WCF不能访问,求帮忙……

问题描述 WCF寄宿在MVC,将MVC发布在IIS上WCF不能访问,求帮忙-- 我在同一个解决方案下建立一个WCF服务库,一个MVC项目, WCF寄宿在MVC,将MVC发布在IIS上WCF不能访问,为何? 如果直接运行MVC可以访问到WCF,但是发布在IIS上出现404.3错误 如图1:项目 图2:错误 求帮忙,怎么才能解决? 解决方案 WCF本身支持分布式,一定这样吗?可以有两个解决方案!除此之外,可能你的IIS配置有问题!

ofbiz+oracle-刚学习ofbiz,将ofbiz的数据库改成oracle时,出现如下错误,求帮忙

问题描述 刚学习ofbiz,将ofbiz的数据库改成oracle时,出现如下错误,求帮忙 刚学习ofbiz ,想将ofbiz数据库改成oracle,我改了配置文件之后,ant load-demo ,没有报错,然后ant start后抱如下错,改怎么解决啊.谢谢 2013-12-11 13:41:21,694 (catalina-startup-0) [ UtilXml.java:1060:ERROR] XmlFileLoader: File file:/E:/Project 10/ofbiz/s

android 类qq空间图片查看器。出现好多错误 求大神帮忙。小女涉入甚浅。

问题描述 android 类qq空间图片查看器.出现好多错误 求大神帮忙.小女涉入甚浅. 11-20 11:26:39.629: E/AndroidRuntime(1136): FATAL EXCEPTION: main 11-20 11:26:39.629: E/AndroidRuntime(1136): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.desktop/co

求帮忙 谢谢-服务器遇到一个内部错误,使它无法满足这个请求。 求帮忙...谢谢

问题描述 服务器遇到一个内部错误,使它无法满足这个请求. 求帮忙...谢谢 <%@ page contentType="text/html; charset=GB2312"%> 处理GET方法传递数据 <% String strUser=request.getParameter("user"); String strPass=request.getParameter("pass"); if(strUser.equals(&quo

代码-cvCreateImage报内存错误,一直想不明白,求帮忙&amp;amp;gt;_&amp;amp;lt;...

问题描述 cvCreateImage报内存错误,一直想不明白,求帮忙>_<... IplImage *target = NULL;target = cvCreateImage(cvSize(dxdy)IPL_DEPTH_8U1); //target = cvCreateImage(cvSize(4040)IPL_DEPTH_8U1); dxdy是代码中可以求得的,cvSize没有问题,后面无法获得地址,换成固定大小的也不可以,报错如下: 解决方案 debug版本和Release版本的OpenC

c-我刚刚入门,写一个一元多项式的简单计算,求帮忙解决这个加减问题,代码如下,帮忙找出错误,急急急

问题描述 我刚刚入门,写一个一元多项式的简单计算,求帮忙解决这个加减问题,代码如下,帮忙找出错误,急急急 #include #include typedef struct node { float c; int e; struct node * next; }lnode,*plnode; void insert_menu(); void insert_pol(plnode &l); void output_pol(plnode &l); void add_pol(plnode list1,

代码-杭电ACM1096,一直有错误,求帮忙

问题描述 杭电ACM1096,一直有错误,求帮忙 我的代码 #include int main(){ int n, i; int a, b; int x, sum; while(scanf("%d", &n) != EOF){ for (i = 0; i < n; i++){ scanf("%d", &a); for (b = 0; b < a; b++){ sum = 0; scanf("%d", &x);