Deploying a Servlet

Deploying servlets involves a few more steps than do HTML and JSP pages. Servlets must be defined in the Web application deployment descriptor, web.xml, and their deployment structures must match their package structures. The following steps will walk you through the deployment of a servlet:

1.
Create a directory to hold your servlet classes, if one isn't already present. Go to the Web application directory /DefaultWebApp, and under the /WEB-INF directory, create a subdirectory named /classes. If you created the domain mydomain from the first section in this appendix, your directory structure should resemble the following:
C:/bea/user_projects/mydomain/applications/DefaultWebApp/WEB-INF/classes
2.
Copy your compiled servlet ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.