You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Sami <sa...@infobroker.com.au> on 2001/01/18 23:34:33 UTC

servlet execution problem

Hello !
I recently installed tomcat. after succesful installation I ran the examples
given by tomcat and those examples are running.
then I made one directory in %tomcat_home%/webapps and also made classes
directory in that directory. now I compiled a basic "Hello World" servlet
and copied the class file in webapps/classes directory
then I tried to execute that file by starting tomcat and typing
http://localhost:8080/myDirectory/servlet/HelloWorld
but error is coming up saying that cannot find
"/mydirectory/servlet/HelloWorld.
so I was wondering that is there any tutorial , which can give you explicit
step by step instruction of howto deploy first servelet in your own
directory and how to run it


Re: servlet execution problem

Posted by Edson Alves Pereira <Ca...@netscape.net>.
  Hello dude!!!

  My name's Edson and i'm from Brzil! Everything's all right?
  Ok, i think that you need configure the httpd.conf too, because the that you are showing is a Apache error, so Apache don't known nothing about your aplication. It's good ideia to read the directory "doc" at TOMCAT_HOME. There you will find every information about how configure httpd.conf and how to create a tomcat.conf to you aplication!

  With best wishes,
  Edson Alves Pereira



general@jakarta.apache.org wrote:
>
> Hello !
> I recently installed tomcat. after succesful installation I ran the examples
> given by tomcat and those examples are running.
> then I made one directory in %tomcat_home%/webapps and also made classes
> directory in that directory. now I compiled a basic "Hello World" servlet
> and copied the class file in webapps/classes directory
> then I tried to execute that file by starting tomcat and typing
> http://localhost:8080/myDirectory/servlet/HelloWorld
> but error is coming up saying that cannot find
> "/mydirectory/servlet/HelloWorld.
> so I was wondering that is there any tutorial , which can give you explicit
> step by step instruction of howto deploy first servelet in your own
> directory and how to run it
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
> 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/

Re: Its UNIX

Posted by Robert Burrell Donkin <Ro...@appleonline.net>.
arup wrote:

> Hi,
>
> I am trying to write  telnetd program and in which i opened pseudo
> terminals
> and execl getty program from child process.
> I am getting follwoing error after getting the login and passwd prompt.
>
> No utmpx entry. You must exec "login" from the lowest level "shell".
>
> Can any one please throw some light.
>

hi arup

general@jakarta.apache.org is a java list. if you want a reply before the
next millenium for your question, i'd try an apache webserver or a nix
list.

- robert



Its UNIX

Posted by arup <ar...@informix.com>.
Hi,

I am trying to write  telnetd program and in which i opened pseudo
terminals
and execl getty program from child process.
I am getting follwoing error after getting the login and passwd prompt.

No utmpx entry. You must exec "login" from the lowest level "shell".

Can any one please throw some light.


Thanks in advance


Arup




Re: servlet execution problem

Posted by Paul Kneeland <pk...@worldnet.att.net>.
Sami,
    If you install and use Ant, it will help you manage your projects
and move content into the correct context directories for your
projects.  It provides a build script for installing apps.  There is an
example in $TOMCAT_HOME/doc/appdev/sample.

    The short solution would probably be to create an application
context directory off of webapps, say webapps/SamiTest, and to create a
WEB-INF/classes directory off that.  You may also need a web.xml file.
You may have to dig around in the documentation a bit.


Re: servlet execution problem

Posted by Edson Alves Pereira <Ca...@netscape.net>.
  Hello dude!!!

  My name's Edson and i'm from Brzil! Everything's all right?
  Ok, i think that you need configure the httpd.conf too, because the that you are showing is a Apache error, so Apache don't known nothing about your aplication. It's good ideia to read the directory "doc" at TOMCAT_HOME. There you will find every information about how configure httpd.conf and how to create a tomcat.conf to you aplication!

  With best wishes,
  Edson Alves Pereira



general@jakarta.apache.org wrote:
>
> Hello !
> I recently installed tomcat. after succesful installation I ran the examples
> given by tomcat and those examples are running.
> then I made one directory in %tomcat_home%/webapps and also made classes
> directory in that directory. now I compiled a basic "Hello World" servlet
> and copied the class file in webapps/classes directory
> then I tried to execute that file by starting tomcat and typing
> http://localhost:8080/myDirectory/servlet/HelloWorld
> but error is coming up saying that cannot find
> "/mydirectory/servlet/HelloWorld.
> so I was wondering that is there any tutorial , which can give you explicit
> step by step instruction of howto deploy first servelet in your own
> directory and how to run it
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
> 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/

Re: servlet execution problem

Posted by Edson Alves Pereira <Ca...@netscape.net>.
  Hello dude!!!

  My name's Edson and i'm from Brzil! Everything's all right?
  Ok, i think that you need configure the httpd.conf too, because the that you are showing is a Apache error, so Apache don't known nothing about your aplication. It's good ideia to read the directory "doc" at TOMCAT_HOME. There you will find every information about how configure httpd.conf and how to create a tomcat.conf to you aplication!

  With best wishes,
  Edson Alves Pereira


general@jakarta.apache.org wrote:
>
> Hello !
> I recently installed tomcat. after succesful installation I ran the examples
> given by tomcat and those examples are running.
> then I made one directory in %tomcat_home%/webapps and also made classes
> directory in that directory. now I compiled a basic "Hello World" servlet
> and copied the class file in webapps/classes directory
> then I tried to execute that file by starting tomcat and typing
> http://localhost:8080/myDirectory/servlet/HelloWorld
> but error is coming up saying that cannot find
> "/mydirectory/servlet/HelloWorld.
> so I was wondering that is there any tutorial , which can give you explicit
> step by step instruction of howto deploy first servelet in your own
> directory and how to run it
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
> 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/