You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Jenkins <ge...@email.com> on 2002/08/07 21:19:10 UTC
Compile errors after installing Tomcat
Hi,
I am a student of java. Ive been running j2sdk1.4.0 on a WinMe machine. I recently installed Apache Tomcat 4.0 in order to learn Servlets.
Since downloading and installing the executable file (jakarta-tomcat-4.0.4.exe), I am having problems compiling my Servlets. I am using source code from text books that I know works but I am getting the following errors at compile time:
FormServlet.java:44: cannot resolve symbol
symbol : class HttpServletRequest
location: class FormServlet
public void doPost(HttpServletRequest request,
^
FormServlet.java:45: cannot resolve symbol
symbol : class HttpServletResponse
location: class FormServlet
HttpServletResponse response)
^
FormServlet.java:46: cannot resolve symbol
symbol : class ServletException
location: class FormServlet
throws ServletException, IOException {
^
FormServlet.java:12: cannot resolve symbol
symbol : variable super
location: class FormServlet
super.init(config);
^
12 errors
D:\JavaStudy\FormServlet>
I have installed Tomcat on two WinMe Machines with the same results.
Is there anything I need to do in regards to my configuration?
DJ
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Get 4 DVDs for $.49 cents! plus shipping & processing. Click to join.
http://adfarm.mediaplex.com/ad/ck/990-1736-3566-59
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Compile errors after installing Tomcat
Posted by peter lin <pe...@labs.gte.com>.
what are your import statements?
it could be you don't have all the imports. it should have the following
imports.
import javax.servlet.*;
import javax.servlet.http.*;
peter
David Jenkins wrote:
>
> Hi,
>
> I am a student of java. Ive been running j2sdk1.4.0 on a WinMe machine. I recently installed Apache Tomcat 4.0 in order to learn Servlets.
>
> Since downloading and installing the executable file (jakarta-tomcat-4.0.4.exe), I am having problems compiling my Servlets. I am using source code from text books that I know works but I am getting the following errors at compile time:
>
> FormServlet.java:44: cannot resolve symbol
> symbol : class HttpServletRequest
> location: class FormServlet
> public void doPost(HttpServletRequest request,
> ^
> FormServlet.java:45: cannot resolve symbol
> symbol : class HttpServletResponse
> location: class FormServlet
> HttpServletResponse response)
> ^
> FormServlet.java:46: cannot resolve symbol
> symbol : class ServletException
> location: class FormServlet
> throws ServletException, IOException {
> ^
> FormServlet.java:12: cannot resolve symbol
> symbol : variable super
> location: class FormServlet
> super.init(config);
> ^
> 12 errors
>
> D:\JavaStudy\FormServlet>
>
> I have installed Tomcat on two WinMe Machines with the same results.
>
> Is there anything I need to do in regards to my configuration?
>
> DJ
>
> --
> __________________________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
> Get 4 DVDs for $.49 cents! plus shipping & processing. Click to join.
> http://adfarm.mediaplex.com/ad/ck/990-1736-3566-59
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Compile errors after installing Tomcat
Posted by Michael B Sebetich <mb...@andrew.cmu.edu>.
Are you importing javax.servlet.* and javax.servlet.http.* in your class?
MikeB
On Thu, 8 Aug 2002, David Jenkins wrote:
> Hi,
>
> I am a student of java. I�ve been running j2sdk1.4.0 on a WinMe machine. I recently installed Apache Tomcat 4.0 in order to learn Servlets.
>
> Since downloading and installing the executable file (jakarta-tomcat-4.0.4.exe), I am having problems compiling my Servlets. I am using source code from text books that I know works but I am getting the following errors at compile time:
>
> FormServlet.java:44: cannot resolve symbol
> symbol : class HttpServletRequest
> location: class FormServlet
> public void doPost(HttpServletRequest request,
> ^
> FormServlet.java:45: cannot resolve symbol
> symbol : class HttpServletResponse
> location: class FormServlet
> HttpServletResponse response)
> ^
> FormServlet.java:46: cannot resolve symbol
> symbol : class ServletException
> location: class FormServlet
> throws ServletException, IOException {
> ^
> FormServlet.java:12: cannot resolve symbol
> symbol : variable super
> location: class FormServlet
> super.init(config);
> ^
> 12 errors
>
> D:\JavaStudy\FormServlet>
>
> I have installed Tomcat on two WinMe Machines with the same results.
>
> Is there anything I need to do in regards to my configuration?
> :
> DJ
>
> --
> __________________________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
> Get 4 DVDs for $.49 cents! plus shipping & processing. Click to join.
> http://adfarm.mediaplex.com/ad/ck/990-1736-3566-59
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>