• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

running servlet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to this servlet thing. I've installed J2EE, it is up and running. I've also written and compiled my first servlet, but when I try to run the servlet on my server with //host-name/name_of_servlet it always ask me to open or to save my .class file. I put my .class and .java file under %J2EE_Home%\public_html. I believe J2EE already included tomcat so I don't have to install tomcat separately, anyone have solution why this is happening? Also anyone knows a good website with j2ee and servlet? Most of the website I found use the JSWDK to develop servlet.
Thanks.

Eva
[ October 06, 2003: Message edited by: Eva Tang ]
 
author & internet detective
Posts: 42162
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say J2EE is "up and running", what do you mean? J2EE is a jar file (collection of classes) for enterprise java. For example, it contains the code for a session.
"when I try to run the servlet on my server" What server are you using? J2EE is not a server. (You'll know that you have a server when you have something that can be explicitly started.
Yes, you need to install a server separately. Tomcat is pretty simple to use.
 
Eva Tang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I said j2ee is "up and running" it means I can do j2ee -verbose in dos command. And when I execute that it said "Starting web service at port 8000". I can get my jsp files to run, just having problem to run my servlet.
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you are using the web services stuff that comes with j2ee 1.4. Am I correct? You need to download tomcat and it will make you life so much better. You can follow the examples that come with it.
 
Eva Tang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I am using the web services stuffs that comes with j2ee 1.3. So I guess it is over-complicated if I just want to run jsp/servlet with it.
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Duncan:
You need to download tomcat and it will make you life so much better.


You can start with tomcat.
-----------------
Sainudheen
 
reply
    Bookmark Topic Watch Topic
  • New Topic