Geralyn M Hollerman wrote: > > I am trying to migrate my applications from using Tomcat 4.0.4 to using > Tomcat 4.1.24; I *thought* I had everything configured correctly so the > behavior on 4.1.24 would be the same as on 4.0.4, but that's not what > I'm seeing. There aren't any errors in any of the many logs that I'm > generating, so I'm not sure where else to look. > > What I had set up in 4.0.4 was for one of my applications to be the > default application - and in server.xml (of 4.0.4), all I needed to do > for that was in the <Context> element for that application - make it > <Context path="" docBase="MyApp" debug="0"> . However, if I do that in > 4.1.24, I get the standard Tomcat install page, minus the images, which > are expected to be in the same directory. I have to specify "/MyApp" on > the address line to get MyApp to display. Any ideas as to what I'm doing > wrong? > > Something else that I'd think would be related - I noticed in 4.0.4 that > the Tomcat install page was called "index.html", and it was in > /webapps/ROOT, but in 4.1.24, that same file was called "index.jsp". To > make things the same, I renamed the file to .html, but the browser's > address line shows that "index.jsp" is being served, even tho the same > file is displayed. Why?
Answering my own question (I think - I may've caused more problems): The whole problem I was having here, going from 4.0.4 to 4.1.24, seemed nothing but weird and counter to the way Tomcat usually works, and to me that means that there's something else wrong that I haven't thought of. Well, after staring for a while at another version of server.xml, the comment popped out at me that my defaultHost name (in <Engine>)had to match the name in the ServerName directive in Apache; at the time, I just thought that was something more I needed to double-check. So I looked at my httpd.conf - the ServerName was defined as "myserver:80", whereas in the Tomcat 4.1.24 server.xml, it was just "myserver". So I added the ":80" to the name in server.xml and restarted - and then everything worked as I expected it to! (But the jury is still out as to whether or not this caused other problems!) -- Lynn Hollerman. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
