我的系统是IBM RS6000 AIX 4.33
database是oracle8.1.7
Oracle9ias当然在另一台机器上,现已经安装了Enterprise Edition
现在不知如何配置Servlets才能使其带的Apache支持JSP???
请各位高手帮忙!!!!分不够可能再加!!!急!!!!

解决方案 »

  1.   

    Restart the Oracle 9iAS Containers for J2EE (OC4J) Server 
    under <oc4j_home>
    java -jar oc4j.jarSpecify 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 serverRight-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 librariesIn 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 serverIn 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
      

  2.   

    OC4j是应用服务器,它的功能当然非常全面.但是我这里不希望使用应用服务器,而直接通过Apache使用JSP。请问这种方法可行吗?是否一定需要使用应用服务器?