Posted By:
Lucky_Tian
Posted On:
Saturday, August 3, 2002 12:06 PM
I have a simple JSP page: <%@ page import="mypkg.mytest.*" %> <% Test t = new Test(); out.println(t.getMessage()); %> The Test class is indeed in WEB-INFclassesmypkgmytest, but when I request test.jsp, Tomcat gave me ClassNotFound error message saying class Test not found. And Tomcat shows import statment is wrong. I have set up the web application right(Test web application is n webapps dir and there is an entry in the server.xml), and I could run examples. Can someone kindly tell me what wrong it is? Thanks a lot. -LuckyTian
More>>
I have a simple JSP page:
<%@ page import="mypkg.mytest.*" %>
<% Test t = new Test();
out.println(t.getMessage());
%>
The Test class is indeed in WEB-INFclassesmypkgmytest,
but when I request test.jsp, Tomcat gave me ClassNotFound error message saying class Test not found. And Tomcat shows import statment is wrong.
I have set up the web application right(Test web application is n webapps dir and there is an entry in the server.xml), and I could run examples.
Can someone kindly tell me what wrong it is?
Thanks a lot.
-LuckyTian
<<Less