PDA

View Full Version : resin 4.0.1 connection timeout


guangyan
01-20-2010, 10:36 PM
I installed Resin 4.0.1. somehow resin did not work with strust 1.2.4, request message reaches action code, it works fine, the response cannot send back JSP page's HTML. where it got "connection timeout" error. Here is the error message. I checked configure files. They are fine. Can anyone help me? I have working on this for 2 days now. Thanks.

2010-01-20 16:04:51,530 ERROR [org.apache.struts.validator.ValidatorPlugIn] Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at sun.net.NetworkClient.doConnect(NetworkClient.java :163)
at sun.net.www.http.HttpClient.openServer(HttpClient. java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient. java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:30 6)
at sun.net.www.http.HttpClient.New(HttpClient.java:32 3)
at sun.net.www.protocol.http.HttpURLConnection.getNew HttpClient(HttpURLConnection.java:860)
at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(HttpURLConnection.java:801)
at sun.net.www.protocol.http.HttpURLConnection.connec t(HttpURLConnection.java:726)
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:1049)
at org.apache.xerces.impl.XMLEntityManager.setupCurre ntEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntit y(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEn tity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputS ource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDD ispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.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(Digeste r.java:1567)
at org.apache.commons.validator.ValidatorResourcesIni tializer.initialize(ValidatorResourcesInitializer. java:140)
at org.apache.struts.validator.ValidatorPlugIn.initRe sources(ValidatorPlugIn.java:222)
at org.apache.struts.validator.ValidatorPlugIn.init(V alidatorPlugIn.java:161)
at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init(Action Servlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:70)
at com.caucho.server.dispatch.ServletConfigImpl.creat eServletImpl(ServletConfigImpl.java:1115)
at com.caucho.server.dispatch.ServletConfigImpl.creat eServlet(ServletConfigImpl.java:986)
at com.caucho.server.dispatch.ServletManager.init(Ser vletManager.java:168)
at com.caucho.server.webapp.WebApp.start(WebApp.java: 2396)
at com.caucho.server.deploy.DeployController.startImp l(DeployController.java:693)
at com.caucho.server.deploy.StartAutoRedeployAutoStra tegy.startOnInit(StartAutoRedeployAutoStrategy.jav a:72)
at com.caucho.server.deploy.DeployController.startOnI nit(DeployController.java:557)
at com.caucho.server.deploy.DeployContainer.start(Dep loyContainer.java:160)
at com.caucho.server.webapp.WebAppContainer.startImpl (WebAppContainer.java:707)
at com.caucho.server.host.Host.startImpl(Host.java:49 6)
at com.caucho.server.webapp.WebAppContainer.start(Web AppContainer.java:687)
at com.caucho.server.deploy.DeployController.startImp l(DeployController.java:693)
at com.caucho.server.deploy.StartAutoRedeployAutoStra tegy.startOnInit(StartAutoRedeployAutoStrategy.jav a:72)
at com.caucho.server.deploy.DeployController.startOnI nit(DeployController.java:557)
at com.caucho.server.deploy.DeployContainer.start(Dep loyContainer.java:160)
at com.caucho.server.host.HostContainer.start(HostCon tainer.java:484)
at com.caucho.server.cluster.Server.start(Server.java :1817)
at com.caucho.server.resin.Resin.createServer(Resin.j ava:950)
at com.caucho.server.resin.Resin.start(Resin.java:102 1)
at com.caucho.server.resin.Resin.initMain(Resin.java: 1494)
at com.caucho.server.resin.Resin.main(Resin.java:1683 )

nam
01-23-2010, 02:40 AM
It doesn't appear to be a Resin issue.

It looks like struts is trying to validate an XML document against a schema, but it cannot retrieve that schema online. You will want to find out which URL it's trying to validate against and check its availability.

I'm not sure if it's possible, but you can try telling struts to use Resin's built-in XML parser instead of xerces.