Browse Source

changes for TML UAT Environment

master
Richard Shih 6 years ago
parent
commit
c2bdefbcfb
38 changed files with 494 additions and 978 deletions
  1. 6
      buildImage.sh
  2. 1
      cleanImage.sh
  3. 4
      wildfly_base/Dockerfile
  4. 4
      wildfly_base/buildImage.sh
  5. 123
      wildfly_base/modules/make_modules.sh
  6. 0
      wildfly_base/modules/module_commons_digester.xml
  7. 50
      wildfly_base/modules/module_commons_logging.xml
  8. 0
      wildfly_base/modules/module_commons_logging_113.xml
  9. 66
      wildfly_base/modules/module_commons_net.xml
  10. 64
      wildfly_base/modules/module_groovy.xml
  11. 0
      wildfly_base/modules/module_gson.xml
  12. 0
      wildfly_base/modules/module_jasperreports.xml
  13. 80
      wildfly_base/modules/module_jasperreports_641.xml
  14. 33
      wildfly_base/modules/module_jasperreports_font.xml
  15. 66
      wildfly_base/modules/module_qrgen.xml
  16. 74
      wildfly_base/modules/module_sentry.xml
  17. 0
      wildfly_base/modules/module_spring.xml
  18. 0
      wildfly_base/modules/module_spring_406.xml
  19. 0
      wildfly_base/modules/module_tml.xml
  20. 0
      wildfly_base/modules/module_tml_bizbean.xml
  21. 0
      wildfly_base/modules/module_tml_vo.xml
  22. 0
      wildfly_base/modules/module_wanhai_base.xml
  23. 11
      wildfly_base/modules/module_wanhai_zk.xml
  24. 86
      wildfly_base/modules/module_zxing.xml
  25. 14
      wildfly_tml/Dockerfile
  26. 4
      wildfly_tml/buildImage.sh
  27. 6
      wildfly_tml/config/META-INF/application.xml
  28. 43
      wildfly_tml/config/META-INF/tml-config.xml
  29. 529
      wildfly_tml/config/standalone-sp.xml
  30. 22
      wildfly_tml/initial/setup.sh
  31. 5
      wildfly_tml/initial/startwf.sh
  32. BIN
      wildfly_tml/modules/.DS_Store
  33. 117
      wildfly_tml/modules/make_modules.sh
  34. 36
      wildfly_tml/modules/module_jasperreports_font.xml
  35. 18
      wildfly_tml_khhw/Dockerfile
  36. 4
      wildfly_tml_khhw/buildImage.sh
  37. 1
      wildfly_tml_khhw/initial/setup.sh
  38. 5
      wildfly_tml_khhw/initial/startwf.sh

6
buildImage.sh

@ -0,0 +1,6 @@
cd wildfly_base && docker build --rm -t khhwtml02t.wanhai.com:8182/jboss/wildfly-base:latest . && \
docker push khhwtml02t.wanhai.com:8182/jboss/wildfly-base:latest && cd ..
cd wildfly_tml && docker build --rm -t khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest . && \
docker push khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest && cd ..
cd wildfly_tml_khhw && docker build --rm -t khhwtml02t.wanhai.com:8182/wanhai/tml/khhw/uat/tml-cy:latest . && \
docker push khhwtml02t.wanhai.com:8182/wanhai/tml/khhw/uat/tml-cy:latest && cd ..

1
cleanImage.sh

@ -0,0 +1 @@
docker container prune -f && docker image prune -f && docker volume prune -f && docker network prune -f

4
wildfly_base/Dockerfile

@ -2,8 +2,10 @@ FROM jboss/wildfly:11.0.0.Final
# Environment variable with default value
ENV WF_CONFIG="standalone.xml"
ENV TZ="Asia/Taipei"
#for session persistance using
ENV SESSIONDB_HOST='localhost:3306' SESSIONDB_NAME='wf_sessions' SESSIONDB_USER='session' SESSIONDB_PASS='session'
#ENV SESSIONDB_HOST='localhost:3306' SESSIONDB_NAME='wf_sessions' SESSIONDB_USER='session' SESSIONDB_PASS='session'
LABEL maintainer="richard_shih@wanhai.com"

4
wildfly_base/buildImage.sh

@ -0,0 +1,4 @@
tag="khhwtml02t.wanhai.com:8182/jboss/wildfly-base:latest"
docker build --rm -t ${tag} .
#docker push ${tag}
docker container prune -f && docker image prune -f && docker volume prune -f && docker network prune -f

123
wildfly_base/modules/make_modules.sh

