启动tomcat遇到这个问题,请教下如何解决呢?

primer_of_java 2010-05-20 07:33:35
2010-5-20 19:29:29 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Class: sun.net.www.protocol.http.HttpURLConnection
File: HttpURLConnection.java
Method: plainConnect
Line: 802 - sun/net/www/protocol/http/HttpURLConnection.java:802:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: Class: sun.net.www.protocol.http.HttpURLConnection
File: HttpURLConnection.java
Method: plainConnect
Line: 802 - sun/net/www/protocol/http/HttpURLConnection.java:802:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
... 34 more
Caused by: java.lang.NullPointerException
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:802)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
... 35 more
2010-5-20 19:29:29 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-5-20 19:29:29 org.apache.catalina.core.StandardContext start
严重: Context [/imsUnite] startup failed due to previous errors
2010-5-20 19:29:29 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-5-20 19:29:29 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-5-20 19:29:29 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.jaxen.function.StringFunction$1] (value [org.jaxen.function.StringFunction$1@1abbba1]) and a value of type [java.text.DecimalFormat] (value [java.text.DecimalFormat@674dc]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
...全文
198 点赞 收藏 11
写回复
11 条回复
liuzhengyizenith 2010年05月21日
可以的话,把配置文件贴出来看看,配置文件可能有问题,也可能是包的问题
回复 点赞
Ade子夜 2010年05月21日
你好好看看配置文件,filter文件过滤有问题
严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver]
你的驱动包对吗?HttpURLConnection.java 检查一下。
回复 点赞
zlx5219 2010年05月21日
严重: Exception starting filter struts2
问题应该在这里入手吧, 对比一下同事的程序吧!
不好找啊
回复 点赞
primer_of_java 2010年05月21日
这个是sun公司的包,问题肯定不在他们......
我也觉得是配置文件可能有问题,我直接把同事的配置文件拷贝过来,还是不行,搜了好多资料,都没找到答案 太囧了
回复 点赞
tuo_bing 2010年05月21日

Caused by: java.lang.NullPointerException
回复 点赞
tuo_bing 2010年05月21日
sun/net/www/protocol/http/HttpURLConnection.java Line: 802
错误提示了你哪里有问题了呀,看看 这行代码,一步一步找。。。

我想应该 是配置文件,环境出现了问题 ,或者是所引用的包,都比较下!
回复 点赞
爱在深秋之夜 2010年05月21日

filter文件过滤有问题
你好好看看配置文件
回复 点赞
屌丝哥 2010年05月20日
filter有问题吧
你好好看看配置文件,肯定有问题
回复 点赞
primer_of_java 2010年05月20日
框架是 :jQuery + struts2 + spring3 + hibernate3
这是刚建的一个新项目,从cvs上拖下来编译发布,启动时,先会加载很多xml文件,在那之后就报这个错误了.
我用mye 5.5 和 mye 8.5 的版本都尝试过了,也把在同事那正常跑的项目拷过来试过了,都不行,加载完启动的文件后老是报错,以下是启动的完整debug日志:

