From 1c900609d64445040e8c5bdbfa01ae1a0f563f43 Mon Sep 17 00:00:00 2001 From: gregor Date: Wed, 28 Feb 2007 13:17:57 +0000 Subject: Initial commit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@806 d688527b-c9ab-4aba-bd8d-4036d912da1d --- erecht.client.ss/data/conf/log4j.properties | 22 +++ .../conf/moa-ss-erecht-client.config.properties | 37 ++++++ erecht.client.ss/data/conf/tomcat/server.xml | 147 +++++++++++++++++++++ erecht.client.ss/data/conf/tomcat/unix/moa-env.sh | 11 ++ .../data/conf/tomcat/win32/starttomcat.bat | 38 ++++++ .../data/conf/tomcat/win32/stoptomcat.bat | 24 ++++ 6 files changed, 279 insertions(+) create mode 100644 erecht.client.ss/data/conf/log4j.properties create mode 100644 erecht.client.ss/data/conf/moa-ss-erecht-client.config.properties create mode 100644 erecht.client.ss/data/conf/tomcat/server.xml create mode 100644 erecht.client.ss/data/conf/tomcat/unix/moa-env.sh create mode 100644 erecht.client.ss/data/conf/tomcat/win32/starttomcat.bat create mode 100644 erecht.client.ss/data/conf/tomcat/win32/stoptomcat.bat (limited to 'erecht.client.ss/data/conf') diff --git a/erecht.client.ss/data/conf/log4j.properties b/erecht.client.ss/data/conf/log4j.properties new file mode 100644 index 000000000..7a5b44b1d --- /dev/null +++ b/erecht.client.ss/data/conf/log4j.properties @@ -0,0 +1,22 @@ +# +# Sample log4j configuration for the MOA-SS E-Recht Client web service +# + +# Configure root logger and loggers for moa-spss +log4j.rootLogger=info, stdout +log4j.logger.erechtclient=debug, moasse + +# Configure the 'stdout' appender to write logging output to the console +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c | %10t | %m%n + +# Configure the 'moasse' appender to write moa ss e-recht client related logging output +# to the file 'logs/moa-ss-erecht-client.log'. The file is rolled over every 1000KB, +# and a maximum history of 10 log files is being kept. +log4j.appender.moasse=org.apache.log4j.RollingFileAppender +log4j.appender.moasse.File=${catalina.base}/logs/moa-ss-erecht-client.log +log4j.appender.moasse.MaxFileSize=1000KB +log4j.appender.moasse.MaxBackupIndex=10 +log4j.appender.moasse.layout=org.apache.log4j.PatternLayout +log4j.appender.moasse.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c | %10t | %m%n diff --git a/erecht.client.ss/data/conf/moa-ss-erecht-client.config.properties b/erecht.client.ss/data/conf/moa-ss-erecht-client.config.properties new file mode 100644 index 000000000..d2b8c47ab --- /dev/null +++ b/erecht.client.ss/data/conf/moa-ss-erecht-client.config.properties @@ -0,0 +1,37 @@ +# Hostname und Port des Webservers, über den der Kern des E-Recht Signaturclients +# vom Benutzer erreicht werden kann (in der Regel also der Apache Tomcat) +location.webAppHostPort = http://localhost:8084 + +# Hostname und Port des Webservers, über den der Kern des E-Recht Signaturclients +# von MOA SS erreicht werden kann (in der Regel also der Apache Tomcat) +location.webAppHostPortFromMOASS = http://localhost:8084 + +# Lage des Default-Stylesheets für den Signaturerstellungsrequest für das MOA SS +# Webservice; die Angabe muss als Pfad relativ zur Root der Webapplikation für den +# E-Recht Signaturclient gemacht werden +location.ss.stylesheet = /static/erecht.stylesheet.1-9-0.xsl + +# Zugangspunkt für das MOA SS Signaturservice +service.ss.endpoint = http://localhost:8081/moa-spss/services/SignatureCreation + +# Bezeichner des von MOA SS verwalteten Signaturschlüssels, mit dem der E-Recht +# Client Rechtsdokumente signieren lassen soll +service.ss.keyIdentifier = KG_allgemein + +# DIESE EIGENSCHAFT BRAUCHT IM NORMALFALL NICHT VERÄNDERT WERDEN +# Lage der XML-Schema Datei für das MOA SP/SS Webservice; die Angabe muss als +# Pfad relativ zur Root der Webapplikation für den E-Recht Signaturclient gemacht +# werden +location.schema.moa = /WEB-INF/classes/resources/schemas/MOA-SPSS-1.3.xsd + +# DIESE EIGENSCHAFT BRAUCHT IM NORMALFALL NICHT VERÄNDERT WERDEN +# Lage des Templates für den Signaturerstelltungsrequest für das MOA SS Webservice; +# die Angabe muss als Pfad relativ zur Root der Webapplikation für den E-Recht +# Signaturclient gemacht werden +location.ss.requestTemplate = /WEB-INF/classes/resources/templates/CreateRequest.xml + +# DIESE EIGENSCHAFT BRAUCHT IM NORMALFALL NICHT VERÄNDERT WERDEN +# Lage des temporären Arbeitsverzeichnisses für die Webapplikation des E-Recht +# Signaturclients für MOA SS. Wird ein relativer Pfad angegeben, wird dieser als +# relativ zur Lage der Webapplikation im Servlet Container interpretiert. +location.tempdir = /workdir/temp/ diff --git a/erecht.client.ss/data/conf/tomcat/server.xml b/erecht.client.ss/data/conf/tomcat/server.xml new file mode 100644 index 000000000..0b3d040cf --- /dev/null +++ b/erecht.client.ss/data/conf/tomcat/server.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/erecht.client.ss/data/conf/tomcat/unix/moa-env.sh b/erecht.client.ss/data/conf/tomcat/unix/moa-env.sh new file mode 100644 index 000000000..c839bf214 --- /dev/null +++ b/erecht.client.ss/data/conf/tomcat/unix/moa-env.sh @@ -0,0 +1,11 @@ +# E-Recht signature client for MOA SS configuration properties file +MOA_SS_CLIENT_CFG_HOME=$CATALINA_BASE/conf/moa-ss-erecht-client +PARAM_SSCLIENTCONFIG=-Dat.gv.egovernment.moa.ss.erechtclient.PropertiesLocation=$MOA_SS_CLIENT_CFG_HOME/moa-ss-erecht-client.config.properties + +# E-Recht signature client for MOA SS log4j configuration file +MOA_SS_CLIENT_LOG4J_HOME=$CATALINA_BASE/conf/moa-ss-erecht-client +PARAM_LOGGING=-Dlog4j.configuration=file:$MOA_SS_CLIENT_LOG4J_HOME/log4j.properties + +export CATALINA_OPTS="$PARAM_SSCLIENTCONFIG $PARAM_LOGGING" + +echo CATALINA_OPTS=$CATALINA_OPTS diff --git a/erecht.client.ss/data/conf/tomcat/win32/starttomcat.bat b/erecht.client.ss/data/conf/tomcat/win32/starttomcat.bat new file mode 100644 index 000000000..6ba746a5c --- /dev/null +++ b/erecht.client.ss/data/conf/tomcat/win32/starttomcat.bat @@ -0,0 +1,38 @@ +rem ---------------- +rem Java home +rem ---------------- + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Java endorsed directory +rem If not set, the catalina scripts default applies (%CATALINA_HOME%/common/endorsed) +rem set JAVA_ENDORSED_DIRS= + +rem ---------------- +rem Tomcat config +rem ---------------- + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem Tomcat 4.1.x base directory (no trailing path separator) +rem If you do not work with bases, please set base directory to CATALINA_HOME +set CATALINA_BASE=%CATALINA_HOME% + +rem ------------------------------------------ +rem E-Recht signature client for MOA SS config +rem ------------------------------------------ + +rem E-Recht signature client for MOA SS configuration properties file +set MOA_SS_CLIENT_CFG_HOME=%CATALINA_BASE%\conf\moa-ss-erecht-client +set PARAM_SSCLIENTCONFIG=-Dat.gv.egovernment.moa.ss.erechtclient.PropertiesLocation=%MOA_SS_CLIENT_CFG_HOME%\moa-ss-erecht-client.config.properties + +rem E-Recht signature client for MOA SS log4j configuration file +set MOA_SS_CLIENT_LOG4J_HOME=%CATALINA_BASE%\conf\moa-ss-erecht-client +set PARAM_LOGGING=-Dlog4j.configuration=file:%MOA_SS_CLIENT_LOG4J_HOME%\log4j.properties + +set CATALINA_OPTS=%PARAM_SSCLIENTCONFIG% %PARAM_LOGGING% + +cd %CATALINA_HOME% +bin\catalina.bat run diff --git a/erecht.client.ss/data/conf/tomcat/win32/stoptomcat.bat b/erecht.client.ss/data/conf/tomcat/win32/stoptomcat.bat new file mode 100644 index 000000000..0c33e43ee --- /dev/null +++ b/erecht.client.ss/data/conf/tomcat/win32/stoptomcat.bat @@ -0,0 +1,24 @@ +rem ---------------- +rem Java home +rem ---------------- + +rem JDK home directory (no trailing path separator) +set JAVA_HOME= + +rem Java endorsed directory +rem If not set, the catalina scripts default applies (%CATALINA_HOME%/common/endorsed) +rem set JAVA_ENDORSED_DIRS= + +rem ---------------- +rem Tomcat config +rem ---------------- + +rem Tomcat 4.1.x home directory (no trailing path separator) +set CATALINA_HOME= + +rem Tomcat 4.1.x base directory (no trailing path separator) +rem If you do not work with bases, please set base directory to CATALINA_HOME +set CATALINA_BASE=%CATALINA_HOME% + +cd %CATALINA_HOME% +bin\catalina.bat stop \ No newline at end of file -- cgit v1.2.3