Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:esup:esup_activ2 [2015/01/09 15:08]
procacci@tem-tsp.eu [esup-actif-fo]
docpublic:systemes:esup:esup_activ2 [2015/01/09 16:41] (current)
procacci@tem-tsp.eu [access http]
Line 16: Line 16:
 </code> </code>
  
-==== esup-actif-fo ====+===== esup-actif-fo =====
  
 <code> <code>
Line 31: Line 31:
 adaptation attributs ldap, ldap server, cas server dans config.properties adaptation attributs ldap, ldap server, cas server dans config.properties
  
-==== deploy ====+===== 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 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
Line 50: Line 53:
                                 <contains string="${ant.version}" substring="1.9.2" />                                 <contains string="${ant.version}" substring="1.9.2" />
 </code> </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" puis 2eme erreur lors de l'acces en https au subversion esup : https://subversion.cru.fr/esup-commons/tags/${commons.version}/esup-commons"
Line 86: Line 91:
 #vim build-commons.xml #vim build-commons.xml
  <property name="commons.repository.path-prefix" value="http://subversion.cru.fr/esup-commons/tags/${commons.version}/esup-commons" />  <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> </code>
  
docpublic/systemes/esup/esup_activ2.1420816118.txt.gz · Last modified: 2015/01/09 15:08 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