[ims] 10-05-20 20:24:04:0203 DEBUG ServiceCfgReaderDirectory.load(81) | class root:------/D:/MiBossWorkspace/imsUnite/WebRoot/WEB-INF/classes//serviceConfig/
log4j:ERROR No output stream or file set for the appender named [R].
[ims] 10-05-20 20:24:04:0203 INFO ServiceCfgReaderDirectory.load(88) | [File Loading Path=D:\MiBossWorkspace\imsUnite\WebRoot\WEB-INF\classes\serviceConfig]
[ims] 10-05-20 20:24:04:0203 INFO ServiceCfgReaderDirectory.load(92) | #################### Loading ServiceConfig Start ####################
[ims] 10-05-20 20:24:04:0218 INFO ServiceCfgReaderDirectory.load(99) | [ServiceConfigFile=service-abc.xml]
[ims] 10-05-20 20:24:04:0578 INFO ServiceCfgReaderDirectory.load(99) | [ServiceConfigFile=service-common.xml]
[ims] 10-05-20 20:24:04:0640 INFO ServiceCfgReaderDirectory.load(99) | [ServiceConfigFile=service-demo.xml]
......
[ims] 10-05-20 20:24:04:0843 INFO ServiceCfgReaderDirectory.load(129) | #################### Loading ServiceConfig End ####################
[ims] 10-05-20 20:24:05:0203 INFO WebConfig.setServerType(39) | 【ServerType=tomcat】
[ims] 10-05-20 20:24:06:0046 WARN Log4jLog.warn(86) | Multiple beans for type class org.springframework.orm.hibernate3.LocalSessionFactoryBean found. Returning the first result.
[ims] 10-05-20 20:24:06:0062 WARN Log4jLog.warn(86) | Multiple Spring beans found for type interface org.springframework.transaction.PlatformTransactionManager returning the first one found
[ims] 10-05-20 20:24:07:0546 WARN Log4jLog.warn(86) | Multiple Spring beans found for type interface org.hibernate.SessionFactory returning the first one found
Hibernate: select * from ( select propertyim0_.KEY_ as KEY1_2_, propertyim0_.VERSION_ as VERSION2_2_, propertyim0_.VALUE_ as VALUE3_2_ from JBPM4_PROPERTY propertyim0_ ) where rownum <= ?
Hibernate: select this_.KEY_ as KEY1_2_0_, this_.VERSION_ as VERSION2_2_0_, this_.VALUE_ as VALUE3_2_0_ from JBPM4_PROPERTY this_ where this_.KEY_=?
Hibernate: select this_.KEY_ as KEY1_2_0_, this_.VERSION_ as VERSION2_2_0_, this_.VALUE_ as VALUE3_2_0_ from JBPM4_PROPERTY this_ where this_.KEY_=?
[ims] 10-05-20 20:24:08:0156 INFO Log4jLog.info(50) | jBPM version info: library[4.3], schema[null]
[ims] 10-05-20 20:24:08:0515 INFO ImsFilterDispatcher.getXWorkConfigFiles(100) | Load XWork2.0 Config File start !
......
[ims] 10-05-20 20:24:08:0515 INFO ImsFilterDispatcher.getConfigRealPath(147) | [/WEB-INF/xwork/xwork-view.xml]
[ims] 10-05-20 20:24:08:0515 INFO ImsFilterDispatcher.getXWorkConfigFiles(107) | Load XWork2.0 Config File end !
2010-5-20 20:24:09 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Class: sun.net.www.protocol.http.HttpURLConnection
File: HttpURLConnection.java
Method: plainConnect
Line: 802 - sun/net/www/protocol/http/HttpURLConnection.java:802:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: Class: sun.net.www.protocol.http.HttpURLConnection
File: HttpURLConnection.java
Method: plainConnect
Line: 802 - sun/net/www/protocol/http/HttpURLConnection.java:802:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
... 34 more
Caused by: java.lang.NullPointerException
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:802)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
... 35 more
2010-5-20 20:24:09 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-5-20 20:24:09 org.apache.catalina.core.StandardContext start
严重: Context [/imsUnite] startup failed due to previous errors
2010-5-20 20:24:09 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-5-20 20:24:09 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-5-20 20:24:09 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.jaxen.function.StringFunction$1] (value [org.jaxen.function.StringFunction$1@595bcd]) and a value of type [java.text.DecimalFormat] (value [java.text.DecimalFormat@674dc]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
回复 点赞
friendxxy 2010年05月20日
struts2????
回复 点赞
jiajerry0 2010年05月20日
只贴出问题应该不好解决的,把具体情况也说一下吧,环境什么的
回复 点赞
发动态
发帖子
Web 开发
创建于2007-09-28

5.2w+

社区成员

34.1w+

社区内容

Java Web 开发
社区公告
暂无公告