esup-helpdesk




La liste d'utilisateurs n'est pas rendue car vous ne possédez pas les droits d'accès nécessaires pour afficher les profils utilisateur.

Arborescence des pages

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

This deployment allows esup-helpdesk to run as a stand-alone application (a Tomcat instance is embedded).

It can be used in order to test the application, but some deployers (especially those who d not have J2EE competences) run in production this way; quick-starts are full-featured applications.

...

Bloc de code
export JAVA_HOME=/usr/java/jdk1.6.0_05
export ANT_HOME=/usr/local/apache-ant-1.7.0
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin

Windows requirements

todo

Download

The last release can be downloaded at http://helpdesk.esup-portail.org/current (previous releases are at http://helpdesk.esup-portail.org).

The zip file to download depends on the deployment mode selected:

  • quick-start: esup-helpdesk-quick-start-x.y.z-t.zip
  • portlet or servlet: esup-helpdesk-x.y.z-t.zip

Uncompressing the sources

Balise Wiki
Uncompress the zip file you have downloaded to your filesystem, for instance in */usr/local/helpdesk/src*. Uncompressing *esup-helpdesk\[-quick-start\]-x.y.z-t.zip* creates the folder *usr/local/helpdesk/src/esup-helpdesk\[-quick-start\]-x.y.z*.

Astuce

Successive versions must be installed at the same location on the filesystem in order to ease upgrades.

Le fichier build.properties indique à esup-helpdesk comment l'application sera déployée. 

Une fois ces propriétés correctement remplis, il faudra configurer l'application (cf 01 Configuration).

Astuce

Lorsque l'on change le mode de déploiement, ilt est conseillé d'effectuer un nettoyage (ant clean) avant de redéployer.

Deployment properties (build.properties)

Edit the configuration file /build.properties to set the properties that tell how the application should be installed

Common properties (any deployment)

Whatever the deployment mode selected, property custom.recover.files must be set.

custom.recover.files

Property custom.recover.files is used when upgrading the application to recover the deployer's customizations, for instance:

Bloc de code

custom.recover.files= properties/domain/xmlDepartmentSelection.xml

Quick-start deployments

quick-start

Just tell the it is a quick-start deployment this way:

Bloc de code

quick-start=true

All the other properties are optional.

Optional properties

Properties tomcat.host, tomcat.port and tomcat.shutdown-port can be used in order to configure the embedded Tomcat (default values below):

Bloc de code

#tomcat.port=8080
#tomcat.shutdown-port=8009
#tomcat.host=localhost
Astuce

When using a quick-start deployment, the application is deployed into the folder /deploy; a Tomcat instance is installed automatically and configured to point to the application context.

Portlet deployments

deploy.type

Tell that it is a portlet deployment:

Bloc de code

deploy.type=portlet

deploy.home

Tell where the application will be deployed to be executed by the portal, typically in a webapps folder of an existing portal:

Bloc de code

deploy.home=/usr/local/uPortal/webapps/esup-helpdesk

This path should be used by the portal administrator to configure the portlet context. Typically (tomcat/conf/server.xml):

Bloc de code

<Host name="localhost"
    appBase="webapps" unpackWARs="true"
    autoDeploy="true" xmlValidation="false"
    xmlNamespaceAware="false">
    <Context path="/esup-helpdesk"
	docBase="/usr/local/uPortal/webapps/esup-helpdesk"
	crossContext="true" reloadable="true">
      <Manager pathname="" />
    </Context>
</Host>


On trouvera typiquement dans le fichier conf/server.xml de Tomcat quelque chose comme :

Bloc de code

<Service name="Catalina">
    <Connector 	port="8080"
	maxHttpHeaderSize="8192" maxThreads="150"
	minSpareThreads="25" maxSpareThreads="75"
	enableLookups="false" redirectPort="8443"
	acceptCount="100" connectionTimeout="20000"
	disableUploadTimeout="true" emptySessionPath="true" />
    <Engine name="Catalina" defaultHost="helpdesk.domain.edu">
        <Host name="helpdesk.domain.edu"
    	    appBase="webapps" unpackWARs="true"
	    autoDeploy="true" xmlValidation="false"
	    xmlNamespaceAware="false">
	    <Context
		path="" docBase="/usr/local/tomcat/webapps/esup-helpdesk"
		crossContext="true" reloadable="false">
                <Manager pathname=""
		    className="org.apache.catalina.session.StandardManager" />
            </Context>
        </Host>
    </Engine>
</Service>

Déploiement en servlet

deploy.type

Il faut indiquer qu'il s'agit d'un déploiement en servlet :

Bloc de code

deploy.type=servlet

deploy.home

Il faut ensuite indiquer l'endroit où l'application sera déployée pour être exécutée par le conteneur de servlets, typiquement dans un sous-répertoire du répertoire webapps d'un Tomcat existant, mais pas nécessairement :

Bloc de code

deploy.home=/usr/local/portal/webapps/esup-helpdesk

Ce chemin devra être utilisé pour la configuration du contexte de la servlet. On trouvera typiquement dans le fichier conf/server.xml de Tomcat quelque chose comme :

Bloc de code

<Host name="localhost"
    appBase="webapps" unpackWARs="true"
    autoDeploy="true" xmlValidation="false"
    xmlNamespaceAware="false">
    <Context path="/esup-helpdesk"
	docBase="/usr/local/portal/webapps/esup-helpdesk"
	crossContext="true" reloadable="true">
      <Manager pathname="" />
    </Context>
</Host>



...