This is usually a result of using the wrong DOCTYPE in one of your XML configuration files (in this case, one of /WEB-INF/validator-rules.xml, /WEB-INF/validator-rules-extra.xml, /WEB-INF/validation.xml). Make sure the declared DOCTYPE is appropriate to the version of Struts you're using.

There have been bugs in DTD resolution in some versions of Struts, too; depending on which version you're using, an update may help.

L.

Ed snooper wrote:
Hello kind person,

I have a struts application that was working fine, but when I tried to move it 
to another server it started throwing the below error messages. Why is it 
trying to pull the DTD remotely? How can I fix?

Thanks for any and all help
Ed

struts-config_1_2.dtd


<Aug 30, 2007 2:47:03 PM EDT> <Warning> <Net> <BEA-000905> <Could not open connection with host: jakarta.apache.org and port: 80.> <Aug 30, 2007 2:47:03 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "NCNR-IMS".
javax.servlet.UnavailableException: Cannot load a validator resource from 
'/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-extra.xml,/WEB-INF/validation.xml'
        at 
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:172)
        at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at 
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1099)
        at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:975)
        at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:954)
        at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:893)
        at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3456)
        at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3413)
        at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3399)
        at 
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3382)
        at 
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:6262)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)
        at 
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2181)
        at 
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2222)
        at 
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2169)
        at 
weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3111)
        at 
weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1769)
        at 
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:352)
        at 
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
        at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
        at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
        at weblogic.Server.main(Server.java:32)


--------------------------------- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to