Hi All,
I tried to change the DOCTYPE definition in the struts-config file
As follows,

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config SYSTEM
"C:/TEST/struts/org/apache/struts/resources/struts-config_1_1.dtd">

<!--"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"-->

<struts-config>
   <form-beans>
      <form-bean name="registerForm" type="ch03.RegisterForm"/>
   </form-beans>

   <action-mappings>
      <action path="/register" type="ch03.RegisterAction"
name="registerForm">
         <forward name="success" path="/success.html" />
         <forward name="failure" path="/failure.html" />
      </action>
   </action-mappings>
</struts-config>

The file struts-config_1_1.DTD is in the directory
C:/TEST/struts/org/apache/struts/resources/.
I just wanted to make sure that the DOCTYPE be SYSTEM.

I am getting the errors as follows: (File not found exception)


INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Aug 9, 2005 10:44:16 AM org.apache.struts.action.ActionServlet
handleConfigException
SEVERE: Parsing error processing resource path
java.io.FileNotFoundException
        at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirCo
ntextURLConnection.java:344)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
        at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unk
nown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn 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.commons.digester.Digester.parse(Digester.java:1548)
        at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1006)
        at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1044)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3959)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4284
)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:866)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:320)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:727)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:39
4)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Aug 9, 2005 10:44:16 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
Aug 9, 2005 10:44:16 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0

Any idea what must have gone wrong???
I have tried several paths ... nothing seems to work.


Any suggestions??
Ayusman

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

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

Reply via email to