user manual
2 Upgrading WebLogic Server 4.5 and 5.1 to Version 7.0
2-16 BEA WebLogic Server 7.0 Upgrade Guide
3. Move the web.xml file from 
domain\applications\DefaultWebApp_myserver\WEB-INF to 
C:\hello\WEB-INF\. 
4. Set up your development environment (see Establishing a Development 
Environment in Developing WebLogic Server Applications for more information) 
and compile the HelloWorldServlet with a command like the following:
C:\hello\WEB-INF\classes>javac -d . HelloWorldServlet.java
This should compile the file and create the correct package structure.
5. The servlet can now be bundled into an archive WAR file with the following 
command:
jar cvf hello.war *
This command will create a hello.war file and place it inside the C:\hello 
directory.
6. To install this Web Application, start your server and open the Administration 
Console. Under the Getting Started menu, choose Install Applications. Browse to 
the newly created WAR file and click Upload. 
The servlet should now be deployed and appear under the Web Applications 
node under Deployments, in the left-hand pane of the console.
7. To call the servlet, type the following in your browser URL window: 
http://localhost:7001/hello/hello. 
In this case 
/hello/ is the context path of the servlet. This is determined by the 
naming of the WAR file, in this case 
hello.war. The second /hello was mapped in 
the servlet mapping tags inside the 
web.xml file.
Porting and Converting Enterprise 
JavaBeans Applications
The following sections describe Enterprise Java Beans porting and conversion 
procedures.










