Topic: struts-blank.war是测试过的吗?

  Print this page

1.struts-blank.war是测试过的吗? Copy to clipboard
Posted by: wood
Posted on: 2003-04-09 16:44

struts-blank报错。我想在struts-blank的基础开发的。
但应用仍然可用,心里觉得不踏实,大家的意见如何?谢谢。

tomcat 4-1-24
struts 1.1 rc的例子
发布struts-blank时,tomcat报错:
2003-4-9 16:23:01 org.apache.struts.validator.ValidatorPlugIn initResources
严重: jakarta.apache.org
java.net.UnknownHostException: jakarta.apache.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at java.net.URL.openStream(URL.java:960)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.run(HostConfig.java:851)
at java.lang.Thread.run(Thread.java:536)

2.Re:struts-blank.war是测试过的吗? [Re: wood] Copy to clipboard
Posted by: floater
Posted on: 2003-04-10 03:55

looks like it's trying to go out to apache site. Do you have internet connection to there?

3.Re:struts-blank.war是测试过的吗? [Re: wood] Copy to clipboard
Posted by: wood
Posted on: 2003-04-10 10:12

总版主,把ValidatorPlugIn去掉就好了,为什么还不知道。
apache site我可以去,不知道在那儿有这方面的解答,release notes, faq, bug database, mailing list?

4.Re:struts-blank.war是测试过的吗? [Re: wood] Copy to clipboard
Posted by: floater
Posted on: 2003-04-11 00:48

Not that, I mean in your exception trace, the code was trying to make a http connection to apache site. It failed when the connect is down. The top line is pointing to the validator.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923