$ pwd /scratch/veseli/devel/tomcat/conf/Catalina/localhost $ cat FrontierCMS.xml <?xml version='1.0' encoding='utf-8'?> <Context debug="99" displayName="froNtier CMS Database Web Application" docBase="FrontierCMS" path="/FrontierCMS" reloadable="true"> <Resource auth="Container" name="jdbc/frontiercms" type="javax.sql.DataSource" url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=uscmsdb03.fnal.gov))(CONNECT_DATA=(SID=cmscald)))" driverClassName="oracle.jdbc.driver.OracleDriver" validationQuery="select * from dual" maxIdle="1" maxActive="2" maxWait="-1" username="cms_reader" password="reader" logAbandoned="true" /> </Context>
$ pwd
/scratch/veseli/devel/tomcat/webapps/FrontierCMS/WEB-INF
$ cat 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>
<display-name>Frontier 3</display-name>
<description>Frontier 3 - XSD v2, writing, finders, etc.</description>
<session-config>
<session-timeout>300</session-timeout> <!-- 300 minutes -->
</session-config>
<servlet>
<servlet-name>FrontierCMS</servlet-name>
<servlet-class>gov.fnal.frontier.FrontierServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FrontierCMS</servlet-name>
<url-pattern>/Frontier</url-pattern>
</servlet-mapping>
<resource-ref>
<description>
This is the refererence to the Oracle data source we
use to talk to the database configured in server.xml.
</description>
<res-ref-name>jdbc/frontiercms</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
$ pwd /scratch/veseli/devel/tomcat/webapps/FrontierCMS/WEB-INF/classes $ cat config.properties ServerName=FrontierCMS DataSourceName=jdbc/frontiercms XsdTableName=frontier_descriptors #MonitorNode=MonAlisa_server_node_name #MonitorMillisDelay=300000 UseFdoCache=no #CacheExpireHourOfDay=5 #CacheExpireSeconds=86400
$ tar zxvf frontier_client__2.7.0__src.tar.gz frontier_client__2.7.0__src/ ...
$ cd frontier_client__2.7.0__src $ make dist ...
$ cat ~/bin/coralscram
#!/bin/bash
case $SCRAM_ARCH in
*_dbg);;
*) export SCRAM_ARCH=${SCRAM_ARCH}_dbg;;
esac
exec /afs/cern.ch/sw/lcg/app/spi/scram/scram "$@"
$ coralscram project CORAL CORAL_1_6_2
...
$ cd CORAL_1_6_2/src
$ eval `coralscram runtime -sh`
$ export CVSROOT=:pserver:anonymous@coral.cvs.cern.ch:/cvs/coral
$ cvs co -r CORAL_1_6_2 FrontierAccess
...
$ cd FrontierAccess
$ coralscram build
Configuring Local Area
...
$ cd tests/CmsNewFrontier
$ unitTest_FrontierAccess_CmsNewFrontier
...
$ cd ../.. # if still in tests/CmsNewFrontier $ coralscram setup -i frontier_client ... (copy and paste the full path to your frontier_client__2.7.0__src/dist directory as the FRONTIER_CLIENT_BASE, and for all others copy and paste the value it does an "existence check" just before prompting.) ... $ eval `coralscram runtime -sh` $ coralscram build clean $ coralscram build Configuring Local Area ... $ cd tests/CmsNewFrontier $ unitTest_FrontierAccess_CmsNewFrontier ...