struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mead Lai" <laiqi...@gmail.com>
Subject Re: [Struts2] Exception starting filter (Connection Timed Out)
Date Wed, 30 Apr 2008 13:51:28 GMT
  Exception starting filter action2
2008/04/29 00:59:30 |   at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles

from upstair Infomtion, I think it's the problem of filter named "action2"
Xml files couldn't be found by the filter.
try 2 heck the struts.xml files location.


On 4/29/08, Pierre Thibaudeau <pierre.thibaudeau@gmail.com> wrote:
> Just moving from Struts1 to Struts2.0.11.
>
> No problem on Tomcat 6.0.16.
> However, I get the following exception on startup with Tomcat 6.0.14.
>
> Does anyone know a way round this?
> (I've included excerpts from web.xml further down.)
>
> ***************************************************************
> EXCEPTION TRACE:
> ***************************************************************
>
> 2008/04/29 00:59:30 | Apr 29, 2008 12:59:30 AM
> org.apache.catalina.core.StandardContext filterStart
> 2008/04/29 00:59:30 | SEVERE: Exception starting filter action2
> 2008/04/29 00:59:30 | [unknown location]
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
> 2008/04/29 00:59:30 |   at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
> 2008/04/29 00:59:30 |   at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> 2008/04/29 00:59:30 |   at
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.startup.Catalina.start(Catalina.java:566)
> 2008/04/29 00:59:30 |   at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2008/04/29 00:59:30 |   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2008/04/29 00:59:30 |   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2008/04/29 00:59:30 |   at java.lang.reflect.Method.invoke(Method.java:597)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 2008/04/29 00:59:30 |   at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 2008/04/29 00:59:30 |   at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2008/04/29 00:59:30 |   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2008/04/29 00:59:30 |   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2008/04/29 00:59:30 |   at java.lang.reflect.Method.invoke(Method.java:597)
> 2008/04/29 00:59:30 |   at
> org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
> 2008/04/29 00:59:30 |   at java.lang.Thread.run(Thread.java:619)
> 2008/04/29 00:59:30 | Caused by: Connection timed out - [unknown location]
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
> 2008/04/29 00:59:30 |   ... 31 more
> 2008/04/29 00:59:30 | Caused by: java.net.ConnectException: Connection timed
> out
> 2008/04/29 00:59:30 |   at java.net.PlainSocketImpl.socketConnect(Native
> Method)
> 2008/04/29 00:59:30 |   at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 2008/04/29 00:59:30 |   at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 2008/04/29 00:59:30 |   at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 2008/04/29 00:59:30 |   at java.net.Socket.connect(Socket.java:518)
> 2008/04/29 00:59:30 |   at java.net.Socket.connect(Socket.java:468)
> 2008/04/29 00:59:30 |   at
> sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> 2008/04/29 00:59:30 |   at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:389)
> 2008/04/29 00:59:30 |   at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:516)
> 2008/04/29 00:59:30 |   at
> sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> 2008/04/29 00:59:30 |   at
> sun.net.www.http.HttpClient.New(HttpClient.java:306)
> 2008/04/29 00:59:30 |   at
> sun.net.www.http.HttpClient.New(HttpClient.java:318)
> 2008/04/29 00:59:30 |   at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
> 2008/04/29 00:59:30 |   at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
> 2008/04/29 00:59:30 |   at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
> 2008/04/29 00:59:30 |   at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1316)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1283)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1168)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1068)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:988)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> 2008/04/29 00:59:30 |   at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> 2008/04/29 00:59:30 |   at
> javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> 2008/04/29 00:59:30 |   at
> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
> 2008/04/29 00:59:30 |   ... 32 more
> 2008/04/29 00:59:30 | Apr 29, 2008 12:59:30 AM
> org.apache.catalina.core.StandardContext start
> 2008/04/29 00:59:30 | SEVERE: Error filterStart
> 2008/04/29 00:59:30 | Apr 29, 2008 12:59:30 AM
> org.apache.catalina.core.StandardContext start
> 2008/04/29 00:59:30 | SEVERE: Context [] startup failed due to previous
> errors
>
>
> ***************************************************
> web.xml:
> ***************************************************
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="mywebapp"
>    xmlns="http://java.sun.com/xml/ns/j2ee"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
>    version="2.5">
>
>    <welcome-file-list>
>        <welcome-file>index.jsp</welcome-file>
>    </welcome-file-list>
>    <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>    </listener>
>    <listener>
>
> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
>    </listener>
>
>    <filter>
>        <filter-name>action2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>        <init-param>
>            <param-name>actionPackages</param-name>
>            <param-value>com.mywebapp.actions2</param-value>
>        </init-param>
>    </filter>
>
>    <filter-mapping>
>        <filter-name>action2</filter-name>
>        <url-pattern>*.action</url-pattern>
>    </filter-mapping>
>
>    <context-param>
>        <param-name>contextConfigLocation</param-name>
>        <param-value>
>            /WEB-INF/classes/com/mywebapp/applicationContext.xml
>        </param-value>
>    </context-param>
>
> </web-app>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message