@ -9,10 +9,11 @@ mkdir -p ${WF_MODULE_PATH}/com/mysql/jdbc/main
curl -# -o ${WF_MODULE_PATH}/com/mysql/jdbc/main/mysql-connector-java.jar http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar
cp ./module_jdbc_mysql.xml ${WF_MODULE_PATH}/com/mysql/jdbc/main/module.xml
#setup module of oracle jdbc driver(11.2.0.3)
#setup module of oracle jdbc driver(11.1.0.7.0)
#oracle jdbc driver 12.0.3.0與DBHandler有不相容問題(default date format=yyyy-mm-dd無法透過alert serssion改變)
echo 'Download oracle jdbc driver =>'
mkdir -p ${WF_MODULE_PATH}/com/oracle/jdbc/main
curl -# -o ${WF_MODULE_PATH}/com/oracle/jdbc/main/ojdbc6.jar http://www.datanucleus.org/downloads/maven2/oracle/ojdbc6/11.2.0.3/ojdbc6-11.2.0.3.jar
curl -# -o ${WF_MODULE_PATH}/com/oracle/jdbc/main/ojdbc6.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/oracle/jdbc/11.1.0.7.0/jdbc-11.1.0.7.0.jar
cp ./module_jdbc_oracle.xml ${WF_MODULE_PATH}/com/oracle/jdbc/main/module.xml
#setup org.apache.commons.fileupload
@ -58,10 +59,126 @@ curl -# -o ${WF_MODULE_PATH}/org/zkoss/zk/${ZK8_VER}/bsh.jar http://central.mave
curl -# -o ${WF_MODULE_PATH}/org/zkoss/zk/${ZK8_VER}/slf4j-api.jar http://central.maven.org/maven2/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
curl -# -o ${WF_MODULE_PATH}/org/zkoss/zk/${ZK8_VER}/slf4j-jdk14.jar http://central.maven.org/maven2/org/slf4j/slf4j-jdk14/1.7.5/slf4j-jdk14-1.7.5.jar
cp ./module_zk8.xml ${WF_MODULE_PATH}/org/zkoss/zk/${ZK8_VER}/module.xml
#setup default slot of zk module(default is zk8)
mkdir ${WF_MODULE_PATH}/org/zkoss/zk/main && cp ./module_zk.xml ${WF_MODULE_PATH}/org/zkoss/zk/main/module.xml
#setup module google gson(2.7)
echo 'Download jars of google gson =>'
mkdir -p ${WF_MODULE_PATH}/com/google/gson/main
curl -# -o ${WF_MODULE_PATH}/com/google/gson/main/gson-2.7.jar http://central.maven.org/maven2/com/google/code/gson/gson/2.7/gson-2.7.jar
cp ./module_gson.xml ${WF_MODULE_PATH}/com/google/gson/main/module.xml
#setup module of apache commons-logging (1.1.3)
echo 'Download jars of commons-logging =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3/commons-logging-1.1.3.jar http://central.maven.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
cp ./module_commons_logging_113.xml ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3/module.xml
#setup default slot of apache commons-logging(default is 1.1.3)
mkdir ${WF_MODULE_PATH}/org/apache/commons/main && cp ./module_commons_logging.xml ${WF_MODULE_PATH}/org/apache/commons/main/module.xml
#setup module of apache commons-net(3.6)
echo 'Download jars of commons-net =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/net/main
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/net/main/commons-net-3.6.jar http://central.maven.org/maven2/commons-net/commons-net/3.6/commons-net-3.6.jar
cp ./module_commons_net.xml ${WF_MODULE_PATH}/org/apache/commons/net/main/module.xml
#setup module of apache commons-digester(1.6)
echo 'Download jars of commons-digester =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/digester/main
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/digester/main/commons-digester.jar http://central.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
cp ./module_commons_digester.xml ${WF_MODULE_PATH}/org/apache/commons/digester/main/module.xml
#setup module of groovy(2.4.7)
echo 'Download jars of groovy=>'
mkdir -p ${WF_MODULE_PATH}/org/codehaus/groovy/main
curl -# -o ${WF_MODULE_PATH}/org/codehaus/groovy/main/groovy-all-2.4.7.jar http://central.maven.org/maven2/org/codehaus/groovy/groovy-all/2.4.7/groovy-all-2.4.7.jar
cp ./module_groovy.xml ${WF_MODULE_PATH}/org/codehaus/groovy/main/module.xml
#setup module of google zxing(3.2.1)
echo 'Download jars of google zxing=>'
mkdir -p ${WF_MODULE_PATH}/com/google/zxing/main
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/javase-3.2.1.jar http://central.maven.org/maven2/com/google/zxing/javase/3.2.1/javase-3.2.1.jar
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/jcommander-1.48.jar http://central.maven.org/maven2/com/beust/jcommander/1.48/jcommander-1.48.jar
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/core-3.2.1.jar http://central.maven.org/maven2/com/google/zxing/core/3.2.1/core-3.2.1.jar
cp ./module_zxing.xml ${WF_MODULE_PATH}/com/google/zxing/main/module.xml
#setup module of qrgen(2.0)
echo 'Download jars of qrgen=>'
mkdir -p ${WF_MODULE_PATH}/net/glxn/qrgen/main
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/javase-2.0.jar http://central.maven.org/maven2/net/glxn/qrgen/javase/2.0/javase-2.0.jar
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/core-2.0.jar http://central.maven.org/maven2/net/glxn/qrgen/core/2.0/core-2.0.jar
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/jfreesvg-2.1.jar http://central.maven.org/maven2/org/jfree/jfreesvg/2.1/jfreesvg-2.1.jar
cp ./module_qrgen.xml ${WF_MODULE_PATH}/net/glxn/qrgen/main/module.xml
#setup module of sentry(1.7.3)
echo 'Download jars of sentry=>'
mkdir -p ${WF_MODULE_PATH}/io/sentry/main
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/sentry-1.7.3.jar http://central.maven.org/maven2/io/sentry/sentry/1.7.3/sentry-1.7.3.jar
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/jackson-core-2.8.7.jar http://central.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.8.7/jackson-core-2.8.7.jar
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/slf4j-api-1.7.24.jar http://central.maven.org/maven2/org/slf4j/slf4j-api/1.7.24/slf4j-api-1.7.24.jar
cp ./module_sentry.xml ${WF_MODULE_PATH}/io/sentry/main/module.xml
#setup module of springframework(4.0.6)
echo 'Download jars of springframework=>'
mkdir -p ${WF_MODULE_PATH}/org/springframework/4.0.6
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/aopalliance-1.0.jar http://central.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-tx-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-tx/4.0.6.RELEASE/spring-tx-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-context-support-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-context-support/4.0.6.RELEASE/spring-context-support-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-jdbc-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-jdbc/4.0.6.RELEASE/spring-jdbc-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-webmvc-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-webmvc/4.0.6.RELEASE/spring-webmvc-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-web-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-web/4.0.6.RELEASE/spring-web-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-aop-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-aop/4.0.6.RELEASE/spring-aop-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-expression-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-expression/4.0.6.RELEASE/spring-expression-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-context-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-context/4.0.6.RELEASE/spring-context-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-core-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-core/4.0.6.RELEASE/spring-core-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-beans-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-beans/4.0.6.RELEASE/spring-beans-4.0.6.RELEASE.jar
cp ./module_spring_406.xml ${WF_MODULE_PATH}/org/springframework/4.0.6/module.xml
#setup default slot of springframework module(default is 4.0.6)
mkdir ${WF_MODULE_PATH}/org/springframework/main && cp ./module_spring.xml ${WF_MODULE_PATH}/org/springframework/main/module.xml
#setup module of jasperreports(4.6.1)
echo 'Download jars of jasperreports=>'
mkdir -p ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1
curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1/jasperreports-6.4.1.jar http://central.maven.org/maven2/net/sf/jasperreports/jasperreports/6.4.1/jasperreports-6.4.1.jar
cp ./module_jasperreports_641.xml ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1/module.xml
#setup default slot of jasperreports module(default is 6.4.1)
mkdir ${WF_MODULE_PATH}/net/sf/jasperreports/main && cp ./module_jasperreports.xml ${WF_MODULE_PATH}/net/sf/jasperreports/main/module.xml
#setup module of jasperreports-fonts
echo 'Download jars of jasperreports-fonts=>'
mkdir -p ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main
curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/jasperreports-fonts.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/net/sf/jasperreports/jasperreports-fonts/1.0.0/jasperreports-fonts-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/itext.jar http://central.maven.org/maven2/com/lowagie/itext/2.1.7/itext-2.1.7.jar
cp ./module_jasperreports_font.xml ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/module.xml
#setup module of wanhai base
echo 'Download jars of com.wanhai.base=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/base/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-utility.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-utility/1.0.0/whl-utility-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-security-fake.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-security/1.0.0/whl-security-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-biz.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-biz/1.0.0/whl-biz-1.0.0.jar
cp ./module_wanhai_base.xml ${WF_MODULE_PATH}/com/wanhai/base/main/module.xml
#setup module of wanhai zk base
echo 'Download jars of com.wanhai.zk=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/zk/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-template.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-template/1.0.0/whl-template-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-base.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-zk-base/1.0.0/whl-zk-base-1.0.0.jar
cp ./module_wanhai_zk.xml ${WF_MODULE_PATH}/com/wanhai/zk/main/module.xml
#setup module of tml vo
echo 'Download jars of com.wanhai.tml.vo=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/vo/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-sec.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-sec/0.1.0/whl-vo-sec-0.1.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-tml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-tml/0.1.0/whl-vo-tml-0.1.0.jar
cp ./module_tml_vo.xml ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/module.xml
#setup module of tml bizbean
echo 'Download jars of com.wanhai.tml.bizbean=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/whl-biztml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-biztml/0.1.0/whl-biztml-0.1.0.jar
cp ./module_tml_bizbean.xml ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/module.xml

