Parsing Error Processing Resource Path Java.net.unknownhostexception Struts.apache.org
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up web application running in local machine up vote 3 down vote favorite developing web application : Ide : Eclipse helios. jdk used: 1.6 struts frame work: 1.2 server : jboss 4.0 project runs in localhost port number 8080. i.e, url is: http://localhost:8080/mfirst it works fine in presense of internet connection. If i unplug internet connection it throws error canot find action mapping and action form class. all my tld's and jar files are refering the local location only.. any body help please.. IN JSP PAGE: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /index.jsp:21 **LINE 21 IS:** 21: html:form name="loginForm" type="com.product.form.loginform" action="/Login.do" onsubmit="return Validatelogin(this);" IN CONSOLE IT SHOWS ........... 16:28:09,031 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 16:28:09,109 ERROR [ActionServlet] Parsing error processing resource path java.net.UnknownHostException: struts.apache.org at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.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.
This Site Careers Other all forums Forum: Struts Parsing error processing resource path /WEB-INF/struts-config.xml Anjali Peshkar Greenhorn Posts: http://stackoverflow.com/questions/4836386/web-application-running-in-local-machine 1 posted 9 years ago Hi, When i deploy my struts application in tomcat 5.0.28 it works fine. But the same application when deployed in tomcat https://coderanch.com/t/56202/Struts/framework/Parsing-error-processing-resource-path 5.0.14 gives the following error. ERROR [http8080-Processor1] action.ActionServlet (ActionServlet.java:768) - Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.reflect.InvocationTargetException at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818) at org.apache.commons.digester.Digester.startElement(Digester.java:1289) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1572) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948) at org.apache.cata
Java testing Databases Java development in cloud Java DevOps Modular code EJB specification Modular containers Modular troubleshooting Programming code App servers Modular tools Java in the cloud Java Web services WS* specs http://www.theserverside.com/news/thread.tss?thread_id=20857 Architecture Java middleware Spring Hibernate Servlets JSP Java client platforms Framework JSF Web portals UI Enterprise Java development JSRs and APIs Languages JVM languages DSLs Java app deployment Java tools Java performance http://struts.1045723.n5.nabble.com/Validation-of-Struts-XML-files-td3479112.html Java performance Cloud platforms JVM tuning Java HPC Web dev tools Development tools Open source strategy IDEs Java platforms Java testing Development hardware Mobile app dev Mobile development and deployment Mobile cloud parsing error apps Mobile platforms Mobile ALM Mobile app testing SEARCH this site and the web Site Index Home>Web tier: servlets, JSP, Web frameworks>Error deploying struts app in jboss - UnknownHostException Email This Home Web tier: servlets, JSP, Web frameworks: Error deploying struts app in jboss - UnknownHostException Get thread feed Error deploying struts app in jboss - UnknownHostException (1 messages) Posted by: Gonzalo --- Posted on: parsing error processing August 11 2003 10:42 EDT I'm trying to deploy a web struts app into jboss and : java.net.UnknownHostException: java.sun.com java.net.UnknownHostException: jakarta.apache.org javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml The same war deployed into Tomcat has no problems, any idea??? Thanks a lot Reply to this Threaded Messages (1) Error deploying struts app in jboss - UnknownHostException by Tim Allen MO on August 11 2003 18:05 EDT Error deploying struts app in jboss - UnknownHostException[ Go to top ] Posted by: Tim Allen MO Posted on: August 11 2003 18:05 EDT in response to Gonzalo --- Cannot say for sure until I can see more exception but try adding struts.jar in lib folder of deploy dir in jboss. Also add DTD (for TLDs ) in you tld folder or where ever you have placed your TLDs. (** Do this if you are not connected to Net at all time or else ignore it) Tim Reply to this Reply to original Search About Us| Contact Us| For Advertisers| For Business Partners| Site Index| RSS TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to m
| Report Content as Inappropriate ♦ ♦ Validation of Struts XML files Last night, our company had a maintenance window whereby Internet access was shut off from our office to the outside world. During that time I was doing development and attempted to start up our web app in a development environment. I've not seen this error in almost 2 years but it's apparently back: [org.apache.struts.action.ActionServlet] [handleConfigException] Parsing error processing resource path /WEB-INF/struts-optout.xml java.net.UnknownHostException: jakarta.apache.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) ...*snip*... I remember this well. The problem is that struts-optout.xml has the DOCTYPE of: But, the struts-config_1_3.dtd is not in the struts.jar file (we're using Struts 1.2.9) so, apparently in order to validate that the XML file is well-formed at webapp start up time, Tomcat feels the need to go out and retrieve this DTD - only it can't because Internet access was down. The problem is greatly exacerbated by the fact that Tomcat stops processing the loading of struts modules when this one fails essentially rendering the web app useless. I seem to recall playing with turning validation of XML files off, but that not being a sufficient solution so I tried adding the DTD into the struts JAR file in the same location as the other DTDs: org/apache/struts/resources/struts-config_1_x.dtd (where x=0,1,2) but that didn't work. We need to be able to find a solution to where we can host the DTDs locally and do not have to rely on a 3rd party server being up in order to deploy our web application. I