Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

servlets in weblogic  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!