【Bug笔记】Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl

最近出了一件怪事,在联网状态下启动Tomcat和没有联网状态下启动Tomcat会出现两种不同的结果:正常启动和报错

         于是自己纠结了半天,查找原因是struts.xml中配置的声明方式,我用的jar是struts-2.1.8.jar,而我引用的是2.3的(这个声明方式在互联网上拷贝的,因为参考的是互联网的一些代码例子,往往这里就出错了),它没有在本地形成struts-2.3.dtd文件,所以只有在联网情况下通过http://struts.apache.org/dtds/struts-2.3.dtd去找。把它改为2.1的就可以在联网和不联网的状态下正常启动tomcat服务器了。

<!DOCTYPE struts PUBLIC"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN""http://struts.apache.org/dtds/struts-2.3.dtd">

具体错误原因:

File: AbstractPlainSocketImpl.java

Method: connect

Caused by: Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl

File: AbstractPlainSocketImpl.java

Method: connect

Caused by: Unable to load file:/D:/tools/apache-tomcat-7.0.27/webapps/classes/WEB-INF/classes/struts.xml - Class: java.net.AbstractPlainSocketImpl

File: AbstractPlainSocketImpl.java

Method: connect

(转载本站文章请注明作者和出处Coder的不平凡 ,请勿用于任何商业用途)

时间: 2024-11-15 20:33:54

【Bug笔记】Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl的相关文章

Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl

[Bug笔记]Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl 标签: bugjartomcat服务器互联网 2014-04-29 10:44 1491人阅读 评论(0) 收藏 举报 分类: Bug笔记(8) 版权声明:本文为博主原创文章,未经博主允许不得转载. 最近出了一件怪事,在联网状态下启动Tomcat和没有联网状态下启动Tomcat会出现两种不同的结果:正常启动和报错 于是自己纠结了半天,查找原

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration. - Class: java.net.PlainSocketImpl

今天刚好宿舍断网,打开电脑,打开ide工具,启动tomcat后,访问web项目工程,页面显示404,查看控制台,运行报错信息如下: 严重: Exception starting filter struts2Unable to load configuration. - Class: java.net.PlainSocketImplFile: PlainSocketImpl.javaMethod: connectLine: 177 - java/net/PlainSocketImpl.java:1

出现错误: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

严重: Exception starting filter struts2 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 at org.apache.struts2.dispatcher.Dispat

Struts2中的Unable to load configuration错误的分析与解决方法

当我们遇到 Unable to load configuration. 这样的错误时,可以根据具体的错误提示找出错误的原因. Unable to load configuration. - interceptor-ref - file:/D:/Java/apache-tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/struts.xml:28:49 at com.opensymphony.xwork2.config.Configuration

Unable to load configuration. - action - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/Teacher04/WEB-INF/classes/struts.xml:9:54

发布一个struts2项目的时候tomcat显示下面这个错误,我的本能感觉就是我的struts.xml或者web.xml写错了,可是我字母找都没发现,于是百度一番,可是我对那些人的回答表示怀疑,感觉应该不行,直到我一直找下去,发现一个不起眼的回答说出了我需要的回答 我回来一看,发现我的错误里的确有这个struts.xml:9:54,于是看一下我的struts.xml,我要哭了 严重: Exception starting filter struts2 Unable to load configu

Unable to load configuration. - bean - jar:file:../../ComputerScience/JavaEE/workspace/.metadata解决办法

在运行一个JavaEE的项目时,出现了如下的错误: unable to load configuration. - bean - jar:file:/../workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WorkSystem/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:64:179 at org.apache.struts2.d

Struts 2.x Unable to load configuration. - action

问题分析:遇到该问题一般是struts中某个配置文件没有正确配置,比如: 1.class中的TestAction没有成功加载: <constant name="struts.i18n.reload" value="true" /> <!-- <include file="struts/struts-test.xml"/> --> <package name="system" exten

Caused by: Unable to load configuration. - action - file:/C:/apache-tomcat-7.0.70/webapps/Structs/WEB-INF/classes/struts.xml:7:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfigurati

Unable to load configuration. - action - file:/C:/apache-tomcat-7.0.70/webapps/Structs/WEB-INF/classes/struts.xml:7:72 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431) at org.apache.struts2.dispatcher.ng.InitOperations.initDispat

idea整合struts和spring和hibernate时候的导jar错误:Unable to load configuration. - action -

org.apache.struts2.dispatcher.Dispatcher.error Dispatcher initialization failed Unable to load configuration. - action - file:/F:/Documents/MyJava/SSH001/out/artifacts/SSH001_war_exploded/WEB-INF/classes/struts.xml:11:66 Caused by: Action class [empl