Hello everyone. I have tried to deploy a simple example
servlet that I have used from a book, on the
Tomcat server. The servlet compiles fine, is placed in the WEB-INF/classes folder under the directory as specified in the example - i.e. classes/com/wrox/servlets/ and is called ExampleServlet. I have also then specified this servlet in the web.xml file as the following -
<servlet>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>com.wrox.servlets.ExampleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ExampleServlet</servlet-name>
<url-pattern>/Example/*</url-pattern>
</servlet-mapping>
This code I also used straight out of the book. However, when I try to run open the servlet in the browser, I get an error message stating - Error allocating a servlet instance and also an error saying No ClassDefFoundError.
Can anyone help??
Thans.