Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes problem with DTD in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem with DTD in web.xml" Watch "problem with DTD in web.xml" New topic
Author

problem with DTD in web.xml

Aashu Rao
Greenhorn

Joined: Nov 28, 2004
Posts: 5
Hi,
I have installed Tomcat, when I try to open web.xml I get this

error: Page cannot be displayed

The system cannot locate the resource specified. Error processing resource 'http://java.sun.com/dtd/web-app_2_3.dtd'.

when I commented this statement , I can view the page, but my server gives many errors on startup.
can anyone please tell me what is wrong !!!
I have windows 98 OS and Tomcat 4.1

thanks in advance,
R. Aashu
sanat
Ranch Hand

Joined: Dec 08, 2004
Posts: 111

Hi

I think there is a problem with the web.xml file. Use this in your web.xml file.


By the way can you give some details about the errors you are getting in Tomcat console.

Hope this helps.
Aashu Rao
Greenhorn

Joined: Nov 28, 2004
Posts: 5
Hi,
Thanks for the quick reply . I use windows 98 so I can't see all the errors in console.... the last part after starting the server is like this....


at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:214
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Apr 16, 2005 10:41:33 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Apr 16, 2005 10:41:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 16, 2005 10:41:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/60 config=C:\Program Files\Apache Group\Tomcat 4.1
\conf\jk2.properties



I can view the web.xml file when I m online. And offline I can see the page only after commenting the DOCTYPE statement. Is it ok if I comment that statement. But I think that statement is a must.
I donno much about XML.
So please let me know if I m missing something.

Thanks and regards,
R.Aashu
 
wood burning stoves
 
subject: problem with DTD in web.xml