Deploying your J2EE web applications to the Apache Tomcat 4.1.12 server involves two main steps:
Note: Before you start a BC4J project to be deployed to Apache Tomcat, you must select a connection type and the corresponding SQL dialect, type maps or domains. For instructions, see Understanding Connections, SQL Dialect, Type Maps, and Domains.
The steps in this section are a one time task which you perform when you deploy web applications created in JDeveloper to Apache Tomcat for the first time. For all subsequent deployments whenever you add a new J2EE WAR file, you only need to perform the steps in the next section and then restart Tomcat.
To load BC4J runtime libraries to Apache Tomcat:
You must first copy the various JDeveloper runtime libraries, which are located
in different JDeveloper directories, to the following Apache Tomcat installation
directory. In most cases, you would copy these files into <Tomcat_install>/lib
.
However, in general, WAR files are copied to the <Tomcat_install>/webapps
directory.
cabo.war
file, copy this file
to the <Tomcat_install>/webapps
directory.
interMedia Text is an Oracle9i
feature for storing, retrieving, and manipulating audio, document, image,
and video data in an Oracle database.webapp.war
,
into the <Tomcat_install>/webapps
directory.Note: The correct directory location for these files in releases after Tomcat 4.1.12 may change. Check the JDeveloper Release Notes under "Deployment" for information about directory locations for later releases.
Note: JDeveloper automatically generates the web.xml
deployment descriptor for the web application.
<Tomcat_install>/webapps/<subdirectory>
webapp
but you can enter any other name.
conf/server.xml
file:
<DefaultContext crossContext="true"/>
This will allow the WAR file in the root of <tomcat-install>/webapps
to detect the /cabo/
shared installables. See Tomcat system
administration documentation for more information.
The WAR which contains the generated web application files are deployed
directly to location you specified in step 5.a above: <Tomcat_install>/webapps/<subdirectory>
.
See the Deployment Log window for details.
Note: However, if you skipped step 5 and did not specify
a default location for the deployed WAR, you will need to copy the unpacked
directory hierarchy into a subdirectory below <Tomcat_install>/webapps
.
http://<hostname>:8080/<webapp>/main.html
Notes:
http://jakarta.apache.org/tomcat/index.html
WEB-INF/web.xml
tools.jar
in the Tomcat classpath.
This file is located in <jdev_install>/jdk/lib
and must match the version of the JDK being used to run Tomcat. Otherwise,
you may encounter problems when running applications in Tomcat.