Experiment No.1: Theory: J2EE Is Platform Independent, Java Centric Environment For Developing Enterprise
Experiment No.1: Theory: J2EE Is Platform Independent, Java Centric Environment For Developing Enterprise
Conclusion:
Thus we have studied J2EE
Experiment No.2
INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/
directory, are made visible to other classes within your particular web application. Thus,
if you include all of the required library classes in one of these places (be sure to check
licenses for redistribution rights for any third party libraries you utilize), you will simplify
the installation of your web application -- no adjustment to the system class path (or
installation of global library files in your server) will be necessary.
Deployment with Tomcat 4:
In order to be executed, a web application must be deployed on a servlet container. This is
true even during development. We will describe using Tomcat 4 to provide the execution
environment. A web application can be deployed in Tomcat by one of the following
approaches:
Copy unpacked directory hierarchy into a subdirectory in directory
$USER/webapps/. Tomcat will assign a context path to your application based
on the subdirectory name you choose. We will use this technique in the
build.xml file that we construct, because it is the quickest and easiest
approach during development. Be sure to restart Tomcat after installing or
updating your application.
Copy the web application archive file into directory $USER/webapps/. When
Tomcat is started, it will automatically expand the web application archive file
into its unpacked form, and execute the application that way. This approach
would typically be used to install an additional application, provided by a third
party vendor or by your internal development staff, into an existing Tomcat
installation. NOTE - If you use this approach, and wish to update your
application later, you must both replace the web application archive file AND
delete the expanded directory that Tomcat created, and then restart Tomcat, in
order to reflect your changes.
Use the Tomcat 4 "Manager" web application to deploy and un-deploy web
applications. Tomcat 4 includes a web application, deployed by default on
context path /manager, that allows you to deploy and un-deploy applications
on a running Tomcat server without restarting it. See the administrator
documentation for more information on using the Manager Web application.
Add a <Context> entry in the $USER/conf/server.xml configuration
file. This approach is described briefly below, and allows you to position the
document root of your web application at some point other than the
$USER/webapps/ directory. You will need to restart Tomcat to have changes in
this configuration file take effect.
Conclusion:
Thus we have studied the web-app folder structure in TOMCAT server.