wildfly_tml/modules/module_commons_digester.xml → wildfly_base/modules/module_commons_digester.xml

wildfly_tml/modules/module_commons_logging.xml → wildfly_base/modules/module_commons_logging.xml

@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.apache.commons.logging" target-name="org.apache.commons.logging" target-slot="1.1.3">
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.apache.commons.logging" target-name="org.apache.commons.logging" target-slot="1.1.3">
</module>

wildfly_tml/modules/module_commons_logging_113.xml → wildfly_base/modules/module_commons_logging_113.xml

wildfly_tml/modules/module_commons_net.xml → wildfly_base/modules/module_commons_net.xml

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.apache.commons.net">
<resources>
<resource-root path="commons-net-3.6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.apache.commons.net">
<resources>
<resource-root path="commons-net-3.6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>

wildfly_tml/modules/module_groovy.xml → wildfly_base/modules/module_groovy.xml

@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.codehaus.groovy">
<resources>
<resource-root path="groovy-all-2.4.7.jar"/>
</resources>
<dependencies>
</dependencies>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="org.codehaus.groovy">
<resources>
<resource-root path="groovy-all-2.4.7.jar"/>
</resources>
<dependencies>
</dependencies>
</module>

wildfly_tml/modules/module_gson.xml → wildfly_base/modules/module_gson.xml

wildfly_tml/modules/module_jasperreports.xml → wildfly_base/modules/module_jasperreports.xml

wildfly_tml/modules/module_jasperreports_641.xml → wildfly_base/modules/module_jasperreports_641.xml

@ -1,40 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.sf.jasperreports" slot="6.4.1">
<resources>
<resource-root path="jasperreports-6.4.1.jar"/>
</resources>
<dependencies>
<module name="sun.jdk"/>
<module name="org.apache.commons.logging" />
<module name="org.apache.commons.beanutils"/>
<module name="org.apache.commons.lang"/>
<module name="org.apache.commons.collections"/>
<module name="org.apache.commons.digester"/>
<!-- <module name="net.sf.jasperreports.fonts"/> -->
<module name="javax.api"/>
</dependencies>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.sf.jasperreports" slot="6.4.1">
<resources>
<resource-root path="jasperreports-6.4.1.jar"/>
</resources>
<dependencies>
<module name="sun.jdk"/>
<module name="org.apache.commons.logging" />
<module name="org.apache.commons.beanutils"/>
<module name="org.apache.commons.lang"/>
<module name="org.apache.commons.collections"/>
<module name="org.apache.commons.digester"/>
<module name="net.sf.jasperreports.fonts"/>
<module name="javax.api"/>
</dependencies>
</module>

33
wildfly_base/modules/module_jasperreports_font.xml

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.sf.jasperreports.fonts">
<resources>
<resource-root path="jasperreports-fonts.jar"/>
<resource-root path="itext.jar"/>
</resources>
<dependencies>
</dependencies>
</module>

wildfly_tml/modules/module_qrgen.xml → wildfly_base/modules/module_qrgen.xml

@ -1,34 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.glxn.qrgen">
<resources>
<resource-root path="core-2.0.jar"/>
<resource-root path="javase-2.0.jar"/>
<resource-root path="jfreesvg-2.1.jar"/>
</resources>
<dependencies>
<module name="com.google.zxing"/>
</dependencies>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.glxn.qrgen">
<resources>
<resource-root path="core-2.0.jar"/>
<resource-root path="javase-2.0.jar"/>
<resource-root path="jfreesvg-2.1.jar"/>
</resources>
<dependencies>
<module name="com.google.zxing"/>
</dependencies>
</module>

