Input/output Error Reading Configuration From Resource Path /web-inf/struts-config.xml
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 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 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 apps Mobile platforms Mobile ALM Mobile app testing SEARCH this site and the web Site Index Home>Web tier: servlets, JSP, Web frameworks>Struts configuration issue Email This Home Web tier: servlets, JSP, Web frameworks: Struts configuration issue Get thread feed Struts configuration issue (1 messages) Posted by: Arif Samad Posted on: May 24 2004 18:14 EDT I am configuring a struts enabled web application within Jbuilder and using weblogic 8.1 on my workstation. I create the web app in Jbuilder and it the web app directory is created within the Weblogic application domain so the web app is automaticaly deployed. the struts-config.xml is created. I then copy all the required struts jars to my the lib directory within my web application. I keep on getting the following error when starting up the web application.
Date: 2001-06-22 3:54:55 [Download message RAW] This is a common problem when configuring struts on weblogic. Reason is that the parser could not fetch the file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the web. The easiest way is to alter the request to your local file. For example: FROM: http://www.theserverside.com/news/thread.tss?thread_id=26127 "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd> TO: http://marc.info/?l=struts-dev&m=99318206210754&w=2 error reading configuration from resource path /WEB-INF/struts-config.xml Any one know why I am getting this Exception in Weblogic 6? I have gotten this Exception before, erased the tmp war files, and all was ok. Now erasing the tmp war doesnt help. It happens inside the Digester in the below method, on the line "getParser().parse(input, this);" -------------------------------------------------------------------------- ------------------------------------ public Object parse(InputStream input) throws IOException, SAXException { getParser().parse(input, this); return (root); } -------------------------------------------------------------------------- ------------------------------------ I have verified that the input stream is not null and is in fact valid, pointing to the correct file "/WEB-INF/struts-config.xml". I have also verified that the Digester is not null and is valid. THIS IS THE EXCEPTION------------------------------------------------------------------- ---------- resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN
AsbellJun 22, 2001 at 2:39 am Any one know why I am getting this Exception in Weblogic 6?I have gotten this Exception http://grokbase.com/t/struts/dev/016pfxvg9q/javax-servlet-unavailableexception-input-output-error-reading-configuration-from-resource-path-web-inf-struts-config-xml before, erased the tmp war files, and all was ok. Now erasing the tmp war doesnt help. It happens inside the Digester in the below method, on the line "getParser().parse(input, this);"--------------------------------------------------------------------------------------------------------------public Object parse(InputStream input) throws IOException, SAXException {getParser().parse(input, this);return (root);}--------------------------------------------------------------------------------------------------------------I have verified that the input stream input/output error is not null and is in fact valid, pointing to the correct file "/WEB-INF/struts-config.xml". I have also verified that the Digester is not null and is valid.THIS IS THE EXCEPTION-----------------------------------------------------------------------------resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')Not registered, use system identifierresolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')Not input/output error reading registered, use system identifierjavax.servlet.UnavailableException: Input/output error reading configuration from resource path /WEB-INF/struts-config.xmlat org.apache.struts.action.ActionServlet.init(ActionServlet.java:416)at javax.servlet.GenericServlet.init(GenericServlet.java:258) reply Tweet Search Discussions Search All Groups dev 2 responses Oldest Nested Zhaoj This is a common problem when configuring struts on weblogic. Reason is that the parser could not fetch the file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the web. The easiest way is to alter the request to your local file. For example: FROM: TO: