File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem with DTD in web.xml" Watch "problem with DTD in web.xml" New topic

problem with DTD in web.xml

Aashu Rao

Joined: Nov 28, 2004
Posts: 5
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 ''.

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
Ranch Hand

Joined: Dec 08, 2004
Posts: 111


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

Joined: Nov 28, 2004
Posts: 5
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(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at org.apache.catalina.startup.Catalina.execute(
at org.apache.catalina.startup.Catalina.process(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.main(
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 /
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

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,
I agree. Here's the link:
subject: problem with DTD in web.xml
It's not a secret anymore!