wildfly_tml/modules/module_sentry.xml → wildfly_base/modules/module_sentry.xml

@ -1,37 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="io.sentry">
<resources>
<resource-root path="sentry-1.7.3.jar"/>
<resource-root path="jackson-core-2.8.7.jar"/>
<resource-root path="slf4j-api-1.7.24.jar"/>
</resources>
<dependencies>
<module name="javax.servlet.api"/>
<module name="javaee.api"/>
</dependencies>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="io.sentry">
<resources>
<resource-root path="sentry-1.7.3.jar"/>
<resource-root path="jackson-core-2.8.7.jar"/>
<resource-root path="slf4j-api-1.7.24.jar"/>
</resources>
<dependencies>
<module name="javax.servlet.api"/>
<module name="javaee.api"/>
</dependencies>
</module>

wildfly_tml/modules/module_spring.xml → wildfly_base/modules/module_spring.xml

wildfly_tml/modules/module_spring_406.xml → wildfly_base/modules/module_spring_406.xml

wildfly_tml/modules/module_tml.xml → wildfly_base/modules/module_tml.xml

wildfly_tml/modules/module_tml_bizbean.xml → wildfly_base/modules/module_tml_bizbean.xml

wildfly_tml/modules/module_tml_vo.xml → wildfly_base/modules/module_tml_vo.xml

wildfly_tml/modules/module_wanhai_base.xml → wildfly_base/modules/module_wanhai_base.xml

wildfly_tml/modules/module_wanhai_zk.xml → wildfly_base/modules/module_wanhai_zk.xml

@ -29,12 +29,13 @@
</resources>
<dependencies>
<module name="org.apache.commons.logging"/>
<module name="org.springframework"/>
<module name="com.wanhai.base"/>
<module name="org.apache.commons.beanutils"/>
<module name="org.apache.commons.logging"/>
<module name="org.springframework"/>
<module name="com.wanhai.base"/>
<module name="org.apache.commons.beanutils"/>
<module name="com.oracle.jdbc"/>
<module name="org.zkoss.zk"/>
<module name="javaee.api"/>
<module name="javaee.api"/>
</dependencies>
</module>

wildfly_tml/modules/module_zxing.xml → wildfly_base/modules/module_zxing.xml

@ -1,44 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="com.google.zxing">
<resources>
<resource-root path="core-3.2.1.jar"/>
<resource-root path="javase-3.2.1.jar"/>
<resource-root path="jcommander-1.48.jar"/>
</resources>
<dependencies>
<system export="true">
<paths>
<path name="javax/imageio"/>
<path name="javax/imageio/event"/>
<path name="javax/imageio/metadata"/>
<path name="javax/imageio/plugins/bmp"/>
<path name="javax/imageio/plugins/jpeg"/>
<path name="javax/imageio/spi"/>
<path name="javax/imageio/stream"/>
</paths>
</system>
</dependencies>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="com.google.zxing">
<resources>
<resource-root path="core-3.2.1.jar"/>
<resource-root path="javase-3.2.1.jar"/>
<resource-root path="jcommander-1.48.jar"/>
</resources>
<dependencies>
<system export="true">
<paths>
<path name="javax/imageio"/>
<path name="javax/imageio/event"/>
<path name="javax/imageio/metadata"/>
<path name="javax/imageio/plugins/bmp"/>
<path name="javax/imageio/plugins/jpeg"/>
<path name="javax/imageio/spi"/>
<path name="javax/imageio/stream"/>
</paths>
</system>
</dependencies>
</module>

14
wildfly_tml/Dockerfile

@ -1,23 +1,11 @@
#FROM shihxuancheng/wildfly-base:latest
FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-base:latest
# Environment variable with default value
ENV WF_CONFIG="standalone.xml"
LABEL maintainer="richard_shih@wanhai.com"
#prepare tmp dir
COPY --chown=jboss . ${JBOSS_HOME}/config
#customize modules
RUN cd ${JBOSS_HOME}/config/modules && ./make_modules.sh
#customize settings
RUN cd ${JBOSS_HOME}/config/initial && ./setup.sh
#cleanup
RUN rm -rf ${JBOSS_HOME}/config
EXPOSE 8080 9990
CMD ["sh","-c","/opt/jboss/wildfly/bin/startwf.sh"]
RUN rm -rf ${JBOSS_HOME}/config

4
wildfly_tml/buildImage.sh

@ -0,0 +1,4 @@
tag="khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest"
docker build --rm -t ${tag} .
#docker push ${tag}
docker container prune -f && docker image prune -f && docker volume prune -f && docker network prune -f

6
wildfly_tml/config/META-INF/application.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
version="6">
</application>

43
wildfly_tml/config/META-INF/tml-config.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<tmlConfig>
<!--yard info-->
<yards>
<yard name="KHH063" id="KHH063" place_code="TWKHH" descn_e="KHH063" descn_c="高雄碼頭" defaultSite="true">
<datasources>
<datasource name="prod">
<tnsName>whlt_khhw5</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
<datasource name="uat">
<tnsName>whlt_khhw6</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
<datasource name="sat">
<tnsName>whlt_khhw6</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
</datasources>
<!--ott server url-->
<ott>/collab/ott/oneTimeTicket.jsp</ott>
</yard>
<yard name="TXG034" id="TXG034" place_code="TWTXG" descn_e="TXG034" descn_c="台中碼頭">
<datasources>
<datasource name="prod">
<tnsName>whlt_txgw5</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
<datasource name="uat">
<tnsName>whlt_txgw6</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
<datasource name="sat">
<tnsName>whlt_txgw6</tnsName>
<jndiValue>java:/OraWhltDS</jndiValue>
</datasource>
</datasources>
<!--ott server url-->
<ott>/collab/ott/oneTimeTicket.jsp</ott>
</yard>
<!--<yard name="JPTYO" descn_e="JPTYO" descn_c="大井碼頭"></yard>-->
</yards>
</tmlConfig>

529
wildfly_tml/config/standalone-sp.xml

