Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with DTD in web.xml

 
Aashu Rao
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 111
Eclipse IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic