aspose file tools*
The moose likes Servlets and the fly likes running servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "running servlet" Watch "running servlet" New topic
Author

running servlet

Eva Tang
Greenhorn

Joined: Oct 06, 2003
Posts: 12
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

Joined: May 26, 2003
Posts: 31079
    
163

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Eva Tang
Greenhorn

Joined: Oct 06, 2003
Posts: 12
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

Joined: Nov 01, 2002
Posts: 363
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.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Eva Tang
Greenhorn

Joined: Oct 06, 2003
Posts: 12
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

Joined: Aug 18, 2003
Posts: 218
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running servlet