@ -1,529 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:5.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
<extension module="org.jboss.as.jdr"/>
<extension module="org.jboss.as.jmx"/>
<extension module="org.jboss.as.jpa"/>
<extension module="org.jboss.as.jsf"/>
<extension module="org.jboss.as.logging"/>
<extension module="org.jboss.as.mail"/>
<extension module="org.jboss.as.naming"/>
<extension module="org.jboss.as.pojo"/>
<extension module="org.jboss.as.remoting"/>
<extension module="org.jboss.as.sar"/>
<extension module="org.jboss.as.security"/>
<extension module="org.jboss.as.transactions"/>
<extension module="org.jboss.as.webservices"/>
<extension module="org.jboss.as.weld"/>
<extension module="org.wildfly.extension.batch.jberet"/>
<extension module="org.wildfly.extension.bean-validation"/>
<extension module="org.wildfly.extension.core-management"/>
<extension module="org.wildfly.extension.elytron"/>
<extension module="org.wildfly.extension.io"/>
<extension module="org.wildfly.extension.request-controller"/>
<extension module="org.wildfly.extension.security.manager"/>
<extension module="org.wildfly.extension.undertow"/>
</extensions>
<management>
<security-realms>
<security-realm name="ManagementRealm">
<authentication>
<local default-user="$local" skip-group-loading="true"/>
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization map-groups-to-roles="false">
<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
<security-realm name="ApplicationRealm">
<server-identities>
<ssl>
<keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/>
</ssl>
</server-identities>
<authentication>
<local default-user="$local" allowed-users="*" skip-group-loading="true"/>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization>
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
</security-realms>
<audit-log>
<formatters>
<json-formatter name="json-formatter"/>
</formatters>
<handlers>
<file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/>
</handlers>
<logger log-boot="true" log-read-only="false" enabled="false">
<handlers>
<handler name="file"/>
</handlers>
</logger>
</audit-log>
<management-interfaces>
<http-interface security-realm="ManagementRealm">
<http-upgrade enabled="true"/>
<socket-binding http="management-http"/>
</http-interface>
</management-interfaces>
<access-control provider="simple">
<role-mapping>
<role name="SuperUser">
<include>
<user name="$local"/>
</include>
</role>
</role-mapping>
</access-control>
</management>
<profile>
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
</formatter>
</subsystem>
<subsystem xmlns="urn:jboss:domain:batch-jberet:2.0">
<default-job-repository name="in-memory"/>
<default-thread-pool name="batch"/>
<job-repository name="in-memory">
<in-memory/>
</job-repository>
<thread-pool name="batch">
<max-threads count="10"/>
<keepalive-time time="30" unit="seconds"/>
</thread-pool>
</subsystem>
<subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>
<subsystem xmlns="urn:jboss:domain:core-management:1.0"/>
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jta="true" jndi-name="java:/SessionStorageDS" pool-name="SessionStorageDS" enabled="true" use-ccm="false">
<connection-url>jdbc:mysql://${SESSIONDB_HOST}/${SESSIONDB_NAMAE}</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<driver>mysql</driver>
<security>
<user-name>${SESSIONDB_USER}</user-name>
<password>${SESSIONDB_PASS}</password>
</security>
</datasource>
<drivers>
<driver name="mysql" module="com.mysql.jdbc"/>
<driver name="oracle" module="com.oracle.jdbc"/>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
<subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ee:4.0">
<spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
<concurrent>
<context-services>
<context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>
</context-services>
<managed-thread-factories>
<managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
</managed-thread-factories>
<managed-executor-services>
<managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>
</managed-executor-services>
<managed-scheduled-executor-services>
<managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>
</managed-scheduled-executor-services>
</concurrent>
<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ejb3:5.0">
<session-bean>
<stateless>
<bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
</stateless>
<stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>
<singleton default-access-timeout="5000"/>
</session-bean>
<pools>
<bean-instance-pools>
<strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
<strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
</bean-instance-pools>
</pools>
<caches>
<cache name="simple"/>
<cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
</caches>
<passivation-stores>
<passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
</passivation-stores>
<async thread-pool-name="default"/>
<timer-service thread-pool-name="default" default-data-store="default-file-store">
<data-stores>
<file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
</data-stores>
</timer-service>
<remote connector-ref="http-remoting-connector" thread-pool-name="default">
<channel-creation-options>
<option name="READ_TIMEOUT" value="${prop.remoting-connector.read.timeout:20}" type="xnio"/>
<option name="MAX_OUTBOUND_MESSAGES" value="1234" type="remoting"/>
</channel-creation-options>
</remote>
<thread-pools>
<thread-pool name="default">
<max-threads count="10"/>
<keepalive-time time="100" unit="milliseconds"/>
</thread-pool>
</thread-pools>
<default-security-domain value="other"/>
<default-missing-method-permissions-deny-access value="true"/>
<log-system-exceptions value="true"/>
</subsystem>
<subsystem xmlns="urn:wildfly:elytron:1.2" final-providers="combined-providers" disallowed-providers="OracleUcrypto">
<providers>
<aggregate-providers name="combined-providers">
<providers name="elytron"/>
<providers name="openssl"/>
</aggregate-providers>
<provider-loader name="elytron" module="org.wildfly.security.elytron"/>
<provider-loader name="openssl" module="org.wildfly.openssl"/>
</providers>
<audit-logging>
<file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>
</audit-logging>
<security-domains>
<security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">
<realm name="ApplicationRealm" role-decoder="groups-to-roles"/>
<realm name="local"/>
</security-domain>
<security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">
<realm name="ManagementRealm" role-decoder="groups-to-roles"/>
<realm name="local" role-mapper="super-user-mapper"/>
</security-domain>
</security-domains>
<security-realms>
<identity-realm name="local" identity="$local"/>
<properties-realm name="ApplicationRealm">
<users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
<groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</properties-realm>
<properties-realm name="ManagementRealm">
<users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>
<groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
</properties-realm>
</security-realms>
<mappers>
<simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
<permission-mapping>
<principal name="anonymous"/>
<permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>
<permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>
<permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>
</permission-mapping>
<permission-mapping match-all="true">
<permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>
<permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>
<permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>
<permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>
</permission-mapping>
</simple-permission-mapper>
<constant-realm-mapper name="local" realm-name="local"/>
<simple-role-decoder name="groups-to-roles" attribute="groups"/>
<constant-role-mapper name="super-user-mapper">
<role name="SuperUser"/>
</constant-role-mapper>
</mappers>
<http>
<http-authentication-factory name="management-http-authentication" http-server-mechanism-factory="global" security-domain="ManagementDomain">
<mechanism-configuration>
<mechanism mechanism-name="DIGEST">
<mechanism-realm realm-name="ManagementRealm"/>
</mechanism>
</mechanism-configuration>
</http-authentication-factory>
<http-authentication-factory name="application-http-authentication" http-server-mechanism-factory="global" security-domain="ApplicationDomain">
<mechanism-configuration>
<mechanism mechanism-name="BASIC">
<mechanism-realm realm-name="Application Realm"/>
</mechanism>
<mechanism mechanism-name="FORM"/>
</mechanism-configuration>
</http-authentication-factory>
<provider-http-server-mechanism-factory name="global"/>
</http>
<sasl>
<sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">
<mechanism-configuration>
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
<mechanism mechanism-name="DIGEST-MD5">
<mechanism-realm realm-name="ManagementRealm"/>
</mechanism>
</mechanism-configuration>
</sasl-authentication-factory>
<sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">
<mechanism-configuration>
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
<mechanism mechanism-name="DIGEST-MD5">
<mechanism-realm realm-name="ApplicationRealm"/>
</mechanism>
</mechanism-configuration>
</sasl-authentication-factory>
<configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
<properties>
<property name="wildfly.sasl.local-user.default-user" value="$local"/>
</properties>
</configurable-sasl-server-factory>
<mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">
<filters>
<filter provider-name="WildFlyElytron"/>
</filters>
</mechanism-provider-filtering-sasl-server-factory>
<provider-sasl-server-factory name="global"/>
</sasl>
</subsystem>
<subsystem xmlns="urn:jboss:domain:io:2.0">
<worker name="default"/>
<buffer-pool name="default"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
<cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
<local-cache name="default">
<transaction mode="BATCH"/>
</local-cache>
</cache-container>
<cache-container name="web" default-cache="jdbc" module="org.wildfly.clustering.web.infinispan">
<local-cache name="jdbc">
<transaction mode="BATCH"/>
<eviction strategy="LIRS" max-entries="-1"/>
<expiration max-idle="60000" lifespan="120000" interval="5000"/>
<string-keyed-jdbc-store data-source="SessionStorageDS" dialect="MYSQL" passivation="false" purge="false" shared="true">
<string-keyed-table>
<id-column name="id" type="VARCHAR(255)"/>
<data-column name="datum" type="BLOB"/>
<timestamp-column name="version" type="BIGINT(255)"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</local-cache>
</cache-container>
<cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
<local-cache name="passivation">
<locking isolation="REPEATABLE_READ"/>
<transaction mode="BATCH"/>
<file-store passivation="true" purge="false"/>
</local-cache>
</cache-container>
<cache-container name="hibernate" module="org.hibernate.infinispan">
<local-cache name="entity">
<transaction mode="NON_XA"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps"/>
</cache-container>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
<subsystem xmlns="urn:jboss:domain:jca:5.0">
<archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
<bean-validation enabled="true"/>
<default-workmanager>
<short-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</short-running-threads>
<long-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</long-running-threads>
</default-workmanager>
<cached-connection-manager/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
<subsystem xmlns="urn:jboss:domain:jmx:1.3">
<expose-resolved-model/>
<expose-expression-model/>
<remoting-connector/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jpa:1.1">
<jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
<subsystem xmlns="urn:jboss:domain:mail:3.0">
<mail-session name="default" jndi-name="java:jboss/mail/Default">
<smtp-server outbound-socket-binding-ref="mail-smtp"/>
</mail-session>
</subsystem>
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<remote-naming/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<endpoint/>
<http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:resource-adapters:5.0"/>
<subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
<subsystem xmlns="urn:jboss:domain:sar:1.0"/>
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
<deployment-permissions>
<maximum-set>
<permission class="java.security.AllPermission"/>
</maximum-set>
</deployment-permissions>
</subsystem>
<subsystem xmlns="urn:jboss:domain:security:2.0">
<security-domains>
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="RealmDirect" flag="required">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
<security-domain name="jboss-ejb-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
<security-domain name="jaspitest" cache-type="default">
<authentication-jaspi>
<login-module-stack name="dummy">
<login-module code="Dummy" flag="optional"/>
</login-module-stack>
<auth-module code="Dummy"/>
</authentication-jaspi>
</security-domain>
</security-domains>
</subsystem>
<subsystem xmlns="urn:jboss:domain:transactions:4.0">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<object-store path="tx-object-store" relative-to="jboss.server.data.dir"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:undertow:4.0">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/11"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>
<subsystem xmlns="urn:jboss:domain:webservices:2.0">
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
<client-config name="Standard-Client-Config"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:weld:4.0"/>
</profile>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="http" port="${jboss.http.port:8081}"/>
<socket-binding name="https" port="${jboss.https.port:8443}"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
</server>

