ITPUB??ì3
新一届的微软MVP评选已经开始,欢迎各位推荐!
ITPUB论坛 » Oracle Application Server套件 » 问一个关于oracleAs的初级问题

标题: 问一个关于oracleAs的初级问题
离线 出门请戴口罩
初级会员



精华贴数 0
个人空间 0
技术积分 32 (38203)
社区积分 0 (232522)
注册日期 2004-12-21
论坛徽章:0
      
      

发表于 2007-11-30 11:25 
问一个关于oracleAs的初级问题

oracleAs部署一个jsp web application(无ejb)时候,能不能类似tomcat一样可以在%TOMCAT_HOME%/conf/server.xml通过类似以下方式来部署
<Context path="/mywebapp" reloadable="true" docBase="E:\mywebappdir" workDir="E:\mywebapp\work" >
</Context>

oracleAs的对应方式如何?不是通过em来发布


只看该作者    顶部
离线 wzy25
黑骑士



精华贴数 34
个人空间 0
技术积分 32800 (24)
社区积分 564 (1310)
注册日期 2001-12-14
论坛徽章:31
现任管理团队成员ITPUB元老管理团队2007贡献徽章参与2007年甲骨文全球大会(中国上海)纪念月度精华徽章ITPUB北京香山2007年会纪念徽章
管理团队2006纪念徽章会员2007贡献徽章会员2006贡献徽章授权会员2008年新春纪念徽章生肖徽章2007版:鸡

发表于 2007-11-30 12:12 
手工修改配置文件即可。


__________________
wrong_x@hotmail.com
http://wzy25.itpub.net
提供保险核心业务系统咨询,评估业务。提供上海北京及北京周边地区oracle db,oracle as,weblogic技术支持,培训
只看该作者    顶部
离线 出门请戴口罩
初级会员



精华贴数 0
个人空间 0
技术积分 32 (38203)
社区积分 0 (232522)
注册日期 2004-12-21
论坛徽章:0
      
      

发表于 2007-11-30 12:56 
wzy25兄,你好
请帮我看一下配置文件

oc4j_opmn.xml:

<ias-component id="default_group">
    <process-type id="home" module-id="OC4J" status="enabled">
      <module-data>
        <category id="start-parameters">
          <data id="java-options" value="-Xrs -server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
        </category>
        <category id="stop-parameters">
          <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
        </category>
      </module-data>
      <start   timeout="600" retry="2"/>
      <stop    timeout="120"/>
      <restart timeout="720" retry="2"/>
      <port id="default-web-site" range="12501-12600" protocol="ajp"/>
      <port id="mywebapp-web-site" range="80" protocol="http"/>
      <port id="rmi" range="12401-12500"/>
      <port id="rmis" range="12701-12800"/>
      <port id="jms" range="12601-12700"/>
      <process-set id="default_group" numprocs="1"/>
    </process-type>

_______________________________________________________________________________________________
mywebapp-web-site.xml:

<?xml version="1.0"?>

<web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd" host="172.31.0.22" port="80" protocol="http" display-name="mywebapp" schema-major-version="10" schema-minor-version="0" >
        <default-web-app application="mywebapp" name="E:\mywebapp" root="/mywebapp" />
</web-site>


</ias-component>


____________________________________________________________________________________________

server.xml:

<?xml version="1.0"?>

