[Idrs-commit] CVS: Idrs/dev/xml rmlTrans.xml~,NONE,1.1 web.xml,NONE,1.1
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-08-23 00:48:04
|
Update of /cvsroot/idrs/Idrs/dev/xml
In directory usw-pr-cvs1:/tmp/cvs-serv4347
Added Files:
rmlTrans.xml~ web.xml
Log Message:
--- NEW FILE: rmlTrans.xml~ ---
<?xml version="1.0" encoding="UTF-8"?>
<trans:rmlTrans xmlns:trans="rmlTransSchema.xml">
<!-- define valid rml tags -->
<trans:rml simple="true" ownLine="false" >rml</trans:rml>
<trans:rml simple="true" ownLine="false" represent="isHtml" >ishtml</trans:rml>
<trans:rml simple="true" ownLine="false">scriptClass</trans:rml>
<trans:rml simple="false" ownLine="true" >head</trans:rml>
<trans:rml simple="true" ownLine="true" >object</trans:rml>
<trans:rml simple="true" ownLine="false" represent="className" >class</trans:rml>
<trans:rml simple="true" ownLine="true">constructor</trans:rml>
<trans:rml simple="true" ownLine="false" represent="varType" >vartype</trans:rml>
<trans:rml simple="true" ownLine="true">method</trans:rml>
<trans:rml simple="true" ownLine="false">name</trans:rml>
<trans:rml simple="true" ownLine="true">db</trans:rml>
<trans:rml simple="true" ownLine="false">dbDriver</trans:rml>
<trans:rml simple="true" ownLine="false">dbName</trans:rml>
<trans:rml simple="true" ownLine="false">dbUser</trans:rml>
<trans:rml simple="true" ownLine="false">dbPass</trans:rml>
<trans:rml simple="true" ownLine="false">useDb</trans:rml>
<trans:rml simple="true" ownLine="false">useMethod</trans:rml>
<trans:rml simple="true" ownLine="true" represent="SQL" >sql</trans:rml>
<trans:rml simple="true" ownLine="true">storedProc</trans:rml>
<trans:rml simple="true" ownLine="true">varlist</trans:rml>
<trans:rml simple="false" ownLine="true">body</trans:rml>
<trans:rml simple="true" ownLine="false">field</trans:rml>
<trans:rml simple="true" ownLine="false">src</trans:rml>
<trans:rml simple="true" ownLine="true">ifResults</trans:rml>
<trans:rml simple="false" ownLine="true">yes</trans:rml>
<trans:rml simple="false" ownLine="true" >no</trans:rml>
<trans:rml simple="false" ownLine="true">repeat</trans:rml>
<trans:rml simple="false" ownLine="true">ifChange</trans:rml>
<trans:rml simple="true" ownLine="false">inputResults</trans:rml>
<trans:rml simple="true" ownLine="false">setProps</trans:rml>
<!-- text tag -->
<trans:textTag>text</trans:textTag>
<!-- script tag -->
<trans:scriptTag>script</trans:scriptTag>
<!-- echo script tag -->
<trans:echoScriptTag>echoScript</trans:echoScriptTag>
<!-- Script tag char -->
<trans:scriptChar>$</trans:scriptChar>
<!-- Location of RML Schema -->
<trans:schemaLocation>rmlSchema.xml</trans:schemaLocation>
<!-- Names Space of RML -->
<trans:schemaNameSpace>rml</trans:schemaNameSpace>
</trans:rmlTrans>
--- NEW FILE: web.xml ---
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>idrs</servlet-name>
<servlet-class>net.sourceforge.idrs.core.servlet.IDRSServlet</servlet-class>
<!-- The following three parameters define what pooling system to use -->
<init-param>
<param-name>reportPool</param-name>
<param-value>net.sourceforge.idrs.pool.IDRSRepPool</param-value>
</init-param>
<init-param>
<param-name>scriptPool</param-name>
<param-value>net.sourceforge.idrs.pool.ScriptContextPool</param-value>
</init-param>
<init-param>
<param-name>dbPool</param-name>
<param-value>net.sourceforge.idrs.pool.JDBCPool</param-value>
</init-param>
<!-- Where errrors will be logged to -->
<init-param>
<param-name>errorLog</param-name>
<param-value>/var/log/servlet/error.log</param-value>
</init-param>
<!-- Each RML page will have it's own log file, this is where those logs are stored -->
<init-param>
<param-name>reportLogPath</param-name>
<param-value>/var/log/servlet</param-value>
</init-param>
<!-- This is the class that is used for embeded scripting.
This class must implement
net.sourceforge.idrs.script.embedable.IDRSScriptLanguage -->
<init-param>
<param-name>scriptClass</param-name>
<param-value>net.sourceforge.idrs.script.embedable.IDRSBeanShell</param-value>
</init-param>
<!-- Minimum Number of Script Conetexts -->
<init-param>
<param-name>minReports</param-name>
<param-value>5</param-value>
</init-param>
<!-- Maximum number of script contexts -->
<init-param>
<param-name>maxReports</param-name>
<param-value>100</param-value>
</init-param>
<!-- Maximum number of days a context is open before it is re-set -->
<init-param>
<param-name>daysReportsOpen</param-name>
<param-value>7</param-value>
</init-param>
<!-- The page that will be displayed when a user is denied access to an RML page -->
<init-param>
<param-name>accessDeniedPage</param-name>
<param-value>denied.html</param-value>
</init-param>
<!-- The page that will be displayed when an Exception occurrs -->
<init-param>
<param-name>errorPage</param-name>
<param-value>error.jsp</param-value>
</init-param>
<!-- This is the number of variables used in the app.
These variables are accessale through the Application object -->
<init-param>
<param-name>numVars</param-name>
<param-value>2</param-value>
</init-param>
<!-- These variables will be used in various tutorials -->
<init-param>
<param-name>varName1</param-name>
<param-value>companyOwnerl</param-value>
</init-param>
<init-param>
<param-name>varVal1</param-name>
<param-value>Jennifer Jennens</param-value>
</init-param>
<init-param>
<param-name>varName2</param-name>
<param-value>sysAdmin</param-value>
</init-param>
<init-param>
<param-name>varVal2</param-name>
<param-value>Mack Border</param-value>
</init-param>
<!-- This the physical directory of the IDRS' web application -->
<init-param>
<param-name>contextPath</param-name>
<param-value>/usr/local/tomcat/webapps/idrs</param-value>
</init-param>
<!-- This is where you can define any number of database connections. First give numDBs the value of how many connections there are, and then
repeat the dbDriver,dbName,dbAlias,dbUser,dbPass,minConns, maxConns, logPath and daysOpen with the current db number appended to the
name. For example, if I was connecting to another MySQL database named "idrs2" I would use the following setup
.
.
.
<init-param>
<param-name>dbName1</param-name>
<param-value>jdbc:mysql://localhost/idrs2</param-value>
</init-param>
.
.
.
Repeat this process for every connection needed.
-->
<init-param>
<param-name>numDBs</param-name>
<param-value>3</param-value>
</init-param>
<!-- The name of the class for the driver -->
<init-param>
<param-name>dbDriver1</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<!-- The URL for the database -->
<init-param>
<param-name>dbName1</param-name>
<param-value>jdbc:mysql://localhost/idrs_auth</param-value>
</init-param>
<!-- Username for the database -->
<init-param>
<param-name>dbUser1</param-name>
<param-value>root</param-value>
</init-param>
<!-- Password for teh database -->
<init-param>
<param-name>dbPass1</param-name>
<param-value></param-value>
</init-param>
<!-- The name of the database connection inside of RML pages -->
<init-param>
<param-name>dbAlias1</param-name>
<param-value>idrs-auth</param-value>
</init-param>
<!-- Minimum number of connections -->
<init-param>
<param-name>minConns1</param-name>
<param-value>1</param-value>
</init-param>
<!-- Maximum number of connections -->
<init-param>
<param-name>maxConns1</param-name>
<param-value>15</param-value>
</init-param>
<!-- Where the log file for this Database connection is -->
<init-param>
<param-name>logPath1</param-name>
<param-value>/var/log/servlet/idrs-auth</param-value>
</init-param>
<!-- Number of days the connection will remain open before being reset -->
<init-param>
<param-name>daysOpen1</param-name>
<param-value>1</param-value>
</init-param>
<!-- If your database forces all column names to lower case (Postgres) , this is nessassary -->
<init-param>
<param-name>toLower1</param-name>
<param-value>false</param-value>
</init-param>
<!-- The name of the class for the driver -->
<init-param>
<param-name>dbDriver2</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<!-- The URL for the database -->
<init-param>
<param-name>dbName2</param-name>
<param-value>jdbc:mysql://localhost/idrs_docs</param-value>
</init-param>
<!-- Username for the database -->
<init-param>
<param-name>dbUser2</param-name>
<param-value>root</param-value>
</init-param>
<!-- Password for teh database -->
<init-param>
<param-name>dbPass2</param-name>
<param-value></param-value>
</init-param>
<!-- The name of the database connection inside of RML pages -->
<init-param>
<param-name>dbAlias2</param-name>
<param-value>idrs-docs</param-value>
</init-param>
<!-- Minimum number of connections -->
<init-param>
<param-name>minConns2</param-name>
<param-value>1</param-value>
</init-param>
<!-- Maximum number of connections -->
<init-param>
<param-name>maxConns2</param-name>
<param-value>15</param-value>
</init-param>
<!-- Where the log file for this Database connection is -->
<init-param>
<param-name>logPath2</param-name>
<param-value>/var/log/servlet/idrs-docs</param-value>
</init-param>
<!-- Number of days the connection will remain open before being reset -->
<init-param>
<param-name>daysOpen2</param-name>
<param-value>1</param-value>
</init-param>
<!-- If your database forces all column names to lower case (Postgres) , this is nessassary -->
<init-param>
<param-name>toLower2</param-name>
<param-value>false</param-value>
</init-param>
<!-- The name of the class for the driver -->
<init-param>
<param-name>dbDriver3</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<!-- The URL for the database -->
<init-param>
<param-name>dbName3</param-name>
<param-value>jdbc:mysql://localhost/idrs_test</param-value>
</init-param>
<!-- Username for the database -->
<init-param>
<param-name>dbUser3</param-name>
<param-value>root</param-value>
</init-param>
<!-- Password for teh database -->
<init-param>
<param-name>dbPass3</param-name>
<param-value></param-value>
</init-param>
<!-- The name of the database connection inside of RML pages -->
<init-param>
<param-name>dbAlias3</param-name>
<param-value>idrs-test</param-value>
</init-param>
<!-- Minimum number of connections -->
<init-param>
<param-name>minConns3</param-name>
<param-value>1</param-value>
</init-param>
<!-- Maximum number of connections -->
<init-param>
<param-name>maxConns3</param-name>
<param-value>15</param-value>
</init-param>
<!-- Where the log file for this Database connection is -->
<init-param>
<param-name>logPath3</param-name>
<param-value>/var/log/servlet/idrs-test</param-value>
</init-param>
<!-- Number of days the connection will remain open before being reset -->
<init-param>
<param-name>daysOpen3</param-name>
<param-value>1</param-value>
</init-param>
<!-- If your database forces all column names to lower case (Postgres) , this is nessassary -->
<init-param>
<param-name>toLower3</param-name>
<param-value>false</param-value>
</init-param>
<!-- Determines the connection defined above which will be used for storing the RML pages -->
<init-param>
<param-name>docDB</param-name>
<param-value>idrs-docs</param-value>
</init-param>
<!-- Determines which connection will be used for authentication -->
<init-param>
<param-name>authDB</param-name>
<param-value>idrs-auth</param-value>
</init-param>
<!-- Tells the IDRS what port to listen to for reset requests -->
<init-param>
<param-name>resetPort</param-name>
<param-value>8888</param-value>
</init-param>
<!-- The IDRS allows for reset request to come from only one host,
This host must be either a host name or an IP address -->
<init-param>
<param-name>resetAllowedHost</param-name>
<param-value>127.0.0.1</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>idrsDeploy</servlet-name>
<servlet-class>net.sourceforge.idrs.deploy.HotDeploy</servlet-class>
<!-- The number of servers that need to be reset -->
<init-param>
<param-name>numServers</param-name>
<param-value>1</param-value>
</init-param>
<!-- Each server should be defined with a server tag and the number of the server. Note
that each server must accept reset requests from the app's host -->
<init-param>
<param-name>server1</param-name>
<param-value>127.0.0.1</param-value>
</init-param>
<!-- This tells the deployer what port the IDRS servers are listening to for reset requests -->
<init-param>
<param-name>port</param-name>
<param-value>8888</param-value>
</init-param>
<!-- Where the log for the deployments is -->
<init-param>
<param-name>logPath</param-name>
<param-value>/var/log/idrs/deploy.log</param-value>
</init-param>
<!-- The class of the database's driver -->
<init-param>
<param-name>dbClass</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<!-- The url of the database -->
<init-param>
<param-name>dbUrl</param-name>
<param-value>jdbc:mysql://localhost/idrs_docs</param-value>
</init-param>
<!-- The User of the database -->
<init-param>
<param-name>dbUser</param-name>
<param-value>root</param-value>
</init-param>
<!-- Password for database -->
<init-param>
<param-name>dbPass</param-name>
<param-value></param-value>
</init-param>
<!-- Macro to XML Parsing Schema -->
<init-param>
<param-name>parseClass</param-name>
<param-value>org.apache.xerces.parsers.SAXParser</param-value>
</init-param>
<!-- RML Schema -->
<init-param>
<param-name>schemaLocation</param-name>
<param-value>/usr/local/tomcat/webapps/idrs/WEB-INF/rmlSchema.xml</param-value>
</init-param>
<!-- RML Transofrmation Schema -->
<init-param>
<param-name>rmlTrans</param-name>
<param-value>/usr/local/tomcat/webapps/idrs/WEB-INF/rmlTrans.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>idrs</servlet-name>
<url-pattern>*.rml</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>idrsDeploy</servlet-name>
<url-pattern>/idrsDeploy</url-pattern>
</servlet-mapping>
<mime-mapping>
<extension>
rml
</extension>
<mime-type>
text/plain
</mime-type>
</mime-mapping>
</web-app>
|