Oracle9ias如何配置Servlets才能使其带的Apache支持JSP

zenglong 2003-04-26 07:21:45
我的系统是IBM RS6000 AIX 4.33
database是oracle8.1.7
Oracle9ias当然在另一台机器上,现已经安装了Enterprise Edition
现在不知如何配置Servlets才能使其带的Apache支持JSP???
请各位高手帮忙!!!!分不够可能再加!!!急!!!!
...全文
87 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zenglong 2003-04-27
  • 打赏
  • 举报
回复
OC4j是应用服务器,它的功能当然非常全面.但是我这里不希望使用应用服务器,而直接通过Apache使用JSP。请问这种方法可行吗?是否一定需要使用应用服务器?
minl 2003-04-26
  • 打赏
  • 举报
回复
Restart the Oracle 9iAS Containers for J2EE (OC4J) Server
under <oc4j_home>
java -jar oc4j.jar

Specify connection information to OC4J server
In JDeveloper, to facilitate the deployment process, specify the connection information to Oracle9iAS Containers for J2EE (OC4J) Server. The following steps are required only the first time that you deploy a web application to OC4J from Oracle9i JDeveloper.

In the System-Navigator pane in JDeveloper, expand the Connections node.
Right-click Application Servers and select New Connections. Choose Next to continue.
In the Connection name box, enter deployConn and select Oracle9i Application Server in the Connection type list box. Choose Next to continue.
Enter the administrator's user name and password to access OC4J and choose Next. Note that the username and password are <admin-username> and <admin-password> respectively.
In the URL box, enter the hostname of the OC4J server machine. For example, ormi://www.server.com/
In the Local directory where admin.jar for Oracle9iAS is installed box, accept the default and choose Next.
Choose Test connection. If the connection test is successful, then choose Next to continue; otherwise, return to previous steps to fix the configuration settings.
Choose Finish.

To deploy the application to OC4J server

Right-click the deployment profile webapp.deploy under Project1.jpr and choose Deploy to deployConn (that is, the connection name that you specified earlier).
The JDeveloper deployment wizard creates webapp.war and webapp.ear under the project folder and invokes the Oracle9iAS admin tools to perform the following tasks on the application server automatically:


Deploy the newly created EAR file webapp.ear to /applications directory.

Unpack the EAR file and the WAR file.

Edit <oc4j_home>/config/server.xml to add the following entry: <application name="webapp" path="../applications/webapp.ear" auto-start="true" />

Edit <oc4j_home>/config/default-web-site.xml to add the following entry:
<web-app application="webapp" name="webapp" root="/webapp" />
To create a deployment profile for the required libraries

In the System-Navigator, select Project1.jpr.
From the File menu, choose New to create a new JDeveloper object within that project.
The JDeveloper New Wizard appears.
Select the category General, then Deployment Profiles.
Select the item JAR File - Simple Archive and then choose OK.
The Save Deployment Profile Wizard appears.
In the deployment profile file name box, enter bibeans.deploy and choose Save.
Choose Files under the profile settings, uncheck Project1.jpr which uncheck all files .
Under JAR Options, check Compress Archive.
Under Dependency Analyzer, select BI Beans Runtime, BC4J Runtime, UIX Runtime, JSP Runtime, Oracle JDBC and OLAP API 9x (depending on what database version you are running). Choose OK to complete the definition of the profile.
From the File menu, choose Save All to save the application.

You have successfully created a new deployment profile named bibeans.deploy.

To deploy the libraries to the OC4J server

In the System-Navigator, right-click the deployment profile bibeans.deploy under Project1.jpr and choose Deploy to.
Use the default filename of bibeans.jar and choose Save.
In the Deployment Log, identify where the bibeans.jar has been written to.
On the server machine, create a new directory named lib under <oc4j_home>/applications/webapp/webapp/WEB-INB
Copy the bibeans.jar file from the machine that is running JDeveloper to the server machine under the newly created libraries directory <oc4j_home>/applications/webapp/webapp/WEB-INB/lib. These libraries will be appended to the application classpath during runtime automatically.

please visit the website
http://otn.oracle.com/products/bib/htdocs/tutorials/building_a_jsp/9_deploy_JSP.html
下载代码方式:https://pan.quark.cn/s/a4b39357ea24 全国计算机等级考试二级教程《Python语言程序设计》(2018年版)被视为针对Python入门者和备考人员的核心学习材料。该资料汇总了教材内的所有编程练习答案,这些答案在Python 3.5.3环境中经过实际执行测试,从而保障了代码的准确性和应用价值。备考人员借助这些答案,能够评估自身的学习进度,并深入理解和熟练掌握Python编程的基础原理与方法。 1. Python基础理论:Python作为一门高级编程语言,因其简明扼要的语法结构和卓越的功能表现而备受推崇。基础内容涵盖了变量、数据种类(例如整型、浮点型、字符串、布尔型、列表、元组、字典、集合)、逻辑控制(比如条件判断if-else,循环控制for、while)、函数的声明及使用、模块的引入等。 2. Python高级应用:Python的进阶内容涉及异常管理(try-except-finally结构),类与实例(面向对象编程的基础,包含类的构造、对象的生成、属性与方法的运用、继承机制、多态表现),装饰器(用于调整函数或类的功能特性),上下文管理器(借助with语句实现资源管理)等。 3. 数据文件处理:Python配备了全面的文件操作功能,涉及文件的开启、数据读写、关闭操作,以及多种操作模式(例如r模式用于读取,w模式用于写入,a模式用于追加内容等)。此外,还包括文本文件与二进制文件的转换处理,以及文件的位置调整、复制和删除等操作。 4. 标准库的运用:Python的标准库资源极为丰富,比如os模块提供操作系统接口,sys模块用于获取系统参数,random模块可用于生成随机数值,datetime模块负责处...

3,499

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