<application-server  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/application-server-10_1.xsd"  localhostIsAdmin="true"
application-directory="../applications"
check-for-updates="adminClientOnly"
deployment-directory="../application-deployments"
connector-directory="../connectors"
schema-major-version="10" schema-minor-version="0" >
        <shared-library name="global.libraries" version="1.0" library-compatible="true">
                <code-source path="../applib"/>
        </shared-library>
        <shared-library name="global.tag.libraries" version="1.0" library-compatible="true">
                <code-source path="../../home/jsp/lib/taglib/"/>
                <code-source path="../../../j2ee/home/jsp/lib/taglib/"/>
                <code-source path="../../../lib/dsv2.jar"/>
                <import-shared-library name="oracle.xml"/>
                <import-shared-library name="oracle.jdbc"/>
                <import-shared-library name="oracle.cache"/>
                <import-shared-library name="soap"/>
        </shared-library>
        <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
                <code-source path="../../../toplink/jlib/toplink-essentials.jar"/>
                <import-shared-library name="oracle.jdbc"/>
        </shared-library>
        <shared-library name="oracle.expression-evaluator" version="10.1.3.1" library-compatible="true">
                <code-source path="E:/OracleAS/jlib/commons-el.jar"/>
                <code-source path="E:/OracleAS/jlib/oracle-el.jar"/>
                <code-source path="E:/OracleAS/jlib/jsp-el-api.jar"/>
        </shared-library>
        <shared-library name="adf.oracle.domain" version="10.1.3.1" library-compatible="true">
                <code-source path="E:/OracleAS/BC4J/lib"/>
                <code-source path="E:/OracleAS/jlib/commons-cli-1.0.jar"/>
                <code-source path="E:/OracleAS/mds/lib/concurrent.jar"/>
                <code-source path="E:/OracleAS/mds/lib/mdsrt.jar"/>
                <code-source path="E:/OracleAS/jlib/share.jar"/>
                <code-source path="E:/OracleAS/jlib/regexp.jar"/>
                <code-source path="E:/OracleAS/jlib/xmlef.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adfmtl.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adfui.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adf-connections.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/dc-adapters.jar"/>
                <code-source path="E:/OracleAS/ord/jlib/ordim.jar"/>
                <code-source path="E:/OracleAS/ord/jlib/ordhttp.jar"/>
                <code-source path="E:/OracleAS/jlib/ojmisc.jar"/>
                <code-source path="E:/OracleAS/jlib/jdev-cm.jar"/>
                <code-source path="E:/OracleAS/lib/xsqlserializers.jar"/>
                <import-shared-library name="oracle.xml"/>
                <import-shared-library name="oracle.jdbc"/>
                <import-shared-library name="oracle.gdk"/>
                <import-shared-library name="oracle.cache"/>
                <import-shared-library name="oracle.dms"/>
                <import-shared-library name="oracle.sqlj"/>
                <import-shared-library name="oracle.toplink"/>
                <import-shared-library name="oracle.ws.core"/>
                <import-shared-library name="oracle.ws.client"/>
                <import-shared-library name="oracle.xml.security"/>
                <import-shared-library name="oracle.ws.security"/>
                <import-shared-library name="oracle.ws.reliability"/>
                <import-shared-library name="oracle.jwsdl"/>
                <import-shared-library name="oracle.http.client"/>
                <import-shared-library name="oracle.expression-evaluator"/>
        </shared-library>
        <shared-library name="adf.generic.domain" version="10.1.3.1" library-compatible="true">
                <code-source path="E:/OracleAS/BC4J/jlib/bc4jdomgnrc.jar"/>
                <code-source path="E:/OracleAS/BC4J/lib"/>
                <code-source path="E:/OracleAS/jlib/commons-cli-1.0.jar"/>
                <code-source path="E:/OracleAS/mds/lib/concurrent.jar"/>
                <code-source path="E:/OracleAS/mds/lib/mdsrt.jar"/>
                <code-source path="E:/OracleAS/jlib/share.jar"/>
                <code-source path="E:/OracleAS/jlib/regexp.jar"/>
                <code-source path="E:/OracleAS/jlib/xmlef.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adfmtl.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adfui.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/adf-connections.jar"/>
                <code-source path="E:/OracleAS/BC4J/jlib/dc-adapters.jar"/>
                <code-source path="E:/OracleAS/ord/jlib/ordim.jar"/>
                <code-source path="E:/OracleAS/ord/jlib/ordhttp.jar"/>
                <code-source path="E:/OracleAS/jlib/ojmisc.jar"/>
                <code-source path="E:/OracleAS/jlib/jdev-cm.jar"/>
                <code-source path="E:/OracleAS/lib/xsqlserializers.jar"/>
                <import-shared-library name="oracle.xml"/>
                <import-shared-library name="oracle.jdbc"/>
                <import-shared-library name="oracle.gdk"/>
                <import-shared-library name="oracle.cache"/>
                <import-shared-library name="oracle.dms"/>
                <import-shared-library name="oracle.sqlj"/>
                <import-shared-library name="oracle.toplink"/>
                <import-shared-library name="oracle.ws.core"/>
                <import-shared-library name="oracle.ws.client"/>
                <import-shared-library name="oracle.xml.security"/>
                <import-shared-library name="oracle.ws.security"/>
                <import-shared-library name="oracle.ws.reliability"/>
                <import-shared-library name="oracle.jwsdl"/>
                <import-shared-library name="oracle.http.client"/>
                <import-shared-library name="oracle.expression-evaluator"/>
        </shared-library>
        <rmi-config path="./rmi.xml" />
        <jms-config path="./jms.xml" />
        <javacache-config path="../../../javacache/admin/javacache.xml" />
        <j2ee-logging-config path="./j2ee-logging.xml" />
        <log>
                <file path="../log/server.log" />
        </log>
        <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" extdirs="E:\OracleAS\jdk\jre\lib\ext" />
        <global-application name="default" path="application.xml" parent="system" start="true" />
        <application name="javasso" path="../../home/applications/javasso.ear" parent="default" start="false" />
        <application name="ascontrol" path="../../home/applications/ascontrol.ear" parent="system" start="true" />
        <application name="datatags" path="../../home/applications/datatags.ear" parent="default" start="true" />
        <application name="WSIL-App" path="../applications\WSIL-App.ear" parent="default" start="true" />
        <global-web-app-config path="global-web-application.xml" />
        <transaction-manager-config path="transaction-manager.xml" />
        <web-site default="true" path="./default-web-site.xml" />
        <web-site path="./mywebapp-web-site.xml" />
        <cluster  id="1766447232" />
