Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the following exception during server-startup.( when I run Resin 3.1.3 -with out internet access).
My Server starts successfully without any Struts issues if I've internet access. I checked for all the DTDs/XSDs & TLD files which have 'java.sun.com' as part of the URI. Currently I have the following TLD/DTD files presentunder \resin- pro-3.1.3\webapps\<my-app>\WEB-INF\tld permittedTaglibs.tld fn.tld validator-rules_1_1.dtd x-1_0-rt.tld struts-bean.tld yoshida.tld web-app_2_3.dtd c.tld SUN_MICR.SF x-1_0.tld fmt.tld struts-nested.tld struts-config_1_0.dtd tiles-config_1_1.dtd c-1_0.tld sql-1_0-rt.tld fmt-1_0-rt.tld struts-html.tld struts-logic.tld taglibs-session.tld struts-html-el.tld x.tld tiles-config.dtd web-app_2_2.dtd struts-template.tld SUN_MICR.RSA sql.tld struts-form.tld taglibs-request.tld struts.tld scriptfree.tld validation_1_1.dtd struts-bean-el.tld c-1_0-rt.tld taglibs-log.tld struts-logic-el.tld pack.properties x-rt.tld struts-tiles.tld fmt-1_0.tld struts-config_1_1.dtd sql-1_0.tld MANIFEST.MF web-jsptaglibrary_2_0.xsd web-jsptaglibrary_1_1.dtd web-jsptaglibrary_1_2.dtd I would like to know, which DTD/TLD/XSD file is causing ActionServlet-init to throw the following error. Recently while I read at http://struts.apache.org/1.x/userGuide/installation-was352 -x.html<http://struts.apache.org/1.x/userGuide/installation-was352-x.html> For whatever reason, some installations do not like XML files that reference PUBLIC DTD's - if in looking at the default_host_stdout.log file you see errors about invalid public URL references during DTD registrations, or if your pages say "cannot find //logon or //saveRegistration (ie. action mappings) then do the following: 1. Stop Default Server 2. Go to servlets\WEB-INF\ and edit web.xml and struts_config.xml. 3. In the DOCTYPE declaration, change the word PUBLIC to SYSTEM and completely remove the line that reads "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" from web.xml and remove "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" from struts-config.xml. I Appreciate your help in getting rid of this exception. Error Logs: [06:00:12.609] javax.servlet.UnavailableException: java.net.UnknownHostException: java.sun.com [06:00:12.609] at org.apache.struts.action.ActionServlet.init( ActionServlet.java:408) [06:00:12.609] at javax.servlet.GenericServlet.init(GenericServlet.java:70) [06:00:12.609] at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl( ServletConfigImpl.java:789) [06:00:12.609] at com.caucho.server.dispatch.ServletConfigImpl.createServlet (ServletConfigImpl.java:716) [06:00:12.609] at com.caucho.server.dispatch.ServletManager.init( ServletManager.java:150) [06:00:12.609] at com.caucho.server.webapp.WebApp.start(WebApp.java:1800) [06:00:12.609] at com.caucho.server.deploy.DeployController.startImpl( DeployController.java:646) [06:00:12.609] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit( StartAutoRedeployAutoStrategy.java:72) [06:00:12.609] at com.caucho.server.deploy.DeployController.startOnInit( DeployController.java:528) [06:00:12.609] at com.caucho.server.deploy.DeployContainer.start( DeployContainer.java:163) [06:00:12.609] at com.caucho.server.webapp.WebAppContainer.start( WebAppContainer.java:675) [06:00:12.609] at com.caucho.server.host.Host.start(Host.java:437) [06:00:12.609] at com.caucho.server.deploy.DeployController.startImpl( DeployController.java:646) [06:00:12.609] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit( StartAutoRedeployAutoStrategy.java:72) [06:00:12.609] at com.caucho.server.deploy.DeployController.startOnInit( DeployController.java:528) [06:00:12.609] at com.caucho.server.deploy.DeployContainer.start( DeployContainer.java:163) [06:00:12.609] at com.caucho.server.host.HostContainer.start( HostContainer.java:479) [06:00:12.609] at com.caucho.server.cluster.Server.start(Server.java:1151) [06:00:12.609] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:719) [06:00:12.609] at com.caucho.server.cluster.ClusterServer.startServer( ClusterServer.java:455) [06:00:12.609] at com.caucho.server.resin.Resin.start(Resin.java:694) [06:00:12.609] at com.caucho.server.resin.Resin.initMain(Resin.java:1114) [06:00:12.609] at com.caucho.server.resin.Resin.main(Resin.java:1316) Thanks!