使用Lomboz3生成Struts2项目后运行Tomcat出现Unable to load bean错误的解决
2008-01-09 16:38
603 查看
使用Lomboz生成Struts2项目时,指定Struts2的目录后,它会笨笨的把一大堆不需要的plugin包给拷贝到你的Lib目录中,导致运行Tomcat时出现一个异常如下:
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory
临时的解决方法是:删除掉你不需要的包文件比如Struts2-xxxx-plugin-2.0.xx.jar之类的。
运行,异常消失。
一般来说这些包在你刚刚开始建项目的时候是用不到的,等你用到的时候,你就应该很明确的知道要用哪一个
这时再拷贝一个就行了。
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory
临时的解决方法是:删除掉你不需要的包文件比如Struts2-xxxx-plugin-2.0.xx.jar之类的。
运行,异常消失。
一般来说这些包在你刚刚开始建项目的时候是用不到的,等你用到的时候,你就应该很明确的知道要用哪一个
这时再拷贝一个就行了。
相关文章推荐
- Struts2 - Unable to load configuration. - bean 错误解决
- Struts2 - Unable to load configuration. - bean 错误解决
- struts2启动tomcat的错误 Unable to load configuration. - action解决方法
- struts2启动tomcat的错误 Unable to load configuration. - action解决方法
- Tomcat启动web项目报Bad version number in .class file (unable to load class ...)错误的解决方法
- struts2 jar包导入Unable to load configuration. - bean问题原因及解决办法
- 使用PHP中的库函数file_get_contents时出现Unable to find the wrapper "https"错误解决
- 导入android项目出现:出现Unable to resolve target 'android-8'错误及其他的一些解决办法
- 导入android项目出现:出现Unable to resolve target 'android-8'错误的解决方法
- Struts2中的Unable to load configuration错误的分析与解决方法
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- struts2出现Unable to load configuration. - bean - jar:file:/...struts-default.xml问题
- iOS 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- Tomcat 8上使用struts2的restful出现Cannot translate url to external form!的启动错误
- 使用Android Studio运行项目出现 UnsupportedMethodException 错误的解决办法
- 出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43
- 运行ase的sybase central 时提示错误unable to load language dll 'scsslgzh',怎么解决这个问题,
- (转)使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module