Where The Streets Have No Name

OC4J 10g R3 (10.1.3.0.0) Deploy 본문

Developement/Java

OC4J 10g R3 (10.1.3.0.0) Deploy

highheat 2007. 1. 10. 10:08
http://forums.oracle.com/forums/thread.jspa?messageID=1568737&#1568737

1. Edit the j2ee/home/config/application.xml file.
2. Add a new <web-module> entry of the form below, pointinto the path to the toplevel directory of your web module:

<web-module id="<web-module-name>" path="<path-to-web-module>" />

This "deploys" the specified web module as an element of the "default" application.

3. Save the file.
4. Edit the j2ee/home/config/default-web-site.xml file
5. Add a new <web-app> entry of the form below

<web-app application="default" name="<web-module-name>" root="/<context-root>" />

where the <web-module-name> maps to the same web-module-name entry in the application.xml file.

Note that the application attribute here has to be "default" if you deploy the application using the application.xml file as shown above.

6. Save the file.
7. Start the server.
8. Access the web module using the context root you set.

새로운 port를 부여해서 web application deploy

1. application.xml에 <web-module id="testWebApp" path="c:\test_pjt\web" /> 추가

2. server.xml에 <web-site path="./test-web-site.xml" /> 추가

3. default-web-site.xml을 test-web-site.xml로 복사

4. test-web-site.xml에
  <default-web-app application="default" name="testWebApp" /> 
  <web-app application="default" name="testWebApp" root="/" access-log="true" load-on-startup="true" />
 

  추가
  새로운 port정의(예:9999)

5. brower에서 http://localhost:9999/로 접속

13 Deploying Web Applications from Eclipse