Server Configuration Files and Document Type Declaration
Total Page:16
File Type:pdf, Size:1020Kb
APPENDIX A Server Configuration Files and Document Type Declaration In this appendix we'll identify the server configuration files for J2EE OC4J Standalone Edition installation and the corresponding DTD. Server Configuration Files In this section we'll identify key server configuration files, their location, and describe them. Location Located in the OC4J $0RACLE_HOME/j2ee/home/config directory. Files and Descriptions In the following sections we'll list each server configuration file, provide a description and DTD link, and show you a sample file. application.xml Description: Contains default J2EE application settings. DTD link: http: I /xmlns .oracle. com/ias/dtds/orion-application-9_04.dtd Sample: A sample application. xml file is provided. <?xml version="l. o" standalone="yes" ?> <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd"> <!-- The global application config that is the parent of all the other applications in this server. --> <orion-application autocreate-tables="true" default-data-source="jdbc/OracleDS"> <web-module id="defaultWebApp" path=" •• / •• /home/default-web-app"/> <web-module id="dmso" path=" •• / • ./home/applications/dmso.war"/> <web-module id="dms" path=" •• / • ./home/applications/dms.war"/> <commit-coordinator> <commit-class class="com.evermind.server.OracleTwoPhaseCommitDriver"/> <property name="datasource" value="jdbc/OracleDS"/> 497 498 APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION <!-- Username and password are the optional properties replace with your commit_co-ordinator_super_user <property name="username" value="system" I> <property name="password" value="->pwForSystem" I> --> </commit-coordinator> <persistence path=" .. /persistence"/> <!-- Path to the libraries that are installed on this server. These will accesible for the servlets, EJBs etc --> <library path=" .. /applib"/> <library path=" .. / .. 1 .. /sqlj/lib"/> <library path=" .. / .. / .. /rdbms/jlib/xsu12.jar"/> <library path=" . ./ .. / .. /lib/dsv2.jar"/> <!-- Path to the taglib directory that is shared among different applications. --> <library path=" .. /jsp/lib/taglib"l> <!-- Comment out the jazn element to use principals. When both jazn and principals are present jazn is used --> <principals path="./principals.xml"/> <log> <file path=" .. /log/global-application.log"/> </log> <jazn provider="XML" location="./jazn-data.xml"l> <data-sources path="data-sources.xml"/> <connectors path="./oc4j-connectors.xml"/> <namespace-access> <read-access> <namespace-resource root=""> <security-role-mapping> <group name="administrators"l> </security-role-mapping> </namespace-resource> <!read-access> <write-access> <namespace-resource root=""> <security-role-mapping> <group name="administrators"/> </security-role-mapping> </namespace-resource> </write-access> </namespace-access> </orion-application> APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION 499 data-sources.xml Description: Allows configuration of JDBC Data Sources. DID link: http: I /xmlns .oracle. com/ias/dtds/data-sources-9_04.dtd Sample: A sample data-sources. xml file is provided. <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd"> <data-sources> <!-- An example/default DataSource that uses Oracle JDBC-driver to create the connections. This tag creates all the needed kinds of data-sources, transactional, pooled and EJB-aware sources. The source generally used in application code is the "EJB" one - it provides transactional safety and connection pooling. Oracle thin driver could be used as well, like below. url="jdbc:oracle:thin:@host:port:sid" --> <data-source class="com.evermind.sql.DriverManagerDataSource" name="OracleDS" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="->pwForScott" url="jdbc:oracle:thin:@localhost:1521:oracle" inactivity-timeout="30" I> </data-sources> global-web-application.xml Description: Contains default web application settings. DID link: http: I /xmlns. oracle. com/ias/dtds/orion-web-9_04.dtd Sample: A sample global-web-application. xml file is provided. <?xml version="l.O" standalone="yes"?> <!DOCTYPE orion-web-app PUBLIC '//Evermind//Orion web-application' 'http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd'> <orion-web-app jsp-cache-directory="./persistence" servlet-webdir="/servlet" development="false" jsp-timeout="O"> <!-- The mime-mappings for this server --> 500 APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION <mime-mappings path="./mime.types"l> <web-app> <! -- <servlet> <servlet-name>xsl</servlet-name> <servlet-class>com.evermind.servlet.XSLServlet</servlet-class> <init-param> <param-name>defaultContentType</param-name> <param-value>text/html</param-value> <linit-param> </servlet> --> <servlet> <servlet-name>jsp</servlet-name> <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class> <!--you can disable page scope listener if you don't need this function. --> <init-param> <param-name>check_page_scope</param-name> <param-value>true</param-value> </init-param> <load-on-startup>O</load-on-startup> <!-- you can set main_mode to "justrun" to speed up JSP dispatching, if you don't need to recompile your JSP anymore. You can always switch your main mode. Please see our doc for details --> <! -- <init-param> <param-name>main_mode</param-name> <param-value>justrun</param-value> <linit-param> --> <lservlet> <servlet> <servlet-name>rmi</servlet-name> <servlet-class>com.evermind.server.rmi.RMIHttpTunnelServlet</servlet- class> </servlet> <servlet> <servlet-name>rmip</servlet-name> <servlet class>com.evermind.server.rmi.RMIHttpTunnelProxyServlet</servlet-class> </servlet> <servlet> <servlet-name>ssi</servlet-name> <servlet-class>com.evermind.server.http.SSIServlet</servlet-class> </servlet> APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION 501 <servlet> <servlet-name>cgi</servlet-name> <servlet-class>com.evermind.server.http.CGIServlet</servlet-class> <lservlet> <servlet> <servlet-name>perl</servlet-name> <servlet-class>com.evermind.server.http.CGIServlet</servlet-class> <init-param> <param-name>interpreter</param-name> <param-value>perl</param-value> </init-param> </servlet> <servlet> <servlet-name>php</servlet-name> <servlet-class>com.evermind.server.http.CGIServlet</servlet-class> <init-param> <param-name>interpreter</param-name> <param-value>php</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>rmi</servlet-name> <url-pattern>/*.tunnelrmi</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>rmip</servlet-name> <url-pattern>/*.tunnelrmip</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>/*.jsp</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>/*.JSP</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>/*.jspx</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>/*.sqljsp</url-pattern> </servlet-mapping> <servlet-mapping> 502 APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION <servlet-name>jsp</servlet-name> <url-pattern>/*.SQLJSP</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/*.cgi</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>perl</servlet-name> <url-pattern>/*.pl</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>php</servlet-name> <url-pattern>/*.php</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>php</servlet-name> <url-pattern>/*.php3</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>php</servlet-name> <url-pattern>/*.phtml</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ssi</servlet-name> <url-pattern>/*.shtml</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> </orion-web-app> http-web-site.xml Description: Allows configuration of ports, virtual hosts, default web applications, SSL, and other web settings. DID link: http: I /xmlns. oracle. com/ ias/dtds/web- site-9 _ 04. dtd Sample: A sample http-web-site. xml file is provided. <?xml version="l.o"?> <!DOCTYPE web-site PUBLIC "-//Oracle//DTD OC4J Web-site 9.04//EN" "http://xmlns.oracle.com/ias/dtds/web-site-9_04.dtd"> <web-site port="11999" display-name="Oracle9iAS Containers for J2EE HTTP Web Site"> <default-web-app application="default" name="defaultWebApp" /> <web-app application="default" name="dmso" root="/dmso" I> APPENDIX A SERVER CONFIGURATION FILES AND DOCUMENT TYPE DECLARATION 503 <web-app application="default" name="dms" root="/dmsoc4j" I> <web-app application="default" name="admin_web" root="/adminoc4j" I> <web-app application="petstore" name="petstore" load-on-startup="true" root="/petstore" I> <access-log path=" .. /log/http-web-access.log" I> </web-site> internal-settings.xml Description: Contains RMI-IIOP settings. DID link: http:/ /xmlns.oracle.com/ias/dtds/internal-settings-9_04.dtd Sample: A sample internal-settings. xml file is provided. <?xml version="l.O" standalone= 1 yes 1 ?> <!DOCTYPE internal-settings PUBLIC "-//Oracle//DTD OC4J Internal Settings 9.04//EN" "http://xmlns.oracle.com/ias/dtds/internal-settings-9_04.dtd"> <internal-settings> <!-- IIOP