22
wildfly_tml/initial/setup.sh

@ -1,6 +1,16 @@
# Add user for adminstration purpose
# ${JBOSS_HOME}/bin/add-user.sh admin wanhai_2 --silent
cp ./startwf.sh ${JBOSS_HOME}/bin/startwf.sh
#session persistance config
# cp ../config/*.* ${JBOSS_HOME}/standalone/configuration/
#create default EAR Module WHL_TML.ear
earDir=${JBOSS_HOME}'/standalone/deployments/WHL_TML.ear'
earLibDir='lib'
earMetaDir='META-INF'
mkdir -p ${earDir}/${earLibDir} && mkdir -p ${earDir}/${earMetaDir}
#copy libraries to lib path
curl -# -o ${earDir}/${earLibDir}'/commons-logging-1.1.1.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
curl -# -o ${earDir}/${earLibDir}'/log4j-1.2.17.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/log4j/log4j/1.2.17/log4j-1.2.17.jar
curl -# -o ${earDir}/${earLibDir}'/sentry-log4j-1.7.3.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/io/sentry/sentry/1.7.3/sentry-1.7.3.jar
curl -# -o ${earDir}/${earLibDir}'/tml-security.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/com/wanhai/tml/tml-security/0.1.0/tml-security-0.1.0.jar
curl -# -o ${earDir}/${earLibDir}'/tml-utility.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/com/wanhai/tml/tml-utility/0.1.0/tml-utility-0.1.0.jar
curl -# -o ${earDir}/${earLibDir}'/zuljsp.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/zkoss/zk/zuljsp/2.6.0/zuljsp-2.6.0.jar
curl -# -o ${earDir}'/whl-biztml.jar' http://khhwtml02t.wanhai.com:8181/repository/maven-public/com/wanhai/tml/whl-biztml/0.1.0/whl-biztml-0.1.0.jar
#copy config files to META-INF
cp -Rf ${JBOSS_HOME}/config/config/${earMetaDir} ${earDir}/${earMetaDir}
#copy config files to wildfly

