Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docpublic:systemes:esup:esup_activ2 [2015/01/09 13:24]
procacci@tem-tsp.eu created
docpublic:systemes:esup:esup_activ2 [2015/01/09 16:41] (current)
procacci@tem-tsp.eu [access http]
Line 15: Line 15:
  
 </code> </code>
 +
 +===== esup-actif-fo =====
 +
 +<code>
 +[root@japi esup-activ]# unzip esup-activ-fo-2.3.1-0.zip
 +[root@japi esup-activ]# cd esup-activ-fo-2.3.1
 +</code>
 +
 +config 
 +
 +<code>
 +[root@japi esup-activ-fo-2.3.1]# cp properties/config.properties .
 +</code>
 +
 +adaptation attributs ldap, ldap server, cas server dans config.properties
 +
 +===== deploy =====
 +
 +==== 1er erreure ant 1.7 ====
 +
 +
 +au premier deploy erreur sur centos7 et la version de ant qui est codée en dure dans le build.xml pour attendre une 1.7
 +
 +<code>
 +<fail message="ERROR: Ant 1.7 is required (found: ${ant.version})">
 +                <condition>
 +                        <not>
 +                                <contains string="${ant.version}" substring="1.7" />
 +</code>
 +
 +remplacement par ce qu'on a :
 +
 +<code>
 +<fail message="ERROR: Ant 1.9.2 is required (found: ${ant.version})">
 +                <condition>
 +                        <not>
 +                                <contains string="${ant.version}" substring="1.9.2" />
 +</code>
 +
 +==== 2eme erreur https / SNI jdk 7 ====
 +
 +puis 2eme erreur lors de l'acces en https au subversion esup : https://subversion.cru.fr/esup-commons/tags/${commons.version}/esup-commons"
 +
 +<code>
 +[root@japi esup-activ-fo-2.3.1]# ant deploy 
 +...
 +      [get] Getting: https://subversion.cru.fr/esup-commons/tags/1.3.9/esup-commons/utils/lib/jsp-api-2.0.jar
 +      [get] To: /root/esup-activ/esup-activ-fo-2.3.1/utils/lib/jsp-api-2.0.jar
 +      [get] Error getting https://subversion.cru.fr/esup-commons/tags/1.3.9/esup-commons/utils/lib/jsp-api-2.0.jar to /root/esup-activ/esup-activ-fo-2.3.1/utils/lib/jsp-api-2.0.jar
 +
 +BUILD FAILED
 +/root/esup-activ/esup-activ-fo-2.3.1/build-commons.xml:637: The following error occurred while executing this line:
 +/root/esup-activ/esup-activ-fo-2.3.1/build-commons.xml:646: javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
 +</code>
 +
 +
 +avec java 7 il semble y avoir une contrainte sur l'usage de vhost et/ou certificats wildcard et SNI (Server Name Indicator) , cf
 +
 +http://javaresolutions.blogspot.fr/2014/07/javaxnetsslsslprotocolexception.html
 +
 +effectivement
 +
 +<code>
 +#  openssl s_client -host https://subversion.cru.fr  -port 443
 +...
 +Certificate chain
 + 0 s:/C=FR/O=GIP RENATER/CN=sourcesup.renater.fr
 +</code>
 +
 +=> subversion.cru.fr != sourcesup.renater.fr
 +
 +on contourne le pb en passant en http plusot que https pour telecharger les jar necessaires
 +
 +<code>
 +#vim build-commons.xml
 + <property name="commons.repository.path-prefix" value="http://subversion.cru.fr/esup-commons/tags/${commons.version}/esup-commons" />
 +</code>
 +
 +==== 3eme erreur encoding ====
 +
 +<code>
 +   [javac] /root/esup-activ/esup-activ-fo-2.3.1/src/org/esupportail/activfo/domain/beans/mailing/Mailing.java:2: error: unmappable character for encoding ASCII
 +    [javac]  * interface d'envoi de mail pour signaler des modifications de donn??es personnelles n??cessitant une validation
 +</code>
 +
 +cf http://stackoverflow.com/questions/14106936/ant-warning-unmappable-character-for-encoding-utf8
 +
 +workaround :
 +
 +<code>
 +[root@japi esup-activ-fo-2.3.1]# export ANT_OPTS="-Dfile.encoding=UTF"
 +[root@japi esup-activ-fo-2.3.1]# echo $ANT_OPTS
 +-Dfile.encoding=UTF
 +</code>
 +
 +==== deploy positif ====
 +
 +apres cette gestion d'erreurs, cela marche enfin 
 +
 +<code>
 +[root@japi esup-activ-fo-2.3.1]# ant deploy 
 +Buildfile: /root/esup-activ/esup-activ-fo-2.3.1/build.xml
 +
 +read-commons-properties:
 +     [echo] Property quick-start is not set, defaults to false.
 +     [echo] deploy.type=servlet
 +     [echo] deploy.home=/var/lib/tomcat/webapps/esup-activ-fo
 +     [echo] tomcat.host=japi.tem-tsp.eu
 +     [echo] tomcat.port=8080
 +     [echo] tomcat.cas-port is not set, defaults to 8080.
 +     [echo] tomcat.path=
 +     [echo] tomcat.url=http://japi.tem-tsp.eu:8080
 +     [echo] Use JNDI: true
 +
 +commons-check-shared-config:
 +
 +check-shared-config:
 +
 +set-download-properties:
 +
 +commons-download-files:
 +     [echo] checking esup-commons libraries...
 +     [echo] up to date.
 +     [echo] checking esup-activ-fo libs...
 +     [echo] up to date.
 +
 +commons-prepare:
 +
 +prepare:
 +
 +commons-compile-shared:
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/lib
 +    [javac] /root/esup-activ/esup-activ-fo-2.3.1/build-commons.xml:807: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
 +    [javac] Compiling 389 source files to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes
 +    [javac] /root/esup-activ/esup-activ-fo-2.3.1/src/org/esupportail/activfo/dao/HibernateDaoServiceImpl.java:99: warning: [deprecation] HibernateFixedQueryPaginator(AbstractGenericHibernateDaoService,String) in HibernateFixedQueryPaginator has been deprecated
 +    [javac] return new HibernateFixedQueryPaginator<User>(this, queryStr);
 +    [javac]        ^
 +    [javac] Note: Some input files use unchecked or unsafe operations.
 +    [javac] Note: Recompile with -Xlint:unchecked for details.
 +    [javac] 1 warning
 +     [copy] Copying 46 files to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes/properties
 +     [copy] Copied 20 empty directories to 1 empty directory under /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes/properties
 +     [copy] Copying 7 files to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes/properties
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes/properties/i18n/bundles
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/classes/properties/i18n/bundles
 +
 +compile-shared:
 +
 +commons-compile-web:
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF
 +     [copy] Copying 729 files to /root/esup-activ/esup-activ-fo-2.3.1/build
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-fo-2.3.1/build/WEB-INF/lib
 +
 +compile-web:
 +
 +commons-deploy:
 +    [mkdir] Created dir: /var/lib/tomcat/webapps/esup-activ-fo
 +     [copy] Copying 1185 files to /var/lib/tomcat/webapps/esup-activ-fo
 +
 +deploy:
 +
 +BUILD SUCCESSFUL
 +Total time: 10 seconds
 +</code>
 +
 +==== access http esup-activ-fo ====
 +
 +on crée les acces a l'appli java tomcat via apache http (proxy-ajp)
 +
 +<code>
 +[root@japi esup-activ-fo-2.3.1]# cat  /etc/httpd/conf.d/proxy-ajp.conf 
 +ProxyPass /esup-activ-fo ajp://localhost:8009/esup-activ-fo retry=3 min=0 max=100 smax=50 ttl=10 timeout=60
 +ProxyPass /manager ajp://localhost:8009/manager retry=3 min=0 max=100 smax=50 ttl=10 timeout=60
 +</code>
 +
 +suite au deploy ci-dessus,  relance de tomcat et apache,  on peux enfin acceder a l'application sur http://jesup.int-evry.fr/esup-activ-fo/
 +
 +
 +il persite tout de meme une erreur dans les log tomcat  catalina.out un peu inquietante, je n'ai pas encore de retour dessus ...
 +
 +<code>
 +2015-01-09 16:27:03,118 INFO [org.apache.myfaces.config.FacesConfigurator] - Reading config /WEB-INF/classes/properties/jsf/commons-pattern-faces-config.xml
 +2015-01-09 16:27:03,140 ERROR [org.apache.myfaces.config.FacesConfigurator] - You are using the MyFaces-package : tomahawk in different versions; first (and probably used) version is : 1.1.6, currently encountered version is : bridge-0.9.1. This will cause undesired behaviour. Please clean out your class-path. The first encountered version is loaded from : file:/var/lib/tomcat/webapps/esup-activ-fo/WEB-INF/lib/tomahawk-1.1.6.jar. The currently encountered version is loaded from : jar:file:/var/lib/tomcat/webapps/esup-activ-fo/WEB-INF/lib/tomahawk-bridge-0.9.1.jar!/META-INF/MANIFEST.MF
 +2015-01-09 16:27:03,140 INFO [org.apache.myfaces.config.FacesConfigurator] - Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/var/lib/tomcat/webapps/esup-activ-fo/WEB-INF/lib/myfaces-api-1.1.5.jar
 +</code>
 +
 +===== esup-active-bo =====
 +
 +adaptations du build.properties et config.properties
 +
 +<code>
 +
 +[root@japi esup-activ]# unzip esup-activ-bo-2.3.1-0.zip
 +[root@japi esup-activ-bo-2.3.1]# cp build.properties build.properties.orig
 +[root@japi esup-activ-bo-2.3.1]# vim build.properties
 +[root@japi esup-activ-bo-2.3.1]# cd properties/
 +[root@japi properties]# cp config.sample.properties config.properties
 +
 +</code>
 +
 +
 +==== deploy ====
 +
 +<code>
 +[root@japi esup-activ-bo-2.3.1]# ant deploy
 +Buildfile: /root/esup-activ/esup-activ-bo-2.3.1/build.xml
 +
 +read-commons-properties:
 +     [echo] Property quick-start is not set, defaults to false.
 +     [echo] deploy.type=servlet
 +     [echo] deploy.home=/var/lib/tomcat/webapps/esup-activ-bo
 +     [echo] tomcat.host is not set, defaults to localhost.
 +     [echo] tomcat.port=8080
 +     [echo] tomcat.cas-port is not set, defaults to 8080.
 +     [echo] tomcat.path=
 +     [echo] tomcat.url=http://localhost:8080
 +     [echo] Use JNDI: true
 +
 +commons-check-shared-config:
 +
 +check-shared-config:
 +
 +set-download-properties:
 +
 +commons-download-files:
 +     [echo] checking esup-commons libraries...
 +     [echo] up to date.
 +     [echo] checking esup-activ-bo libs...
 +     [echo] up to date.
 +
 +commons-prepare:
 +
 +prepare:
 +
 +commons-compile-shared:
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/lib
 +    [javac] /root/esup-activ/esup-activ-bo-2.3.1/build-commons.xml:807: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
 +     [copy] Copying 36 files to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/classes/properties
 +     [copy] Copying 7 files to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/classes/properties
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/classes
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/classes/properties/i18n/bundles
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF/classes/properties/i18n/bundles
 +
 +compile-shared:
 +
 +commons-compile-web:
 +     [copy] Copying 1 file to /root/esup-activ/esup-activ-bo-2.3.1/build/WEB-INF
 +     [copy] Copying 673 files to /root/esup-activ/esup-activ-bo-2.3.1/build
 +
 +compile-web:
 +
 +commons-deploy:
 +    [mkdir] Created dir: /var/lib/tomcat/webapps/esup-activ-bo
 +     [copy] Copying 1104 files to /var/lib/tomcat/webapps/esup-activ-bo
 +
 +deploy:
 +
 +BUILD SUCCESSFUL
 +Total time: 2 seconds
 +</code>
 +
docpublic/systemes/esup/esup_activ2.1420809842.txt.gz · Last modified: 2015/01/09 13:24 by procacci@tem-tsp.eu
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0