Re: dear friend i'm in a big trouble

2004-11-10 Thread Phillip Mangwiro
Raasi Potluri wrote:
I'm just a beginner and I have installed Tomcat5.0 and
try to run a simple servlet. I have copied the
compiled servlet on the webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping in the
web.xml file. I'm trying to call my HelloClientServlet
from http://localhost:3030/servlet/HelloClientServlet
from the web browser, after restarting the tomcat http
server it says the follwing
my tomcat server is listening at port 3030
***
HTTP Status 404 - /servlet

type Status report
message /servlet
description The requested resource (/servlet) is not
available.

 

Since you copied your servlet to the root web  I've assumed that you've 
created a ServletContext using /HelloClientServlet
I think need to use this url http://localhost/HelloClientServlet

Apache Tomcat/5.0.28
***
and I have tried to run a simple example JSP already
in the examples folder, it gives me the follwing error
*
HTTP Status 500 - 


type Exception report
message 

description The server encountered an internal error
() that prevented it from fulfilling this request.
exception 

org.apache.jasper.JasperException: Unable to compile
class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is
available in the Apache Tomcat/5.0.28 logs.
 


 

Apache Tomcat/5.0.28
*
 

Copy the tools.jar from your JDK installation to the $TOMCAT_DIR/common/lib
where $TOMCAT_DIR is where you have your installed tomcat binaries.
please help me, i'm troubling with this error since
three days and I have read lot of manuals and changed
the class path and set the jdk home and catalina home
as environment variable, still this error, please help
me
regards, raasi
		
__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: dear friend i'm in a big trouble

2004-11-05 Thread Steve Kirk
from your original post:

 org.apache.jasper.JasperException: Unable to compile
 class for JSP
 root cause 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK

in other words, TC is unable to compile your JSP page class because it
cannot find a compiler. to me this means that the most likely reasons are
these ones that Ben listed

  Did you install a full j2sdk or just a jre?
  Tomcat 5.0 and lower needs a full j2sdk.
  
  Did you set your JAVA_HOME enviornment variable?
  Have you tested it to make sure it's right?
  or..
  If you installed as a Windows Service, did you make sure that the
  installer found the full j2sdk on your system and not another JRE?


 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED] 
 Sent: Friday 05 November 2004 02:38
 To: Tomcat Users List
 Subject: Re: dear friend i'm in a big trouble
 
 
 http://localhost:3030/servlet/HelloClientServlet
 
 Looks like you are depending on the invoker servlet to 
 instanciate your
 servlet. The invoker servlet is no longer active by default.
 
 You will need to map your servlet in web.xml.
 Again, your servlets need to be packaged.
 
 
 
 
 
 
 On Thu, 2004-11-04 at 21:29, Ben Souther wrote:
  First, is your servlet in a package?
  Non-packaged servlets will not work.
  
  Did you map your servlet in web.xml?
  What is the URL you are using to call the servlet?
  
  You don't need to set a classpath environment variable
  Tomcat sets it's own.
  
  Did you install a full j2sdk or just a jre?
  Tomcat 5.0 and lower needs a full j2sdk.
  
  Did you set your JAVA_HOME enviornment variable?
  Have you tested it to make sure it's right?
  or..
  If you installed as a Windows Service, did you make sure that the
  installer found the full j2sdk on your system and not another JRE?
  
  
  
  
  On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
   I'm just a beginner and IhaveinstalledTomcat5.0and
   try to run a simple servlet. I have copied the
   compiled servlet on the webapps/root/WEB-INF/classes
   and added the servlet name and servlet mapping in the
   web.xml file. I'm trying to call my HelloClientServlet
   from http://localhost:3030/servlet/HelloClientServlet
   from the web browser, after restarting the tomcat http
   server it says the follwing
   
   my tomcat server is listening at port 3030
   ***
   
   HTTP Status 404 - /servlet
   
   
 --
 --
   
   type Status report
   
   message /servlet
   
   description The requested resource (/servlet) is not
   available.
   
   
   
 --
 --
   
   Apache Tomcat/5.0.28
   
   ***
   
   and I have tried to run a simple example JSP already
   in the examples folder, it gives me the follwing error
   
   *
   
   HTTP Status 500 - 
   
   
 --
 --
   
   type Exception report
   
   message 
   
   description The server encountered an internal error
   () that prevented it from fulfilling this request.
   
   exception 
   
   org.apache.jasper.JasperException: Unable to compile
   class for JSP
   
   
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
 ultErrorHandler.java:97)
   
   
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
 patcher.java:346)
   
   
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
   
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   
   
 org.apache.jasper.JspCompilationContext.compile(JspCompilation
 Context.java:511)
   
   
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:295)
   
   
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:292)
   
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   
   
   root cause 
   
   Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
   Perhaps JAVA_HOME does not point to the JDK
   
   
 org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory
 .getCompiler(CompilerAdapterFactory.java:106)
   
   org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
   
   org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   
   
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
   
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451

Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
First, is your servlet in a package?
Non-packaged servlets will not work.