5
wildfly_tml/initial/startwf.sh

@ -1,5 +0,0 @@
#variables
IPADDRESS=$(hostname -i)
/opt/jboss/wildfly/bin/standalone.sh -c ${WF_CONFIG} -b ${IPADDRESS} -Djboss.bind.address.management=${IPADDRESS}

BIN
wildfly_tml/modules/.DS_Store

117
wildfly_tml/modules/make_modules.sh

@ -1,117 +0,0 @@
#variablies
WF_MODULE_PATH=${JBOSS_HOME}'/modules'
#setup module google gson(2.7)
echo 'Download jars of google gson =>'
mkdir -p ${WF_MODULE_PATH}/com/google/gson/main
curl -# -o ${WF_MODULE_PATH}/com/google/gson/main/gson-2.7.jar http://central.maven.org/maven2/com/google/code/gson/gson/2.7/gson-2.7.jar
cp ./module_gson.xml ${WF_MODULE_PATH}/com/google/gson/main/module.xml
#setup module of apache commons-logging (1.1.3)
echo 'Download jars of commons-logging =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3/commons-logging-1.1.3.jar http://central.maven.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
cp ./module_commons_logging_113.xml ${WF_MODULE_PATH}/org/apache/commons/logging/1.1.3/module.xml
#setup default slot of apache commons-logging(default is 1.1.3)
mkdir ${WF_MODULE_PATH}/org/apache/commons/main && cp ./module_commons_logging.xml ${WF_MODULE_PATH}/org/apache/commons/main/module.xml
#setup module of apache commons-net(3.6)
echo 'Download jars of commons-net =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/net/main
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/net/main/commons-net-3.6.jar http://central.maven.org/maven2/commons-net/commons-net/3.6/commons-net-3.6.jar
cp ./module_commons_net.xml ${WF_MODULE_PATH}/org/apache/commons/net/main/module.xml
#setup module of apache commons-digester(1.6)
echo 'Download jars of commons-digester =>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/digester/main
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/digester/main/commons-digester.jar http://central.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
cp ./module_commons_digester.xml ${WF_MODULE_PATH}/org/apache/commons/digester/main/module.xml
#setup module of groovy(2.4.7)
echo 'Download jars of groovy=>'
mkdir -p ${WF_MODULE_PATH}/org/codehaus/groovy/main
curl -# -o ${WF_MODULE_PATH}/org/codehaus/groovy/main/groovy-all-2.4.7.jar http://central.maven.org/maven2/org/codehaus/groovy/groovy-all/2.4.7/groovy-all-2.4.7.jar
cp ./module_groovy.xml ${WF_MODULE_PATH}/org/codehaus/groovy/main/module.xml
#setup module of google zxing(3.2.1)
echo 'Download jars of google zxing=>'
mkdir -p ${WF_MODULE_PATH}/com/google/zxing/main
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/javase-3.2.1.jar http://central.maven.org/maven2/com/google/zxing/javase/3.2.1/javase-3.2.1.jar
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/jcommander-1.48.jar http://central.maven.org/maven2/com/beust/jcommander/1.48/jcommander-1.48.jar
curl -# -o ${WF_MODULE_PATH}/com/google/zxing/main/core-3.2.1.jar http://central.maven.org/maven2/com/google/zxing/core/3.2.1/core-3.2.1.jar
cp ./module_zxing.xml ${WF_MODULE_PATH}/com/google/zxing/main/module.xml
#setup module of qrgen(2.0)
echo 'Download jars of qrgen=>'
mkdir -p ${WF_MODULE_PATH}/net/glxn/qrgen/main
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/javase-2.0.jar http://central.maven.org/maven2/net/glxn/qrgen/javase/2.0/javase-2.0.jar
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/core-2.0.jar http://central.maven.org/maven2/net/glxn/qrgen/core/2.0/core-2.0.jar
curl -# -o ${WF_MODULE_PATH}/net/glxn/qrgen/main/jfreesvg-2.1.jar http://central.maven.org/maven2/org/jfree/jfreesvg/2.1/jfreesvg-2.1.jar
cp ./module_qrgen.xml ${WF_MODULE_PATH}/net/glxn/qrgen/main/module.xml
#setup module of sentry(1.7.3)
echo 'Download jars of sentry=>'
mkdir -p ${WF_MODULE_PATH}/io/sentry/main
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/sentry-1.7.3.jar http://central.maven.org/maven2/io/sentry/sentry/1.7.3/sentry-1.7.3.jar
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/jackson-core-2.8.7.jar http://central.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.8.7/jackson-core-2.8.7.jar
curl -# -o ${WF_MODULE_PATH}/io/sentry/main/slf4j-api-1.7.24.jar http://central.maven.org/maven2/org/slf4j/slf4j-api/1.7.24/slf4j-api-1.7.24.jar
cp ./module_sentry.xml ${WF_MODULE_PATH}/io/sentry/main/module.xml
#setup module of springframework(4.0.6)
echo 'Download jars of springframework=>'
mkdir -p ${WF_MODULE_PATH}/org/springframework/4.0.6
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/aopalliance-1.0.jar http://central.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-tx-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-tx/4.0.6.RELEASE/spring-tx-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-context-support-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-context-support/4.0.6.RELEASE/spring-context-support-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-jdbc-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-jdbc/4.0.6.RELEASE/spring-jdbc-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-webmvc-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-webmvc/4.0.6.RELEASE/spring-webmvc-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-web-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-web/4.0.6.RELEASE/spring-web-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-aop-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-aop/4.0.6.RELEASE/spring-aop-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-expression-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-expression/4.0.6.RELEASE/spring-expression-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-context-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-context/4.0.6.RELEASE/spring-context-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-core-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-core/4.0.6.RELEASE/spring-core-4.0.6.RELEASE.jar
curl -# -o ${WF_MODULE_PATH}/org/springframework/4.0.6/spring-beans-4.0.6.RELEASE.jar http://central.maven.org/maven2/org/springframework/spring-beans/4.0.6.RELEASE/spring-beans-4.0.6.RELEASE.jar
cp ./module_spring_406.xml ${WF_MODULE_PATH}/org/springframework/4.0.6/module.xml
#setup default slot of springframework module(default is 4.0.6)
mkdir ${WF_MODULE_PATH}/org/springframework/main && cp ./module_spring.xml ${WF_MODULE_PATH}/org/springframework/main/module.xml
#setup module of jasperreports(4.6.1)
echo 'Download jars of jasperreports=>'
mkdir -p ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1
curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1/jasperreports-6.4.1.jar http://central.maven.org/maven2/net/sf/jasperreports/jasperreports/6.4.1/jasperreports-6.4.1.jar
cp ./module_jasperreports_641.xml ${WF_MODULE_PATH}/net/sf/jasperreports/6.4.1/module.xml
#setup default slot of jasperreports module(default is 6.4.1)
mkdir ${WF_MODULE_PATH}/net/sf/jasperreports/main && cp ./module_jasperreports.xml ${WF_MODULE_PATH}/net/sf/jasperreports/main/module.xml
#setup module of wanhai base
echo 'Download jars of com.wanhai.base=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/base/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-utility.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-utility/1.0.0/whl-utility-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-security-fake.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-security/1.0.0/whl-security-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-biz.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-biz/1.0.0/whl-biz-1.0.0.jar
cp ./module_wanhai_base.xml ${WF_MODULE_PATH}/com/wanhai/base/main/module.xml
#setup module of wanhai zk base
echo 'Download jars of com.wanhai.zk=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/zk/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-template.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-template/1.0.0/whl-template-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-base.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-zk-base/1.0.0/whl-zk-base-1.0.0.jar
cp ./module_wanhai_zk.xml ${WF_MODULE_PATH}/com/wanhai/zk/main/module.xml
#setup module of tml base
#setup module of tml vo
echo 'Download jars of com.wanhai.tml.vo=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/vo/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-sec.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-sec/0.1.0/whl-vo-sec-0.1.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-tml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-tml/0.1.0/whl-vo-tml-0.1.0.jar
cp ./module_tml_vo.xml ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/module.xml
#setup module of tml bizbean
echo 'Download jars of com.wanhai.tml.bizbean=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/whl-biztml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-biztml/0.1.0/whl-biztml-0.1.0.jar
cp ./module_tml_bizbean.xml ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/module.xml

