File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlets in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets in weblogic" Watch "servlets in weblogic" New topic

servlets in weblogic

sathish jayaraman

Joined: Mar 22, 2001
Posts: 2
I have installed weblogic in my system.What should I do now in order to register a servlet?I have written s JSP and placed in the public_html folder and it is working fine.But if i do the same for the servlet by placing the class file in the public_html directory.I am getting Internal server error 500.How should I go abt it?
lokesh reddy
Ranch Hand

Joined: Sep 15, 2000
Posts: 66
Hi Satish,
First of all u havent informed what version of weblogic r u using.
If u r using ver 5.x then you have to place your servlet under weblogic\myserver directory and open file in weblogic directory and register your servlet there. You can see some examples in that file how to register. You cant execute your servlet without registering it in properties file.
If u r using ver 6.x then you have to open web.xml which is located under bea\wlserver6.0\config\mydomain\applications\WEB-INF and you map ur servlet in the xml file. Here also you can find some examples showing how to map your servlet.
After registering the servlet, invoke your browser and type the following url http://localhost:7001/<Servlet Registered Name> and you can execute ur servlet
I hope u find this info useful.
I agree. Here's the link:
subject: servlets in weblogic
It's not a secret anymore!