Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running servlet

 
Eva Tang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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 ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Sainudheen Mydeen
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic