thanks for taking a look.. here is the stacktrace starting with the deploy. also, this may help in diagnosing. i have the following struts .jar files in my web-inf/lib directory:
standard-1.0.2.jar struts-core-1.3.8.jar struts-el-1.3.8.jar struts-extras-1.3.8.jar struts-el-1.3.8.jar struts-faces-1.3.8.jar struts-mailreader-dao-1.3.8.jar struts-scripting-1.3.8.jar struts-taglib-1.3.8.jar struts-tiles-1.3.8.jar Oct 8, 2007 11:01:26 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive ticketapp.war Oct 8, 2007 11:01:50 AM org.apache.struts.util.PropertyMessageResources loadLocale WARNING: Resource org/apache/struts/action/ActionResources_en_US.properties Not Found. Oct 8, 2007 11:01:50 AM org.apache.struts.util.PropertyMessageResources loadLocale WARNING: Resource org/apache/struts/action/ActionResources_en.properties Not Found. Oct 8, 2007 11:01:50 AM org.apache.struts.action.ActionServlet initServlet SEVERE: The /WEB-INF/web.xml was not found. java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.apache.commons.digester.Digester.createInputSourceFromURL(Digester.j ava:1938) at org.apache.commons.digester.Digester.resolveEntity(Digester.java:1615) at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEnt ity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAs PerStax(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver .dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver .next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDri ver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unkn own Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Un known Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s canDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn own Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn own Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno wn Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pars e(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1765) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:17 85) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:349) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j ava:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run( ContainerBase.java:1559) at java.lang.Thread.run(Unknown Source) Oct 8, 2007 11:01:50 AM org.apache.struts.action.ActionServlet init SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. javax.servlet.ServletException: Connection timed out: connect at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:17 88) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:349) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j ava:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc essChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run( ContainerBase.java:1559) at java.lang.Thread.run(Unknown Source) -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, October 08, 2000 10:49 AM To: Struts Users Mailing List Subject: Re: [ActionServlet] /WEB-INF/web.xml was not found can you show us stacktrace of the exception (located in $CATALINA_HOME/logs) and display the configuration for your servlet from WEB-INF/web.xml Thanks M-- ----- Original Message ----- From: "ROWLAND, CLAY, ATTSI" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Monday, October 08, 2007 10:34 AM Subject: RE: [ActionServlet] /WEB-INF/web.xml was not found hi Rajagopal. i took your advice and deployed my app on tomcat instead of jboss. this was a very helpful exercise because i believe i was relying too heavily on eclipse and hand-coding/compiling/organizing my app was a good learning experience. however, i have come full circle back to my original problem which is that the Struts ActionServlet throws an exception when deployed. Oct 8, 2007 10:07:14 AM org.apache.struts.action.ActionServlet initServlet SEVERE: The /WEB-INF/web.xml was not found. java.net.ConnectException: Connection timed out: connect SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. javax.servlet.ServletException: Connection timed out: connect is it possible that this is a classpath issue? is there a way to config my context root in struts? i am able to deploy a servlet using the "not found" /web-inf/web.xml that succesfully uses spring/hibernate to add/update records. however, when i try to replace that servlet with a struts action it doesn't work. here again are my struts-config.xml and web.xml and a listing of the contents of my .war file. <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> <form-beans> <form-bean name="ticketForm" type="com.att.devtools.ticket.TicketForm"/> </form-beans> <action-mappings> <action path="/ticketaction" type="com.att.devtools.ticket.TicketAction" name="ticketForm"> <forward name="success" path="/ticketInfo.jsp"/> <forward name="success" path="/failure.html"/> </action> </action-mappings> </struts-config> <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <!-- Action Servlet Configuration --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/ticketapp/WEB-INF/struts-config.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet> <servlet-name>ticket</servlet-name> <servlet-class>com.att.devtools.ticket.TicketServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>ticket</servlet-name> <url-pattern>/ticket</url-pattern> </servlet-mapping> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> </web-app> ticketapp.war contents: - *.html - *.jsp - meta-inf - Manifest.mf - web-inf - applicationContext.xml - struts*.tld - struts-config.xml - web.xml - classes - com.**.*.class - lib - *.jar -----Original Message----- From: Rajagopal_Yendluri [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 2:32 AM To: Struts Users Mailing List Subject: RE: [ActionServlet] /WEB-INF/web.xml was not found There is no problem in the web.xml, There may be some problem on "war"ring the file ( means creating .war file). Try to deploy it on other server ,,, say tomcat or any other. If you get the same error message.... am sure the problem is with WAR. Check out.... if you can share the war I will try and let you know the problem. Regards, Rajagopal Y HCU-Consulting & Enterprise Solutions. Phone: (C) +91-9886876114 / (W) 6658 3685. -----Original Message----- From: Cesar Arevalo [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 4:57 AM To: Struts Users Mailing List Subject: Re: [ActionServlet] /WEB-INF/web.xml was not found Hey, what version of the jboss-web.dtd are you using, see here for the types: http://www.jboss.org/j2ee/dtd/ I see that the context-root element is not in the http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is present. HTH -Cesar ----- Original Message ---- From: "ROWLAND, CLAY, ATTSI" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, October 4, 2007 3:37:48 PM Subject: [ActionServlet] /WEB-INF/web.xml was not found hi. i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1 on windows and am getting an exception when i deploy my .war file. 18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found. (please let me know if you'd like to see the full exception text) however, web.xml exists inside my .war file in the WEB-INF dir (and as ActionServlet is only init'ed because it exists in the web.xml, i'm dumbfounded). the struts .jar files are in the WEB-INF/lib directory within the .war. here are my config files, all of which are in the WEB-INF dir: web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> <web-app> <!-- Action Servlet Configuration --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> </web-app> struts-config.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";> <struts-config> <form-beans> <form-bean name="ticketForm" type="com.att.devtools.ticket.TicketForm"/> </form-beans> <action-mappings> <action path="/ticketaction" type="com.att.devtools.ticket.TicketAction" name="ticketForm"> <forward name="success" path="/ticketInfo.jsp"/> <forward name="success" path="/failure.html"/> </action> </action-mappings> </struts-config> jboss-web.xml <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>Ticket</context-root> </jboss-web> i feel like i'm missing a simple configuration detail. if anyone has encountered this issue before, i'd love to hear how you resolved it. thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]