36
wildfly_tml/modules/module_jasperreports_font.xml

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<module xmlns="urn:jboss:module:1.3" name="net.sf.jasperreports.fonts">
<resources>
<resource-root path="font-Arial.jar"/>
<resource-root path="font-kaiu.jar"/>
<resource-root path="font-mingliu.jar"/>
<resource-root path="font-Times New Roman.jar"/>
<resource-root path="itext.jar"/>
</resources>
<dependencies>
</dependencies>
</module>

18
wildfly_tml_khhw/Dockerfile

@ -1,19 +1,9 @@
FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:0.1.0
LABEL maintainer="richard_shih@wanhai.com"
ENV TZ="Asia/Taipei"
FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest
#prepare tmp dir
COPY --chown=jboss . ${JBOSS_HOME}/config
#customize settings
RUN cd ${JBOSS_HOME}/config/initial && ./setup.sh
#cleanup
RUN rm -rf ${JBOSS_HOME}/config
COPY --chown=jboss WHL_TML.ear ${JBOSS_HOME}/standalone/deployments/WHL_TML.ear
EXPOSE 8080 9990
#customize settings & cleanup
RUN cd ${JBOSS_HOME}/config/initial && ./setup.sh && rm -rf ${JBOSS_HOME}/config
CMD ["sh","-c","/opt/jboss/wildfly/bin/startwf.sh"]
# COPY --chown=jboss WHL_TML.ear ${JBOSS_HOME}/standalone/deployments/WHL_TML.ear

4
wildfly_tml_khhw/buildImage.sh

@ -0,0 +1,4 @@
tag="khhwtml02t.wanhai.com:8182/wanhai/tml/khhw/wildfly-tml-khhw:latest"
docker build --rm -t ${tag} .
docker push ${tag}
docker container prune -f && docker image prune -f && docker volume prune -f && docker network prune -f

1
wildfly_tml_khhw/initial/setup.sh

@ -1,3 +1,2 @@
cp ./startwf.sh ${JBOSS_HOME}/bin/startwf.sh
#customize config
cp ../config/*.* ${JBOSS_HOME}/standalone/configuration/

5
wildfly_tml_khhw/initial/startwf.sh

@ -1,5 +0,0 @@
#variables
IPADDRESS=$(hostname -i)
/opt/jboss/wildfly/bin/standalone.sh -c ${WF_CONFIG} -b ${IPADDRESS} -Djboss.bind.address.management=${IPADDRESS}
Loading…
Cancel
Save