Did you map your servlet in web.xml?
What is the URL you are using to call the servlet?

You don't need to set a classpath environment variable
Tomcat sets it's own.

Did you install a full j2sdk or just a jre?
Tomcat 5.0 and lower needs a full j2sdk.

Did you set your JAVA_HOME enviornment variable?
Have you tested it to make sure it's right?
or..
If you installed as a Windows Service, did you make sure that the
installer found the full j2sdk on your system and not another JRE?




On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
 I'm just a beginner and I have installed Tomcat5.0 and
 try to run a simple servlet. I have copied the
 compiled servlet on the webapps/root/WEB-INF/classes
 and added the servlet name and servlet mapping in the
 web.xml file. I'm trying to call my HelloClientServlet
 from http://localhost:3030/servlet/HelloClientServlet
 from the web browser, after restarting the tomcat http
 server it says the follwing
 
 my tomcat server is listening at port 3030
 ***
 
 HTTP Status 404 - /servlet
 
 
 
 type Status report
 
 message /servlet
 
 description The requested resource (/servlet) is not
 available.
 
 
 
 
 Apache Tomcat/5.0.28
 
 ***
 
 and I have tried to run a simple example JSP already
 in the examples folder, it gives me the follwing error
 
 *
 
 HTTP Status 500 - 
 
 
 
 type Exception report
 
 message 
 
 description The server encountered an internal error
 () that prevented it from fulfilling this request.
 
 exception 
 
 org.apache.jasper.JasperException: Unable to compile
 class for JSP
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
 
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
 
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
 root cause 
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
 
 org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
 
 org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
 
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
 note The full stack trace of the root cause is
 available in the Apache Tomcat/5.0.28 logs.
 
 
 
 
 Apache Tomcat/5.0.28
 
 *
 
 please help me, i'm troubling with this error since
 three days and I have read lot of manuals and changed
 the class path and set the jdk home and catalina home
 as environment variable, still this error, please help
 me
 
 regards, raasi
 
 
   
 __ 
 Do you Yahoo!? 
 Check out the new Yahoo! Front Page. 
 www.yahoo.com
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
http://localhost:3030/servlet/HelloClientServlet

Looks like you are depending on the invoker servlet to instanciate your
servlet. The invoker servlet is no longer active by default.

You will need to map your servlet in web.xml.
Again, your servlets need to be packaged.






