Hi, 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? sathish
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 weblogic.properties 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. Bye. Loke.