This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi , I am using tomcat as webserver . Iam new to serveltes . I have following questions .
1. In tomcat directory i created deployement directory structure. Then I added one html file. In browser I typed http://localhost:8080/sample/form.html . And form is appearing in the browser . Later I added xml file ( as mentioned in HFSJ). Then I typed above same url. but it is giving following error . message /sample/form.html description The requested resource (/sample/form.html) is not available. Than I added all files ( java class files ) ,than also same error is coming. My dobut is error in any file ( xml ) will cause the above error .
2. When I change any file ( like java ,xml ) do I need to restart the tomcat ?
Hi, You may want to check you web.xml file to make sure you have no typo's in it if there is any the app will not load. Also it is a good idea to restart tomcat if you change the web.xml file or reload the app, because this is what it reads when first loading your application. Are you getting 404 error or 500? If your still having problems post you web.xml code and some one can check it.
it is working fine ( /manager/html) xml file i written is : <web-app xmlns="http://java.sun.com/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">