On Thu, 2004-11-04 at 21:29, Ben Souther wrote:
 First, is your servlet in a package?
 Non-packaged servlets will not work.
 
 Did you map your servlet in web.xml?
 What is the URL you are using to call the servlet?
 
 You don't need to set a classpath environment variable
 Tomcat sets it's own.
 
 Did you install a full j2sdk or just a jre?
 Tomcat 5.0 and lower needs a full j2sdk.
 
 Did you set your JAVA_HOME enviornment variable?
 Have you tested it to make sure it's right?
 or..
 If you installed as a Windows Service, did you make sure that the
 installer found the full j2sdk on your system and not another JRE?
 
 
 
 
 On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
  I'm just a beginner and I have installed Tomcat5.0 and
  try to run a simple servlet. I have copied the
  compiled servlet on the webapps/root/WEB-INF/classes
  and added the servlet name and servlet mapping in the
  web.xml file. I'm trying to call my HelloClientServlet
  from http://localhost:3030/servlet/HelloClientServlet
  from the web browser, after restarting the tomcat http
  server it says the follwing
  
  my tomcat server is listening at port 3030
  ***
  
  HTTP Status 404 - /servlet
  
  
  
  type Status report
  
  message /servlet
  
  description The requested resource (/servlet) is not
  available.
  
  
  
  
  Apache Tomcat/5.0.28
  
  ***
  
  and I have tried to run a simple example JSP already
  in the examples folder, it gives me the follwing error
  
  *
  
  HTTP Status 500 - 
  
  
  
  type Exception report
  
  message 
  
  description The server encountered an internal error
  () that prevented it from fulfilling this request.
  
  exception 
  
  org.apache.jasper.JasperException: Unable to compile
  class for JSP
  
  org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
  
  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
  
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  
  root cause 
  
  Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK
  
  org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
  
  org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
  
  org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
  
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  
  note The full stack trace of the root cause is
  available in the Apache Tomcat/5.0.28 logs.
  
  
  
  
  Apache Tomcat/5.0.28
  
  *
  
  please help me, i'm troubling with this error since
  three days and I have read lot of manuals and changed
  the class path and set the jdk home and catalina home
  as environment variable, still this error, please help
  me
  
  regards, raasi
  
  
  
  __ 
  Do you Yahoo!? 
  Check out the new Yahoo! Front Page. 
  www.yahoo.com
  
  
  
  

