• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.0.19 shtml problem

 
Rob Chung
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am new to servlet and Tomcat. I am trying to do the SSI CurrentTime simple sample. Tomcat 5.0.19 release note says that if I uncomment the SSI related details in the web.xml, SSI should work. The shtml file ran with no error but does not seem to acknowledge the servlet. I went to the servlet direct on the url and I could see the servlet fine. So my guess is that the shtml side is not working. I have looked on the web for answers however most similar questions dealt with earlier versions of Tomcat which do not support SSI.
Any ideas?
Thanks!
Rob
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you rename this file '<tomcat>/server/lib/servlets-ssi.renametojar'?
Ren´┐Ż
 
Rob Chung
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did. As well as uncommenting the SSI related nodes in the Tomcat home/conf/web.xml, I also tried to move these nodes to my working folder's web.xml and neither worked.
 
Rob Chung
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have also tried adding codebase in my shtml :
<servlet codebase="/ap1/WEB-INF/classes" code="CurrentTime.class">
and still doesn't work. Any ideas?
Thanks!
 
Rob Chung
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think tomcat is not picking up the <servlet> tag in the shtml and I don't know why. I found this because the shtml continue to display the page without invoking the (SSI) servlet.
Pls help.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic