Porting A Simple Servlet From Weblogic Server 5.1 To Weblogic Server - BEA WebLogic Server 7 Upgrade Manual

Table of Contents

Advertisement

Converting and Porting Your Existing Applications into Web Applications
Porting a Simple Servlet from WebLogic Server 5.1 to
WebLogic Server 7.0
The following procedure ports the simple Hello World Servlet that was provided with
WebLogic 5.1 Server to WebLogic Server 7.0.
1. In WebLogic Server 7.0, create the correct directory structure, as described in
Administration and Configuration
Servlets. This involves creating a root application directory, such as
well as a
directory. Place the
C:\hello\WEB-INF\classes
2. Create a
weblogic.properties
you registered HelloWorldServlet in your
you converted it, the servlet will be properly configured in your new
file. An XML file can be created with any text editor. The following is an
example of a basic
<!DOCTYPE web-app (View Source for full doctype...)>
- <web-app>
- <servlet>
<servlet-name>HelloWorldServlet</servlet-name>
<servlet-class>examples.servlets.HelloWorldServlet</servlet-cla
ss>
</servlet>
- <servlet-mapping>
<servlet-name>HelloWorldServlet</servlet-name>
<url-pattern>/hello/*</url-pattern>
</servlet-mapping>
</web-app>
For more information on
Deployment Descriptors
weblogic.xml
HelloWorld.
For more information on
WebLogic-Specific Deployment Descriptor
Applications.
directory and a
C:\hello\WEB-INF
HelloWorld.Servlet.java
file for this servlet. If you have converted your
web.xml
file, a
file that could be used with the HelloWorldServlet.
web.xml
web.xml
in Assembling and Configuring Web Applications. A
file is not necessary with such a simple, stand-alone servlet as
weblogic.xml
BEA WebLogic Server 7.0 Upgrade Guide
in Programming WebLogic Server HTTP
C:\hello\WEB-INF\classes
file inside the
directory.
file has already been created for you. If
web.xml
weblogic.properties
files, see
Writing Web Application
files, see
Writing the
in Assembling and Configuring Web
, as
C:\hello
file before
web.xml
2-15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic Server 7 and is the answer not in the manual?

This manual is also suitable for:

Weblogic server 7.0

Table of Contents