Commit 2c3a8d7d6e6bab270686fd1144473003c364b435

Authored by m.veroni
1 parent 9fe82880

Versione 1.0.0

git-svn-id: http://svn.softecspa.it/desktopmate/DesktopMate%202.0/FileProxyServer/trunk@13298 edf0334f-4afc-450a-8f92-fe1409970e7d
Showing 253 changed files with 18221 additions and 0 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 253 files are displayed.

.classpath 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0"/>
  4 + <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/>
  5 + <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
  6 + <classpathentry kind="lib" path="lib/amazon.s3/lib.required/stax-1.2.0.jar">
  7 + <attributes>
  8 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  9 + </attributes>
  10 + </classpathentry>
  11 + <classpathentry kind="lib" path="lib/amazon.s3/lib.required/stax-api-1.0.1.jar">
  12 + <attributes>
  13 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  14 + </attributes>
  15 + </classpathentry>
  16 + <classpathentry kind="lib" path="lib/amazon.s3/aws-java-sdk-1.0.11.jar" sourcepath="C:/Documents and Settings/m.veroni/.m2/repository/com/amazonaws/aws-java-sdk/1.0.11/aws-java-sdk-1.0.11-sources.jar">
  17 + <attributes>
  18 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  19 + </attributes>
  20 + </classpathentry>
  21 + <classpathentry kind="lib" path="lib/uploadbean/cos.jar">
  22 + <attributes>
  23 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  24 + </attributes>
  25 + </classpathentry>
  26 + <classpathentry kind="lib" path="lib/uploadbean/struts.jar">
  27 + <attributes>
  28 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  29 + </attributes>
  30 + </classpathentry>
  31 + <classpathentry kind="lib" path="lib/uploadbean/uploadbean.jar">
  32 + <attributes>
  33 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  34 + </attributes>
  35 + </classpathentry>
  36 + <classpathentry kind="lib" path="lib/java-apns/apns-0.1.5-jar-with-dependencies.jar" sourcepath="lib/java-apns/java-apns.zip">
  37 + <attributes>
  38 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  39 + </attributes>
  40 + </classpathentry>
  41 + <classpathentry kind="lib" path="lib/common/activation-1.1.jar">
  42 + <attributes>
  43 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  44 + </attributes>
  45 + </classpathentry>
  46 + <classpathentry kind="lib" path="lib/common/commons-codec-1.3.jar">
  47 + <attributes>
  48 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  49 + </attributes>
  50 + </classpathentry>
  51 + <classpathentry kind="lib" path="lib/common/commons-fileupload-1.0.jar">
  52 + <attributes>
  53 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  54 + </attributes>
  55 + </classpathentry>
  56 + <classpathentry kind="lib" path="lib/common/commons-httpclient-3.0-rc1.jar">
  57 + <attributes>
  58 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  59 + </attributes>
  60 + </classpathentry>
  61 + <classpathentry kind="lib" path="lib/common/commons-logging-1.1.1.jar">
  62 + <attributes>
  63 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  64 + </attributes>
  65 + </classpathentry>
  66 + <classpathentry kind="lib" path="lib/common/jdom.jar">
  67 + <attributes>
  68 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  69 + </attributes>
  70 + </classpathentry>
  71 + <classpathentry kind="lib" path="lib/common/log4j-1.2.15.jar" sourcepath="C:/Users/m.veroni/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15-sources.jar">
  72 + <attributes>
  73 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  74 + </attributes>
  75 + </classpathentry>
  76 + <classpathentry kind="lib" path="lib/common/mail-1.4.jar">
  77 + <attributes>
  78 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  79 + </attributes>
  80 + </classpathentry>
  81 + <classpathentry kind="lib" path="lib/common/urlrewrite-2.6.0.jar">
  82 + <attributes>
  83 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  84 + </attributes>
  85 + </classpathentry>
  86 + <classpathentry kind="lib" path="lib/gcm/json_simple-1.1.jar" sourcepath="C:/Users/Massimiliano/.m2/repository/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1-sources.jar">
  87 + <attributes>
  88 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  89 + </attributes>
  90 + </classpathentry>
  91 + <classpathentry kind="lib" path="lib/gcm/gcm-server-1.0.2.jar">
  92 + <attributes>
  93 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  94 + </attributes>
  95 + </classpathentry>
  96 + <classpathentry kind="lib" path="lib/common/xmlwise-1_2.jar">
  97 + <attributes>
  98 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  99 + </attributes>
  100 + </classpathentry>
  101 + <classpathentry kind="lib" path="lib/common/itext-0.98.jar">
  102 + <attributes>
  103 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  104 + </attributes>
  105 + </classpathentry>
  106 + <classpathentry kind="lib" path="lib/jackson/jackson-annotations-2.2.3.jar">
  107 + <attributes>
  108 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  109 + </attributes>
  110 + </classpathentry>
  111 + <classpathentry kind="lib" path="lib/jackson/jackson-core-2.2.3.jar">
  112 + <attributes>
  113 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  114 + </attributes>
  115 + </classpathentry>
  116 + <classpathentry kind="lib" path="lib/jackson/jackson-databind-2.2.3.jar">
  117 + <attributes>
  118 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  119 + </attributes>
  120 + </classpathentry>
  121 + <classpathentry kind="lib" path="lib/common/local/kahuna5j_4.2.3.jar">
  122 + <attributes>
  123 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  124 + </attributes>
  125 + </classpathentry>
  126 + <classpathentry kind="lib" path="lib/common/local/s4_1.0.5.jar">
  127 + <attributes>
  128 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  129 + </attributes>
  130 + </classpathentry>
  131 + <classpathentry kind="lib" path="lib/common/local/dmsso_1.4.2.jar">
  132 + <attributes>
  133 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  134 + </attributes>
  135 + </classpathentry>
  136 + <classpathentry kind="lib" path="lib/common/local/dbConnect_1.7.1.jar">
  137 + <attributes>
  138 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  139 + </attributes>
  140 + </classpathentry>
  141 + <classpathentry kind="lib" path="lib/axis/axis.jar">
  142 + <attributes>
  143 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  144 + </attributes>
  145 + </classpathentry>
  146 + <classpathentry kind="lib" path="lib/axis/commons-discovery-0.2.jar">
  147 + <attributes>
  148 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  149 + </attributes>
  150 + </classpathentry>
  151 + <classpathentry kind="lib" path="lib/axis/commons-logging.jar">
  152 + <attributes>
  153 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  154 + </attributes>
  155 + </classpathentry>
  156 + <classpathentry kind="lib" path="lib/axis/jaxrpc.jar"/>
  157 + <classpathentry kind="lib" path="lib/axis/saaj.jar"/>
  158 + <classpathentry kind="lib" path="lib/axis/wsdl4j.jar"/>
  159 + <classpathentry kind="src" path="src"/>
  160 + <classpathentry kind="lib" path="lib/jdbc/mysql-connector-java-5.0.8-bin.jar"/>
  161 + <classpathentry kind="lib" path="lib/c3p0/c3p0-0.9.2.jar">
  162 + <attributes>
  163 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  164 + </attributes>
  165 + </classpathentry>
  166 + <classpathentry kind="lib" path="/dm-lib-java/dm-lib-jwebber/lib/urlrewrite-2.6.0.jar"/>
  167 + <classpathentry kind="lib" path="lib/common/local/jwebber_2.5.5.jar">
  168 + <attributes>
  169 + <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  170 + </attributes>
  171 + </classpathentry>
  172 + <classpathentry kind="output" path="build/classes"/>
  173 +</classpath>
... ...
.project 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>FileProxyServer</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>org.eclipse.jdt.core.javabuilder</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + <buildCommand>
  19 + <name>org.eclipse.wst.common.project.facet.core.builder</name>
  20 + <arguments>
  21 + </arguments>
  22 + </buildCommand>
  23 + <buildCommand>
  24 + <name>org.eclipse.wst.validation.validationbuilder</name>
  25 + <arguments>
  26 + </arguments>
  27 + </buildCommand>
  28 + </buildSpec>
  29 + <natures>
  30 + <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
  31 + <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
  32 + <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
  33 + <nature>org.eclipse.jdt.core.javanature</nature>
  34 + <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  35 + </natures>
  36 +</projectDescription>
... ...
.settings/.jsdtscope 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
  4 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
  5 + <attributes>
  6 + <attribute name="hide" value="true"/>
  7 + </attributes>
  8 + </classpathentry>
  9 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
  10 + <classpathentry kind="output" path=""/>
  11 +</classpath>
... ...
.settings/org.eclipse.core.resources.prefs 0 → 100644
  1 +eclipse.preferences.version=1
  2 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/CoopvoceAppBike.java=UTF-8
  3 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/CoopvoceAppBikeLocator.java=UTF-8
  4 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/CoopvoceAppBikeService.java=UTF-8
  5 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/CoopvoceAppBikeServicePortBindingStub.java=UTF-8
  6 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/EsitoBonus.java=UTF-8
  7 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/EsitoCoopVoce.java=UTF-8
  8 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/EsitoReport.java=UTF-8
  9 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/Promozione.java=UTF-8
  10 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/RichiestaBonus.java=UTF-8
  11 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/RichiestaCoopVoce.java=UTF-8
  12 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/RichiestaReport.java=UTF-8
  13 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/TypeBonus.java=UTF-8
  14 +encoding//src.wsdl/it/coop/coopitalia/coopvoceappbike/ws/TypeKM.java=UTF-8
  15 +encoding//src/it/softecspa/fileproxy/services/common/lang/ResponseOutcome_en.properties=ISO-8859-1
... ...
.settings/org.eclipse.jdt.core.prefs 0 → 100644
  1 +eclipse.preferences.version=1
  2 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
  3 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
  4 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
  5 +org.eclipse.jdt.core.compiler.compliance=1.6
  6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate
  7 +org.eclipse.jdt.core.compiler.debug.localVariable=generate
  8 +org.eclipse.jdt.core.compiler.debug.sourceFile=generate
  9 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
  10 +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
  11 +org.eclipse.jdt.core.compiler.source=1.6
... ...
.settings/org.eclipse.jst.jsp.core.prefs 0 → 100644
  1 +eclipse.preferences.version=1
  2 +validateFragments=false
  3 +validation.actions-missing-required-attribute=1
  4 +validation.actions-non-empty-inline-tag=2
  5 +validation.actions-unexpected-rtexprvalue=2
  6 +validation.actions-unknown-attribute=2
  7 +validation.directive-attribute-duplicate=1
  8 +validation.directive-include-fragment-file-not-found=1
  9 +validation.directive-include-fragment-file-not-specified=1
  10 +validation.directive-taglib-duplicate-prefixes-different-uris=1
  11 +validation.directive-taglib-duplicate-prefixes-same-uris=-1
  12 +validation.directive-taglib-missing-prefix=1
  13 +validation.directive-taglib-missing-uri-or-tagdir=1
  14 +validation.directive-taglib-unresolvable-uri-or-tagdir=1
  15 +validation.el-function-undefined=1
  16 +validation.el-general-syntax=1
  17 +validation.el-lexical-failure=-1
  18 +validation.java-=-1
  19 +validation.java-local-variable-is-never-used=-1
  20 +validation.java-null-local-variable-reference=-1
  21 +validation.java-potential-null-local-variable-reference=-1
  22 +validation.java-unused-import=-1
  23 +validation.translation-tag-class-not-found=2
  24 +validation.translation-tei-class-not-found=2
  25 +validation.translation-tei-class-not-instantiated=2
  26 +validation.translation-tei-class-runtime-exception=2
  27 +validation.translation-tei-message=1
  28 +validation.translation-usebean-ambiguous-type-info=2
  29 +validation.translation-usebean-invalid-id=1
  30 +validation.translation-usebean-missing-type-info=1
  31 +validation.use-project-settings=true
... ...
.settings/org.eclipse.wst.common.component 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
  2 + <wb-module deploy-name="DesktopMateService">
  3 + <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
  4 + <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
  5 + <dependent-module archiveName="c3p0-0.9.2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/DesktopMateService/lib/c3p0/c3p0-0.9.2.jar">
  6 + <dependency-type>uses</dependency-type>
  7 + </dependent-module>
  8 + <dependent-module archiveName="mchange-commons-java-0.2.3.3.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/DesktopMateService/lib/c3p0/mchange-commons-java-0.2.3.3.jar">
  9 + <dependency-type>uses</dependency-type>
  10 + </dependent-module>
  11 + <dependent-module archiveName="mysql-connector-java-5.0.8-bin.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/DesktopMateService/lib/jdbc/mysql-connector-java-5.0.8-bin.jar">
  12 + <dependency-type>uses</dependency-type>
  13 + </dependent-module>
  14 + <property name="java-output-path" value="/DesktopMateServer new/build/classes"/>
  15 + <property name="context-root" value="fileproxy"/>
  16 + </wb-module>
  17 +</project-modules>
... ...
.settings/org.eclipse.wst.common.project.facet.core.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<faceted-project>
  3 + <runtime name="Apache Tomcat v6.0"/>
  4 + <fixed facet="jst.web"/>
  5 + <fixed facet="jst.java"/>
  6 + <installed facet="jst.java" version="6.0"/>
  7 + <installed facet="jst.web" version="2.4"/>
  8 + <installed facet="wst.jsdt.web" version="1.0"/>
  9 +</faceted-project>
... ...
.settings/org.eclipse.wst.jsdt.ui.superType.container 0 → 100644
  1 +org.eclipse.wst.jsdt.launching.baseBrowserLibrary
0 2 \ No newline at end of file
... ...
.settings/org.eclipse.wst.jsdt.ui.superType.name 0 → 100644
  1 +Window
0 2 \ No newline at end of file
... ...
.settings/org.eclipse.wst.ws.service.policy.prefs 0 → 100644
  1 +eclipse.preferences.version=1
  2 +org.eclipse.wst.ws.service.policy.projectEnabled=false
... ...
.settings/org.hibernate.eclipse.console.prefs 0 → 100644
  1 +#Wed May 12 16:33:38 CEST 2010
  2 +default.configuration=
  3 +eclipse.preferences.version=1
  4 +hibernate3.enabled=false
... ...
WebContent/META-INF/LILIANA (web144db2).txt 0 → 100644
  1 +context.xml from D:\Sviluppo\Desktopmate\FileProxyServer/conf/myMETA-INF/context-liliana-web144db2.xml
0 2 \ No newline at end of file
... ...
WebContent/META-INF/MANIFEST.MF 0 → 100644
  1 +Manifest-Version: 1.0
  2 +Class-Path:
  3 +
... ...
WebContent/META-INF/context.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <Parameter name="localhost" value="yes" override="true" />
  8 + <Parameter name="localhost.database" value="web144db2" override="true" />
  9 + <Parameter name="localhost.environment" value="liliana" override="true" />
  10 + <Parameter name="localhost.context" value="mwm.dev.ctsapplications.it/adt_test" override="true" />
  11 +
  12 +
  13 + <!-- Default set of monitored resources -->
  14 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  15 +
  16 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  17 + <Manager pathname="" />
  18 +
  19 +
  20 + <!-- SVILUPPO - ADT -->
  21 + <Resource name="jdbc/mwm_app"
  22 + auth="Container"
  23 + description="DB Connection"
  24 + driverClass="com.mysql.jdbc.Driver"
  25 +
  26 + initialPoolSize="2"
  27 + minPoolSize="2"
  28 + maxPoolSize="10"
  29 + acquireIncrement="2"
  30 +
  31 + checkoutTimeout="3600"
  32 + breakAfterAcquireFailure="false"
  33 + maxIdleTimeExcessConnections = "30"
  34 + maxIdleTime = "1800"
  35 + maxConnectionAge="3600"
  36 + idleConnectionTestPeriod="200"
  37 +
  38 + user="web144u2"
  39 + password="fdte5532"
  40 + factory="org.apache.naming.factory.BeanFactory"
  41 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  42 + jdbcUrl="jdbc:mysql://localhost:3306/web144db2?autoReconnect=true&amp;characterEncoding=UTF-8" />
  43 +
  44 +
  45 +</Context>
  46 +
  47 +
  48 +
... ...
WebContent/WEB-INF/web.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  3 + <display-name>FileProxy @version.number@ (@build.number@) - @build.installation@ [@build.date@]</display-name>
  4 + <!-- Ultime modifiche del 23/06/2014 -->
  5 +
  6 + <!-- Configurazione per New Relic -->
  7 + <context-param>
  8 + <param-name>com.newrelic.agent.APPLICATION_NAME</param-name>
  9 + <param-value>@new.relic@</param-value>
  10 + </context-param>
  11 +
  12 + <!-- @build.installation@ - @build.date@ -->
  13 + <!-- Configurazioni obbligatorie -->
  14 + <context-param>
  15 + <param-name>ErrorPage</param-name>
  16 + <param-value>/error.jsp</param-value>
  17 + </context-param>
  18 + <context-param>
  19 + <param-name>constantsFile</param-name>
  20 + <param-value>portal_settings.xml</param-value>
  21 + </context-param>
  22 + <context-param>
  23 + <param-name>logPropertyFile</param-name>
  24 + <param-value>log4j.xml</param-value>
  25 + </context-param>
  26 +
  27 + <context-param>
  28 + <param-name>defaultLanguage</param-name>
  29 + <param-value>it</param-value>
  30 + </context-param>
  31 +
  32 + <!-- Utilizzata per la gestione della sessione - solo per funzioni di monitoraggio -->
  33 + <context-param>
  34 + <param-name>SessionFactory</param-name>
  35 + <param-value>it.softecspa.jwebber.frameworkImpl.session.CMSImplSessionFactory</param-value>
  36 + </context-param>
  37 +
  38 + <!-- Utilizzata per la gestione della sicurezza - solo per funzioni di monitoraggio -->
  39 + <context-param>
  40 + <param-name>SecurityManager</param-name>
  41 + <param-value>it.softecspa.jwebber.frameworkImpl.security.CMSImplSecurityManager</param-value>
  42 + </context-param>
  43 +
  44 + <!-- @deprecated - Contiene l'elenco delle funzioni di cui deve essere fatto il log degli accessi -->
  45 + <context-param>
  46 + <param-name>accessLogWhat</param-name>
  47 + <param-value>,*,</param-value>
  48 + </context-param>
  49 +
  50 + <!-- @deprecated - Configurazioni opzionali -->
  51 + <context-param>
  52 + <param-name>mailServer</param-name>
  53 + <param-value>localhost</param-value>
  54 + </context-param>
  55 +
  56 + <!-- Da valorizzare se si vuole la autenticazione JWebber -->
  57 + <context-param>
  58 + <param-name>keyStore</param-name>
  59 + <param-value>it.softecspa.portal.security.KeyStoreImpl</param-value>
  60 + </context-param>
  61 +
  62 + <!-- Servlet -->
  63 +
  64 + <!-- Startup -->
  65 + <servlet>
  66 + <servlet-name>WebApp</servlet-name>
  67 + <servlet-class>it.softecspa.portal.InitWebApp</servlet-class>
  68 + <load-on-startup>1</load-on-startup>
  69 + </servlet>
  70 + <servlet-mapping>
  71 + <servlet-name>WebApp</servlet-name>
  72 + <url-pattern>/WebApp</url-pattern>
  73 + </servlet-mapping>
  74 +
  75 +
  76 + <!-- POST-SERVICE - servlet -->
  77 + <servlet>
  78 + <description>Servlet http file proxy</description>
  79 + <display-name>httpFileProxy-Statement Servlet</display-name>
  80 + <servlet-name>httpFileProxyServlet</servlet-name>
  81 + <servlet-class>it.softecspa.fileproxy.proxyservices.HttpFileProxyService</servlet-class>
  82 + </servlet>
  83 + <servlet-mapping>
  84 + <servlet-name>httpFileProxyServlet</servlet-name>
  85 + <url-pattern>/proxy-services/statement</url-pattern>
  86 + </servlet-mapping>
  87 +
  88 +
  89 +
  90 + <!-- MONITOR - servlet -->
  91 + <servlet>
  92 + <description>Servlet di monitoraggio standard</description>
  93 + <display-name>Monitor Servlet</display-name>
  94 + <servlet-name>Monitor</servlet-name>
  95 + <servlet-class>it.softecspa.portal.Monitor</servlet-class>
  96 + </servlet>
  97 + <servlet-mapping>
  98 + <servlet-name>Monitor</servlet-name>
  99 + <url-pattern>/monitor</url-pattern>
  100 + </servlet-mapping>
  101 +
  102 +
  103 +
  104 + <session-config>
  105 + <!-- Sono Minuti -->
  106 + <session-timeout>15</session-timeout>
  107 + </session-config>
  108 +
  109 + <mime-mapping>
  110 + <extension>html</extension>
  111 + <mime-type>text/html</mime-type>
  112 + </mime-mapping>
  113 +
  114 + <mime-mapping>
  115 + <extension>dtd</extension>
  116 + <mime-type>text/plain</mime-type>
  117 + </mime-mapping>
  118 +
  119 +
  120 +
  121 +
  122 +
  123 +
  124 +
  125 + <welcome-file-list>
  126 + <welcome-file>index.html</welcome-file>
  127 + <welcome-file>index.htm</welcome-file>
  128 + <welcome-file>index.jsp</welcome-file>
  129 + <welcome-file>default.html</welcome-file>
  130 + <welcome-file>default.htm</welcome-file>
  131 + <welcome-file>default.jsp</welcome-file>
  132 + </welcome-file-list>
  133 +</web-app>