</application-server>



我想要这个站点是个文件夹,而不是一个war


只看该作者    顶部
离线 dakula
初级会员



精华贴数 0
个人空间 0
技术积分 64 (23009)
社区积分 0 (123117)
注册日期 2004-7-8
论坛徽章:0
      
      

发表于 2007-12-1 21:09 
Deploying With Exploded Directory Format

For deploying EJB or complex J2EE applications, you can place the files in its own directory under the applications/ directory. The directory structure is similar as designated for an EAR file. Replace a directory name where the EJB JAR file or Web application WAR file would exist. Deposit the classes where they belong in a directory structure that maps to their package structure. This structure is displayed in following:

Figure1   Development Application Directory Structure
applications (location: j2ee\<oc4j instance name>\)
`------<appname>
       |-------META-INF
       |       `-------application.xml
       |
       |-------ejb
       |       |-------EJB classes (my.ejb.class maps to /my/ejb/class)
       |       `-------META-INF
       |               `-------ejb-jar.xml   
       |-------web
       |        |-------index.html
       |        |-------JSP pages
       |        `-------WEB-INF
       |                |----web.xml
       |                `----classes
       |                     `-------Servlet classes (my.servlet to /my/servlet)
        `-------client
                |-------Client classes
                `-------META-INF
                        |-------application-client.xml
                        `-------orion-application-client.xml



Modify the server.xml, applications.xml, and default-web-site.xml files as stated below:

In server.xml (location: j2ee\<oc4j instance name>\config), add a new or modify the existing <application name=... path=... auto-start="true" /> entry for each J2EE application. The path should be the parent directory where the META-INF for the J2EE application. In our example in Figure 1, if <appname> is "myapp", the path would be as follows:
<application_name="myapp" path="../applications/myapp" parent="default" start="true"/>

In application.xml (location: j2ee\<oc4j instance name>\applications\<appname>\META-INF), modify the <module> elements to contain directories for the Web application, the EJB application, and any client code contained within the exploded directory. This may mean you modify the <web-uri>, the <ejb>, and the <client> elements. The path included in these elements should be relative to the applications/ directory and the parent of the WEB-INF or META-INF directories in each of these application types. The following modifies the <web-uri> for the Web aplication contained within the "myapp" application:
<module>
  <web>
<web-uri>web</web-uri>
<context-root>web</context-root>
</web>
</module>

In default-web-site.xml (location: j2ee\<oc4j instance name>\config), you add a <web-app ...> entry for each Web application. This is extremely important, because it binds the Web application within the Web site. The application variable should be the same value as provided in the server.xml file. The <name> should be the directory for the Web application. Note that the directory path given in the name element follows the same rules as designated for the path in the <web-uri> element in application.xml.

For Web application binding for the myapp Web application, add the following:

<web-app application="myapp" name="web" load-on-startup="true" root=" /web" />


Last step: restart OC4J.


只看该作者    顶部
 
    

相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问