This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I installed Tomcat 6, Sun's java 6 & j2ee 5. I dropped all my jsps (& images, css files, etc) into ROOT.
I have 2 issues.
I still see the Tomcat home page even tho I've renamed/replaced index.jsp. The Tomcat docs suggest commenting out something in $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml that isn't in the web.xml I have at that location. When I commented out what was there (web-app), I got a 404 for index.jsp.
The dynamic part of my jsp (jsp:include page='xxx.jsp') is not showing up, only the html part is.
Did I miss something? [ September 20, 2007: Message edited by: Marilyn de Queiroz ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
The JSPs in Tomcat's ROOT webapp have been pre-compiled and each has a servlet entry in the web.xml file. Look for servlet entries that have a jsp-file node instead of a servlet-class node.
Rather than try to edit that app, you might want to create your own to work with.
It's quick and easy. Simply: Create a folder under tomcat/webapps (myapp). Inside that folder create another one one named WEB-INF (myapp/WEB-INF) That's it, you're done. You can put JSPs in the myapp directory and access it with: http://localhost:8080/myapp/mypage.jsp
Another quick way to get started is to download one of the war files from our codebarn to the webapps directory. Tomcat will unpack and deploy it for you. You will then have a working app with a deployment descriptor and proper directory structure. [ September 21, 2007: Message edited by: Ben Souther ]
I should say that I tested my jsps in orion. Then I tried to put them on the remote server which is running Tomcat (I don't know which version) and they didn't work, so that's the reason I'm trying to run them in Tomcat locally. I do seem, however, to be having the same issue in Tomcat locally that I see on the remote server. I don't have access to Tomcat remotely, so creating directories etc is not really practical. Actually, I'm not sure whether they might not have already done that since the directory my jsps are in is /home/xxx/mainwebapp_html/ I don't know what the relationship is from that directory to the Tomcat directory(ies).
I do see an error in the log, however, so let me deal with that first. [ September 21, 2007: Message edited by: Marilyn de Queiroz ]