... ...
WebContent/favicon.ico 0 → 100644
No preview for this file type
builder.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project basedir="." default="help" name="Custom builder">
  3 + <!-- Build.xml - versione 2.0.0 -->
  4 +
  5 + <property name="project.name" value="FileProxyServer" />
  6 +
  7 + <tstamp>
  8 + <format property="today" pattern="yyyy-MM-dd HH:mm:ss" />
  9 + </tstamp>
  10 +
  11 + <property environment="env"/>
  12 +
  13 +
  14 + <target name="help">
  15 + <echo message="Help.." />
  16 +
  17 + </target>
  18 +
  19 +
  20 +
  21 +
  22 + <!-- File di configurazione 1 -->
  23 + <target name="sub-environment" >
  24 + <!-- description="Routine di configurazione variabili d'ambiente" -->
  25 + <echo message="Set environment...." />
  26 +
  27 + <property name="project.src" value="${basedir}/src" />
  28 + <property name="project.build" value="${basedir}/build/classes" />
  29 + <property name="project.lib" value="${basedir}/lib" />
  30 + <condition property="project.dist" value="${basedir}/dist/${config.cliente}" else="${basedir}/dist">
  31 + <isset property="config.cliente"/>
  32 + </condition>
  33 +
  34 + <!--property name="project.conf" value="${basedir}/conf" / -->
  35 + <property name="project.conf" value="conf" />
  36 +
  37 + <!-- Nome del progetto a cui sono legati i file di configurazione - FIXME -->
  38 + <property name="application.name" value="appbike" />
  39 +
  40 + <!-- Nome base del file war a cui saranno concatenati versione e release -->
  41 + <property name="project.warfile" value="${application.name}" />
  42 +
  43 + <!-- Cartella in cui deve essere copiato il file di versione -->
  44 + <property name="version.package" value="it/softecspa/portal" />
  45 +
  46 + </target>
  47 +
  48 + <!-- File di configurazione 2 -->
  49 + <target name="sub-configuration" depends="sub-environment" >
  50 + <!-- description="Routine di configurazione variabili d'ambiente" -->
  51 + <echo message="Load configuration...." />
  52 +
  53 + <property name="project.version.file" value="${project.conf}/version.properties" />
  54 + <property file="${project.version.file}" />
  55 + <antcallback target="sub-version" return="real.version.number"/>
  56 +
  57 + <!-- Estrazione della versione -->
  58 + <echo message="Versione ${real.version.number} ${version.release}" />
  59 + <echo message="Build ${build.number}" />
  60 + </target>
  61 +
  62 +
  63 + <!-- Gestisce il numero di versione -->
  64 + <target name="sub-version" >
  65 + <!-- description="Calcolo versione e progressivo compilazione" -->
  66 + <echo message="Update library version file" />
  67 + <propertyfile file="${project.version.file}" comment="Versionamento">
  68 + <entry key="version.number" default="0.0.1"/>
  69 + <entry key="version.release" default="beta"/>
  70 + <entry key="build.number" default="0"/>
  71 + <entry key="build.date" type="date" value="now" pattern="dd/MM/yyyy HH:mm"/>
  72 + </propertyfile>
  73 +
  74 + <!-- Richiesta di conferma -->
  75 + <input message="Building ${project.name} with version:"
  76 + addproperty="input.version"
  77 + defaultvalue="${version.number}"/>
  78 +
  79 + <if>
  80 + <not>
  81 + <equals arg1="${version.number}" arg2="${input.version}" />
  82 + </not>
  83 + <then>
  84 +
  85 + <!-- Richiesta di conferma -->
  86 + <input message="Confermi il cambio di versione (old '${version.number}' vs new '${input.version}')?"
  87 + validargs="S,n"
  88 + addproperty="input.response"
  89 + defaultvalue="S"/>
  90 + <condition property="do.abort">
  91 + <not>
  92 + <equals arg1="S" arg2="${input.response}" />
  93 + </not>
  94 + </condition>
  95 + <fail if="do.abort">Operazione annullata dall'utente</fail>
  96 +
  97 +
  98 + <!-- Aggiornamento versione -->
  99 + <echo message="New version number, update file ${project.version.file}" />
  100 + <propertyfile file="${project.version.file}" comment="Versionamento">
  101 + <entry key="version.number" value="${input.version}" />
  102 + </propertyfile>
  103 +
  104 + <property name="real.version.number" value="${input.version}" />
  105 + </then>
  106 + <else>
  107 + <property name="real.version.number" value="${version.number}" />
  108 + </else>
  109 + </if>
  110 +
  111 +
  112 + <!-- Incrementa il numero di compilazione -->
  113 + <buildnumber file="${project.version.file}"/>
  114 + </target>
  115 +
  116 +
  117 + <!-- Gestisce il numero di versione -->
  118 + <target name="sub-version-XML2">
  119 + <!-- description="Gestione file info.xml" -->
  120 + <property name="infoxml.name" value="version.xml" />
  121 + <property name="infoxml.source" value="${project.conf}/${infoxml.name}" />
  122 + <property name="infoxml.target" value="${project.build}/${infoxml.package}/${infoxml.name}" />
  123 + <echo message="Updating file ${infoxml.name}" />
  124 +
  125 + <copy file="${infoxml.source}" tofile="${infoxml.target}" overwrite="true" />
  126 + <condition property="installation" value="${config.cliente}/${config.dir}" else="${config.dir}">
  127 + <isset property="config.cliente"/>
  128 + </condition>
  129 + <replace file="${infoxml.target}" value="Value not found in version.properties" propertyFile="${project.version.file}">
  130 + <replacefilter token="@version.number@" value="${real.version.number}"/>
  131 + <replacefilter token="@version.release@" value="${version.release}"/>
  132 + <replacefilter token="@build.number@" value="${build.number}"/>
  133 + <replacefilter token="@build.date@" property="build.date"/>
  134 + <replacefilter token="@build.installation@" value="${installation}"/>
  135 + </replace>
  136 +
  137 + <!-- Aggiungo una copia del file di versione nella cartella di configurazione -->
  138 + <copy file="${infoxml.target}" tofile="${project.conf}/${installation}/${infoxml.name}" overwrite="true" />
  139 +
  140 +
  141 +
  142 + <!-- Aggiorno gli stessi dati nel WEB.XML -->
  143 + <property name="webxml.name" value="web.xml" />
  144 + <property name="webxml.source" value="${project.conf}/web.xml" />
  145 + <property name="webxml.target" value="${project.conf}/${installation}/WEB-INF/web.xml" />
  146 + <echo message="Updating file ${webxml.name}" />
  147 +
  148 + <copy file="${webxml.source}" tofile="${webxml.target}" overwrite="true" />
  149 + <replace file="${webxml.target}" value="Value not found in version.properties" propertyFile="${project.version.file}">
  150 + <replacefilter token="@version.number@" value="${real.version.number}"/>
  151 + <replacefilter token="@version.release@" value="${version.release}"/>
  152 + <replacefilter token="@build.number@" value="${build.number}"/>
  153 + <replacefilter token="@build.date@" property="build.date"/>
  154 + <replacefilter token="@build.installation@" value="${installation}"/>
  155 + <!-- Varaibile custom per app New Relic-->
  156 + <replacefilter token="@new.relic@" value="${new.relic}"/>
  157 + </replace>
  158 +
  159 +
  160 + </target>
  161 +
  162 +
  163 +
  164 +
  165 +
  166 + <!-- Funzione di servizio, pulisce la cartella dove viene creata la distribuzione -->
  167 + <target name="cleardist" if="file.includes" depends="sub-environment">
  168 + <!-- description="Pulisce la cartella dove viene creata la distribuzione" -->
  169 +
  170 + <property name="todelete" value="${file.includes}*.*.*_*.war" />
  171 + <echo message="Clearing dist folder for file '${todelete}'" />
  172 +
  173 + <delete failonerror="false" verbose="true">
  174 + <fileset dir="${project.dist}" includes="${todelete}"/>
  175 + </delete>
  176 +
  177 + </target>
  178 +
  179 +
  180 +
  181 +
  182 + <!-- Routine generale di generazione del pacchetto -->
  183 + <target name="dist" if="config.dir" depends="sub-configuration" >
  184 +
  185 + <condition property="project.warfile.standardaname" value="${project.warfile}_${config.cliente}_${config.prefix}" else="${project.warfile}_${config.prefix}">
  186 + <isset property="config.cliente"/>
  187 + </condition>
  188 +
  189 + <echo message="Deleting and creating dist dir ${project.dist}" />
  190 + <antcall target="cleardist">
  191 + <param name="file.includes" value="${project.warfile.standardaname}" />
  192 + </antcall>
  193 + <mkdir dir="${project.dist}"/>
  194 +
  195 + <!-- Ricostruisco i JAR per le librerie nazca -->
  196 + <!-- <antcall target="subBuild"><param name="SubProject" value="${nazca 3.0.0.location}"/></antcall> -->
  197 + <!-- <antcall target="subBuild"><param name="SubProject" value="${nazca 3.0.0 web.location}"/></antcall> -->
  198 +
  199 +
  200 + <!-- Creazione file informazioni distribuzione -->
  201 + <antcall target="sub-version-XML2">
  202 + <param name="infoxml.package" value="${version.package}"/>
  203 + </antcall>
  204 +
  205 + <!-- Valorizzazione del nome del file WAR -->
  206 + <mkdir dir="lib"/>
  207 + <property name="warfile.name" value="${project.warfile.standardaname}${real.version.number}_${build.number}.war" />
  208 +
  209 +
  210 + <!-- Escludo le pagine jsp di test per tutte le installazioni eccetto che per "develop"
  211 + <condition property="test.dir" value="test/**" else="cartella_inesistente">
  212 + <not>
  213 + <equals arg1="${config.dir}" arg2="develop" casesensitive="false"/>
  214 + </not>
  215 + </condition>
  216 + -->
  217 +
  218 + <echo message="Exporting project in '${warfile.name}'" />
  219 + <condition property="installation" value="${config.cliente}/${config.dir}" else="${config.dir}">
  220 + <isset property="config.cliente"/>
  221 + </condition>
  222 + <war destfile="${project.dist}/${warfile.name}" webxml="${project.conf}/${installation}/WEB-INF/web.xml">
  223 + <manifest>
  224 + <attribute name="Release" value="${installation}"/>
  225 + <attribute name="Release-Date" value="${today}"/>
  226 + <attribute name="Release-Version" value="${real.version.number} ${version.release}"/>
  227 + <attribute name="Release-Build" value="${build.number}"/>
  228 + <attribute name="Release-User" value="${env.USERNAME}"/>
  229 + <attribute name="Release-Host" value="${env.COMPUTERNAME}"/>
  230 + </manifest>
  231 +
  232 + <!-- PERSONALIZZAZIONE - INIZIO -->
  233 + <fileset dir="WebContent">
  234 + <include name="**"/>
  235 +
  236 + <!-- Lista di esclusione -->
  237 + <!-- <exclude name="${test.dir}"/> -->
  238 + <exclude name="WEB-INF/web.xml"/>
  239 + <exclude name="META-INF/context.xml"/>
  240 + <exclude name="META-INF/**.txt"/>
  241 + <exclude name="image-pack/**"/>
  242 + <exclude name="Thumbs.db"/>
  243 + </fileset>
  244 +
  245 + <fileset dir="${project.conf}/${installation}/">
  246 + <include name="META-INF/context.xml"/>
  247 + <include name="image-pack/**"/>
  248 + <!-- <include name="config.local/version.txt"/> -->
  249 + </fileset>
  250 +
  251 +
  252 + <!-- COMMON -->
  253 + <lib dir="${project.lib}/common" >
  254 + <exclude name="indexer/**"/>
  255 + <exclude name="analyzer**"/>
  256 + </lib>
  257 + <!-- COMMON - LOCAL -->
  258 + <lib dir="${project.lib}/common/local" >
  259 + </lib>
  260 + <!-- JACKSON -->
  261 + <lib dir="${project.lib}/jackson" >
  262 + </lib>
  263 + <!-- UPLOADBEAN -->
  264 + <lib dir="${project.lib}/uploadbean" >
  265 + <exclude name="fileupload.jar"/>
  266 + </lib>
  267 + <!-- JAVA APNS -->
  268 + <lib dir="${project.lib}/java-apns" >
  269 + <include name="apns-0.1.5-jar-with-dependencies.jar"/>
  270 + </lib>
  271 + <!-- GCM (Google) -->
  272 + <lib dir="${project.lib}/gcm" >
  273 + </lib>
  274 +
  275 + <!-- Amazon S3 -->
  276 + <lib dir="${project.lib}/amazon.s3">
  277 + <include name="aws-java-sdk-1.0.11.jar"/>
  278 + </lib>
  279 + <lib dir="${project.lib}/amazon.s3/lib.required">
  280 + <include name="jackson-core-asl-1.4.3.jar"/>
  281 + <include name="stax-1.2.0.jar"/>
  282 + <include name="stax-api-1.0.1.jar"/>
  283 + </lib>
  284 + <!-- C3P0, escluso perchè già presente nella commonlib, ma non i produzione! -->
  285 + <lib dir="${project.lib}/c3p0">
  286 + <exclude name="**.zip"/>
  287 + </lib>
  288 + <!-- DBCP
  289 + <lib dir="${project.lib}/dbcp">
  290 + <exclude name="commons-dbcp-1.2.2-src.zip"/>
  291 + <exclude name="commons-pool-1.4-src.zip"/>
  292 + </lib> -->
  293 +
  294 +
  295 + <!-- Classes, sono esclusi i file di configurazione -->
  296 + <classes dir="${project.build}">
  297 + <include name="**"/>
  298 +
  299 + <exclude name="conf/log4j.xml" />
  300 + <exclude name="conf/portal_settings.xml"/>
  301 + <exclude name="conf/sso**.xml" />
  302 + </classes>
  303 + <!-- Sono inclusi i file di configurazione specifici -->
  304 + <classes dir="${project.conf}/${installation}">
  305 +
  306 + <include name="conf/log4j.xml" />
  307 + <include name="conf/portal_settings.xml"/>
  308 + <include name="conf/sso**.xml" />
  309 + </classes>
  310 + <!-- PERSONALIZZAZIONE - FINE -->
  311 +
  312 + </war>
  313 +
  314 + <antcall target="refresh" />
  315 + </target>
  316 +
  317 +
  318 +
  319 +
  320 + <target name="refresh" depends="sub-include-AntContrib">
  321 +
  322 + <trycatch reference="exception_ref">
  323 + <try>
  324 + <echo>Eclipse refresh in progress...</echo>
  325 + <!-- Refresh del progetto
  326 + Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  327 + JRE > Run in the same JRE as the workspace
  328 + -->
  329 + <eclipse.refreshLocal resource="${project.name}" depth="infinite"/>
  330 + <echo>Eclipse refreshed!</echo>
  331 +
  332 + </try>
  333 + <catch>
  334 + <echo>Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  335 + JRE > Run in the same JRE as the workspace</echo>
  336 + </catch>
  337 + <finally>
  338 + <!-- <echo>Finally</echo> -->
  339 + </finally>
  340 + </trycatch>
  341 + </target>
  342 +
  343 +
  344 +
  345 +
  346 +
  347 + <target name="sub-include-AntContrib">
  348 + <!-- description="Include le librerie (JAR) per gestire il TRY/CATCH/FINALLY" -->
  349 + <echo>Include ANT-contrib jar</echo>
  350 +
  351 + <!-- Include le librerie ant-contrib-0.6.jar
  352 + http://ant-contrib.sourceforge.net/ -->
  353 + <taskdef resource="net/sf/antcontrib/antcontrib.properties">
  354 + <classpath>
  355 + <pathelement location="${basedir}/lib/ant/ant-contrib-0.6.jar"/>
  356 + </classpath>
  357 + </taskdef>
  358 +
  359 + </target>
  360 +
  361 + <target name="sub-include-JSCH">
  362 + <echo>Include JSCH jar</echo>
  363 + <!--
  364 + <taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" >
  365 + <classpath>
  366 + <pathelement location="${basedir}/lib/ant/ant-jsch-1.9.2.jar" />
  367 + <pathelement location="${basedir}/lib/ant/jsch-0.1.50.jar" />
  368 + </classpath>
  369 + </taskdef>
  370 + <taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec" >
  371 + <classpath>
  372 + <pathelement location="${basedir}/lib/ant/ant-jsch-1.9.2.jar" />
  373 + <pathelement location="${basedir}/lib/ant/jsch-0.1.50.jar" />
  374 + </classpath>
  375 + </taskdef>
  376 + -->
  377 +
  378 + </target>
  379 +
  380 +
  381 +
  382 +</project>
0 383 \ No newline at end of file
... ...
conf/context_.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <!-- Default set of monitored resources -->
  8 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  9 +
  10 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  11 + <Manager pathname="" />
  12 +
  13 + <!-- SVILUPPO -->
  14 + <!-- DATASOURCE -->
  15 + <Resource name="jdbc/dm-stage"
  16 + auth="Container"
  17 + description="DB Connection"
  18 + driverClass="com.mysql.jdbc.Driver"
  19 +
  20 + initialPoolSize="2"
  21 + minPoolSize="2"
  22 + maxPoolSize="10"
  23 + acquireIncrement="2"
  24 +
  25 + checkoutTimeout="3600"
  26 + breakAfterAcquireFailure="false"
  27 + maxIdleTimeExcessConnections = "30"
  28 + maxIdleTime = "1800"
  29 + maxConnectionAge="3600"
  30 + idleConnectionTestPeriod="200"
  31 +
  32 + user="web103u1"
  33 + password="98c7EwXJS7"
  34 + factory="org.apache.naming.factory.BeanFactory"
  35 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  36 + jdbcUrl="jdbc:mysql://localhost:3306/web103db1?autoReconnect=true" />
  37 +
  38 + <Resource name="jdbc/dm-master"
  39 + auth="Container"
  40 + description="DB Connection"
  41 + driverClass="com.mysql.jdbc.Driver"
  42 +
  43 + initialPoolSize="2"
  44 + minPoolSize="2"
  45 + maxPoolSize="10"
  46 + acquireIncrement="2"
  47 +
  48 + checkoutTimeout="3600"
  49 + breakAfterAcquireFailure="false"
  50 + maxIdleTimeExcessConnections = "30"
  51 + maxIdleTime = "1800"
  52 + maxConnectionAge="3600"
  53 + idleConnectionTestPeriod="200"
  54 +
  55 + user="web103u2"
  56 + password="GOoRoTj5K5"
  57 + factory="org.apache.naming.factory.BeanFactory"
  58 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  59 + jdbcUrl="jdbc:mysql://localhost:3306/web103db2?autoReconnect=true" />
  60 +
  61 +</Context>
0 62 \ No newline at end of file
... ...
conf/liliana/develop/META-INF/context.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <!-- Default set of monitored resources -->
  8 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  9 +
  10 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  11 + <Manager pathname="" />
  12 +
  13 + <!-- SVILUPPO -->
  14 + <!-- DATASOURCE -->
  15 + <Resource name="jdbc/dm-stage"
  16 + auth="Container"
  17 + description="DB Connection"
  18 + driverClass="com.mysql.jdbc.Driver"
  19 +
  20 + initialPoolSize="1"
  21 + minPoolSize="1"
  22 + maxPoolSize="10"
  23 + acquireIncrement="1"
  24 +
  25 + checkoutTimeout="3600"
  26 + breakAfterAcquireFailure="false"
  27 + maxIdleTimeExcessConnections = "30"
  28 + maxIdleTime = "1800"
  29 + maxConnectionAge="3600"
  30 + idleConnectionTestPeriod="200"
  31 +
  32 + user="web103u1"
  33 + password="98c7EwXJS7"
  34 + factory="org.apache.naming.factory.BeanFactory"
  35 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  36 + jdbcUrl="jdbc:mysql://int-mysql-master.cluster-liliana.softecspa.it:3306/web103db1?autoReconnect=true&amp;characterEncoding=UTF-8" />
  37 +
  38 + <Resource name="jdbc/dm-master"
  39 + auth="Container"
  40 + description="DB Connection"
  41 + driverClass="com.mysql.jdbc.Driver"
  42 +
  43 + initialPoolSize="1"
  44 + minPoolSize="0"
  45 + maxPoolSize="10"
  46 + acquireIncrement="1"
  47 +
  48 + checkoutTimeout="3600"
  49 + breakAfterAcquireFailure="false"
  50 + maxIdleTimeExcessConnections = "30"
  51 + maxIdleTime = "1800"
  52 + maxConnectionAge="3600"
  53 + idleConnectionTestPeriod="200"
  54 +
  55 + user="web103u2"
  56 + password="GOoRoTj5K5"
  57 + factory="org.apache.naming.factory.BeanFactory"
  58 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  59 + jdbcUrl="jdbc:mysql://int-mysql-master.cluster-liliana.softecspa.it:3306/web103db2?autoReconnect=true&amp;characterEncoding=UTF-8" />
  60 +
  61 +
  62 +</Context>