(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Raasi Potluri
Hello Ben many thanks for your reply,

well, My servlet is a non-packaged one, I will change
it. I'm worried, if it is a packeged one how to call
it from the url? and how to configure the the web.xml?

Yes I have mapped my servlet in the web.xml file. this
is the bit I have added in the web.xml file 

servlet
   
servlet-nameHelloClientServlet/servlet-name
   
servlet-classHelloClientServlet/servlet-class
/servlet

servlet-mapping
   
servlet-nameHelloClientServlet/servlet-name
url-patternHelloClientServlet/url-pattern
/servlet-mapping

the URL I'm using to call my servlet is
http://localhost:3030/servlet/HelloClientServlet

I have installed the full j2sdk1.5.0 package and I
have set the classpath and tested it. It is working, 

I will write you back once I have put my servlet in
the package and I will recompile and test it again,
please help me with this, this is driving me mad, many
thanks Ben,

regards, Raasi

--- Ben Souther [EMAIL PROTECTED] wrote:

 First, is your servlet in a package?
 Non-packaged servlets will not work.
 
 Did you map your servlet in web.xml?
 What is the URL you are using to call the servlet?
 
 You don't need to set a classpath environment
 variable
 Tomcat sets it's own.
 
 Did you install a full j2sdk or just a jre?
 Tomcat 5.0 and lower needs a full j2sdk.
 
 Did you set your JAVA_HOME enviornment variable?
 Have you tested it to make sure it's right?
 or..
 If you installed as a Windows Service, did you make
 sure that the
 installer found the full j2sdk on your system and
 not another JRE?
 
 
 
 
 On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
  I'm just a beginner and I have installed Tomcat5.0
 and
  try to run a simple servlet. I have copied the
  compiled servlet on the
 webapps/root/WEB-INF/classes
  and added the servlet name and servlet mapping in
 the
  web.xml file. I'm trying to call my
 HelloClientServlet
  from
 http://localhost:3030/servlet/HelloClientServlet
  from the web browser, after restarting the tomcat
 http
  server it says the follwing
  
  my tomcat server is listening at port 3030
 
 ***
  
  HTTP Status 404 - /servlet
  
 


  
  type Status report
  
  message /servlet
  
  description The requested resource (/servlet) is
 not
  available.
  
  
 


  
  Apache Tomcat/5.0.28
  
 
 ***
  
  and I have tried to run a simple example JSP
 already
  in the examples folder, it gives me the follwing
 error
  
 

*
  
  HTTP Status 500 - 
  
 


  
  type Exception report
  
  message 
  
  description The server encountered an internal
 error
  () that prevented it from fulfilling this request.
  
  exception 
  
  org.apache.jasper.JasperException: Unable to
 compile
  class for JSP
  
 

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
  
 

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
  
 

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  
  root cause 
  
  Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK
  
 

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
  
 

org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
  
 

org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
  
 

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  
 

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  
 


Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther


 Hello Ben many thanks for your reply,
 
 well, My servlet is a non-packaged one, I will change
 it. I'm worried, if it is a packeged one how to call
 it from the url? and how to configure the the web.xml?

In the servlet class node, fully qualify your servlet class
Example:
servlet-classcom.mypackage.HelloClientServlet/servlet-class


 
 Yes I have mapped my servlet in the web.xml file. this
 is the bit I have added in the web.xml file 
 
 servlet

 servlet-nameHelloClientServlet/servlet-name

 servlet-classHelloClientServlet/servlet-class
 /servlet
 
 servlet-mapping

 servlet-nameHelloClientServlet/servlet-name
 url-patternHelloClientServlet/url-pattern
 /servlet-mapping
 
 the URL I'm using to call my servlet is
 http://localhost:3030/servlet/HelloClientServlet

There is no need for servlet
Try:
http://localhost:3030/HelloClientServlet


 
 I have installed the full j2sdk1.5.0 package and I
 have set the classpath and tested it. It is working, 

You don't need to set a classpath.  Tomcat sets it's own.

You will want to make sure your
JAVA_HOME environment variable is set properly.

From the command line type: $JAVA_HOME/bin/javac

If you get a command not found error, then your JAVA_HOME environment
varible is not set properly.


 
 I will write you back once I have put my servlet in
 the package and I will recompile and test it again,
 please help me with this, this is driving me mad, many
 thanks Ben,
 
 regards, Raasi
 
 --- Ben Souther [EMAIL PROTECTED] wrote:
 
  First, is your servlet in a package?
  Non-packaged servlets will not work.
  
  Did you map your servlet in web.xml?
  What is the URL you are using to call the servlet?
  
  You don't need to set a classpath environment
  variable
  Tomcat sets it's own.
  
  Did you install a full j2sdk or just a jre?
  Tomcat 5.0 and lower needs a full j2sdk.
  
  Did you set your JAVA_HOME enviornment variable?
  Have you tested it to make sure it's right?
  or..
  If you installed as a Windows Service, did you make
  sure that the
  installer found the full j2sdk on your system and
  not another JRE?
  
  
  
  
  On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
   I'm just a beginner and I have installed Tomcat5.0
  and
   try to run a simple servlet. I have copied the
   compiled servlet on the
  webapps/root/WEB-INF/classes
   and added the servlet name and servlet mapping in
  the
   web.xml file. I'm trying to call my
  HelloClientServlet
   from
  http://localhost:3030/servlet/HelloClientServlet
   from the web browser, after restarting the tomcat
  http
   server it says the follwing
   
   my tomcat server is listening at port 3030
  
  ***
   
   HTTP Status 404 - /servlet
   
  
 


   
   type Status report
   
   message /servlet
   
   description The requested resource (/servlet) is
  not
   available.
   
   
  
 


   
   Apache Tomcat/5.0.28
   
  
  ***
   
   and I have tried to run a simple example JSP
  already
   in the examples folder, it gives me the follwing
  error
   
  
 
 *
   
   HTTP Status 500 - 
   
  
 


   
   type Exception report
   
   message 
   
   description The server encountered an internal
  error
   () that prevented it from fulfilling this request.
   
   exception 
   
   org.apache.jasper.JasperException: Unable to
  compile
   class for JSP
   
  
 

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
   
  
 

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
   
  
 
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
   
  
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   
  
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   
  
 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   
  
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
   
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
   
  
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   
   
   root cause 
   
   Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
   Perhaps JAVA_HOME does not point to the JDK
   
  
 

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
   
  
 
 org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
   
  
 

(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Raasi Potluri
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to

 servlet
 servlet-nameHelloClientServlet/servlet-name
 servlet-classHelloClientServlet/servlet-class
 /servlet

 servlet-mapping
   servlet-nameHelloClientServlet/servlet-name
  
url-pattern/servlet/HelloClientServlet/url-pattern
  /servlet-mapping

and I have used the URL

http://localhost:3030/servlet/HelloClientServlet

wit worked I can see my code on the web page

but I have written another similar servlet with
different text output on web page and added couple
other nodes on web.xml file and that also worked...

and now I have just refreshed the web page with F5 key
 everything is vanished and gives me an error message
saying that 
***

HTTP Status 404 - /servlet/HelloShabeer



type Status report

message /servlet/HelloShabeer

description The requested resource
(/servlet/HelloShabeer) is not available.




Apache Tomcat/5.0.28

***

like you said I have checked the JAVA_HOME variable at
cmd prompt, though I have set my JAVA_HOME variable at
system, environment variables, it says the follwoing

**

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac
'JAVA_HOME' is not recognized as an internal or
external command,
operable program or batch file.

C:\Documents and Settings\Shabeercd\

C:\JAVA_HOME/bin/javac
'JAVA_HOME' is not recognized as an internal or
external command,
operable program or batch file.

C:\

**

please guide me what shall I do now, many thanks for
your help, regards, raasi

--- Ben Souther [EMAIL PROTECTED] wrote:

 
 
  Hello Ben many thanks for your reply,
  
  well, My servlet is a non-packaged one, I will
 change
  it. I'm worried, if it is a packeged one how to
 call
  it from the url? and how to configure the the
 web.xml?
 
 In the servlet class node, fully qualify your
 servlet class
 Example:

servlet-classcom.mypackage.HelloClientServlet/servlet-class
 
 
  
  Yes I have mapped my servlet in the web.xml file.
 this
  is the bit I have added in the web.xml file 
  
  servlet
 
  servlet-nameHelloClientServlet/servlet-name
 
  servlet-classHelloClientServlet/servlet-class
  /servlet
  
  servlet-mapping
 
  servlet-nameHelloClientServlet/servlet-name
 
 url-patternHelloClientServlet/url-pattern
  /servlet-mapping
  
  the URL I'm using to call my servlet is
  http://localhost:3030/servlet/HelloClientServlet
 
 There is no need for servlet
 Try:
 http://localhost:3030/HelloClientServlet
 
 
  
  I have installed the full j2sdk1.5.0 package and I
  have set the classpath and tested it. It is
 working, 
 
 You don't need to set a classpath.  Tomcat sets it's
 own.
 
 You will want to make sure your
 JAVA_HOME environment variable is set properly.
 
 From the command line type: $JAVA_HOME/bin/javac
 
 If you get a command not found error, then your
 JAVA_HOME environment
 varible is not set properly.
 
 
  
  I will write you back once I have put my servlet
 in
  the package and I will recompile and test it
 again,
  please help me with this, this is driving me mad,
 many
  thanks Ben,
  
  regards, Raasi
  
  --- Ben Souther [EMAIL PROTECTED] wrote:
  
   First, is your servlet in a package?
   Non-packaged servlets will not work.
   
   Did you map your servlet in web.xml?
   What is the URL you are using to call the
 servlet?
   
   You don't need to set a classpath environment
   variable
   Tomcat sets it's own.
   
   Did you install a full j2sdk or just a jre?
   Tomcat 5.0 and lower needs a full j2sdk.
   
   Did you set your JAVA_HOME enviornment variable?
   Have you tested it to make sure it's right?
   or..
   If you installed as a Windows Service, did you
 make
   sure that the
   installer found the full j2sdk on your system
 and
   not another JRE?
   
   
   
   
   On Thu, 2004-11-04 at 20:49, Raasi Potluri
 wrote:
I'm just a beginner and I have installed
 Tomcat5.0
   and
try to run a simple servlet. I have copied the
compiled servlet on the
   webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping
 in
   the
web.xml file. I'm trying to call my
   HelloClientServlet
from
   http://localhost:3030/servlet/HelloClientServlet
from the web browser, after restarting the
 tomcat
   http
server it says the follwing

my tomcat server is listening at port 3030
   
  
 ***

HTTP Status 404 - /servlet

   
  
 



type Status 

(Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Raasi Potluri
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to

 servlet
 servlet-nameHelloClientServlet/servlet-name
 servlet-classHelloClientServlet/servlet-class
 /servlet

 servlet-mapping
   servlet-nameHelloClientServlet/servlet-name
  
url-pattern/servlet/HelloClientServlet/url-pattern
  /servlet-mapping

and I have used the URL

http://localhost:3030/servlet/HelloClientServlet

wit worked I can see my code on the web page

but I have written another similar servlet with
different text output on web page and added couple
other nodes on web.xml file and that also worked...

and now I have just refreshed the web page with F5 key
 everything is vanished and gives me an error message
saying that 
***

HTTP Status 404 - /servlet/HelloShabeer



type Status report

message /servlet/HelloShabeer

description The requested resource
(/servlet/HelloShabeer) is not available.




Apache Tomcat/5.0.28

***

like you said I have checked the JAVA_HOME variable at
cmd prompt, though I have set my JAVA_HOME variable at
system, environment variables, it says the follwoing

**

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac
'JAVA_HOME' is not recognized as an internal or
external command,
operable program or batch file.

C:\Documents and Settings\Shabeercd\

C:\JAVA_HOME/bin/javac
'JAVA_HOME' is not recognized as an internal or
external command,
operable program or batch file.

C:\

**

please guide me what shall I do now, many thanks for
your help, regards, raasi

--- Ben Souther [EMAIL PROTECTED] wrote:

 
 
  Hello Ben many thanks for your reply,
  
  well, My servlet is a non-packaged one, I will
 change
  it. I'm worried, if it is a packeged one how to
 call
  it from the url? and how to configure the the
 web.xml?
 
 In the servlet class node, fully qualify your
 servlet class
 Example:

servlet-classcom.mypackage.HelloClientServlet/servlet-class
 
 
  
  Yes I have mapped my servlet in the web.xml file.
 this
  is the bit I have added in the web.xml file 
  
  servlet
 
  servlet-nameHelloClientServlet/servlet-name
 
  servlet-classHelloClientServlet/servlet-class
  /servlet
  
  servlet-mapping
 
  servlet-nameHelloClientServlet/servlet-name
 
 url-patternHelloClientServlet/url-pattern
  /servlet-mapping
  
  the URL I'm using to call my servlet is
  http://localhost:3030/servlet/HelloClientServlet
 
 There is no need for servlet
 Try:
 http://localhost:3030/HelloClientServlet
 
 
  
  I have installed the full j2sdk1.5.0 package and I
  have set the classpath and tested it. It is
 working, 
 
 You don't need to set a classpath.  Tomcat sets it's
 own.
 
 You will want to make sure your
 JAVA_HOME environment variable is set properly.
 
 From the command line type: $JAVA_HOME/bin/javac
 
 If you get a command not found error, then your
 JAVA_HOME environment
 varible is not set properly.
 
 
  
  I will write you back once I have put my servlet
 in
  the package and I will recompile and test it
 again,
  please help me with this, this is driving me mad,
 many
  thanks Ben,
  
  regards, Raasi
  
  --- Ben Souther [EMAIL PROTECTED] wrote:
  
   First, is your servlet in a package?
   Non-packaged servlets will not work.
   
   Did you map your servlet in web.xml?
   What is the URL you are using to call the
 servlet?
   
   You don't need to set a classpath environment
   variable
   Tomcat sets it's own.
   
   Did you install a full j2sdk or just a jre?
   Tomcat 5.0 and lower needs a full j2sdk.
   
   Did you set your JAVA_HOME enviornment variable?
   Have you tested it to make sure it's right?
   or..
   If you installed as a Windows Service, did you
 make
   sure that the
   installer found the full j2sdk on your system
 and
   not another JRE?
   
   
   
   
   On Thu, 2004-11-04 at 20:49, Raasi Potluri
 wrote:
I'm just a beginner and I have installed
 Tomcat5.0
   and
try to run a simple servlet. I have copied the
compiled servlet on the
   webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping
 in
   the
web.xml file. I'm trying to call my
   HelloClientServlet
from
   http://localhost:3030/servlet/HelloClientServlet
from the web browser, after restarting the
 tomcat
   http
server it says the follwing

my tomcat server is listening at port 3030
   
  
 ***

HTTP Status 404 - /servlet

   
  
 



type Status 

Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote:
 Hello Ben I have not packaged the servlet but just
 changed the servlet mapping node, to
 
  servlet
  servlet-nameHelloClientServlet/servlet-name
  servlet-classHelloClientServlet/servlet-class
  /servlet
 
  servlet-mapping
servlet-nameHelloClientServlet/servlet-name
   
 url-pattern/servlet/HelloClientServlet/url-pattern
   /servlet-mapping
 
 and I have used the URL
 
 http://localhost:3030/servlet/HelloClientServlet
 
 wit worked I can see my code on the web page
Hmm..  I didn't think unpackaged classes would work anymore.
Anyway, I strongly recommend packaging all of your classes.

Adding /servlet/ to your url-pattern in the mapping or removing
it from your URL are the same.  Just make sure your url-pattern matches
your url.



 
 but I have written another similar servlet with
 different text output on web page and added couple
 other nodes on web.xml file and that also worked...
 
 and now I have just refreshed the web page with F5 key
  everything is vanished and gives me an error message
 saying that 
 **

I don't know why that happened.  Have you looked at the logs in 
CATALINA_HOME\logs?



 Apache Tomcat/5.0.28
 
 ***
 
 like you said I have checked the JAVA_HOME variable at
 cmd prompt, though I have set my JAVA_HOME variable at
 system, environment variables, it says the follwoing
 
 **
 
 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.
 
 C:\Documents and Settings\ShabeerJAVA_HOME/bin/javac
 'JAVA_HOME' is not recognized as an internal or
 external command,
 operable program or batch file.
 
 C:\Documents and Settings\Shabeercd\
 
 C:\JAVA_HOME/bin/javac
 'JAVA_HOME' is not recognized as an internal or
 external command,
 operable program or batch file.
 
Ahh, you're on a windows box:
Try:
%JAVA_HOME%\bin\javac

If you get the same message, your JAVA_HOME environment variable is not
set properly.

Did you install Tomcat as a Service?
If so, stop the service and try starting Tomcat from the command line.
If you've set your environment variable correctly and you start it from
the command line, it should be able to find the compiler and thus, run
your JSPs.





 please guide me what shall I do now, many thanks for
 your help, regards, raasi
You said you spent 3 days reading manuals.
Did you read this?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html

or any of the pages from here?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

I think you'll find the most up to date documentation on those pages.
-Ben

 
 --- Ben Souther [EMAIL PROTECTED] wrote:
 
  
  
   Hello Ben many thanks for your reply,
   
   well, My servlet is a non-packaged one, I will
  change
   it. I'm worried, if it is a packeged one how to
  call
   it from the url? and how to configure the the
  web.xml?
  
  In the servlet class node, fully qualify your
  servlet class
  Example:
 
 servlet-classcom.mypackage.HelloClientServlet/servlet-class
  
  
   
   Yes I have mapped my servlet in the web.xml file.
  this
   is the bit I have added in the web.xml file 
   
   servlet
  
   servlet-nameHelloClientServlet/servlet-name
  
   servlet-classHelloClientServlet/servlet-class
   /servlet
   
   servlet-mapping
  
   servlet-nameHelloClientServlet/servlet-name
  
  url-patternHelloClientServlet/url-pattern
   /servlet-mapping
   
   the URL I'm using to call my servlet is
   http://localhost:3030/servlet/HelloClientServlet
  
  There is no need for servlet
  Try:
  http://localhost:3030/HelloClientServlet
  
  
   
   I have installed the full j2sdk1.5.0 package and I
   have set the classpath and tested it. It is
  working, 
  
  You don't need to set a classpath.  Tomcat sets it's
  own.
  
  You will want to make sure your
  JAVA_HOME environment variable is set properly.
  
  From the command line type: $JAVA_HOME/bin/javac
  
  If you get a command not found error, then your
  JAVA_HOME environment
  varible is not set properly.
  
  
   
   I will write you back once I have put my servlet
  in
   the package and I will recompile and test it
  again,
   please help me with this, this is driving me mad,
  many
   thanks Ben,
   
   regards, Raasi
   
   --- Ben Souther [EMAIL PROTECTED] wrote:
   
First, is your servlet in a package?
Non-packaged servlets will not work.

Did you map your servlet in web.xml?
What is the URL you are using to call the
  servlet?

You don't need to set a classpath environment
variable
Tomcat sets it's own.

Did you install a full j2sdk or just a jre?
Tomcat 5.0 and lower needs a full j2sdk.

Did you set your JAVA_HOME enviornment variable?
Have you tested it to make sure it's right?
or..
If you installed as a Windows Service, did 

(Ben Souther) new Trouble Re: dear friend i'm in a big trouble(thanks 4 ur help)

2004-11-04 Thread Raasi Potluri
Hello Ben, I know why all my working servlets have
stopped working all of a sudden, something is wrong,
could be I have mis placed some of the files in Tomcat
installation directory, because when I type

http://localhost:3030

it is use to give me a congratulations page, now it
says following

*

HTTP Status 404 - /



type Status report

message /

description The requested resource (/) is not
available.




Apache Tomcat/5.0.28

*

I will try to reinstall the whole Tomcat 5.0 version
allover again tomarrow, because soemthing is wrong...

and do you suggest me any standard version of tomcat
where in I can best practice servlets and jsp's. I'm
very eagar to learn these two technologies, please
help me.

I have tried this

 %JAVA_HOME%\bin\javac

didn't work, says dont understand as internal command
or exteranl

my OS is windows XP home edition.

I have set my JAVA_HOME at start/settings/control
panel/system

clicked advanced tab, clicked environment variables,
under the system variables I have added a new field

JAVA_HOME

and text as C:\Program Files\Java\jdk1.5.0 is the same
tree as per my windows intsallation directory.

regards,

thanks for your help.



bye for now, Raasi

--- Ben Souther [EMAIL PROTECTED] wrote:

 On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote:
  Hello Ben I have not packaged the servlet but just
  changed the servlet mapping node, to
  
   servlet
  
 servlet-nameHelloClientServlet/servlet-name
  
 servlet-classHelloClientServlet/servlet-class
   /servlet
  
   servlet-mapping
 servlet-nameHelloClientServlet/servlet-name

 

url-pattern/servlet/HelloClientServlet/url-pattern
/servlet-mapping
  
  and I have used the URL
  
  http://localhost:3030/servlet/HelloClientServlet
  
  wit worked I can see my code on the web
 page
 Hmm..  I didn't think unpackaged classes would work
 anymore.
 Anyway, I strongly recommend packaging all of your
 classes.
 
 Adding /servlet/ to your url-pattern in the
 mapping or removing
 it from your URL are the same.  Just make sure your
 url-pattern matches
 your url.
 
 
 
  
  but I have written another similar servlet with
  different text output on web page and added couple
  other nodes on web.xml file and that also
 worked...
  
  and now I have just refreshed the web page with F5
 key
   everything is vanished and gives me an error
 message
  saying that 
  **
 
 I don't know why that happened.  Have you looked at
 the logs in 
 CATALINA_HOME\logs?
 
 
 
  Apache Tomcat/5.0.28
  
 
 ***
  
  like you said I have checked the JAVA_HOME
 variable at
  cmd prompt, though I have set my JAVA_HOME
 variable at
  system, environment variables, it says the
 follwoing
  
  **
  
  Microsoft Windows XP [Version 5.1.2600]
  (C) Copyright 1985-2001 Microsoft Corp.
  
  C:\Documents and
 Settings\ShabeerJAVA_HOME/bin/javac
  'JAVA_HOME' is not recognized as an internal or
  external command,
  operable program or batch file.
  
  C:\Documents and Settings\Shabeercd\
  
  C:\JAVA_HOME/bin/javac
  'JAVA_HOME' is not recognized as an internal or
  external command,
  operable program or batch file.
  
 Ahh, you're on a windows box:
 Try:
 %JAVA_HOME%\bin\javac
 
 If you get the same message, your JAVA_HOME
 environment variable is not
 set properly.
 
 Did you install Tomcat as a Service?
 If so, stop the service and try starting Tomcat from
 the command line.
 If you've set your environment variable correctly
 and you start it from
 the command line, it should be able to find the
 compiler and thus, run
 your JSPs.
 
 
 
 
 
  please guide me what shall I do now, many thanks
 for
  your help, regards, raasi
 You said you spent 3 days reading manuals.
 Did you read this?

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
 
 or any of the pages from here?

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
 
 I think you'll find the most up to date
 documentation on those pages.
 -Ben
 
  
  --- Ben Souther [EMAIL PROTECTED] wrote:
  
   
   
Hello Ben many thanks for your reply,

well, My servlet is a non-packaged one, I will
   change
it. I'm worried, if it is a packeged one how
 to
   call
it from the url? and how to configure the the
   web.xml?
   
   In the servlet class node, fully qualify your
   servlet class
   Example:
  
 

servlet-classcom.mypackage.HelloClientServlet/servlet-class
   
   

Yes I have mapped my servlet in the web.xml
 file.
   this
is the bit I have added in the web.xml file 

servlet
   
   
 servlet-nameHelloClientServlet/servlet-name