File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes my first servlet - help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "my first servlet - help!" Watch "my first servlet - help!" New topic
Author

my first servlet - help!

Mark Jutras
Greenhorn

Joined: Aug 01, 2001
Posts: 23
I'm running an eval copy of Weblogic 6.0.
I've successfully built and deployed an example.
When putting in my url 'http://127.0.0.1:7001/HelloServlet/'
I get no response.
I'm running Windows2000, is there some settings I need
to check in my browser, Explorer?
Thanx in advance!
Mark
Beksy Kurian
Ranch Hand

Joined: Jul 11, 2001
Posts: 254
try http://127.0.0.1:7001/servlet/HelloServlet
Beksy
[This message has been edited by Beksy Kurian (edited October 05, 2001).]
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
No, there is nothing to check on your browser. I think that you are typinng the right URL because you are not getting a '404 error saying that the page cannot be found. What is your servlet supposed to do anyway? Is it outputing any text onto the browser because that is the best way to test? Just a thought, in Tomcat we use 'http://127.0.0.1:7001/servlet/HelloServlet/' to run servlets and I'm not sure how WebLogic works.

Your port is 7001: try to change it back to 80 and try again.

Keep trying anyway and u should be able to crack it soon.

[This message has been edited by ernest fakudze (edited October 05, 2001).]


In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Pranit Saha
Ranch Hand

Joined: Sep 09, 2001
Posts: 130
Is there any servlets directory in ur server.. then u should keep the .java file in that directory and after compilation in browser write:
http://localhost/servlet/HelloServlet
Pranit..
Originally posted by Mark Jutras:
I'm running an eval copy of Weblogic 6.0.
I've successfully built and deployed an example.
When putting in my url 'http://127.0.0.1:7001/HelloServlet/'
I get no response.
I'm running Windows2000, is there some settings I need
to check in my browser, Explorer?
Thanx in advance!
Mark

mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
You need to register your servlet in weblogic.properties file. In that file you are going to specify classpath to your servlet as well as servlet mapping. I have forgotten how to do that, but it is quite nicely explained in weblogic documentation.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: my first servlet - help!