Expand|Select|Wrap|Line Numbers
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- public class mytest {
- public static void main(String[] args) {
- foobar blah = new foobar();
- }
- }
Expand|Select|Wrap|Line Numbers
- <%
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- foobar blah = new foobar();
- %>
exception
javax.servlet.S ervletException : Servlet execution threw an exception
root cause
java.lang.NoCla ssDefFoundError : foobar
mytest.doGet(da tacenter_matrix .java:160)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:690)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
Expand|Select|Wrap|Line Numbers
- import java.io.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- public class mytest extends HttpServlet {
- public void doGet(HttpServletRequest req, HttpServletResponse res)
- throws ServletException, IOException {
- foobar blah = new foobar();
- }
- }