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 all, i am using tomcat4.1.18. i have put my simple servlet class in "c:\tomcat\webapps\MyServlets\WEB-INF\classes. and my web.xml in "c:\tomcat\webapps\MyServlets\WEB-INF, here is my code of descriptor, <servlet> <servlet-name>FirstServlet</servlet-name> <serlvet-class>FirstServlet</serlvet-class> </servlet> <serlvet-mapping> <servlet-name>FirstServlet</servlet-name> <url-pattern>/FirstServlet</url-pattern> </servlet-mapping> i have tried "/FirstServlet/* and "/" in the place of <url-pattern> as well, but it does not work. Server could not find the resource. The same pattern works with tomcat4.0 in XP environment. I am using WIN2000. With tomcat default directory "examples", it works fine. Can anybody help me out? thanks. -------------------- Ravi. Sun Certified Programmer.
We really need a FAQ for this one it is the most common problem for new servlet programmers. Your servlet worked in examples because the examples web application has the invoker servlet turned on in its web.xml Although you can make servlets that are not in a package work, you will save yourself a lot of pain in the long run by putting ALL classes that have anything to do with servlets or JSP in packages. Bill
sorry to bother you again with the same problem dears, after i entered the URL, my browser asking me "Work Offline" or "Try again". If i select "Work Offline" my browser doesn't show up anything, it simply remains blank. if i select the "Try again" button it displays that the resource is not available.Is there anything related with the browser settings?. I am using IE5.0 and i do not have internet connection in that system. Expecting your advice please. with regards. ---------------- Ravi Sun Certified Programmer.
thanks dave, the discussion you indicated really gained me some useful technical stuff. As described in that discussion, i installed Microsoft Loopback Adapter, but my problem is not resolved, the browser still remains blank. however, the most surprising thing is, my application went fine with tomcat4.0. After i upgraded to tomcat4.1.18, it has put me in mess. still i am trying to resolve... ----------------- Ravi Sun Certified Programmer.
Joined: Aug 25, 2003
it WORKS...., woooph. thanks you dears for your valid suggestions, and special thanks to dave. All the best. ---------------- Ravi Sun Certified Programmer.