Just created a brand new project with Eclipse June 4.2 Use Google App
Engine SDK 1.7.4
Eclipse create a Servlet
public class ClockServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");
}}
and a simple web.xml
<servlet>
<servlet-name>Clock</servlet-name>
<servlet-class>clock.ClockServlet</servlet-class></servlet><servlet-mapping>
<servlet-name>Clock</servlet-name>
<url-pattern>/clock</url-pattern></servlet-mapping><welcome-file-list>
<welcome-file>index.html</welcome-file></welcome-file-list>
When i deploy it i get the generic HTML error page: *Error: Server Error* and
from the logs i get:
EXCEPTION java.lang.ClassNotFoundException: clock.ClockServlet
at com.google.appengine.runtime.Request.process-0925dcee3db2e16a(Request.java)
But the servlet exists and the web.xml is correct Where am i wrong?
tnx
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/B7xdgKFd3HYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.