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.
Hi All, I am trying some sample examples from marty halls "more servlets and java server pages book.." So I think the code is 100% correct.. but still I am not able to see the desired result. The code is as follows..SetSharedInfo.java package myServlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*;
when I try to access this servlet i get the following error.. The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot allocate servlet instance for path /myDevelopment/servlet/myServlets.SetSharedInfo Root cause: java.lang.NoClassDefFoundError: myServlets/SetSharedInfo (wrong name: mySerlets/SetSharedInfo) where shoul I look for the wrong name "mySerlets/SetSharedInfo" I have checked the directory name and they are spelled correctly. thanks in advance.. Trupti
Hmmm... maybe you mistyped the url-pattern in the servlet-mapping tag of your web.xml? Anyway, if you really get desperate, you can use the ever reliable "Find Files and Folders" function of your OS to search for the phrase "mySerlets/SetSharedInfo" in your entire computer! Let's see if this doesn't solve your problem. Hope this helps!