0 63 \ No newline at end of file
... ...
conf/liliana/develop/WEB-INF/web.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  3 + <display-name>DesktopMate + Jarvis console 2.10.16 (1814) - liliana/develop [05/06/2014 11:39]</display-name>
  4 + <!-- Ultime modifiche del 18/02/2014 -->
  5 +
  6 + <!-- liliana/develop - 05/06/2014 11:39 -->
  7 + <!-- Configurazioni obbligatorie -->
  8 + <context-param>
  9 + <param-name>ErrorPage</param-name>
  10 + <param-value>/error.jsp</param-value>
  11 + </context-param>
  12 + <context-param>
  13 + <param-name>constantsFile</param-name>
  14 + <param-value>portal_settings.xml</param-value>
  15 + </context-param>
  16 + <context-param>
  17 + <param-name>logPropertyFile</param-name>
  18 + <param-value>log4j.xml</param-value>
  19 + </context-param>
  20 +
  21 + <context-param>
  22 + <param-name>defaultLanguage</param-name>
  23 + <param-value>it</param-value>
  24 + </context-param>
  25 +
  26 + <!-- Utilizzata per la gestione della sessione - solo per funzioni di monitoraggio -->
  27 + <context-param>
  28 + <param-name>SessionFactory</param-name>
  29 + <param-value>it.softecspa.jwebber.frameworkImpl.session.CMSImplSessionFactory</param-value>
  30 + </context-param>
  31 +
  32 + <!-- Utilizzata per la gestione della sicurezza - solo per funzioni di monitoraggio -->
  33 + <context-param>
  34 + <param-name>SecurityManager</param-name>
  35 + <param-value>it.softecspa.jwebber.frameworkImpl.security.CMSImplSecurityManager</param-value>
  36 + </context-param>
  37 +
  38 + <!-- @deprecated - Contiene l'elenco delle funzioni di cui deve essere fatto il log degli accessi -->
  39 + <context-param>
  40 + <param-name>accessLogWhat</param-name>
  41 + <param-value>,*,</param-value>
  42 + </context-param>
  43 +
  44 + <!-- @deprecated - Configurazioni opzionali -->
  45 + <context-param>
  46 + <param-name>mailServer</param-name>
  47 + <param-value>moon.softecspa.it</param-value>
  48 + </context-param>
  49 +
  50 + <!-- Da valorizzare se si vuole la autenticazione JWebber -->
  51 + <context-param>
  52 + <param-name>keyStore</param-name>
  53 + <param-value>it.softecspa.portal.security.KeyStoreImpl</param-value>
  54 + </context-param>
  55 +
  56 +
  57 + <!-- Daily report -->
  58 + <filter>
  59 + <filter-name>urlRewrite-DayReportFilter</filter-name>
  60 + <filter-class>it.softecspa.portal.filters.DayReportFilter</filter-class>
  61 + </filter>
  62 + <filter-mapping>
  63 + <filter-name>urlRewrite-DayReportFilter</filter-name>
  64 + <url-pattern>/dailyreport/*</url-pattern>
  65 + </filter-mapping>
  66 +
  67 +
  68 + <!-- DM Store -->
  69 + <filter>
  70 + <filter-name>urlRewrite-StoreFilter</filter-name>
  71 + <filter-class>it.softecspa.portal.filters.StoreFilter</filter-class>
  72 + </filter>
  73 + <filter-mapping>
  74 + <filter-name>urlRewrite-StoreFilter</filter-name>
  75 + <url-pattern>/store/*</url-pattern>
  76 + </filter-mapping>
  77 +
  78 +
  79 + <!-- DM Share -->
  80 + <filter>
  81 + <filter-name>urlRewrite-ShareFilter</filter-name>
  82 + <filter-class>it.softecspa.portal.filters.ShareFilter</filter-class>
  83 + </filter>
  84 + <filter-mapping>
  85 + <filter-name>urlRewrite-ShareFilter</filter-name>
  86 + <url-pattern>/share/*</url-pattern>
  87 + </filter-mapping>
  88 +
  89 +
  90 +
  91 +
  92 + <!-- Servlet -->
  93 +
  94 +
  95 + <!-- J.A.R.V.I.S - mark 2 -->
  96 + <servlet>
  97 + <servlet-name>Mark2</servlet-name>
  98 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  99 + <init-param>
  100 + <param-name>SecurityManager</param-name>
  101 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  102 + </init-param>
  103 + <init-param>
  104 + <param-name>servletCode</param-name>
  105 + <param-value>mark-II</param-value>
  106 + </init-param>
  107 + <init-param>
  108 + <param-name>ProcessRequest</param-name>
  109 + <param-value>it.softecspa.portal.processRequest.Mark2PR</param-value>
  110 + </init-param>
  111 + <init-param>
  112 + <param-name>ErrorJsp</param-name>
  113 + <param-value>/error.jsp</param-value>
  114 + </init-param>
  115 + </servlet>
  116 +
  117 + <servlet-mapping>
  118 + <servlet-name>Mark2</servlet-name>
  119 + <url-pattern>/jarvis</url-pattern>
  120 + </servlet-mapping>
  121 +
  122 +
  123 + <!-- J.A.R.V.I.S mark 1 -->
  124 + <servlet>
  125 + <servlet-name>BackdoorPanel</servlet-name>
  126 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  127 + <init-param>
  128 + <param-name>SecurityManager</param-name>
  129 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  130 + </init-param>
  131 + <init-param>
  132 + <param-name>servletCode</param-name>
  133 + <param-value>backdoor-panel</param-value>
  134 + </init-param>
  135 + <init-param>
  136 + <param-name>ProcessRequest</param-name>
  137 + <param-value>it.softecspa.portal.processRequest.BackdoorPR</param-value>
  138 + </init-param>
  139 + <init-param>
  140 + <param-name>ErrorJsp</param-name>
  141 + <param-value>/error.jsp</param-value>
  142 + </init-param>
  143 + </servlet>
  144 +
  145 + <servlet-mapping>
  146 + <servlet-name>BackdoorPanel</servlet-name>
  147 + <url-pattern>/backdoor-panel</url-pattern>
  148 + </servlet-mapping>
  149 +
  150 + <servlet-mapping>
  151 + <servlet-name>BackdoorPanel</servlet-name>
  152 + <url-pattern>/jarvis1</url-pattern>
  153 + </servlet-mapping>
  154 +
  155 +
  156 + <!-- Service Status -->
  157 + <servlet>
  158 + <servlet-name>ServicesStatus</servlet-name>
  159 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  160 + <init-param>
  161 + <param-name>SecurityManager</param-name>
  162 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  163 + </init-param>
  164 + <init-param>
  165 + <param-name>servletCode</param-name>
  166 + <param-value>services-status</param-value>
  167 + </init-param>
  168 + <init-param>
  169 + <param-name>ProcessRequest</param-name>
  170 + <param-value>it.softecspa.portal.processRequest.BackdoorPR</param-value>
  171 + </init-param>
  172 + <init-param>
  173 + <param-name>ErrorJsp</param-name>
  174 + <param-value>/error.jsp</param-value>
  175 + </init-param>
  176 + </servlet>
  177 + <!-- Clone della servlet BackdoorPanel che necessita di SSO -->
  178 + <servlet-mapping>
  179 + <servlet-name>ServicesStatus</servlet-name>
  180 + <url-pattern>/services-status</url-pattern>
  181 + </servlet-mapping>
  182 +
  183 +
  184 +
  185 + <!-- Master Status -->
  186 + <servlet>
  187 + <servlet-name>MasterSlave</servlet-name>
  188 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  189 + <init-param>
  190 + <param-name>SecurityManager</param-name>
  191 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  192 + </init-param>
  193 + <init-param>
  194 + <param-name>servletCode</param-name>
  195 + <param-value>master-slave</param-value>
  196 + </init-param>
  197 + <init-param>
  198 + <param-name>ProcessRequest</param-name>
  199 + <param-value>it.softecspa.portal.processRequest.MasterSlavePR</param-value>
  200 + </init-param>
  201 + <init-param>
  202 + <param-name>ErrorJsp</param-name>
  203 + <param-value>/error.jsp</param-value>
  204 + </init-param>
  205 + </servlet>
  206 + <servlet-mapping>
  207 + <servlet-name>MasterSlave</servlet-name>
  208 + <url-pattern>/master-slave</url-pattern>
  209 + </servlet-mapping>
  210 +
  211 +
  212 + <!-- Service Synchro -->
  213 + <servlet>
  214 + <servlet-name>ServicesSynchro</servlet-name>
  215 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  216 + <init-param>
  217 + <param-name>SecurityManager</param-name>
  218 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  219 + </init-param>
  220 + <init-param>
  221 + <param-name>servletCode</param-name>
  222 + <param-value>services-synchro</param-value>
  223 + </init-param>
  224 + <init-param>
  225 + <param-name>ProcessRequest</param-name>
  226 + <param-value>it.softecspa.portal.processRequest.ServicesSynchroPR</param-value>
  227 + </init-param>
  228 + <init-param>
  229 + <param-name>ErrorJsp</param-name>
  230 + <param-value>/error.jsp</param-value>
  231 + </init-param>
  232 + </servlet>
  233 + <servlet-mapping>
  234 + <servlet-name>ServicesSynchro</servlet-name>
  235 + <url-pattern>/services-synchro</url-pattern>
  236 + </servlet-mapping>
  237 +
  238 +
  239 + <!-- @deprecated - Service Images -->
  240 + <servlet>
  241 + <servlet-name>ServicesImages</servlet-name>
  242 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  243 + <init-param>
  244 + <param-name>SecurityManager</param-name>
  245 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  246 + </init-param>
  247 + <init-param>
  248 + <param-name>servletCode</param-name>
  249 + <param-value>services-images</param-value>
  250 + </init-param>
  251 + <init-param>
  252 + <param-name>ProcessRequest</param-name>
  253 + <param-value>it.softecspa.portal.processRequest.ServicesImagesPR</param-value>
  254 + </init-param>
  255 + <init-param>
  256 + <param-name>ErrorJsp</param-name>
  257 + <param-value>/error.jsp</param-value>
  258 + </init-param>
  259 + </servlet>
  260 + <servlet-mapping>
  261 + <servlet-name>ServicesImages</servlet-name>
  262 + <url-pattern>/services-images</url-pattern>
  263 + </servlet-mapping>
  264 +
  265 +
  266 + <!-- Startup -->
  267 + <servlet>
  268 + <servlet-name>WebApp</servlet-name>
  269 + <servlet-class>it.softecspa.portal.InitWebApp</servlet-class>
  270 + <load-on-startup>1</load-on-startup>
  271 + </servlet>
  272 + <servlet-mapping>
  273 + <servlet-name>WebApp</servlet-name>
  274 + <url-pattern>/WebApp</url-pattern>
  275 + </servlet-mapping>
  276 +
  277 +
  278 +
  279 + <!-- DOWNLOAD-SERVICE - servlet -->
  280 + <servlet>
  281 + <description>Servlet utilizzata per la gestione dei downloade dello store</description>
  282 + <display-name>Store Service Servlet</display-name>
  283 + <servlet-name>StoreServiceServlet</servlet-name>
  284 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  285 + <init-param>
  286 + <param-name>SecurityManager</param-name>
  287 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  288 + </init-param>
  289 + <init-param>
  290 + <param-name>servletCode</param-name>
  291 + <param-value>store</param-value>
  292 + </init-param>
  293 + <init-param>
  294 + <param-name>ProcessRequest</param-name>
  295 + <param-value>it.softecspa.portal.processRequest.StorePR</param-value>
  296 + </init-param>
  297 + <init-param>
  298 + <param-name>ErrorJsp</param-name>
  299 + <param-value>/error.jsp</param-value>
  300 + </init-param>
  301 + <!--
  302 + <servlet-class>it.softecspa.desktopmate.services.store.StoreServlet</servlet-class>
  303 + -->
  304 + </servlet>
  305 + <servlet-mapping>
  306 + <servlet-name>StoreServiceServlet</servlet-name>
  307 + <url-pattern>/store</url-pattern>
  308 + </servlet-mapping>
  309 +
  310 +
  311 + <!-- POST-SERVICE - servlet -->
  312 + <servlet>
  313 + <description>Servlet utilizzata per la comunicazione tra server e device</description>
  314 + <display-name>Device-Statement Servlet</display-name>
  315 + <servlet-name>DeviceStatementServlet</servlet-name>
  316 + <servlet-class>it.softecspa.desktopmate.deviceservices.DeviceStatement</servlet-class>
  317 + </servlet>
  318 + <servlet-mapping>
  319 + <servlet-name>DeviceStatementServlet</servlet-name>
  320 + <url-pattern>/services-post/statement</url-pattern>
  321 + </servlet-mapping>
  322 +
  323 +
  324 + <!-- NOTIFY REMOTE RENEWAL - servlet -->
  325 + <servlet>
  326 + <description>Servlet utilizzata per la notifica dei pagamenti eseguiti in remoto</description>
  327 + <display-name>Renewal Notification Servlet</display-name>
  328 + <servlet-name>NotifyRemoteRenewal</servlet-name>
  329 + <servlet-class>it.softecspa.desktopmate.otherservices.NotifyRemoteRenewal</servlet-class>
  330 + </servlet>
  331 + <servlet-mapping>
  332 + <servlet-name>NotifyRemoteRenewal</servlet-name>
  333 + <url-pattern>/notify</url-pattern>
  334 + </servlet-mapping>
  335 +
  336 +
  337 + <!-- Gestione servizi push - servlet -->
  338 + <servlet>
  339 + <description>Servlet utilizzata per la gestione remota dei serivzi push</description>
  340 + <display-name>Push-Statement Servlet</display-name>
  341 + <servlet-name>PushStatementServlet</servlet-name>
  342 + <servlet-class>it.softecspa.desktopmate.pushservices.PushStatement</servlet-class>
  343 + </servlet>
  344 + <servlet-mapping>
  345 + <servlet-name>PushStatementServlet</servlet-name>
  346 + <url-pattern>/services-push/statement</url-pattern>
  347 + </servlet-mapping>
  348 +
  349 +
  350 + <!-- Gestione servizi autorizzativi e di profilo - servlet -->
  351 + <servlet>
  352 + <description>Servlet utilizzata per la gestione dei servizi amministrativi</description>
  353 + <display-name>Auth-Statement Servlet</display-name>
  354 + <servlet-name>AuthStatementServlet</servlet-name>
  355 + <servlet-class>it.softecspa.desktopmate.authservices.AuthStatement</servlet-class>
  356 + </servlet>
  357 + <servlet-mapping>
  358 + <servlet-name>AuthStatementServlet</servlet-name>
  359 + <url-pattern>/authentication-service/statement</url-pattern>
  360 + </servlet-mapping>
  361 +
  362 +
  363 + <!-- Gestione servizi di esportazione - servlet -->
  364 + <servlet>
  365 + <description>Servlet utilizzata per la esportazione dei dati</description>
  366 + <display-name>Exporter-Statement Servlet</display-name>
  367 + <servlet-name>ExporterStatementServlet</servlet-name>
  368 + <servlet-class>it.softecspa.desktopmate.connectors.ExporterStatement</servlet-class>
  369 + </servlet>
  370 + <servlet-mapping>
  371 + <servlet-name>ExporterStatementServlet</servlet-name>
  372 + <url-pattern>/connector-export/statement</url-pattern>
  373 + </servlet-mapping>
  374 +
  375 +
  376 + <!-- Gestione servizi di portale con autenticazione - servlet -->
  377 + <servlet>
  378 + <description>Servlet di portale servizi con autenticazione</description>
  379 + <display-name>Portal-Statement (authenticated) Servlet</display-name>
  380 + <servlet-name>AuthPortalStatementServlet</servlet-name>
  381 + <servlet-class>it.softecspa.desktopmate.portalservices.auth.AuthenticatedStatement</servlet-class>
  382 + </servlet>
  383 + <servlet-mapping>
  384 + <servlet-name>AuthPortalStatementServlet</servlet-name>
  385 + <url-pattern>/portal-service/statement</url-pattern>
  386 + </servlet-mapping>
  387 +
  388 +
  389 + <!-- Gestione servizi di portale con guest - servlet -->
  390 + <servlet>
  391 + <description>Servlet di portale servizi</description>
  392 + <display-name>Portal-Statement (guest) Servlet</display-name>
  393 + <servlet-name>GuestPortalStatementServlet</servlet-name>
  394 + <servlet-class>it.softecspa.desktopmate.portalservices.guest.GuestStatement</servlet-class>
  395 + </servlet>
  396 + <servlet-mapping>
  397 + <servlet-name>GuestPortalStatementServlet</servlet-name>
  398 + <url-pattern>/portal-service-guest/statement</url-pattern>
  399 + </servlet-mapping>
  400 +
  401 +
  402 + <!-- Gestione servizi di interconnesione a MyDesktopmate - servlet -->
  403 + <servlet>
  404 + <description>Servlet collegamento con MyDesktopmate</description>
  405 + <display-name>MyDesktopmate-Statement Servlet</display-name>
  406 + <servlet-name>MyDesktopmateStatementServlet</servlet-name>
  407 + <servlet-class>it.softecspa.desktopmate.my.services.ConnectorStatement</servlet-class>
  408 + </servlet>
  409 + <servlet-mapping>
  410 + <servlet-name>MyDesktopmateStatementServlet</servlet-name>
  411 + <url-pattern>/mydesktopmate-service/statement</url-pattern>
  412 + </servlet-mapping>
  413 +
  414 +
  415 + <!-- Gestione servizi geoip - servlet
  416 + <servlet>
  417 + <description>Servlet servizi geoip</description>
  418 + <display-name>GeoIP-Statement Servlet</display-name>
  419 + <servlet-name>GeoipServiceServlet</servlet-name>
  420 + <servlet-class>it.softecspa.desktopmate.geoip.GeoIP</servlet-class>
  421 + </servlet>
  422 + <servlet-mapping>
  423 + <servlet-name>GeoipServiceServlet</servlet-name>
  424 + <url-pattern>/geoip/service</url-pattern>
  425 + </servlet-mapping>
  426 + -->
  427 +
  428 + <!-- MONITOR - servlet -->
  429 + <servlet>
  430 + <description>Servlet di monitoraggio standard</description>
  431 + <display-name>Monitor Servlet</display-name>
  432 + <servlet-name>Monitor</servlet-name>
  433 + <servlet-class>it.softecspa.portal.Monitor</servlet-class>
  434 + </servlet>
  435 + <servlet-mapping>
  436 + <servlet-name>Monitor</servlet-name>
  437 + <url-pattern>/monitor</url-pattern>
  438 + </servlet-mapping>
  439 +
  440 +
  441 +
  442 + <session-config>
  443 + <!-- Sono Minuti -->
  444 + <session-timeout>30</session-timeout>
  445 + </session-config>
  446 +
  447 + <mime-mapping>
  448 + <extension>html</extension>
  449 + <mime-type>text/html</mime-type>
  450 + </mime-mapping>
  451 +
  452 + <mime-mapping>
  453 + <extension>dtd</extension>
  454 + <mime-type>text/plain</mime-type>
  455 + </mime-mapping>
  456 +
  457 +
  458 +
  459 +
  460 +
  461 +
  462 +
  463 + <welcome-file-list>
  464 + <welcome-file>index.html</welcome-file>
  465 + <welcome-file>index.htm</welcome-file>
  466 + <welcome-file>index.jsp</welcome-file>
  467 + <welcome-file>default.html</welcome-file>
  468 + <welcome-file>default.htm</welcome-file>
  469 + <welcome-file>default.jsp</welcome-file>
  470 + </welcome-file-list>
  471 +</web-app>
... ...
conf/liliana/develop/conf/log4j.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  3 +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  4 +
  5 +
  6 + <!-- APPLICATION LOG -->
  7 + <appender name="rootFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  8 + <param name="Directory" value="/var/www/web103/log/ROOT" />
  9 + <param name="Prefix" value="${hostname}_service." />
  10 + <param name="Suffix" value=".log" />
  11 + <param name="Autoflush" value="15" />
  12 + <layout class="org.apache.log4j.PatternLayout">
  13 + <!-- <param name="ConversionPattern" value="%X{sessionId} - %d{yyyy-MM-dd HH:mm:ss} [%-5p] [%C.%M():%L] - %m%n" /> -->
  14 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] [%C.%M():%L] - %m%n" />
  15 + </layout>
  16 + </appender>
  17 +
  18 + <!-- RELOAD LOG -->
  19 + <appender name="reloadFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  20 + <param name="Directory" value="/var/www/web103/log/ROOT/reload" />
  21 + <param name="Prefix" value="${hostname}_node." />
  22 + <param name="Suffix" value=".log" />
  23 + <param name="Autoflush" value="90" />
  24 + <layout class="org.apache.log4j.PatternLayout">
  25 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  26 + </layout>
  27 + </appender>
  28 +
  29 + <!-- STATS LOG -->
  30 + <appender name="c3p0StatsFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  31 + <param name="Directory" value="/var/www/web103/log/ROOT/pool" />
  32 + <param name="Prefix" value="${hostname}_c3p0." />
  33 + <param name="Suffix" value=".log" />
  34 + <param name="Autoflush" value="15" />
  35 + <layout class="org.apache.log4j.PatternLayout">
  36 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  37 + </layout>
  38 + </appender>
  39 +
  40 + <!-- DRAFT DATA STATS LOG -->
  41 + <appender name="draftDataFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  42 + <param name="Directory" value="/var/www/web103/log/ROOT/draft" />
  43 + <param name="Prefix" value="${hostname}_draft." />
  44 + <param name="Suffix" value=".log" />
  45 + <param name="Autoflush" value="15" />
  46 + <layout class="org.apache.log4j.PatternLayout">
  47 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  48 + </layout>
  49 + </appender>
  50 +
  51 + <!-- STATEMENTS STATISTICS LOG -->
  52 + <appender name="statementFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  53 + <param name="Directory" value="/var/www/web103/log/ROOT/statement" />
  54 + <param name="Prefix" value="${hostname}_statement." />
  55 + <param name="Suffix" value=".log" />
  56 + <param name="Autoflush" value="30" />
  57 + <layout class="org.apache.log4j.PatternLayout">
  58 + <param name="ConversionPattern" value="%m%n" />
  59 + </layout>
  60 + </appender>
  61 +
  62 + <!-- LOGGER SPECIFICI
  63 + <category name="access" additivity="false">
  64 + <priority value="INFO" />
  65 + <appender-ref ref="accessFile" />
  66 + </category> -->
  67 +
  68 + <category name="application" additivity="false">
  69 + <priority value="INFO" />
  70 + <appender-ref ref="rootFile" />
  71 + </category>
  72 +
  73 + <category name="it.softecspa" additivity="false">
  74 + <priority value="DEBUG" />
  75 + <appender-ref ref="rootFile" />
  76 + </category>
  77 +
  78 + <!-- Log dei gestione della librera GQFramework -->
  79 + <category name="it.softecspa.database.gqframework" additivity="false">
  80 + <priority value="ERROR" />
  81 + <appender-ref ref="rootFile" />
  82 + </category>
  83 +
  84 + <!-- Log di gestione della librera DM SSO -->
  85 + <category name="it.softecspa.DMSSO" additivity="false">
  86 + <priority value="TRACE" />
  87 + <appender-ref ref="rootFile" />
  88 + </category>
  89 +
  90 + <!-- Logger utilizzato per il monitoraggio delle query SQL
  91 + Impostare a TRACE per visualizzare le query -->
  92 + <category name="it.softecspa.database.dbconnect.SQL" additivity="false">
  93 + <priority value="TRACE" />
  94 + <appender-ref ref="rootFile" />
  95 + </category>
  96 +
  97 + <!-- Logger utilizzato per il monitoraggio statistico delle connessioni verso il datasource
  98 + Impostare a INFO per tracciare le statistiche -->
  99 + <category name="it.softecspa.database.c3p0.stats" additivity="false">
  100 + <priority value="OFF" />
  101 + <appender-ref ref="c3p0StatsFile" />
  102 + </category>
  103 +
  104 + <!-- Logger utilizzato per il monitoraggio delle chiamate
  105 + Impostare a INFO per tracciare le chiamate -->
  106 + <category name="it.softecspa.desktopmate.STATEMENT" additivity="false">
  107 + <priority value="INFO" />
  108 + <appender-ref ref="statementFile" />
  109 + </category>
  110 +
  111 + <!-- Log da utilizzare nelle JSP -->
  112 + <category name="it.softecspa.JSP" additivity="false">
  113 + <priority value="DEBUG" />
  114 + <appender-ref ref="rootFile" />
  115 + </category>
  116 +
  117 + <!-- Log per il servizio di posta
  118 + <category name="kahuna.mail" additivity="false">
  119 + <priority value="DEBUG" />
  120 + <appender-ref ref="rootFile" />
  121 + </category> -->
  122 +
  123 + <!-- Log specifico del componente c3p0 per la gestione del connection pool -->
  124 + <category name="com.mchange" additivity="false">
  125 + <priority value="INFO" />
  126 + <appender-ref ref="rootFile" />
  127 + </category>
  128 +
  129 + <!-- Monitoraggio del reload del contesto.
  130 + Utilizzato principalmente per monitore i riavvii dei nodi -->
  131 + <category name="reload" additivity="false">
  132 + <priority value="INFO" />
  133 + <appender-ref ref="reloadFile" />
  134 + </category>
  135 +
  136 + <!-- Monitoraggio delle interrogazioni draft -->
  137 + <category name="draft.data" additivity="false">
  138 + <priority value="INFO" />
  139 + <appender-ref ref="draftDataFile" />
  140 + </category>
  141 +
  142 + <!-- ROOT -->
  143 + <root>
  144 + <priority value="ERROR"/>
  145 + <appender-ref ref="rootFile"/>
  146 + </root>
  147 +</log4j:configuration>
... ...
conf/liliana/develop/conf/portal_settings.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Applicazione DesktopaMate 2.0 - sviluppo</comment>
  5 +
  6 + <!-- Mappatura DataSource, JWebber -->
  7 + <entry key="datasource.cms">jdbc/dm-stage#MYSQL</entry>
  8 + <!-- <entry key="datasource.cms.readonly">jdbc/dm-master_readonly#MYSQL</entry> -->
  9 +
  10 + <!-- Mappatura DataSource, applicazione
  11 + in caso di più datasource separare la lista con la "virgola" -->
  12 + <entry key="datasource.application">jdbc/dm-master#MYSQL,jdbc/dm-stage#MYSQL</entry>
  13 + <!-- <entry key="datasource.application.readonly">jdbc/dm-master_readonly#MYSQL,jdbc/dm-stage_readonly#MYSQL</entry> -->
  14 +
  15 + <!-- NOTA
  16 + Il primo database in lista deve essere obbligatoriamente quello MASTER
  17 + Il secondo quello di STAGE. Sono obbligatori entrambi
  18 +
  19 + Nel caso sia specificato quello in sola lettura, valgono le stesse regole
  20 + -->
  21 +
  22 + <!-- Maschera di definizione del vero nome del cluster legato al virtual host Tomcat
  23 + Utilizzare la varibile ${hostname} -->
  24 + <entry key="cluster.mask">web103.${hostname}.cluster-liliana.aws.softecspa.it:8180</entry>
  25 + <entry key="cluster.backplane.mask">web103.${hostname}.cluster-liliana.aws.backplane.softecspa.it:8180</entry>
  26 +
  27 + <entry key="jarvis.header.color">#F0DF25</entry>
  28 +
  29 + <entry key="application.domain">service.dev.desktopmate.net</entry>
  30 + <!-- Application context name, leave it blank if there isn't a context
  31 + <entry key="application.context.name"></entry> -->
  32 +
  33 + <!-- <entry key="application.http.port">80</entry> leave it blank for default port 80 -->
  34 + <!-- <entry key="application.https.port">8443</entry> leave it blank for default port 443 -->
  35 +
  36 + <!-- Time after that the page will be redirect
  37 + <entry key="TIME_REDIRECT_PAGE">4</entry> -->
  38 +
  39 + <entry key="application.title">DesktopMate</entry>
  40 +
  41 + <!-- NOTA: prefisso file di configurazione lingua e path immagini -->
  42 + <entry key="application.name">dmservice</entry>
  43 + <entry key="application.environment">sviluppo</entry>
  44 +
  45 + <entry key="language.default">en</entry>
  46 + <entry key="base.url">http://service.dev.desktopmate.net</entry>
  47 +
  48 + <!-- Autocensus username -->
  49 + <entry key="autocensus.login">true</entry>
  50 + <entry key="autocensus.profile">DOWNLOADER</entry>
  51 +
  52 + <!-- Configurazione propria dell'applicazione -->
  53 + <entry key="admin.policy.id">SA</entry>
  54 +
  55 + <!-- Formato della data in visualizzazione -->
  56 + <entry key="standard.datetime.format">dd/MM/yyyy HH:mm:ss</entry>
  57 + <entry key="standard.date.format">dd/MM/yyyy</entry>
  58 +
  59 +
  60 + <!-- Policies -->
  61 + <entry key="policy.SA">SA</entry>
  62 + <entry key="policy.ADMIN">ADMIN</entry>
  63 +
  64 +
  65 + <!-- Abilitazione del task, default true -->
  66 + <entry key="timertask.enable">false</entry>
  67 +
  68 +
  69 + <!-- Server di posta e webmaster -->
  70 + <entry key="mail.enable">true</entry>
  71 +
  72 + <!-- <entry key="mail.smtp.host">smtp-out.softecspa.it</entry> provvisorio -->
  73 + <entry key="mail.smtp.host">localhost</entry>
  74 + <entry key="mail.smtp.localhost"></entry>
  75 + <entry key="mail.smtp.user"></entry>
  76 + <entry key="mail.smtp.password"></entry>
  77 +
  78 + <entry key="mail.from">dm-web103-service.liliana@desktopmate.net</entry>
  79 + <entry key="mail.to">massimiliano.veroni@softecspa.it</entry>
  80 + <entry key="mail.cc"></entry>
  81 + <entry key="mail.bcc"></entry>
  82 + <entry key="mail.subject">DesktopMate - web103 - liliana -</entry>
  83 +
  84 + <!-- Se 'true' invia una mail al riavvio del sistema
  85 + Se 'false' (default) la mail è inviata soltanto in caso di cambio di versione -->
  86 + <entry key="mail.start.enable">false</entry>
  87 +
  88 + <!-- Invia una mail al verificarsi di un errore non gestito, default 'false' -->
  89 + <entry key="mail.error.enable">true</entry>
  90 +
  91 + <!-- Invia una mail al verificarsi di un errore SQL, default 'false' -->
  92 + <entry key="mail.sqlerror.enable">true</entry>
  93 +
  94 + <!-- Invia una mail quando arriva un nuovo modello di device, default 'false' -->
  95 + <entry key="mail.new-device-model.enable">true</entry>
  96 +
  97 + <!-- Abilitazione sistema di recupero messaggi push non inviati al reload del contesto, default 'false' -->
  98 + <entry key="push.recovery.enable">false</entry>
  99 +
  100 +
  101 + <!-- Paginazione
  102 + <entry key="line4page">6</entry>
  103 + <entry key="max.segue">6</entry>
  104 + -->
  105 +
  106 +</properties>
0 107 \ No newline at end of file
... ...
conf/liliana/develop/conf/sso.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Configurazione SSO DNA</comment>
  5 +
  6 + <entry key="cookie.enable">true</entry>
  7 + <!-- <entry key="cookie.domain">.dev.desktopmate.net</entry> -->
  8 +
  9 + <!-- Identificativi del client sul server SSO -->
  10 + <entry key="client.id">dmservice</entry>
  11 + <entry key="client.secret">d1906cca-d858-4420-ba54-f8c0984883bd</entry>
  12 + <entry key="default.scope">userinfo</entry>
  13 + <entry key="default.organization">SOFTEC</entry>
  14 +
  15 + <entry key="oauth2.server">http://dmsso.dev.desktopmate.net/dmsso</entry>
  16 + <entry key="oauth2.server.signature">9c5a523d-e3b1-4611-968b-c0e9207394fa:a9eaecee-387e-43ff-84ae-e2d77d3e4d1b</entry>
  17 +
  18 + <!-- Endpoint del serve SSO -->
  19 + <entry key="authorization.endpoint">${oauth2.server}/oauth2/authorize</entry>
  20 + <entry key="token.endpoint">${oauth2.server}/oauth2/token</entry>
  21 + <entry key="token.info.endpoint">${oauth2.server}/v1/tokeninfo</entry>
  22 + <entry key="user.info.endpoint">${oauth2.server}/v1/userinfo</entry>
  23 + <entry key="change.password.endpoint">${oauth2.server}/admin</entry>
  24 + <entry key="logout.endpoint">${oauth2.server}/logout</entry>
  25 +
  26 + <!-- Url di ritorno del server locale
  27 + <entry key="redirect.uri">http://service.dev.desktopmate.net/jarvis</entry>
  28 + <entry key="logout.uri">http://service.dev.desktopmate.net/jarvis?sso_status=LOGOUT</entry>
  29 + <entry key="error.uri">http://service.dev.desktopmate.net/jarvis?sso_status=ERROR</entry>
  30 + -->
  31 + <entry key="redirect.uri">${autourl}</entry>
  32 + <entry key="logout.uri">${autourl}?sso_status=LOGOUT</entry>
  33 + <entry key="error.uri">${autourl}?sso_status=ERROR</entry>
  34 +
  35 +</properties>
0 36 \ No newline at end of file
... ...
conf/liliana/develop/image-pack/apple-touch-icon-ipad-76x76.png 0 → 100644

6.22 KB

conf/liliana/develop/image-pack/apple-touch-icon-ipad-retina-152x152.png 0 → 100644

16.6 KB

conf/liliana/develop/image-pack/apple-touch-icon-iphone-60x60.png 0 → 100644

4.28 KB

conf/liliana/develop/image-pack/apple-touch-icon-iphone-retina-120x120.png 0 → 100644

12.1 KB

conf/liliana/develop/image-pack/background-image.png 0 → 100644

48.9 KB

conf/liliana/develop/image-pack/store/apple-touch-icon-ipad-76x76.png 0 → 100644

7.12 KB

conf/liliana/develop/image-pack/store/apple-touch-icon-ipad-retina-152x152.png 0 → 100644

13 KB

conf/liliana/develop/image-pack/store/apple-touch-icon-iphone-60x60.png 0 → 100644

6.03 KB

conf/liliana/develop/image-pack/store/apple-touch-icon-iphone-retina-120x120.png 0 → 100644

10.2 KB

conf/liliana/develop/version.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Version information</comment>
  5 +
  6 + <entry key="version.number">2.10.16</entry>
  7 + <entry key="version.release"></entry>
  8 + <entry key="build.number">1814</entry>
  9 + <entry key="build.date">05/06/2014 11:39</entry>
  10 + <entry key="build.installation">liliana/develop</entry>
  11 +
  12 +</properties>
... ...
conf/liliana/staging/META-INF/context.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <!-- Default set of monitored resources -->
  8 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  9 +
  10 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  11 + <Manager pathname="" />
  12 +
  13 + <!-- SVILUPPO -->
  14 + <!-- DATASOURCE -->
  15 + <Resource name="jdbc/dm-stage"
  16 + auth="Container"
  17 + description="DB Connection"
  18 + driverClass="com.mysql.jdbc.Driver"
  19 +
  20 + initialPoolSize="1"
  21 + minPoolSize="1"
  22 + maxPoolSize="20"
  23 + acquireIncrement="1"
  24 +
  25 + checkoutTimeout="3600"
  26 + breakAfterAcquireFailure="false"
  27 + maxIdleTimeExcessConnections = "30"
  28 + maxIdleTime = "1800"
  29 + maxConnectionAge="3600"
  30 + idleConnectionTestPeriod="200"
  31 +
  32 + user="web124u1"
  33 + password="98c7EwXJS7"
  34 + factory="org.apache.naming.factory.BeanFactory"
  35 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  36 + jdbcUrl="jdbc:mysql://int-mysql-master.cluster-liliana.softecspa.it:3306/web124db1?autoReconnect=true&amp;characterEncoding=UTF-8" />
  37 +
  38 + <Resource name="jdbc/dm-master"
  39 + auth="Container"
  40 + description="DB Connection"
  41 + driverClass="com.mysql.jdbc.Driver"
  42 +
  43 + initialPoolSize="1"
  44 + minPoolSize="0"
  45 + maxPoolSize="20"
  46 + acquireIncrement="1"
  47 +
  48 + checkoutTimeout="3600"
  49 + breakAfterAcquireFailure="false"
  50 + maxIdleTimeExcessConnections = "30"
  51 + maxIdleTime = "1800"
  52 + maxConnectionAge="3600"
  53 + idleConnectionTestPeriod="200"
  54 +
  55 + user="web124u2"
  56 + password="GOoRoTj5K5"
  57 + factory="org.apache.naming.factory.BeanFactory"
  58 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  59 + jdbcUrl="jdbc:mysql://int-mysql-master.cluster-liliana.softecspa.it:3306/web124db2?autoReconnect=true&amp;characterEncoding=UTF-8" />
  60 +
  61 +
  62 +</Context>
0 63 \ No newline at end of file
... ...
conf/liliana/staging/WEB-INF/web.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  3 + <display-name>DesktopMate + Jarvis console 2.10.18 (1820) - liliana/staging [13/06/2014 12:30]</display-name>
  4 + <!-- Ultime modifiche del 18/02/2014 -->
  5 +
  6 + <!-- liliana/staging - 13/06/2014 12:30 -->
  7 + <!-- Configurazioni obbligatorie -->
  8 + <context-param>
  9 + <param-name>ErrorPage</param-name>
  10 + <param-value>/error.jsp</param-value>
  11 + </context-param>
  12 + <context-param>
  13 + <param-name>constantsFile</param-name>
  14 + <param-value>portal_settings.xml</param-value>
  15 + </context-param>
  16 + <context-param>
  17 + <param-name>logPropertyFile</param-name>
  18 + <param-value>log4j.xml</param-value>
  19 + </context-param>
  20 +
  21 + <context-param>
  22 + <param-name>defaultLanguage</param-name>
  23 + <param-value>it</param-value>
  24 + </context-param>
  25 +
  26 + <!-- Utilizzata per la gestione della sessione - solo per funzioni di monitoraggio -->
  27 + <context-param>
  28 + <param-name>SessionFactory</param-name>
  29 + <param-value>it.softecspa.jwebber.frameworkImpl.session.CMSImplSessionFactory</param-value>
  30 + </context-param>
  31 +
  32 + <!-- Utilizzata per la gestione della sicurezza - solo per funzioni di monitoraggio -->
  33 + <context-param>
  34 + <param-name>SecurityManager</param-name>
  35 + <param-value>it.softecspa.jwebber.frameworkImpl.security.CMSImplSecurityManager</param-value>
  36 + </context-param>
  37 +
  38 + <!-- @deprecated - Contiene l'elenco delle funzioni di cui deve essere fatto il log degli accessi -->
  39 + <context-param>
  40 + <param-name>accessLogWhat</param-name>
  41 + <param-value>,*,</param-value>
  42 + </context-param>
  43 +
  44 + <!-- @deprecated - Configurazioni opzionali -->
  45 + <context-param>
  46 + <param-name>mailServer</param-name>
  47 + <param-value>moon.softecspa.it</param-value>
  48 + </context-param>
  49 +
  50 + <!-- Da valorizzare se si vuole la autenticazione JWebber -->
  51 + <context-param>
  52 + <param-name>keyStore</param-name>
  53 + <param-value>it.softecspa.portal.security.KeyStoreImpl</param-value>
  54 + </context-param>
  55 +
  56 +
  57 + <!-- Daily report -->
  58 + <filter>
  59 + <filter-name>urlRewrite-DayReportFilter</filter-name>
  60 + <filter-class>it.softecspa.portal.filters.DayReportFilter</filter-class>
  61 + </filter>
  62 + <filter-mapping>
  63 + <filter-name>urlRewrite-DayReportFilter</filter-name>
  64 + <url-pattern>/dailyreport/*</url-pattern>
  65 + </filter-mapping>
  66 +
  67 +
  68 + <!-- DM Store -->
  69 + <filter>
  70 + <filter-name>urlRewrite-StoreFilter</filter-name>
  71 + <filter-class>it.softecspa.portal.filters.StoreFilter</filter-class>
  72 + </filter>
  73 + <filter-mapping>
  74 + <filter-name>urlRewrite-StoreFilter</filter-name>
  75 + <url-pattern>/store/*</url-pattern>
  76 + </filter-mapping>
  77 +
  78 +
  79 + <!-- DM Share -->
  80 + <filter>
  81 + <filter-name>urlRewrite-ShareFilter</filter-name>
  82 + <filter-class>it.softecspa.portal.filters.ShareFilter</filter-class>
  83 + </filter>
  84 + <filter-mapping>
  85 + <filter-name>urlRewrite-ShareFilter</filter-name>
  86 + <url-pattern>/share/*</url-pattern>
  87 + </filter-mapping>
  88 +
  89 +
  90 +
  91 +
  92 + <!-- Servlet -->
  93 +
  94 +
  95 + <!-- J.A.R.V.I.S - mark 2 -->
  96 + <servlet>
  97 + <servlet-name>Mark2</servlet-name>
  98 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  99 + <init-param>
  100 + <param-name>SecurityManager</param-name>
  101 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  102 + </init-param>
  103 + <init-param>
  104 + <param-name>servletCode</param-name>
  105 + <param-value>mark-II</param-value>
  106 + </init-param>
  107 + <init-param>
  108 + <param-name>ProcessRequest</param-name>
  109 + <param-value>it.softecspa.portal.processRequest.Mark2PR</param-value>
  110 + </init-param>
  111 + <init-param>
  112 + <param-name>ErrorJsp</param-name>
  113 + <param-value>/error.jsp</param-value>
  114 + </init-param>
  115 + </servlet>
  116 +
  117 + <servlet-mapping>
  118 + <servlet-name>Mark2</servlet-name>
  119 + <url-pattern>/jarvis</url-pattern>
  120 + </servlet-mapping>
  121 +
  122 +
  123 + <!-- J.A.R.V.I.S mark 1 -->
  124 + <servlet>
  125 + <servlet-name>BackdoorPanel</servlet-name>
  126 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  127 + <init-param>
  128 + <param-name>SecurityManager</param-name>
  129 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  130 + </init-param>
  131 + <init-param>
  132 + <param-name>servletCode</param-name>
  133 + <param-value>backdoor-panel</param-value>
  134 + </init-param>
  135 + <init-param>
  136 + <param-name>ProcessRequest</param-name>
  137 + <param-value>it.softecspa.portal.processRequest.BackdoorPR</param-value>
  138 + </init-param>
  139 + <init-param>
  140 + <param-name>ErrorJsp</param-name>
  141 + <param-value>/error.jsp</param-value>
  142 + </init-param>
  143 + </servlet>
  144 +
  145 + <servlet-mapping>
  146 + <servlet-name>BackdoorPanel</servlet-name>
  147 + <url-pattern>/backdoor-panel</url-pattern>
  148 + </servlet-mapping>
  149 +
  150 + <servlet-mapping>
  151 + <servlet-name>BackdoorPanel</servlet-name>
  152 + <url-pattern>/jarvis1</url-pattern>
  153 + </servlet-mapping>
  154 +
  155 +
  156 + <!-- Service Status -->
  157 + <servlet>
  158 + <servlet-name>ServicesStatus</servlet-name>
  159 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  160 + <init-param>
  161 + <param-name>SecurityManager</param-name>
  162 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  163 + </init-param>
  164 + <init-param>
  165 + <param-name>servletCode</param-name>
  166 + <param-value>services-status</param-value>
  167 + </init-param>
  168 + <init-param>
  169 + <param-name>ProcessRequest</param-name>
  170 + <param-value>it.softecspa.portal.processRequest.BackdoorPR</param-value>
  171 + </init-param>
  172 + <init-param>
  173 + <param-name>ErrorJsp</param-name>
  174 + <param-value>/error.jsp</param-value>
  175 + </init-param>
  176 + </servlet>
  177 + <!-- Clone della servlet BackdoorPanel che necessita di SSO -->
  178 + <servlet-mapping>
  179 + <servlet-name>ServicesStatus</servlet-name>
  180 + <url-pattern>/services-status</url-pattern>
  181 + </servlet-mapping>
  182 +
  183 +
  184 +
  185 + <!-- Master Status -->
  186 + <servlet>
  187 + <servlet-name>MasterSlave</servlet-name>
  188 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  189 + <init-param>
  190 + <param-name>SecurityManager</param-name>
  191 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  192 + </init-param>
  193 + <init-param>
  194 + <param-name>servletCode</param-name>
  195 + <param-value>master-slave</param-value>
  196 + </init-param>
  197 + <init-param>
  198 + <param-name>ProcessRequest</param-name>
  199 + <param-value>it.softecspa.portal.processRequest.MasterSlavePR</param-value>
  200 + </init-param>
  201 + <init-param>
  202 + <param-name>ErrorJsp</param-name>
  203 + <param-value>/error.jsp</param-value>
  204 + </init-param>
  205 + </servlet>
  206 + <servlet-mapping>
  207 + <servlet-name>MasterSlave</servlet-name>
  208 + <url-pattern>/master-slave</url-pattern>
  209 + </servlet-mapping>
  210 +
  211 +
  212 + <!-- Service Synchro -->
  213 + <servlet>
  214 + <servlet-name>ServicesSynchro</servlet-name>
  215 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  216 + <init-param>
  217 + <param-name>SecurityManager</param-name>
  218 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  219 + </init-param>
  220 + <init-param>
  221 + <param-name>servletCode</param-name>
  222 + <param-value>services-synchro</param-value>
  223 + </init-param>
  224 + <init-param>
  225 + <param-name>ProcessRequest</param-name>
  226 + <param-value>it.softecspa.portal.processRequest.ServicesSynchroPR</param-value>
  227 + </init-param>
  228 + <init-param>
  229 + <param-name>ErrorJsp</param-name>
  230 + <param-value>/error.jsp</param-value>
  231 + </init-param>
  232 + </servlet>
  233 + <servlet-mapping>
  234 + <servlet-name>ServicesSynchro</servlet-name>
  235 + <url-pattern>/services-synchro</url-pattern>
  236 + </servlet-mapping>
  237 +
  238 +
  239 + <!-- @deprecated - Service Images -->
  240 + <servlet>
  241 + <servlet-name>ServicesImages</servlet-name>
  242 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  243 + <init-param>
  244 + <param-name>SecurityManager</param-name>
  245 + <param-value>it.softecspa.jwebber.frameworkImpl.security.RequestSecurityManager</param-value>
  246 + </init-param>
  247 + <init-param>
  248 + <param-name>servletCode</param-name>
  249 + <param-value>services-images</param-value>
  250 + </init-param>
  251 + <init-param>
  252 + <param-name>ProcessRequest</param-name>
  253 + <param-value>it.softecspa.portal.processRequest.ServicesImagesPR</param-value>
  254 + </init-param>
  255 + <init-param>
  256 + <param-name>ErrorJsp</param-name>
  257 + <param-value>/error.jsp</param-value>
  258 + </init-param>
  259 + </servlet>
  260 + <servlet-mapping>
  261 + <servlet-name>ServicesImages</servlet-name>
  262 + <url-pattern>/services-images</url-pattern>
  263 + </servlet-mapping>
  264 +
  265 +
  266 + <!-- Startup -->
  267 + <servlet>
  268 + <servlet-name>WebApp</servlet-name>
  269 + <servlet-class>it.softecspa.portal.InitWebApp</servlet-class>
  270 + <load-on-startup>1</load-on-startup>
  271 + </servlet>
  272 + <servlet-mapping>
  273 + <servlet-name>WebApp</servlet-name>
  274 + <url-pattern>/WebApp</url-pattern>
  275 + </servlet-mapping>
  276 +
  277 +
  278 +
  279 + <!-- DOWNLOAD-SERVICE - servlet -->
  280 + <servlet>
  281 + <description>Servlet utilizzata per la gestione dei downloade dello store</description>
  282 + <display-name>Store Service Servlet</display-name>
  283 + <servlet-name>StoreServiceServlet</servlet-name>
  284 + <servlet-class>it.softecspa.mvc.MVCGenericServlet</servlet-class>
  285 + <init-param>
  286 + <param-name>SecurityManager</param-name>
  287 + <param-value>it.softecspa.jwebber.frameworkImpl.security.DMSsoSecurityManager</param-value>
  288 + </init-param>
  289 + <init-param>
  290 + <param-name>servletCode</param-name>
  291 + <param-value>store</param-value>
  292 + </init-param>
  293 + <init-param>
  294 + <param-name>ProcessRequest</param-name>
  295 + <param-value>it.softecspa.portal.processRequest.StorePR</param-value>
  296 + </init-param>
  297 + <init-param>
  298 + <param-name>ErrorJsp</param-name>
  299 + <param-value>/error.jsp</param-value>
  300 + </init-param>
  301 + <!--
  302 + <servlet-class>it.softecspa.desktopmate.services.store.StoreServlet</servlet-class>
  303 + -->
  304 + </servlet>
  305 + <servlet-mapping>
  306 + <servlet-name>StoreServiceServlet</servlet-name>
  307 + <url-pattern>/store</url-pattern>
  308 + </servlet-mapping>
  309 +
  310 +
  311 + <!-- POST-SERVICE - servlet -->
  312 + <servlet>
  313 + <description>Servlet utilizzata per la comunicazione tra server e device</description>
  314 + <display-name>Device-Statement Servlet</display-name>
  315 + <servlet-name>DeviceStatementServlet</servlet-name>
  316 + <servlet-class>it.softecspa.desktopmate.deviceservices.DeviceStatement</servlet-class>
  317 + </servlet>
  318 + <servlet-mapping>
  319 + <servlet-name>DeviceStatementServlet</servlet-name>
  320 + <url-pattern>/services-post/statement</url-pattern>
  321 + </servlet-mapping>
  322 +
  323 +
  324 + <!-- NOTIFY REMOTE RENEWAL - servlet -->
  325 + <servlet>
  326 + <description>Servlet utilizzata per la notifica dei pagamenti eseguiti in remoto</description>
  327 + <display-name>Renewal Notification Servlet</display-name>
  328 + <servlet-name>NotifyRemoteRenewal</servlet-name>
  329 + <servlet-class>it.softecspa.desktopmate.otherservices.NotifyRemoteRenewal</servlet-class>
  330 + </servlet>
  331 + <servlet-mapping>
  332 + <servlet-name>NotifyRemoteRenewal</servlet-name>
  333 + <url-pattern>/notify</url-pattern>
  334 + </servlet-mapping>
  335 +
  336 +
  337 + <!-- Gestione servizi push - servlet -->
  338 + <servlet>
  339 + <description>Servlet utilizzata per la gestione remota dei serivzi push</description>
  340 + <display-name>Push-Statement Servlet</display-name>
  341 + <servlet-name>PushStatementServlet</servlet-name>
  342 + <servlet-class>it.softecspa.desktopmate.pushservices.PushStatement</servlet-class>
  343 + </servlet>
  344 + <servlet-mapping>
  345 + <servlet-name>PushStatementServlet</servlet-name>
  346 + <url-pattern>/services-push/statement</url-pattern>
  347 + </servlet-mapping>
  348 +
  349 +
  350 + <!-- Gestione servizi autorizzativi e di profilo - servlet -->
  351 + <servlet>
  352 + <description>Servlet utilizzata per la gestione dei servizi amministrativi</description>
  353 + <display-name>Auth-Statement Servlet</display-name>
  354 + <servlet-name>AuthStatementServlet</servlet-name>
  355 + <servlet-class>it.softecspa.desktopmate.authservices.AuthStatement</servlet-class>
  356 + </servlet>
  357 + <servlet-mapping>
  358 + <servlet-name>AuthStatementServlet</servlet-name>
  359 + <url-pattern>/authentication-service/statement</url-pattern>
  360 + </servlet-mapping>
  361 +
  362 +
  363 + <!-- Gestione servizi di esportazione - servlet -->
  364 + <servlet>
  365 + <description>Servlet utilizzata per la esportazione dei dati</description>
  366 + <display-name>Exporter-Statement Servlet</display-name>
  367 + <servlet-name>ExporterStatementServlet</servlet-name>
  368 + <servlet-class>it.softecspa.desktopmate.connectors.ExporterStatement</servlet-class>
  369 + </servlet>
  370 + <servlet-mapping>
  371 + <servlet-name>ExporterStatementServlet</servlet-name>
  372 + <url-pattern>/connector-export/statement</url-pattern>
  373 + </servlet-mapping>
  374 +
  375 +
  376 + <!-- Gestione servizi di portale con autenticazione - servlet -->
  377 + <servlet>
  378 + <description>Servlet di portale servizi con autenticazione</description>
  379 + <display-name>Portal-Statement (authenticated) Servlet</display-name>
  380 + <servlet-name>AuthPortalStatementServlet</servlet-name>
  381 + <servlet-class>it.softecspa.desktopmate.portalservices.auth.AuthenticatedStatement</servlet-class>
  382 + </servlet>
  383 + <servlet-mapping>
  384 + <servlet-name>AuthPortalStatementServlet</servlet-name>
  385 + <url-pattern>/portal-service/statement</url-pattern>
  386 + </servlet-mapping>
  387 +
  388 +
  389 + <!-- Gestione servizi di portale con guest - servlet -->
  390 + <servlet>
  391 + <description>Servlet di portale servizi</description>
  392 + <display-name>Portal-Statement (guest) Servlet</display-name>
  393 + <servlet-name>GuestPortalStatementServlet</servlet-name>
  394 + <servlet-class>it.softecspa.desktopmate.portalservices.guest.GuestStatement</servlet-class>
  395 + </servlet>
  396 + <servlet-mapping>
  397 + <servlet-name>GuestPortalStatementServlet</servlet-name>
  398 + <url-pattern>/portal-service-guest/statement</url-pattern>
  399 + </servlet-mapping>
  400 +
  401 +
  402 + <!-- Gestione servizi di interconnesione a MyDesktopmate - servlet -->
  403 + <servlet>
  404 + <description>Servlet collegamento con MyDesktopmate</description>
  405 + <display-name>MyDesktopmate-Statement Servlet</display-name>
  406 + <servlet-name>MyDesktopmateStatementServlet</servlet-name>
  407 + <servlet-class>it.softecspa.desktopmate.my.services.ConnectorStatement</servlet-class>
  408 + </servlet>
  409 + <servlet-mapping>
  410 + <servlet-name>MyDesktopmateStatementServlet</servlet-name>
  411 + <url-pattern>/mydesktopmate-service/statement</url-pattern>
  412 + </servlet-mapping>
  413 +
  414 +
  415 + <!-- Gestione servizi geoip - servlet
  416 + <servlet>
  417 + <description>Servlet servizi geoip</description>
  418 + <display-name>GeoIP-Statement Servlet</display-name>
  419 + <servlet-name>GeoipServiceServlet</servlet-name>
  420 + <servlet-class>it.softecspa.desktopmate.geoip.GeoIP</servlet-class>
  421 + </servlet>
  422 + <servlet-mapping>
  423 + <servlet-name>GeoipServiceServlet</servlet-name>
  424 + <url-pattern>/geoip/service</url-pattern>
  425 + </servlet-mapping>
  426 + -->
  427 +
  428 + <!-- MONITOR - servlet -->
  429 + <servlet>
  430 + <description>Servlet di monitoraggio standard</description>
  431 + <display-name>Monitor Servlet</display-name>
  432 + <servlet-name>Monitor</servlet-name>
  433 + <servlet-class>it.softecspa.portal.Monitor</servlet-class>
  434 + </servlet>
  435 + <servlet-mapping>
  436 + <servlet-name>Monitor</servlet-name>
  437 + <url-pattern>/monitor</url-pattern>
  438 + </servlet-mapping>
  439 +
  440 +
  441 +
  442 + <session-config>
  443 + <!-- Sono Minuti -->
  444 + <session-timeout>30</session-timeout>
  445 + </session-config>
  446 +
  447 + <mime-mapping>
  448 + <extension>html</extension>
  449 + <mime-type>text/html</mime-type>
  450 + </mime-mapping>
  451 +
  452 + <mime-mapping>
  453 + <extension>dtd</extension>
  454 + <mime-type>text/plain</mime-type>
  455 + </mime-mapping>
  456 +
  457 +
  458 +
  459 +
  460 +
  461 +
  462 +
  463 + <welcome-file-list>
  464 + <welcome-file>index.html</welcome-file>
  465 + <welcome-file>index.htm</welcome-file>
  466 + <welcome-file>index.jsp</welcome-file>
  467 + <welcome-file>default.html</welcome-file>
  468 + <welcome-file>default.htm</welcome-file>
  469 + <welcome-file>default.jsp</welcome-file>
  470 + </welcome-file-list>
  471 +</web-app>
... ...
conf/liliana/staging/conf/log4j.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  3 +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  4 +
  5 +
  6 + <!-- APPLICATION LOG -->
  7 + <appender name="rootFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  8 + <param name="Directory" value="/var/www/web124/log/ROOT" />
  9 + <param name="Prefix" value="${hostname}_service." />
  10 + <param name="Suffix" value=".log" />
  11 + <param name="Autoflush" value="15" />
  12 + <layout class="org.apache.log4j.PatternLayout">
  13 + <!-- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] [%C.%M():%L] - %m%n" /> -->
  14 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] %m%n" />
  15 + </layout>
  16 + </appender>
  17 +
  18 + <!-- RELOAD LOG -->
  19 + <appender name="reloadFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  20 + <param name="Directory" value="/var/www/web124/log/ROOT/reload" />
  21 + <param name="Prefix" value="${hostname}_node." />
  22 + <param name="Suffix" value=".log" />
  23 + <param name="Autoflush" value="15" />
  24 + <layout class="org.apache.log4j.PatternLayout">
  25 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  26 + </layout>
  27 + </appender>
  28 +
  29 + <!-- STATS LOG -->
  30 + <appender name="c3p0StatsFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  31 + <param name="Directory" value="/var/www/web124/log/ROOT/pool" />
  32 + <param name="Prefix" value="${hostname}_c3p0." />
  33 + <param name="Suffix" value=".log" />
  34 + <param name="Autoflush" value="15" />
  35 + <layout class="org.apache.log4j.PatternLayout">
  36 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  37 + </layout>
  38 + </appender>
  39 +
  40 + <!-- DRAFT DATA STATS LOG -->
  41 + <appender name="draftDataFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  42 + <param name="Directory" value="/var/www/web124/log/ROOT/draft" />
  43 + <param name="Prefix" value="${hostname}_draft." />
  44 + <param name="Suffix" value=".log" />
  45 + <param name="Autoflush" value="15" />
  46 + <layout class="org.apache.log4j.PatternLayout">
  47 + <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %m%n" />
  48 + </layout>
  49 + </appender>
  50 +
  51 + <!-- STATEMENTS STATISTICS LOG -->
  52 + <appender name="statementFile" class="it.softecspa.kahuna.log.DatedFileAppender">
  53 + <param name="Directory" value="/var/www/web124/log/ROOT/statement" />
  54 + <param name="Prefix" value="${hostname}_statement." />
  55 + <param name="Suffix" value=".log" />
  56 + <param name="Autoflush" value="30" />
  57 + <layout class="org.apache.log4j.PatternLayout">
  58 + <param name="ConversionPattern" value="%m%n" />
  59 + </layout>
  60 + </appender>
  61 +
  62 + <!-- LOGGER SPECIFICI
  63 + <category name="access" additivity="false">
  64 + <priority value="INFO" />
  65 + <appender-ref ref="accessFile" />
  66 + </category> -->
  67 +
  68 + <category name="application" additivity="false">
  69 + <priority value="INFO" />
  70 + <appender-ref ref="rootFile" />
  71 + </category>
  72 +
  73 + <category name="it.softecspa" additivity="false">
  74 + <priority value="DEBUG" />
  75 + <appender-ref ref="rootFile" />
  76 + </category>
  77 +
  78 + <!-- Log di gestione della librera dbConnect -->
  79 + <category name="it.softecspa.database.dbconnect" additivity="false">
  80 + <priority value="ERROR" />
  81 + <appender-ref ref="rootFile" />
  82 + </category>
  83 +
  84 + <!-- Log di gestione della librera DM SSO -->
  85 + <category name="it.softecspa.DMSSO" additivity="false">
  86 + <priority value="TRACE" />
  87 + <appender-ref ref="rootFile" />
  88 + </category>
  89 +
  90 + <!-- Logger utilizzato per il monitoraggio delle query SQL
  91 + Impostare a TRACE per visualizzare le query -->
  92 + <category name="it.softecspa.database.dbconnect.SQL" additivity="false">
  93 + <priority value="TRACE" />
  94 + <appender-ref ref="rootFile" />
  95 + </category>
  96 +
  97 + <!-- Logger utilizzato per il monitoraggio statistico delle connessioni verso il datasource
  98 + Impostare a INFO per tracciare le statistiche -->
  99 + <category name="it.softecspa.database.c3p0.stats" additivity="false">
  100 + <priority value="OFF" />
  101 + <appender-ref ref="c3p0StatsFile" />
  102 + </category>
  103 +
  104 + <!-- Logger utilizzato per il monitoraggio delle chiamate
  105 + Impostare a INFO per tracciare le chiamate -->
  106 + <category name="it.softecspa.desktopmate.STATEMENT" additivity="false">
  107 + <priority value="INFO" />
  108 + <appender-ref ref="statementFile" />
  109 + </category>
  110 +
  111 + <!-- Log da utilizzare nelle JSP -->
  112 + <category name="it.softecspa.JSP" additivity="false">
  113 + <priority value="DEBUG" />
  114 + <appender-ref ref="rootFile" />
  115 + </category>
  116 +
  117 + <!-- Log per il servizio di posta
  118 + <category name="kahuna.mail" additivity="false">
  119 + <priority value="DEBUG" />
  120 + <appender-ref ref="rootFile" />
  121 + </category> -->
  122 +
  123 + <!-- Log specifico del componente c3p0 per la gestione del connection pool -->
  124 + <category name="com.mchange" additivity="false">
  125 + <priority value="INFO" />
  126 + <appender-ref ref="rootFile" />
  127 + </category>
  128 +
  129 + <!-- Monitoraggio del reload del contesto.
  130 + Utilizzato principalmente per monitore i riavvii dei nodi -->
  131 + <category name="reload" additivity="false">
  132 + <priority value="INFO" />
  133 + <appender-ref ref="reloadFile" />
  134 + </category>
  135 +
  136 + <!-- Monitoraggio delle interrogazioni draft -->
  137 + <category name="draft.data" additivity="false">
  138 + <priority value="INFO" />
  139 + <appender-ref ref="draftDataFile" />
  140 + </category>
  141 +
  142 + <!-- ROOT -->
  143 + <root>
  144 + <priority value="ERROR"/>
  145 + <appender-ref ref="rootFile"/>
  146 + </root>
  147 +</log4j:configuration>
... ...
conf/liliana/staging/conf/portal_settings.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Applicazione DesktopaMate 2.0 - staging</comment>
  5 +
  6 + <!-- Mappatura DataSource, JWebber -->
  7 + <entry key="datasource.cms">jdbc/dm-stage#MYSQL</entry>
  8 + <!-- <entry key="datasource.cms.readonly">jdbc/dm-master_readonly#MYSQL</entry> -->
  9 +
  10 + <!-- Mappatura DataSource, applicazione
  11 + in caso di più datasource separare la lista con la "virgola" -->
  12 + <entry key="datasource.application">jdbc/dm-master#MYSQL,jdbc/dm-stage#MYSQL</entry>
  13 + <!-- <entry key="datasource.application.readonly">jdbc/dm-master_readonly#MYSQL,jdbc/dm-stage_readonly#MYSQL</entry> -->
  14 +
  15 + <!-- NOTA
  16 + Il primo database in lista deve essere obbligatoriamente quello MASTER
  17 + Il secondo quello di STAGE. Sono obbligatori entrambi
  18 +
  19 + Nel caso sia specificato quello in sola lettura, valgono le stesse regole
  20 + -->
  21 +
  22 + <!-- Maschera di definizione del vero nome del cluster legato al virtual host Tomcat
  23 + Utilizzare la varibile ${hostname} -->
  24 + <entry key="cluster.mask">web124.${hostname}.cluster-liliana.aws.softecspa.it:8180</entry>
  25 + <entry key="cluster.backplane.mask">web124.${hostname}.cluster-liliana.aws.backplane.softecspa.it:8180</entry>
  26 +
  27 + <entry key="jarvis.header.color">#44F025</entry>
  28 +
  29 + <entry key="application.domain">stage-service.dev.desktopmate.net</entry>
  30 + <!-- Application context name, leave it blank if there isn't a context
  31 + <entry key="application.context.name"></entry> -->
  32 +
  33 + <!-- <entry key="application.http.port">80</entry> leave it blank for default port 80 -->
  34 + <!-- <entry key="application.https.port">8443</entry> leave it blank for default port 443 -->
  35 +
  36 + <!-- Time after that the page will be redirect
  37 + <entry key="TIME_REDIRECT_PAGE">4</entry> -->
  38 +
  39 + <entry key="application.title">DesktopMate (Staging version)</entry>
  40 +
  41 + <!-- NOTA: prefisso file di configurazione lingua e path immagini -->
  42 + <entry key="application.name">dmservice</entry>
  43 + <entry key="application.environment">staging</entry>
  44 +
  45 + <entry key="language.default">en</entry>
  46 + <entry key="base.url">http://stage-service.dev.desktopmate.net</entry>
  47 +
  48 + <!-- Autocensus username -->
  49 + <entry key="autocensus.login">true</entry>
  50 + <entry key="autocensus.profile">DOWNLOADER</entry>
  51 +
  52 + <!-- Configurazione propria dell'applicazione -->
  53 + <entry key="admin.policy.id">SA</entry>
  54 +
  55 + <!-- Formato della data in visualizzazione -->
  56 + <entry key="standard.datetime.format">dd/MM/yyyy HH:mm:ss</entry>
  57 + <entry key="standard.date.format">dd/MM/yyyy</entry>
  58 +
  59 +
  60 + <!-- Policies -->
  61 + <entry key="policy.SA">SA</entry>
  62 + <entry key="policy.ADMIN">ADMIN</entry>
  63 +
  64 +
  65 +
  66 + <!-- Server di posta e webmaster -->
  67 + <entry key="mail.enable">true</entry>
  68 +
  69 + <!-- <entry key="mail.smtp.host">smtp-out.softecspa.it</entry> provvisorio -->
  70 + <entry key="mail.smtp.host">localhost</entry>
  71 + <entry key="mail.smtp.localhost"></entry>
  72 + <entry key="mail.smtp.user"></entry>
  73 + <entry key="mail.smtp.password"></entry>
  74 +
  75 + <entry key="mail.from">dm-web124-service@desktopmate.net</entry>
  76 + <entry key="mail.to">massimiliano.veroni@softecspa.it</entry>
  77 + <entry key="mail.cc"></entry>
  78 + <entry key="mail.bcc"></entry>
  79 + <entry key="mail.subject">DesktopMate - web124 -</entry>
  80 +
  81 + <!-- Se 'true' invia una mail al riavvio del sistema
  82 + Se 'false' (default) la mail è inviata soltanto in caso di cambio di versione -->
  83 + <entry key="mail.start.enable">false</entry>
  84 +
  85 + <!-- Invia una mail al verificarsi di un errore non gestito, default 'false' -->
  86 + <entry key="mail.error.enable">true</entry>
  87 +
  88 + <!-- Invia una mail al verificarsi di un errore SQL, default 'false' -->
  89 + <entry key="mail.sqlerror.enable">true</entry>
  90 +
  91 + <!-- Invia una mail quando arriva un nuovo modello di device, default 'false' -->
  92 + <entry key="mail.new-device-model.enable">false</entry>
  93 +
  94 + <!-- Abilitazione sistema di recupero messaggi push non inviati al reload del contesto, default 'false' -->
  95 + <entry key="push.recovery.enable">true</entry>
  96 +
  97 +
  98 +
  99 + <!-- Paginazione
  100 + <entry key="line4page">6</entry>
  101 + <entry key="max.segue">6</entry>
  102 + -->
  103 +
  104 +</properties>
0 105 \ No newline at end of file
... ...
conf/liliana/staging/conf/sso.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Configurazione SSO DNA</comment>
  5 +
  6 + <entry key="cookie.enable">true</entry>
  7 + <entry key="cookie.domain">dev.desktopmate.net</entry>
  8 +
  9 + <!-- Identificativi del client sul server SSO -->
  10 + <entry key="client.id">dmservice</entry>
  11 + <entry key="client.secret">d1906cca-d858-4420-ba54-f8c0984883bd</entry>
  12 + <entry key="default.scope">userinfo</entry>
  13 + <entry key="default.organization">SOFTEC</entry>
  14 +
  15 + <entry key="oauth2.server">http://dmsso.dev.desktopmate.net/dmsso</entry>
  16 + <entry key="oauth2.server.signature">9c5a523d-e3b1-4611-968b-c0e9207394fa:a9eaecee-387e-43ff-84ae-e2d77d3e4d1b</entry>
  17 +
  18 + <!-- Endpoint del serve SSO -->
  19 + <entry key="authorization.endpoint">${oauth2.server}/oauth2/authorize</entry>
  20 + <entry key="token.endpoint">${oauth2.server}/oauth2/token</entry>
  21 + <entry key="token.info.endpoint">${oauth2.server}/v1/tokeninfo</entry>
  22 + <entry key="user.info.endpoint">${oauth2.server}/v1/userinfo</entry>
  23 + <entry key="change.password.endpoint">${oauth2.server}/admin</entry>
  24 + <entry key="logout.endpoint">${oauth2.server}/logout</entry>
  25 +
  26 + <!-- Url di ritorno del server locale -->
  27 + <entry key="redirect.uri">http://stage-service.dev.desktopmate.net/jarvis</entry>
  28 + <entry key="logout.uri">http://stage-service.dev.desktopmate.net/jarvis?sso_status=LOGOUT</entry>
  29 + <entry key="error.uri">http://stage-service.dev.desktopmate.net/jarvis?sso_status=ERROR</entry>
  30 +
  31 +</properties>
0 32 \ No newline at end of file
... ...
conf/liliana/staging/image-pack/apple-touch-icon-ipad-76x76.png 0 → 100644

8.57 KB

conf/liliana/staging/image-pack/apple-touch-icon-ipad-retina-152x152.png 0 → 100644

24.4 KB

conf/liliana/staging/image-pack/apple-touch-icon-iphone-60x60.png 0 → 100644

5.99 KB

conf/liliana/staging/image-pack/apple-touch-icon-iphone-retina-120x120.png 0 → 100644

16.9 KB

conf/liliana/staging/image-pack/background-image.png 0 → 100644

41.7 KB

conf/liliana/staging/image-pack/store/apple-touch-icon-ipad-76x76.png 0 → 100644

7.13 KB

conf/liliana/staging/image-pack/store/apple-touch-icon-ipad-retina-152x152.png 0 → 100644

13 KB

conf/liliana/staging/image-pack/store/apple-touch-icon-iphone-60x60.png 0 → 100644

6.02 KB

conf/liliana/staging/image-pack/store/apple-touch-icon-iphone-retina-120x120.png 0 → 100644

10.2 KB

conf/liliana/staging/version.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Version information</comment>
  5 +
  6 + <entry key="version.number">2.10.18</entry>
  7 + <entry key="version.release"></entry>
  8 + <entry key="build.number">1820</entry>
  9 + <entry key="build.date">13/06/2014 12:30</entry>
  10 + <entry key="build.installation">liliana/staging</entry>
  11 +
  12 +</properties>
... ...
conf/log4j.dtd 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!--
  3 + Licensed to the Apache Software Foundation (ASF) under one or more
  4 + contributor license agreements. See the NOTICE file distributed with
  5 + this work for additional information regarding copyright ownership.
  6 + The ASF licenses this file to You under the Apache License, Version 2.0
  7 + (the "License"); you may not use this file except in compliance with
  8 + the License. You may obtain a copy of the License at
  9 +
  10 + http://www.apache.org/licenses/LICENSE-2.0
  11 +
  12 + Unless required by applicable law or agreed to in writing, software
  13 + distributed under the License is distributed on an "AS IS" BASIS,
  14 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15 + See the License for the specific language governing permissions and
  16 + limitations under the License.
  17 +-->
  18 +
  19 +<!-- Authors: Chris Taylor, Ceki Gulcu. -->
  20 +
  21 +<!-- Version: 1.2 -->
  22 +
  23 +<!-- A configuration element consists of optional renderer
  24 +elements,appender elements, categories and an optional root
  25 +element. -->
  26 +
  27 +<!ELEMENT log4j:configuration (renderer*, appender*,plugin*, (category|logger)*,root?,
  28 + (categoryFactory|loggerFactory)?)>
  29 +
  30 +<!-- The "threshold" attribute takes a level value below which -->
  31 +<!-- all logging statements are disabled. -->
  32 +
  33 +<!-- Setting the "debug" enable the printing of internal log4j logging -->
  34 +<!-- statements. -->
  35 +
  36 +<!-- By default, debug attribute is "null", meaning that we not do touch -->
  37 +<!-- internal log4j logging settings. The "null" value for the threshold -->
  38 +<!-- attribute can be misleading. The threshold field of a repository -->
  39 +<!-- cannot be set to null. The "null" value for the threshold attribute -->
  40 +<!-- simply means don't touch the threshold field, the threshold field -->
  41 +<!-- keeps its old value. -->
  42 +
  43 +<!ATTLIST log4j:configuration
  44 + xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
  45 + threshold (all|trace|debug|info|warn|error|fatal|off|null) "null"
  46 + debug (true|false|null) "null"
  47 + reset (true|false) "false"
  48 +>
  49 +
  50 +<!-- renderer elements allow the user to customize the conversion of -->
  51 +<!-- message objects to String. -->
  52 +
  53 +<!ELEMENT renderer EMPTY>
  54 +<!ATTLIST renderer
  55 + renderedClass CDATA #REQUIRED
  56 + renderingClass CDATA #REQUIRED
  57 +>
  58 +
  59 +<!-- Appenders must have a name and a class. -->
  60 +<!-- Appenders may contain an error handler, a layout, optional parameters -->
  61 +<!-- and filters. They may also reference (or include) other appenders. -->
  62 +<!ELEMENT appender (errorHandler?, param*,
  63 + rollingPolicy?, triggeringPolicy?, connectionSource?,
  64 + layout?, filter*, appender-ref*)>
  65 +<!ATTLIST appender
  66 + name CDATA #REQUIRED
  67 + class CDATA #REQUIRED
  68 +>
  69 +
  70 +<!ELEMENT layout (param*)>
  71 +<!ATTLIST layout
  72 + class CDATA #REQUIRED
  73 +>
  74 +
  75 +<!ELEMENT filter (param*)>
  76 +<!ATTLIST filter
  77 + class CDATA #REQUIRED
  78 +>
  79 +
  80 +<!-- ErrorHandlers can be of any class. They can admit any number of -->
  81 +<!-- parameters. -->
  82 +
  83 +<!ELEMENT errorHandler (param*, root-ref?, logger-ref*, appender-ref?)>
  84 +<!ATTLIST errorHandler
  85 + class CDATA #REQUIRED
  86 +>
  87 +
  88 +<!ELEMENT root-ref EMPTY>
  89 +
  90 +<!ELEMENT logger-ref EMPTY>
  91 +<!ATTLIST logger-ref
  92 + ref CDATA #REQUIRED
  93 +>
  94 +
  95 +<!ELEMENT param EMPTY>
  96 +<!ATTLIST param
  97 + name CDATA #REQUIRED
  98 + value CDATA #REQUIRED
  99 +>
  100 +
  101 +
  102 +<!-- The priority class is org.apache.log4j.Level by default -->
  103 +<!ELEMENT priority (param*)>
  104 +<!ATTLIST priority
  105 + class CDATA #IMPLIED
  106 + value CDATA #REQUIRED
  107 +>
  108 +
  109 +<!-- The level class is org.apache.log4j.Level by default -->
  110 +<!ELEMENT level (param*)>
  111 +<!ATTLIST level
  112 + class CDATA #IMPLIED
  113 + value CDATA #REQUIRED
  114 +>
  115 +
  116 +
  117 +<!-- If no level element is specified, then the configurator MUST not -->
  118 +<!-- touch the level of the named category. -->
  119 +<!ELEMENT category (param*,(priority|level)?,appender-ref*)>
  120 +<!ATTLIST category
  121 + class CDATA #IMPLIED
  122 + name CDATA #REQUIRED
  123 + additivity (true|false) "true"
  124 +>
  125 +
  126 +<!-- If no level element is specified, then the configurator MUST not -->
  127 +<!-- touch the level of the named logger. -->
  128 +<!ELEMENT logger (level?,appender-ref*)>
  129 +<!ATTLIST logger
  130 + name CDATA #REQUIRED
  131 + additivity (true|false) "true"
  132 +>
  133 +
  134 +
  135 +<!ELEMENT categoryFactory (param*)>
  136 +<!ATTLIST categoryFactory
  137 + class CDATA #REQUIRED>
  138 +
  139 +<!ELEMENT loggerFactory (param*)>
  140 +<!ATTLIST loggerFactory
  141 + class CDATA #REQUIRED>
  142 +
  143 +<!ELEMENT appender-ref EMPTY>
  144 +<!ATTLIST appender-ref
  145 + ref CDATA #REQUIRED
  146 +>
  147 +
  148 +<!-- plugins must have a name and class and can have optional parameters -->
  149 +<!ELEMENT plugin (param*, connectionSource?)>
  150 +<!ATTLIST plugin
  151 + name CDATA #REQUIRED
  152 + class CDATA #REQUIRED
  153 +>
  154 +
  155 +<!ELEMENT connectionSource (dataSource?, param*)>
  156 +<!ATTLIST connectionSource
  157 + class CDATA #REQUIRED
  158 +>
  159 +
  160 +<!ELEMENT dataSource (param*)>
  161 +<!ATTLIST dataSource
  162 + class CDATA #REQUIRED
  163 +>
  164 +
  165 +<!ELEMENT triggeringPolicy ((param|filter)*)>
  166 +<!ATTLIST triggeringPolicy
  167 + name CDATA #IMPLIED
  168 + class CDATA #REQUIRED
  169 +>
  170 +
  171 +<!ELEMENT rollingPolicy (param*)>
  172 +<!ATTLIST rollingPolicy
  173 + name CDATA #IMPLIED
  174 + class CDATA #REQUIRED
  175 +>
  176 +
  177 +
  178 +<!-- If no priority element is specified, then the configurator MUST not -->
  179 +<!-- touch the priority of root. -->
  180 +<!-- The root category always exists and cannot be subclassed. -->
  181 +<!ELEMENT root (param*, (priority|level)?, appender-ref*)>
  182 +
  183 +
  184 +<!-- ==================================================================== -->
  185 +<!-- A logging event -->
  186 +<!-- ==================================================================== -->
  187 +<!ELEMENT log4j:eventSet (log4j:event*)>
  188 +<!ATTLIST log4j:eventSet
  189 + xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j/"
  190 + version (1.1|1.2) "1.2"
  191 + includesLocationInfo (true|false) "true"
  192 +>
  193 +
  194 +
  195 +
  196 +<!ELEMENT log4j:event (log4j:message, log4j:NDC?, log4j:throwable?,
  197 + log4j:locationInfo?, log4j:properties?) >
  198 +
  199 +<!-- The timestamp format is application dependent. -->
  200 +<!ATTLIST log4j:event
  201 + logger CDATA #REQUIRED
  202 + level CDATA #REQUIRED
  203 + thread CDATA #REQUIRED
  204 + timestamp CDATA #REQUIRED
  205 + time CDATA #IMPLIED
  206 +>
  207 +
  208 +<!ELEMENT log4j:message (#PCDATA)>
  209 +<!ELEMENT log4j:NDC (#PCDATA)>
  210 +
  211 +<!ELEMENT log4j:throwable (#PCDATA)>
  212 +
  213 +<!ELEMENT log4j:locationInfo EMPTY>
  214 +<!ATTLIST log4j:locationInfo
  215 + class CDATA #REQUIRED
  216 + method CDATA #REQUIRED
  217 + file CDATA #REQUIRED
  218 + line CDATA #REQUIRED
  219 +>
  220 +
  221 +<!ELEMENT log4j:properties (log4j:data*)>
  222 +
  223 +<!ELEMENT log4j:data EMPTY>
  224 +<!ATTLIST log4j:data
  225 + name CDATA #REQUIRED
  226 + value CDATA #REQUIRED
  227 +>
... ...
conf/myMETA-INF/context-jcluster-web77db12.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <Parameter name="localhost" value="yes" override="true" />
  8 + <Parameter name="localhost.database" value="web77db12" override="true" />
  9 + <Parameter name="localhost.environment" value="jcluster" override="true" />
  10 + <Parameter name="localhost.context" value="mwm.ctsapplications.it/adt" override="true" />
  11 +
  12 +
  13 + <!-- Default set of monitored resources -->
  14 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  15 +
  16 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  17 + <Manager pathname="" />
  18 +
  19 + <!-- ADT -->
  20 + <Resource name="jdbc/mwm_app"
  21 + auth="Container"
  22 + description="DB Connection"
  23 + driverClass="com.mysql.jdbc.Driver"
  24 +
  25 + initialPoolSize="2"
  26 + minPoolSize="2"
  27 + maxPoolSize="10"
  28 + acquireIncrement="2"
  29 +
  30 + checkoutTimeout="3600"
  31 + breakAfterAcquireFailure="false"
  32 + maxIdleTimeExcessConnections = "30"
  33 + maxIdleTime = "1800"
  34 + maxConnectionAge="3600"
  35 + idleConnectionTestPeriod="200"
  36 +
  37 + user="web77u12"
  38 + password="Ghec56hj"
  39 + factory="org.apache.naming.factory.BeanFactory"
  40 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  41 + jdbcUrl="jdbc:mysql://localhost:3306/web77db12?autoReconnect=true&amp;characterEncoding=UTF-8" />
  42 +
  43 +</Context>
  44 +
  45 +
  46 +
... ...
conf/myMETA-INF/context-liliana-web144db2.xml 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<Context antiJARLocking="true"
  3 + antiResourceLocking="false"
  4 + distributable="true"
  5 + reloadable="false" crossContext="false">
  6 +
  7 + <Parameter name="localhost" value="yes" override="true" />
  8 + <Parameter name="localhost.database" value="web144db2" override="true" />
  9 + <Parameter name="localhost.environment" value="liliana" override="true" />
  10 + <Parameter name="localhost.context" value="mwm.dev.ctsapplications.it/adt_test" override="true" />
  11 +
  12 +
  13 + <!-- Default set of monitored resources -->
  14 + <WatchedResource>WEB-INF/web.xml</WatchedResource>
  15 +
  16 + <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  17 + <Manager pathname="" />
  18 +
  19 +
  20 + <!-- SVILUPPO - ADT -->
  21 + <Resource name="jdbc/mwm_app"
  22 + auth="Container"
  23 + description="DB Connection"
  24 + driverClass="com.mysql.jdbc.Driver"
  25 +
  26 + initialPoolSize="2"
  27 + minPoolSize="2"
  28 + maxPoolSize="10"
  29 + acquireIncrement="2"
  30 +
  31 + checkoutTimeout="3600"
  32 + breakAfterAcquireFailure="false"
  33 + maxIdleTimeExcessConnections = "30"
  34 + maxIdleTime = "1800"
  35 + maxConnectionAge="3600"
  36 + idleConnectionTestPeriod="200"
  37 +
  38 + user="web144u2"
  39 + password="fdte5532"
  40 + factory="org.apache.naming.factory.BeanFactory"
  41 + type="com.mchange.v2.c3p0.ComboPooledDataSource"
  42 + jdbcUrl="jdbc:mysql://localhost:3306/web144db2?autoReconnect=true&amp;characterEncoding=UTF-8" />
  43 +
  44 +
  45 +</Context>
  46 +
  47 +
  48 +
... ...
conf/version.properties 0 → 100644
  1 +#Build Number for ANT. Do not edit!
  2 +#Fri Jun 13 12:30:23 CEST 2014
  3 +build.number=1821
  4 +version.release=
  5 +build.date=13/06/2014 12\:30
  6 +version.number=2.10.18
... ...
conf/version.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  3 +<properties>
  4 + <comment>Version information</comment>
  5 +
  6 + <entry key="version.number">@version.number@</entry>
  7 + <entry key="version.release">@version.release@</entry>
  8 + <entry key="build.number">@build.number@</entry>
  9 + <entry key="build.date">@build.date@</entry>
  10 + <entry key="build.installation">@build.installation@</entry>
  11 +
  12 +</properties>
... ...
conf/web.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  3 + <display-name>FileProxy @version.number@ (@build.number@) - @build.installation@ [@build.date@]</display-name>
  4 + <!-- Ultime modifiche del 23/06/2014 -->
  5 +
  6 + <!-- Configurazione per New Relic -->
  7 + <context-param>
  8 + <param-name>com.newrelic.agent.APPLICATION_NAME</param-name>
  9 + <param-value>@new.relic@</param-value>
  10 + </context-param>
  11 +
  12 + <!-- @build.installation@ - @build.date@ -->
  13 + <!-- Configurazioni obbligatorie -->
  14 + <context-param>
  15 + <param-name>ErrorPage</param-name>
  16 + <param-value>/error.jsp</param-value>
  17 + </context-param>
  18 + <context-param>
  19 + <param-name>constantsFile</param-name>
  20 + <param-value>portal_settings.xml</param-value>
  21 + </context-param>
  22 + <context-param>
  23 + <param-name>logPropertyFile</param-name>
  24 + <param-value>log4j.xml</param-value>
  25 + </context-param>
  26 +
  27 + <context-param>
  28 + <param-name>defaultLanguage</param-name>
  29 + <param-value>it</param-value>
  30 + </context-param>
  31 +
  32 + <!-- Utilizzata per la gestione della sessione - solo per funzioni di monitoraggio -->
  33 + <context-param>
  34 + <param-name>SessionFactory</param-name>
  35 + <param-value>it.softecspa.jwebber.frameworkImpl.session.CMSImplSessionFactory</param-value>
  36 + </context-param>
  37 +
  38 + <!-- Utilizzata per la gestione della sicurezza - solo per funzioni di monitoraggio -->
  39 + <context-param>
  40 + <param-name>SecurityManager</param-name>
  41 + <param-value>it.softecspa.jwebber.frameworkImpl.security.CMSImplSecurityManager</param-value>
  42 + </context-param>
  43 +
  44 + <!-- @deprecated - Contiene l'elenco delle funzioni di cui deve essere fatto il log degli accessi -->
  45 + <context-param>
  46 + <param-name>accessLogWhat</param-name>
  47 + <param-value>,*,</param-value>
  48 + </context-param>
  49 +
  50 + <!-- @deprecated - Configurazioni opzionali -->
  51 + <context-param>
  52 + <param-name>mailServer</param-name>
  53 + <param-value>localhost</param-value>
  54 + </context-param>
  55 +
  56 + <!-- Da valorizzare se si vuole la autenticazione JWebber -->
  57 + <context-param>
  58 + <param-name>keyStore</param-name>
  59 + <param-value>it.softecspa.portal.security.KeyStoreImpl</param-value>
  60 + </context-param>
  61 +
  62 + <!-- Servlet -->
  63 +
  64 + <!-- Startup -->
  65 + <servlet>
  66 + <servlet-name>WebApp</servlet-name>
  67 + <servlet-class>it.softecspa.portal.InitWebApp</servlet-class>
  68 + <load-on-startup>1</load-on-startup>
  69 + </servlet>
  70 + <servlet-mapping>
  71 + <servlet-name>WebApp</servlet-name>
  72 + <url-pattern>/WebApp</url-pattern>
  73 + </servlet-mapping>
  74 +
  75 +
  76 + <!-- POST-SERVICE - servlet -->
  77 + <servlet>
  78 + <description>Servlet http file proxy</description>
  79 + <display-name>httpFileProxy-Statement Servlet</display-name>
  80 + <servlet-name>httpFileProxyServlet</servlet-name>
  81 + <servlet-class>it.softecspa.fileproxy.proxyservices.HttpFileProxyService</servlet-class>
  82 + </servlet>
  83 + <servlet-mapping>
  84 + <servlet-name>httpFileProxyServlet</servlet-name>
  85 + <url-pattern>/proxy-services/statement</url-pattern>
  86 + </servlet-mapping>
  87 +
  88 +
  89 +
  90 + <!-- MONITOR - servlet -->
  91 + <servlet>
  92 + <description>Servlet di monitoraggio standard</description>
  93 + <display-name>Monitor Servlet</display-name>
  94 + <servlet-name>Monitor</servlet-name>
  95 + <servlet-class>it.softecspa.portal.Monitor</servlet-class>
  96 + </servlet>
  97 + <servlet-mapping>
  98 + <servlet-name>Monitor</servlet-name>
  99 + <url-pattern>/monitor</url-pattern>
  100 + </servlet-mapping>
  101 +
  102 +
  103 +
  104 + <session-config>
  105 + <!-- Sono Minuti -->
  106 + <session-timeout>15</session-timeout>
  107 + </session-config>
  108 +
  109 + <mime-mapping>
  110 + <extension>html</extension>
  111 + <mime-type>text/html</mime-type>
  112 + </mime-mapping>
  113 +
  114 + <mime-mapping>
  115 + <extension>dtd</extension>
  116 + <mime-type>text/plain</mime-type>
  117 + </mime-mapping>
  118 +
  119 +
  120 +
  121 +
  122 +
  123 +
  124 +
  125 + <welcome-file-list>
  126 + <welcome-file>index.html</welcome-file>
  127 + <welcome-file>index.htm</welcome-file>
  128 + <welcome-file>index.jsp</welcome-file>
  129 + <welcome-file>default.html</welcome-file>
  130 + <welcome-file>default.htm</welcome-file>
  131 + <welcome-file>default.jsp</welcome-file>
  132 + </welcome-file-list>
  133 +</web-app>
... ...
database/change_in_progress/20140623 http file proxy.sql 0 → 100644
  1 +CREATE TABLE IF NOT EXISTS `a00_change_log` (
  2 +`v00_code` varchar(30) NOT NULL ,
  3 +`v00_description` varchar(200) NULL ,
  4 +`d00_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
  5 +PRIMARY KEY (`v00_code`)
  6 +)
  7 +;
  8 +
  9 +insert into a00_change_log values('20140623 http file proxy.sql','Tabella per server Http File Proxy (ADT)', now());
  10 +
  11 +
  12 +
  13 +
  14 +CREATE TABLE `t000_log` (
  15 + `id` int(11) NOT NULL AUTO_INCREMENT,
  16 + `v_source` varchar(50) NOT NULL COMMENT 'Sorgente errore',
  17 + `v_message` text NOT NULL,
  18 + `v_stacktrace` text,
  19 + `n_ticket` int(11) DEFAULT NULL,
  20 + `d_record` datetime NOT NULL COMMENT 'Timestamp aggiornamento record',
  21 + PRIMARY KEY (`id`)
  22 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Tracciamento eccezioni gravi del server';
  23 +
  24 +
  25 +CREATE TABLE `t001_config_properties` (
  26 + `v_key` varchar(50) NOT NULL,
  27 + `v_value` varchar(256) NOT NULL,
  28 + `v_description` varchar(100) DEFAULT NULL,
  29 + PRIMARY KEY (`v_key`)
  30 +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  31 +
  32 +
  33 +CREATE TABLE `t005_cluster_info` (
  34 + `v_hostname` varchar(100) NOT NULL,
  35 + `v_context` varchar(100) NOT NULL DEFAULT '/',
  36 + `v_address` varchar(20) DEFAULT NULL,
  37 + `v_backplane_hostname` varchar(100) DEFAULT NULL COMMENT 'Indirizzo privato alla rete',
  38 + `d_life_start` datetime NOT NULL COMMENT 'Inizio sessione di vita',
  39 + `d_life_stop` datetime DEFAULT NULL,
  40 + `d_last_beat` datetime NOT NULL COMMENT 'Ultimo "battito"',
  41 + `f_do_not_use` tinyint(1) NOT NULL DEFAULT '0',
  42 + `v_version` varchar(50) DEFAULT NULL,
  43 + `d_record` datetime NOT NULL COMMENT 'Timestamp aggiornamento record',
  44 + PRIMARY KEY (`v_hostname`,`v_context`)
  45 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Autorilevamento cluster attivi';
  46 +
  47 +
  48 +
  49 +INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('haertbeat.delay', '0', 'Heartbeat verso server master'):
  50 +INSERT INTO `t001_config_properties` (`v_key`, `v_value`, `v_description`) VALUES ('resource.root', '/var/www/web77/user/web77_adt', 'Root dei file')
0 51 \ No newline at end of file
... ...
deployer-script.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project basedir="." default="help" name="Deployer">
  3 +<!-- @author m.veroni
  4 + @version 1.1
  5 + @release 02/05/2013 -->
  6 +
  7 +
  8 + <target name="help">
  9 + <echo message="Help" />
  10 +
  11 + <echo message=" " />
  12 + <echo message="uploadAndDeploy Esegue la copia remota del file e il deploy sui nodi specificati" />
  13 + <echo message="copySftp Esegue la copia di un file su un server remoto" />
  14 + <echo message="deploy Esegue il deploy sui nodi specificati" />
  15 + <echo message="refresh Esegue un refresh di Eclipse" />
  16 +
  17 + <echo message=" " />
  18 + <echo message="Lanciare i target senza parametri per scoprire quelli obbligatori" />
  19 + </target>
  20 +
  21 +
  22 + <target name="remote.exec">
  23 + <echo message="Esegue comando ssh: ${command}" />
  24 + <if>
  25 + <not>
  26 + <isset property="public.key"/>
  27 + </not>
  28 + <then>
  29 + <sshexec password="${remote.password}" username="${remote.username}" host="${remote.host}"
  30 + verbose="${verbose}"
  31 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  32 + command="${command}">
  33 + </sshexec>
  34 + </then>
  35 + <else>
  36 + <echo message="Cancello il contenuto della cartella" />
  37 + <sshexec keyfile="${public.key}" username="${remote.username}" host="${remote.host}"
  38 + verbose="${verbose}"
  39 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  40 + command="${command}">
  41 + </sshexec>
  42 + </else>
  43 + </if>
  44 +
  45 + </target>
  46 +
  47 +
  48 + <target name="remote.copy">
  49 + <echo message="Copia del file in ${remote.file} in corso con username/password" />
  50 + <if>
  51 + <not>
  52 + <isset property="public.key"/>
  53 + </not>
  54 + <then>
  55 + <!--
  56 + Attenzione, Load up puttygen and “Export” the key in ‘openssh’ format. Try using this key instead.
  57 + -->
  58 + <scp password="${remote.password}" sftp="true"
  59 + verbose="${verbose}"
  60 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  61 + file="${source}"
  62 + todir="${target}">
  63 + </scp>
  64 + </then>
  65 + <else>
  66 + <scp keyfile="${public.key}"
  67 + verbose="${verbose}"
  68 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  69 + file="${source}"
  70 + todir="${target}">
  71 + </scp>
  72 + </else>
  73 + </if>
  74 +
  75 + </target>
  76 +
  77 + <!-- Include -->
  78 + <target name="sub-include-AntContrib">
  79 + <echo>Include ANT-contrib JAR</echo>
  80 +
  81 + <!-- Include le librerie ant-contrib-0.6.jar
  82 + http://ant-contrib.sourceforge.net/ -->
  83 + <taskdef resource="net/sf/antcontrib/antcontrib.properties">
  84 + <classpath>
  85 + <pathelement location="${basedir}/lib/ant/ant-contrib-0.6.jar"/>
  86 + </classpath>
  87 + </taskdef>
  88 +
  89 + </target>
  90 +
  91 +
  92 +
  93 + <target name="copySftp" if="remote.host" description="Routine di trasferimento file via SFTP">
  94 +
  95 + <antcall target="sub-checkMandatory">
  96 + <param name="param.list" value="local.path,local.file,remote.host.list,remote.path,remote.username"/>
  97 + <!--
  98 + <param name="param.list" value="local.path,local.file,remote.host.list,remote.path,remote.username,remote.password"/>
  99 + -->
  100 + </antcall>
  101 +
  102 +
  103 +
  104 +
  105 + <property name="to.upload" value="${local.path}/${local.file}" />
  106 + <echo message="Caricamento del file ${to.upload} sul server remoto ${remote.host}" />
  107 +
  108 +
  109 + <!-- Setup accesso -->
  110 + <property name="remote.file" value="${remote.path}/${local.file}" />
  111 + <property name="remote.file.tmp" value="${remote.path}/${local.file}.tmp" />
  112 + <property name="tofile" value="${remote.username}@${remote.host}:${remote.file.tmp}" />
  113 +
  114 +
  115 +
  116 + <!-- Copia del file -->
  117 + <property name="verbose" value="false" />
  118 + <antcall target="remote.exec">
  119 + <param name="command" value="rm -f ${remote.path}/*.war*" />
  120 + </antcall>
  121 + <antcall target="remote.copy">
  122 + <param name="source" value="${to.upload}" />
  123 + <param name="target" value="${tofile}" />
  124 + </antcall>
  125 + <antcall target="remote.exec">
  126 + <param name="command" value="mv ${remote.file.tmp} ${remote.file}" />
  127 + </antcall>
  128 +
  129 + <echo message="File ${to.upload} copiato correttamente" />
  130 + <echo message="Upload completato" />
  131 + </target>
  132 +
  133 +
  134 + <!-- Check dei parametri obbligatori -->
  135 + <target name="sub-checkMandatory" if="param.list">
  136 +
  137 + <for param="element" list="${param.list}" trim="true">
  138 + <sequential>
  139 + <if>
  140 + <not>
  141 + <isset property="@{element}"/>
  142 + </not>
  143 + <then>
  144 + <echo message="[ERROR] Parametro obbligatorio non valorizzato: '@{element}'" />
  145 + <property name="do.abort" value="true" />
  146 + </then>
  147 + </if>
  148 + </sequential>
  149 + </for>
  150 + <fail if="do.abort" message="Parametri obbligatori non valorizzati" />
  151 + </target>
  152 +
  153 +
  154 + <target name="uploadAndDeploy" depends="sub-include-AntContrib">
  155 +
  156 + <antcall target="sub-checkMandatory">
  157 + <param name="param.list" value="local.path,warfile.name,remote.host.list,remote.path"/>
  158 + </antcall>
  159 +
  160 +
  161 + <!-- Richiesta di conferma -->
  162 + <input message="Vuoi eseguire l'upload del file ${warfile.name} sui nodi: ${remote.host.list}?"
  163 + validargs="S,n"
  164 + addproperty="input.response"
  165 + defaultvalue="S"/>
  166 + <condition property="do.abort">
  167 + <not>
  168 + <equals arg1="S" arg2="${input.response}" />
  169 + </not>
  170 + </condition>
  171 + <fail if="do.abort">Operazione annullata dall'utente</fail>
  172 +
  173 +
  174 +
  175 +
  176 + <!-- Richiesta user e password per accesso SSH
  177 + Questa fase può essere omessa se sono passate come param 'remote.username' e 'remote.password'
  178 + -->
  179 + <echo message="Verifica credenziali accesso cluster" />
  180 + <if>
  181 + <not>
  182 + <isset property="remote.username"/>
  183 + </not>
  184 + <then>
  185 + <input message="Utente:" addproperty="remote.username" />
  186 + <condition property="do.abort">
  187 + <equals arg1="" arg2="${remote.username}" />
  188 + </condition>
  189 + <fail if="do.abort">Utente nullo, operazione annullata</fail>
  190 + </then>
  191 + </if>
  192 + <!-- La password la verifico solo se non uso la chiave pubblica -->
  193 + <if>
  194 + <not>
  195 + <isset property="public.key"/>
  196 + </not>
  197 + <then>
  198 +
  199 + <if>
  200 + <not>
  201 + <isset property="remote.password"/>
  202 + </not>
  203 + <then>
  204 + <input message="Password:" addproperty="remote.password" />
  205 + <condition property="do.abort">
  206 + <equals arg1="" arg2="${remote.password}" />
  207 + </condition>
  208 + <fail if="do.abort">Password nulla, operazione annullata</fail>
  209 + </then>
  210 + </if>
  211 + </then>
  212 + </if>
  213 +
  214 +
  215 +
  216 +
  217 +
  218 + <!-- Ciclo sulla lista dei nodi per eseguire l'upload del file sui server remoti -->
  219 + <for param="element" list="${remote.host.list}">
  220 + <sequential>
  221 + <property name="remote.host" value="@{element}" />
  222 + <if>
  223 + <isset property="remote.host" />
  224 + <then>
  225 + <antcall target="copySftp">
  226 + <param name="local.file" value="${warfile.name}" />
  227 + <!-- Gli altri parametri sono ereditati -->
  228 + </antcall>
  229 + </then>
  230 + </if>
  231 + </sequential>
  232 + </for>
  233 +
  234 +
  235 +
  236 +
  237 +
  238 + <echo message="Deployment application" />
  239 + <for param="element" list="${remote.host.list}">
  240 + <sequential>
  241 + <echo message="Host '${remote.host}'" />
  242 + <echo message="War '${remote.path}/${warfile.name}'" />
  243 + <antcall target="deploy">
  244 + <!-- Gli altri parametri sono ereditati -->
  245 + </antcall>
  246 + </sequential>
  247 + </for>
  248 +
  249 +
  250 +
  251 + </target>
  252 +
  253 +
  254 + <!-- Operazione di deploy (locale) -->
  255 + <target name="deploy">
  256 +
  257 + <antcall target="sub-checkMandatory">
  258 + <param name="param.list" value="remote.host,remote.path,warfile.name,context"/>
  259 + </antcall>
  260 +
  261 +
  262 +
  263 + <!-- Richiesta di conferma -->
  264 + <input message="Vuoi eseguire il deploy della nuova versione su tutti i nodi?"
  265 + validargs="S,n"
  266 + addproperty="input.response2"
  267 + defaultvalue="S"/>
  268 + <condition property="do.abort">
  269 + <not>
  270 + <equals arg1="S" arg2="${input.response2}" />
  271 + </not>
  272 + </condition>
  273 + <fail if="do.abort">Operazione annullata dall'utente</fail>
  274 +
  275 +
  276 +
  277 + <!-- Deploy -->
  278 + <echo>Deploy della nuova versione sui nodi</echo>
  279 + <echo>* context = ${context}</echo>
  280 + <echo>* war (locale) = ${warfile.name}</echo>
  281 +
  282 + <echo message="Deploy automatico" />
  283 + <antcall target="remote.exec">
  284 + <param name="command">cd ${remote.path} &amp;&amp; tomcat-deploy -c -f</param>
  285 + </antcall>
  286 +
  287 + <echo>Deploy completato su tutti i nodi</echo>
  288 + </target>
  289 +
  290 +
  291 + <!-- Esegue un comando 'refresh' di Eclipse -->
  292 + <target name="refresh" depends="sub-include-AntContrib" description="REFRESH di Eclipse" >
  293 +
  294 + <trycatch reference="exception_ref">
  295 + <try>
  296 + <echo>Eclipse refresh in progress...</echo>
  297 + <!-- Refresh del progetto
  298 + Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  299 + JRE > Run in the same JRE as the workspace
  300 + -->
  301 + <eclipse.refreshLocal resource="${project.name}" depth="infinite"/>
  302 + <echo>Eclipse refreshed!</echo>
  303 +
  304 + </try>
  305 + <catch>
  306 + <echo>Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  307 + JRE > Run in the same JRE as the workspace</echo>
  308 + </catch>
  309 + <finally>
  310 + <!-- <echo>Finally</echo> -->
  311 + </finally>
  312 + </trycatch>
  313 +
  314 +
  315 +
  316 + </target>
  317 +
  318 +
  319 +
  320 +</project>
0 321 \ No newline at end of file
... ...
deployer.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project basedir="." default="help" name="Deployer">
  3 +<!-- @author m.veroni
  4 + @version 1.1
  5 + @release 02/05/2013 -->
  6 +
  7 +
  8 + <target name="help">
  9 + <echo message="Help" />
  10 +
  11 + <echo message=" " />
  12 + <echo message="uploadAndDeploy Esegue la copia remota del file e il deploy sui nodi specificati" />
  13 + <echo message="copySftp Esegue la copia di un file su un server remoto" />
  14 + <echo message="deploy Esegue il deploy sui nodi specificati" />
  15 + <echo message="refresh Esegue un refresh di Eclipse" />
  16 +
  17 + <echo message=" " />
  18 + <echo message="Lanciare i target senza parametri per scoprire quelli obbligatori" />
  19 + </target>
  20 +
  21 +
  22 + <!-- Include -->
  23 + <target name="sub-include-AntContrib">
  24 + <echo>Include ANT-contrib JAR</echo>
  25 +
  26 + <!-- Include le librerie ant-contrib-0.6.jar
  27 + http://ant-contrib.sourceforge.net/ -->
  28 + <taskdef resource="net/sf/antcontrib/antcontrib.properties">
  29 + <classpath>
  30 + <pathelement location="${basedir}/lib/ant/ant-contrib-0.6.jar"/>
  31 + </classpath>
  32 + </taskdef>
  33 +
  34 + </target>
  35 +
  36 +
  37 +
  38 + <target name="copySftp" if="remote.host" description="Routine di trasferimento file via SFTP">
  39 +
  40 + <antcall target="sub-checkMandatory">
  41 + <param name="param.list" value="local.path,local.file,remote.host.list,remote.path,remote.username"/>
  42 + <!--
  43 + <param name="param.list" value="local.path,local.file,remote.host.list,remote.path,remote.username,remote.password"/>
  44 + -->
  45 + </antcall>
  46 +
  47 +
  48 +
  49 +
  50 + <property name="to.upload" value="${local.path}/${local.file}" />
  51 + <echo message="Caricamento del file ${to.upload} sul server remoto ${remote.host}" />
  52 +
  53 +
  54 + <!-- Setup accesso -->
  55 + <property name="remote.file" value="${remote.path}/${local.file}" />
  56 + <property name="remote.file.tmp" value="${remote.path}/${local.file}.tmp" />
  57 + <property name="tofile" value="${remote.username}@${remote.host}:${remote.file.tmp}" />
  58 +
  59 +
  60 +
  61 + <!-- Copia del file -->
  62 + <property name="verbose" value="false" />
  63 + <if>
  64 + <not>
  65 + <isset property="public.key"/>
  66 + </not>
  67 + <then>
  68 + <!--
  69 + Attenzione, Load up puttygen and “Export” the key in ‘openssh’ format. Try using this key instead.
  70 + -->
  71 + <echo message="Copia del file in ${remote.file} in corso con username/password" />
  72 + <scp password="${remote.password}" sftp="true"
  73 + verbose="${verbose}"
  74 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  75 + file="${to.upload}"
  76 + todir="${tofile}">
  77 + </scp>
  78 +
  79 + <echo message="Rinomino il file temporaneo" />
  80 + <sshexec password="${remote.password}" username="${remote.username}" host="${remote.host}"
  81 + verbose="${verbose}"
  82 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  83 + command="mv ${remote.file.tmp} ${remote.file}">
  84 + </sshexec>
  85 + </then>
  86 + <else>
  87 + <echo message="Copia del file in ${remote.file} in corso con private key" />
  88 + <scp keyfile="${public.key}"
  89 + verbose="${verbose}"
  90 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  91 + file="${to.upload}"
  92 + todir="${tofile}">
  93 + </scp>
  94 +
  95 + <echo message="Rinomino il file temporaneo" />
  96 + <sshexec keyfile="${public.key}" username="${remote.username}" host="${remote.host}"
  97 + verbose="${verbose}"
  98 + knownhosts="${project.dist}/ssh/known_hosts." trust="true"
  99 + command="mv ${remote.file.tmp} ${remote.file}">
  100 + </sshexec>
  101 + </else>
  102 + </if>
  103 +
  104 + <echo message="File ${to.upload} copiato correttamente" />
  105 + <echo message="Upload completato" />
  106 + </target>
  107 +
  108 +
  109 + <!-- Check dei parametri obbligatori -->
  110 + <target name="sub-checkMandatory" if="param.list">
  111 +
  112 + <for param="element" list="${param.list}" trim="true">
  113 + <sequential>
  114 + <if>
  115 + <not>
  116 + <isset property="@{element}"/>
  117 + </not>
  118 + <then>
  119 + <echo message="[ERROR] Parametro obbligatorio non valorizzato: '@{element}'" />
  120 + <property name="do.abort" value="true" />
  121 + </then>
  122 + </if>
  123 + </sequential>
  124 + </for>
  125 + <fail if="do.abort" message="Parametri obbligatori non valorizzati" />
  126 + </target>
  127 +
  128 +
  129 + <target name="uploadAndDeploy" depends="sub-include-AntContrib">
  130 +
  131 + <antcall target="sub-checkMandatory">
  132 + <param name="param.list" value="local.path,warfile.name,remote.host.list,remote.path,tomcat.manager.list,tomcat.context.path"/>
  133 + </antcall>
  134 +
  135 +
  136 + <!-- Richiesta di conferma -->
  137 + <input message="Vuoi eseguire l'upload del file ${warfile.name} sui nodi: ${remote.host.list}?"
  138 + validargs="S,n"
  139 + addproperty="input.response"
  140 + defaultvalue="S"/>
  141 + <condition property="do.abort">
  142 + <not>
  143 + <equals arg1="S" arg2="${input.response}" />
  144 + </not>
  145 + </condition>
  146 + <fail if="do.abort">Operazione annullata dall'utente</fail>
  147 +
  148 +
  149 +
  150 +
  151 + <!-- Richiesta user e password per accesso SSH
  152 + Questa fase può essere omessa se sono passate come param 'remote.username' e 'remote.password'
  153 + -->
  154 + <echo message="Verifica credenziali accesso cluster" />
  155 + <if>
  156 + <not>
  157 + <isset property="remote.username"/>
  158 + </not>
  159 + <then>
  160 + <input message="Utente:" addproperty="remote.username" />
  161 + <condition property="do.abort">
  162 + <equals arg1="" arg2="${remote.username}" />
  163 + </condition>
  164 + <fail if="do.abort">Utente nullo, operazione annullata</fail>
  165 + </then>
  166 + </if>
  167 + <!-- La password la verifico solo se non uso la chiave pubblica -->
  168 + <if>
  169 + <not>
  170 + <isset property="public.key"/>
  171 + </not>
  172 + <then>
  173 +
  174 + <if>
  175 + <not>
  176 + <isset property="remote.password"/>
  177 + </not>
  178 + <then>
  179 + <input message="Password:" addproperty="remote.password" />
  180 + <condition property="do.abort">
  181 + <equals arg1="" arg2="${remote.password}" />
  182 + </condition>
  183 + <fail if="do.abort">Password nulla, operazione annullata</fail>
  184 + </then>
  185 + </if>
  186 + </then>
  187 + </if>
  188 +
  189 +
  190 +
  191 +
  192 +
  193 + <!-- Ciclo sulla lista dei nodi per eseguire l'upload del file sui server remoti -->
  194 + <for param="element" list="${remote.host.list}">
  195 + <sequential>
  196 + <property name="remote.host" value="@{element}" />
  197 + <if>
  198 + <isset property="remote.host" />
  199 + <then>
  200 + <antcall target="copySftp">
  201 + <param name="local.file" value="${warfile.name}" />
  202 + <!-- Gli altri parametri sono ereditati -->
  203 + </antcall>
  204 + </then>
  205 + </if>
  206 + </sequential>
  207 + </for>
  208 +
  209 +
  210 +
  211 +
  212 + <!-- Se username e password per tomcat non sono impostati assegno
  213 + come valore quello utilizzato per la connessione -->
  214 + <condition property="tomcat.manager.username" value="${remote.username}">
  215 + <not>
  216 + <isset property="tomcat.manager.username"/>
  217 + </not>
  218 + </condition>
  219 + <condition property="tomcat.manager.password" value="${remote.password}">
  220 + <not>
  221 + <isset property="tomcat.manager.password"/>
  222 + </not>
  223 + </condition>
  224 +
  225 +
  226 +
  227 + <echo message="Deployment application" />
  228 + <for param="element" list="${tomcat.manager.list}">
  229 + <sequential>
  230 + <echo message="Manager url '@{element}'" />
  231 + <echo message="War '${remote.path}/${warfile.name}'" />
  232 + <antcall target="deploy">
  233 + <param name="tomcat.war" value="${remote.path}/${warfile.name}"/>
  234 + <param name="tomcat.manager.url" value="@{element}"/>
  235 + <!-- Gli altri parametri sono ereditati -->
  236 + </antcall>
  237 + </sequential>
  238 + </for>
  239 +
  240 +
  241 + <!-- Deploy sul nodo 1 -->
  242 + <if>
  243 + <isset property="tomcat.manager.url.nodo1"/>
  244 + <then>
  245 + <antcall target="subDeployer">
  246 + <param name="tomcat.war" value="${remote.path}/${warfile.name}"/>
  247 + <param name="tomcat.manager.url" value="${tomcat.manager.url.nodo1}"/>
  248 + </antcall>
  249 + </then>
  250 + </if>
  251 + </target>
  252 +
  253 +
  254 + <!-- Operazione di deploy (locale) -->
  255 + <target name="deploy" depends="sub-include-TomcatDeployer">
  256 +
  257 + <antcall target="sub-checkMandatory">
  258 + <param name="param.list" value="tomcat.manager.url,tomcat.war,tomcat.context.path,tomcat.manager.username,tomcat.manager.password"/>
  259 + </antcall>
  260 +
  261 +
  262 + <propertyregex property="nome.cluster" input="${tomcat.manager.url}" regexp="([a-z0-9\?]+(\.[a-z0-9]+)+)|(www(\.[a-z0-9]+){2,})" select="\0" />
  263 + <!-- <property name="nome.cluster" value="${tomcat.manager.url}" /> -->
  264 +
  265 +
  266 + <!-- Richiesta di conferma -->
  267 + <input message="Vuoi eseguire il deploy della nuova versione sul nodo '${nome.cluster}'?"
  268 + validargs="S,n"
  269 + addproperty="input.response2"
  270 + defaultvalue="S"/>
  271 + <condition property="do.abort">
  272 + <not>
  273 + <equals arg1="S" arg2="${input.response2}" />
  274 + </not>
  275 + </condition>
  276 + <fail if="do.abort">Operazione annullata dall'utente</fail>
  277 +
  278 +
  279 + <!-- Tomcat manager URL
  280 + <echo>Deploy attraverso ${tomcat.manager.url}</echo>
  281 + <fail message="URL non raggiungibile: ${tomcat.manager.url}">
  282 + <condition >
  283 + <not>
  284 + <isreachable url="${tomcat.manager.url}"/>
  285 + </not>
  286 + <! - -
  287 + Uses Java1.5+ networking APIs to probe for a (remote) system being reachable. Exactly what probe mechanisms are used is an implementation feature of the JVM. They may include ICMP "ping" packets, UDP or TCP connections to port 7 "echo service" or other means. On Java1.4 and earlier, being able to resolve the hostname is considered success. This means that if DNS is not working or a URL/hostname is bad, the test will fail, but otherwise succeed even if the remote host is actually absent.
  288 + This condition turns unknown host exceptions into false conditions. This is because on a laptop, DNS is one of the first services when the network goes; you are implicitly offline.
  289 + If a URL is supplied instead of a host, the hostname is extracted and used in the test - all other parts of the URL are discarded.
  290 + The test may not work through firewalls, that is, something may be reachable using a protocol such as HTTP, while the lower level ICMP packets get dropped on the floor. Similarly, a host may detected as reachable with ICMP, but not reachable on other ports (i.e. port 80), because of firewalls.
  291 + - - >
  292 + </condition>
  293 + </fail>
  294 + -->
  295 +
  296 +
  297 + <!-- Eventuale undeploy -->
  298 + <echo>Passo 1 - Undeploy della vecchia versione su ${nome.cluster}</echo>
  299 + <echo>* context = ${tomcat.context.path}</echo>
  300 + <trycatch reference="exception_ref">
  301 + <try>
  302 + <!-- ... some risky Ant work ... -->
  303 + <antcall target="tomcat_undeploy">
  304 + <param name="url" value="${tomcat.manager.url}" />
  305 + <param name="username" value="${tomcat.manager.username}" />
  306 + <param name="password" value="${tomcat.manager.password}" />
  307 + <param name="path" value="${tomcat.context.path}" />
  308 + </antcall>
  309 + <echo>Tutto ok</echo>
  310 + </try>
  311 + <catch>
  312 + <echo>Controllare messaggio FAIL</echo>
  313 + </catch>
  314 + <finally>
  315 + <!-- <echo>Finally</echo> -->
  316 + </finally>
  317 + </trycatch>
  318 +
  319 +
  320 +
  321 + <!-- Deploy -->
  322 + <echo>Passo 2 - Deploy della nuova versione su ${nome.cluster}</echo>
  323 + <echo>* context = ${tomcat.context.path}</echo>
  324 + <echo>* war (locale) = ${tomcat.war}</echo>
  325 + <antcall target="tomcat_deploy_local">
  326 + <param name="url" value="${tomcat.manager.url}" />
  327 + <param name="username" value="${tomcat.manager.username}" />
  328 + <param name="password" value="${tomcat.manager.password}" />
  329 + <param name="path" value="${tomcat.context.path}"/>
  330 + <param name="webapp.path" value="${tomcat.war}"/>
  331 + </antcall>
  332 +
  333 +
  334 + <echo>Deploy completato su ${nome.cluster}</echo>
  335 + </target>
  336 +
  337 +
  338 + <!-- Target estratti dal BUILD.XML del package deployer di Tomcat -->
  339 + <target name="tomcat_deploy_local" description="Deploy web application">
  340 + <deploy url="${url}" username="${username}" password="${password}" path="${path}" localWar="${webapp.path}" update="true" />
  341 + </target>
  342 +
  343 + <target name="tomcat_deploy_remote" description="Deploy web application">
  344 + <deploy url="${url}" username="${username}" password="${password}" path="${path}" war="${webapp.path}" update="true" />
  345 + </target>
  346 +
  347 + <target name="tomcat_undeploy" description="Undeploy web application">
  348 + <undeploy url="${url}" username="${username}" password="${password}" path="${path}"/>
  349 + </target>
  350 +
  351 + <!-- Webapp lifecycle control -->
  352 + <target name="tomcat_start" description="Start web application">
  353 + <start url="${url}" username="${username}" password="${password}" path="${path}"/>
  354 + </target>
  355 +
  356 + <target name="tomcat_reload" description="Reload web application">
  357 + <reload url="${url}" username="${username}" password="${password}" path="${path}"/>
  358 + </target>
  359 +
  360 + <target name="tomcat_stop" description="Stop web application">
  361 + <stop url="${url}" username="${username}" password="${password}" path="${path}"/>
  362 + </target>
  363 +
  364 +
  365 +
  366 + <!-- Carica le librerie del deployer di Tomcat -->
  367 + <target name="sub-include-TomcatDeployer" depends="sub-include-AntContrib" >
  368 + <echo>Include Tomcat Deployer JAR</echo>
  369 + <!--
  370 + <path id="deployer.classpath">
  371 + <fileset dir="${basedir}/lib/ant/apache">
  372 + <include name="*.jar" />
  373 + </fileset>
  374 + </path>
  375 + -->
  376 + <!-- Configure the custom Ant tasks for the Manager application -->
  377 + <taskdef resource="org/apache/catalina/ant/catalina.tasks">
  378 + <classpath>
  379 + <path>
  380 + <fileset dir="${basedir}/lib/ant/apache">
  381 + <include name="*.jar" />
  382 + </fileset>
  383 + </path>
  384 + </classpath>
  385 + </taskdef>
  386 + </target>
  387 +
  388 +
  389 +
  390 + <!-- Esegue un comando 'refresh' di Eclipse -->
  391 + <target name="refresh" depends="sub-include-AntContrib" description="REFRESH di Eclipse" >
  392 +
  393 + <trycatch reference="exception_ref">
  394 + <try>
  395 + <echo>Eclipse refresh in progress...</echo>
  396 + <!-- Refresh del progetto
  397 + Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  398 + JRE > Run in the same JRE as the workspace
  399 + -->
  400 + <eclipse.refreshLocal resource="${project.name}" depth="infinite"/>
  401 + <echo>Eclipse refreshed!</echo>
  402 +
  403 + </try>
  404 + <catch>
  405 + <echo>Per funzionare deve essere impostato il seguente flag in "External tool configuration"
  406 + JRE > Run in the same JRE as the workspace</echo>
  407 + </catch>
  408 + <finally>
  409 + <!-- <echo>Finally</echo> -->
  410 + </finally>
  411 + </trycatch>
  412 +
  413 +
  414 +
  415 + </target>
  416 +
  417 +
  418 +
  419 +</project>
0 420 \ No newline at end of file
... ...
lib/amazon.s3/aws-java-sdk-1.0.11-javadoc.jar 0 → 100644
No preview for this file type
lib/amazon.s3/aws-java-sdk-1.0.11-sources.jar 0 → 100644
No preview for this file type
lib/amazon.s3/aws-java-sdk-1.0.11.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.removed/jackson-core-asl-1.4.3.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.required/commons-codec-1.3.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.required/commons-httpclient-3.0.1.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.required/commons-logging-1.1.1.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.required/stax-1.2.0.jar 0 → 100644
No preview for this file type
lib/amazon.s3/lib.required/stax-api-1.0.1.jar 0 → 100644
No preview for this file type
lib/ant/ant-classloadertask-1.0-RC2.zip 0 → 100644
No preview for this file type
lib/ant/ant-classloadertask.jar 0 → 100644
No preview for this file type
lib/ant/ant-contrib-0.6-bin.zip 0 → 100644
No preview for this file type
lib/ant/ant-contrib-0.6.jar 0 → 100644
No preview for this file type
lib/ant/ant-jsch-1.9.2.jar 0 → 100644
No preview for this file type
lib/ant/apache-ant-1.7.1-bin.zip 0 → 100644
No preview for this file type
lib/ant/apache/catalina-ant.jar 0 → 100644
No preview for this file type
lib/ant/apache/catalina-deployer.jar 0 → 100644
No preview for this file type
lib/ant/apache/commons-el.jar 0 → 100644
No preview for this file type
lib/ant/apache/commons-logging-1.1.1.jar 0 → 100644
No preview for this file type
lib/ant/apache/jasper-compiler.jar 0 → 100644
No preview for this file type
lib/ant/apache/jasper-runtime.jar 0 → 100644
No preview for this file type
lib/ant/apache/jsp-api.jar 0 → 100644
No preview for this file type
lib/ant/apache/servlet-api.jar 0 → 100644
No preview for this file type
lib/ant/jsch-0.1.50.jar 0 → 100644
No preview for this file type
lib/ant/jsch-0.1.50.zip 0 → 100644
No preview for this file type
lib/axis/axis.jar 0 → 100644
No preview for this file type
lib/axis/commons-discovery-0.2.jar 0 → 100644
No preview for this file type
lib/axis/commons-logging.jar 0 → 100644
No preview for this file type
lib/axis/jaxrpc.jar 0 → 100644
No preview for this file type
lib/axis/saaj.jar 0 → 100644
No preview for this file type
lib/axis/wsdl4j.jar 0 → 100644
No preview for this file type
lib/c3p0/c3p0-0.9.2.jar 0 → 100644
No preview for this file type
lib/c3p0/mchange-commons-java-0.2.3.3.jar 0 → 100644
No preview for this file type
lib/common/activation-1.1.jar 0 → 100644
No preview for this file type
lib/common/commons-codec-1.3.jar 0 → 100644
No preview for this file type
lib/common/commons-fileupload-1.0.jar 0 → 100644
No preview for this file type
lib/common/commons-httpclient-3.0-rc1.jar 0 → 100644
No preview for this file type
lib/common/commons-logging-1.1.1.jar 0 → 100644
No preview for this file type
lib/common/itext-0.98.jar 0 → 100644
No preview for this file type
lib/common/jdom.jar 0 → 100644
No preview for this file type
lib/common/local/dbConnect_1.7.1.jar 0 → 100644
No preview for this file type
lib/common/local/dmsso_1.4.2.jar 0 → 100644
No preview for this file type