├── .gitignore
├── LICENSE
├── README.md
├── config
├── docs
├── build.md
├── client.md
├── using_openshift.md
└── using_pure_docker.md
├── prep.sh
├── scouter-host-agent
├── Dockerfile
├── build-docker.sh
├── entrypoint.sh
├── scouter-host-daemonset.yaml
└── scouter.conf
├── scouter-server
├── Dockerfile
├── build-docker.sh
├── entrypoint.sh
├── scouter-server-template.yaml
└── scouter.conf
├── scouter-test-app
├── Dockerfile
├── apache-tomcat-7.0.67
│ ├── .DS_Store
│ ├── ._.DS_Store
│ ├── LICENSE
│ ├── NOTICE
│ ├── RELEASE-NOTES
│ ├── RUNNING.txt
│ ├── bin
│ │ ├── .DS_Store
│ │ ├── ._.DS_Store
│ │ ├── bootstrap.jar
│ │ ├── catalina-tasks.xml
│ │ ├── catalina.bat
│ │ ├── catalina.sh
│ │ ├── catalina.sh.ori
│ │ ├── commons-daemon-native.tar.gz
│ │ ├── commons-daemon.jar
│ │ ├── configtest.bat
│ │ ├── configtest.sh
│ │ ├── daemon.sh
│ │ ├── digest.bat
│ │ ├── digest.sh
│ │ ├── mydatabase.log
│ │ ├── mydatabase.properties
│ │ ├── mydatabase.script
│ │ ├── setclasspath.bat
│ │ ├── setclasspath.sh
│ │ ├── shutdown.bat
│ │ ├── shutdown.sh
│ │ ├── startup.bat
│ │ ├── startup.sh
│ │ ├── tomcat-juli.jar
│ │ ├── tomcat-native.tar.gz
│ │ ├── tool-wrapper.bat
│ │ ├── tool-wrapper.sh
│ │ ├── version.bat
│ │ └── version.sh
│ ├── conf
│ │ ├── catalina.policy
│ │ ├── catalina.properties
│ │ ├── context.xml
│ │ ├── logging.properties
│ │ ├── server.xml
│ │ ├── tomcat-users.xml
│ │ └── web.xml
│ ├── lib
│ │ ├── annotations-api.jar
│ │ ├── catalina-ant.jar
│ │ ├── catalina-ha.jar
│ │ ├── catalina-tribes.jar
│ │ ├── catalina.jar
│ │ ├── ecj-4.4.2.jar
│ │ ├── el-api.jar
│ │ ├── jasper-el.jar
│ │ ├── jasper.jar
│ │ ├── jsp-api.jar
│ │ ├── servlet-api.jar
│ │ ├── tomcat-api.jar
│ │ ├── tomcat-coyote.jar
│ │ ├── tomcat-dbcp.jar
│ │ ├── tomcat-i18n-es.jar
│ │ ├── tomcat-i18n-fr.jar
│ │ ├── tomcat-i18n-ja.jar
│ │ ├── tomcat-jdbc.jar
│ │ ├── tomcat-util.jar
│ │ ├── tomcat7-websocket.jar
│ │ └── websocket-api.jar
│ ├── logs
│ │ ├── catalina.2017-08-22.log
│ │ ├── catalina.out
│ │ ├── host-manager.2015-12-22.log
│ │ ├── host-manager.2015-12-23.log
│ │ ├── host-manager.2016-04-01.log
│ │ ├── host-manager.2016-11-17.log
│ │ ├── host-manager.2016-11-22.log
│ │ ├── host-manager.2017-08-22.log
│ │ ├── localhost.2015-12-22.log
│ │ ├── localhost.2015-12-23.log
│ │ ├── localhost.2016-04-01.log
│ │ ├── localhost.2016-11-17.log
│ │ ├── localhost.2016-11-22.log
│ │ ├── localhost.2017-08-22.log
│ │ ├── localhost_access_log.2015-12-22.txt
│ │ ├── localhost_access_log.2015-12-23.txt
│ │ ├── localhost_access_log.2016-11-17.txt
│ │ ├── localhost_access_log.2016-11-22.txt
│ │ ├── localhost_access_log.2017-08-22.txt
│ │ ├── manager.2015-12-22.log
│ │ ├── manager.2015-12-23.log
│ │ ├── manager.2016-04-01.log
│ │ ├── manager.2016-11-17.log
│ │ ├── manager.2016-11-22.log
│ │ └── manager.2017-08-22.log
│ └── webapps
│ │ └── jpetstore
│ │ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── org.mybatis
│ │ │ └── jpetstore
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ │ ├── WEB-INF
│ │ ├── applicationContext.xml
│ │ ├── classes
│ │ │ ├── META-INF
│ │ │ │ ├── LICENSE
│ │ │ │ └── NOTICE
│ │ │ ├── StripesResources.properties
│ │ │ ├── database
│ │ │ │ ├── jpetstore-hsqldb-dataload.sql
│ │ │ │ └── jpetstore-hsqldb-schema.sql
│ │ │ ├── log4j.properties
│ │ │ └── org
│ │ │ │ └── mybatis
│ │ │ │ └── jpetstore
│ │ │ │ └── persistence
│ │ │ │ ├── AccountMapper.xml
│ │ │ │ ├── CategoryMapper.xml
│ │ │ │ ├── ItemMapper.xml
│ │ │ │ ├── LineItemMapper.xml
│ │ │ │ ├── OrderMapper.xml
│ │ │ │ ├── ProductMapper.xml
│ │ │ │ └── SequenceMapper.xml
│ │ ├── jsp
│ │ │ ├── account
│ │ │ │ ├── EditAccountForm.jsp
│ │ │ │ ├── IncludeAccountFields.jsp
│ │ │ │ ├── NewAccountForm.jsp
│ │ │ │ └── SignonForm.jsp
│ │ │ ├── cart
│ │ │ │ ├── Cart.jsp
│ │ │ │ ├── Checkout.jsp
│ │ │ │ └── IncludeMyList.jsp
│ │ │ ├── catalog
│ │ │ │ ├── Category.jsp
│ │ │ │ ├── Item.jsp
│ │ │ │ ├── Main.jsp
│ │ │ │ ├── Product.jsp
│ │ │ │ └── SearchProducts.jsp
│ │ │ ├── common
│ │ │ │ ├── Error.jsp
│ │ │ │ ├── IncludeBottom.jsp
│ │ │ │ └── IncludeTop.jsp
│ │ │ └── order
│ │ │ │ ├── ConfirmOrder.jsp
│ │ │ │ ├── ListOrders.jsp
│ │ │ │ ├── NewOrderForm.jsp
│ │ │ │ ├── ShippingForm.jsp
│ │ │ │ └── ViewOrder.jsp
│ │ ├── lib
│ │ │ ├── aopalliance-1.0.jar
│ │ │ ├── commons-logging-1.1.3.jar
│ │ │ ├── hsqldb-2.3.3.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── log4j-1.2.17.jar
│ │ │ ├── mybatis-3.3.0.jar
│ │ │ ├── mybatis-spring-1.2.3.jar
│ │ │ ├── spring-aop-4.2.3.RELEASE.jar
│ │ │ ├── spring-beans-4.2.3.RELEASE.jar
│ │ │ ├── spring-context-4.2.3.RELEASE.jar
│ │ │ ├── spring-core-4.2.3.RELEASE.jar
│ │ │ ├── spring-expression-4.2.3.RELEASE.jar
│ │ │ ├── spring-jdbc-4.2.3.RELEASE.jar
│ │ │ ├── spring-tx-4.2.3.RELEASE.jar
│ │ │ ├── spring-web-4.2.3.RELEASE.jar
│ │ │ └── stripes-1.6.0.jar
│ │ └── web.xml
│ │ ├── _scouter_browser.jsp
│ │ ├── create.jsp
│ │ ├── css
│ │ └── jpetstore.css
│ │ ├── e2e.jsp
│ │ ├── e2end.jsp
│ │ ├── e2test.jsp
│ │ ├── enduser
│ │ ├── ajaxtest.html
│ │ ├── errortest.html
│ │ ├── navtest.html
│ │ └── z
│ │ │ ├── 10sImage.jsp
│ │ │ ├── 2sImage.jsp
│ │ │ ├── ajaxTest.jsp
│ │ │ └── test1.html
│ │ ├── help.html
│ │ ├── images
│ │ ├── banner_birds.gif
│ │ ├── banner_cats.gif
│ │ ├── banner_dogs.gif
│ │ ├── banner_fish.gif
│ │ ├── banner_reptiles.gif
│ │ ├── bird1.gif
│ │ ├── bird2.gif
│ │ ├── birds_icon.gif
│ │ ├── cart.gif
│ │ ├── cat1.gif
│ │ ├── cat2.gif
│ │ ├── cats_icon.gif
│ │ ├── dog1.gif
│ │ ├── dog2.gif
│ │ ├── dog3.gif
│ │ ├── dog4.gif
│ │ ├── dog5.gif
│ │ ├── dog6.gif
│ │ ├── dogs.gif
│ │ ├── dogs_icon.gif
│ │ ├── fish.gif
│ │ ├── fish1.gif
│ │ ├── fish2.gif
│ │ ├── fish3.gif
│ │ ├── fish4.gif
│ │ ├── fish_icon.gif
│ │ ├── lizard1.gif
│ │ ├── logo-topbar.gif
│ │ ├── poweredby.gif
│ │ ├── reptiles_icon.gif
│ │ ├── separator.gif
│ │ ├── sm_birds.gif
│ │ ├── sm_cats.gif
│ │ ├── sm_dogs.gif
│ │ ├── sm_fish.gif
│ │ ├── sm_reptiles.gif
│ │ ├── snake1.gif
│ │ └── splash.gif
│ │ ├── index.html
│ │ ├── scouter
│ │ ├── scouter-ajax-timing.js
│ │ ├── scouter-navigation-timing.js
│ │ └── scouter-script-error.js
│ │ └── service.jsp
├── build-docker.sh
├── conf
│ └── scouter_tomcat.conf
├── entrypoint.sh
├── scouter
│ └── agent.java
│ │ └── scouter.agent.jar
└── test.out
└── scouter-tomcat-openshift-s2i
├── Dockerfile
├── build-docker.sh
├── conf
└── scouter_tomcat.conf
├── jws30-tomcat7-scouter-s2i.yaml
├── scouter-option.txt
└── update_scouter_conf.sh
/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | *.swp
3 |
4 | # Mobile Tools for Java (J2ME)
5 | .mtj.tmp/
6 |
7 |
8 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
9 | hs_err_pid*
10 |
11 | #scouter packages
12 | scouter-server/server
13 | scouter-server/server.old
14 | scouter-tomcat-openshift-s2i/scouter
15 | scouter-tomcat-openshift-s2i/scouter.old
16 | scouter-host-agent/agent.host
17 | scouter-host-agent/agent.host.old
18 | scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/*
19 |
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Containerized Scouter
2 |
3 | This project create docker image for [Scouter APM Tool](https://github.com/scouter-project/scouter). It also provides the OpenShift Tomcat S2I image and template.
4 |
5 | - [Build](./docs/build.md)
6 | - [Using pure docker](./docs/using_pure_docker.md)
7 | - [Using OpenShift](./docs/using_openshift.md)
8 | - [Scouter Client](./docs/client.md)
9 |
--------------------------------------------------------------------------------
/config:
--------------------------------------------------------------------------------
1 | SCOUTER_VERSION=1.7.3.1
2 |
--------------------------------------------------------------------------------
/docs/build.md:
--------------------------------------------------------------------------------
1 | # Build
2 |
3 | Pre-requisites
4 | --------------
5 | **1.Clone project**
6 | ```
7 | git clone https://github.com/Jooho/scouter-docker.git
8 | cd scouter-docker
9 | export SCOUTER_HOME=$PWD
10 | ```
11 | **2.Update Scouter Version**
12 | ```
13 | vi config
14 | SCOUTER_VERSION=v1.7.3.1
15 | ```
16 |
17 | **3.Download Scouter Release**
18 | By default, preq.sh do not need direct url but specifying the direct url is acceptable.
19 | ```
20 | ${SCOUTER_HOME}/preq.sh
21 |
22 | or
23 |
24 | ./preq.sh https://github.com/scouter-project/scouter/releases/download/v1.7.3.1/scouter-all-1.7.3.1.tar.gz
25 | ```
26 | **4.Docker login**
27 | ```
28 | docker login docker.io
29 | ```
30 |
31 |
32 | Scouter Server
33 | ---------------
34 | **1. Execute build-docker.sh**
35 | This shell create a new Scouter Server Image with tag "v${SCOUTER_VERSION} and latest"
36 | ```
37 | cd ${SCOUTER_HOME}/scouter-server
38 | ./build-docker.sh
39 | ```
40 | **2.Test**
41 | ```
42 | docker run -it --name scouter-server -p 6100:6100/tcp -p 6101:6101/udp ljhiyh/scouter-server
43 |
44 | / ___| ___ ___ _ _| |_ ___ _ __
45 | \___ \ / __/ \| | | | __/ _ \ '__|
46 | ___) | (_| (+) | |_| | || __/ |
47 | |____/ \___\___/ \__,_|\__\___|_|
48 | Open Source S/W Performance Monitoring
49 | Scouter version 1.7.3.1
50 |
51 | System JRE version : 1.8.0_141
52 |
53 | ```
54 |
55 | Scouter Host Agent
56 | ------------------
57 | **1. Execute build-docker.sh**
58 | ```
59 | cd ${SCOUTER_HOME}/scouter-host-agent
60 | ./build-docker.sh
61 | ```
62 |
63 | **2.Test**
64 | ```
65 | docker run -it --link scouter-server ljhiyh/scouter-host-agent
66 | ____ _
67 | / ___| ___ ___ _ _| |_ ___ _ __
68 | \___ \ / __/ \| | | | __/ _ \ '__|
69 | ___) | (_| (+) | |_| | || __/ |
70 | |____/ \___\___/ \__,_|\__\___|_|
71 | Open Source S/W Performance Monitoring
72 | Scouter version 1.7.3.1
73 |
74 | Configure -Dscouter.config=./conf/scouter.conf
75 | Scouter Host Agent Version 1.7.3.1 2017-08-21 11:58 GMT
76 | System JRE version : 1.8.0_141
77 | ```
78 |
79 | Scouter Test App
80 | ----------------
81 | **1. Execute build-docker.sh**
82 | ```
83 | cd ${SCOUTER_HOME}/scouter-test-app
84 | ./build-docker.sh
85 | ```
86 |
87 | **2.Test**
88 | ```
89 | docker run -it --link scouter-server -e OBJ_NAME=scouter-jpetstore ljhiyh/scouter-test-app
90 | ```
91 |
92 |
93 | Scouter Tomcat OpenShift S2I
94 | ------------------
95 | **1. Execute build-docker.sh**
96 | ```
97 | cd ${SCOUTER_HOME}/scouter-tomcat-openshift-s2i
98 | ./build-docker.sh
99 | ```
100 |
101 | **2.Test**
102 | ```
103 | docker run -it ljhiyh/webserver30-tomcat7-openshift
104 | ```
105 |
106 |
107 |
--------------------------------------------------------------------------------
/docs/client.md:
--------------------------------------------------------------------------------
1 | # Scouter Client
2 |
3 | Download Scouter Client
4 | -----------------------
5 |
6 | URL: https://github.com/scouter-project/scouter/releases
7 |
8 | Ex)
9 | ~~~
10 | wget https://github.com/scouter-project/scouter/releases/download/v1.7.3.1/scouter.client.product-linux.gtk.x86_64.tar.gz
11 | gzip -d scouter.client.product-linux.gtk.x86_64.tar.gz
12 | tar xvf scouter.client.product-linux.gtk.x86_64.tar
13 | ~~~
14 |
15 | Pure Docker
16 | -----------
17 | ```
18 | cd scouter.client
19 | ./scouter
20 | ```
21 |
22 | OpenShift
23 | ---------
24 | ```
25 | oc port-forward -p $(oc get pod|grep scouter-server|awk '{print $1}') 6100:6100
26 |
27 | cd scouter.client
28 | ./scouter
29 | ```
30 |
--------------------------------------------------------------------------------
/docs/using_openshift.md:
--------------------------------------------------------------------------------
1 | # OpenShift Scouter
2 |
3 | The image is built based on official redhat `registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift`. Only scouter configuration is injected to tomcat. Apart from that, everything is same.
4 |
5 | Scouter project
6 | ---------------
7 | ```
8 | oc new-project scouter-server
9 | oadm pod-network make-projects-global scouter-server
10 | ```
11 |
12 | Deploy Scouter Server
13 | --------------------
14 | - The port can be configuable
15 |
16 | *Default Params*:
17 | - NET_TCP_LISTEN_PORT=6100
18 | - NET_UDP_LISTEN_PORT=6101
19 |
20 | **Using Default Configuration**
21 |
22 | ```
23 | oc process -f ${SCOUTER_HOME}/scouter-server/scouter-server-template.yaml | oc create -f -
24 | ```
25 |
26 | **Using Custom Configuration**
27 | ```
28 | oc process -f ${SCOUTER_HOME}/scouter-server/scouter-server-template.yaml -v NET_TCP_LISTEN_PORT=6101 -v NET_UDP_LISTEN_PORT=6102| oc create -f -
29 | ```
30 |
31 | Deploy Scouter Host Agent
32 | --------------------------
33 | - The Scouter Server should be deployed first
34 | - The port can be configuable
35 | - The Scouter Server IP can be configuable
36 |
37 | *Default Params*:
38 | - NET_COLLECTOR_UDP_PORT=6101
39 | - NET_COLLECTOR_IP=$SCOUTER_SERVER_SERVICE_HOST
40 |
41 | **Using Default Configuration**
42 | ```
43 | oc process -f ${SCOUTER_HOME}/scouter-host-agent/scouter-host-daemonset.yaml |oc create -f -
44 | ```
45 |
46 | **Using Custome Configuration**
47 | ```
48 | oc process -f ${SCOUTER_HOME}/scouter-host-agent/scouter-host-daemonset.yaml -v NET_COLLECTOR_IP=172.0.0.1 -v NET_COLLECTOR_UDP_PORT=6102 |oc create -f -
49 | ```
50 |
51 | Deploy Test Application (tomcat-websocket-chat)
52 | ----------------------------------
53 | - The Scouter Server should be deployed first
54 | - The port can be configuable
55 | - The Scouter Server IP can be configuable
56 |
57 | *Default Params*:
58 | - NET_COLLECTOR_TCP_PORT=6100
59 | - NET_COLLECTOR_UDP_PORT=6101
60 | - NET_COLLECTOR_IP=$(scouter-server ip)
61 | - HOOK_METHOD_PATTERNS=org.mybatis.jpetstore.*.*
62 |
63 |
64 | **Using Default Configuration**
65 | ```
66 | oc process -f ${SCOUTER_HOME}/scouter-tomcat-openshift-s2i/jws30-tomcat7-scouter-s2i.yaml -v SOURCE_REPOSITORY_URL=https://github.com/mybatis/jpetstore-6.git -v SOURCE_REPOSITORY_REF="" -v CONTEXT_DIR="" -v NET_COLLECTOR_IP=$(oc get svc -n scouter-server |grep server|awk '{print $2}') -v "HOOK_METHOD_PATTERNS=util.*" -v APPLICATION_NAME=jpetstore |oc create -f -
67 | ```
68 |
69 | **Using Custome Configuration**
70 | ```
71 | oc process -f ${SCOUTER_HOME}/scouter-tomcat-openshift-s2i/jws30-tomcat7-scouter-s2i.yaml -v SOURCE_REPOSITORY_URL=https://github.com/mybatis/jpetstore-6.git -v SOURCE_REPOSITORY_REF="" -v CONTEXT_DIR="" -v NET_COLLECTOR_IP=$(oc get svc -n scouter-server|grep server|awk '{print $2}') -v APPLICATION_NAME=jpetstore |oc create -f -
72 |
73 | ```
74 |
75 | **Test URL**
76 | ```
77 | http://jpetstore-scouter.${subdomain}/jpetstore
78 | ```
79 |
--------------------------------------------------------------------------------
/docs/using_pure_docker.md:
--------------------------------------------------------------------------------
1 | # Using Pure Docker
2 |
3 | Deploy Scouter Server
4 | --------------------
5 | - The port can be configuable
6 | - The name must be scouter-server
7 |
8 | *Default Params*:
9 | - NET_TCP_LISTEN_PORT=6100
10 | - NET_UDP_LISTEN_PORT=6101
11 |
12 | **Using Default Configuration**
13 | ```
14 | docker run -it --name scouter-server -p 6100:6100/tcp -p 6101:6101/udp ljhiyh/scouter-server
15 | ```
16 | **Using Custom Configuration**
17 | ```
18 | docker run -it --name scouter-server -p 6101:6101/tcp -p 6102:6102/udp -e NET_TCP_LISTEN_PORT=6101 -e NET_UDP_LISTEN_PORT=6102 ljhiyh/scouter-server
19 | ```
20 |
21 | Deploy Scouter Host Agent
22 | --------------------------
23 | - The Scouter Server should be deployed first
24 | - The port can be configuable
25 | - The Scouter Server IP can be configuable
26 |
27 | *Default Params*:
28 | - NET_COLLECTOR_UDP_PORT=6101
29 | - NET_COLLECTOR_IP=$(scouter-server ip)
30 |
31 | **Using Default Configuration**
32 | ```
33 | docker run -it --link scouter-server ljhiyh/scouter-host-agent
34 | ```
35 |
36 | **Using Custome Configuration**
37 | ```
38 | docker run -it --link scouter-server -e NET_COLLECTOR_IP=172.0.0.1 -e NET_COLLECTOR_UDP_PORT=6102 ljhiyh/scouter-host-agent
39 |
40 | ```
41 |
42 | Deploy Test Application (JpetStore)
43 | ----------------------------------
44 | - The Scouter Server should be deployed first
45 | - The port can be configuable
46 | - The Scouter Server IP can be configuable
47 |
48 | *Default Params*:
49 | - NET_COLLECTOR_TCP_PORT=6100
50 | - NET_COLLECTOR_UDP_PORT=6101
51 | - NET_COLLECTOR_IP=$(scouter-server ip)
52 | - HOOK_METHOD_PATTERNS=org.mybatis.jpetstore.*.*
53 |
54 |
55 | **Using Default Configuration**
56 | ```
57 | docker run -it --link scouter-server -p 8080:8080 -e OBJ_NAME=scouter-jpetstore ljhiyh/scouter-test-app
58 | ```
59 |
60 | **Using Custome Configuration**
61 | ```
62 | docker run -it --link scouter-server -e OBJ_NAME=scouter-jpetstore -e HOOK_METHOD_PATTERNS=org -e NET_COLLECTOR_IP=172.0.0.1 -e NET_COLLECTOR_UDP_PORT=6102 -e NET_COLLECTOR_TCP_PORT=6101 ljhiyh/scouter-test-app
63 | ```
64 | **Test URL**
65 | ```
66 | http://localhost:8080/jpetstore
67 | ```
68 |
69 |
--------------------------------------------------------------------------------
/prep.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | source ./config
4 |
5 | mkdir ./temp;cd ./temp
6 |
7 | if [[ z$1 != z ]];
8 | then
9 | wget $1
10 | else
11 | wget https://github.com/scouter-project/scouter/releases/download/v${SCOUTER_VERSION}/scouter-all-${SCOUTER_VERSION}.tar.gz
12 | fi
13 |
14 | gzip -d $(echo $1|awk -F'/' '{print $NF}' )
15 |
16 | tar xvf $(ls)
17 |
18 | if [[ -e ../scouter-server/server ]];
19 | then
20 | cp -R ../scouter-server/server ../scouter-server/server.old
21 | rm -rf ../scouter-server/server
22 | elif [[ -e ../scouter-host-agent/agent.host ]];
23 | then
24 | cp -R ../scouter-host-agent/agent.host ../scouter-host-agent/agent.host.old
25 | rm -rf ../scouter-host-agent/agent.host
26 | elif [[ -e ../scouter-tomcat-openshift-s2i/scouter ]];
27 | then
28 | cp -R ../scouter-tomcat-openshift-s2i/scouter ../scouter-tomcat-openshift-s2i/scouter.old
29 | rm -rf ../scouter-tomcat-openshift-s2i/scouter
30 | mkdir ../scouter-tomcat-openshift-s2i/scouter
31 | fi
32 |
33 | cp -R ./scouter/server ../scouter-server
34 | cp -R ./scouter/agent.host ../scouter-host-agent
35 | cp -R ./scouter/agent.java ../scouter-tomcat-openshift-s2i/scouter
36 |
37 | cd ..;rm -rf ./temp
38 |
--------------------------------------------------------------------------------
/scouter-host-agent/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM registry.centos.org/centos/centos
2 | MAINTAINER Jooho Lee
3 | ENV HOME=/opt/host-agent
4 |
5 | RUN yum install -y java-1.8.0-openjdk \
6 | java-1.8.0-openjdk-devel \
7 | net-tools \
8 | unzip \
9 | wget \
10 | which \
11 | yum-utils \
12 | rsync
13 |
14 | RUN mkdir -p ${HOME} && \
15 | chown -R 1001:0 ${HOME}/ && \
16 | useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin -c "Default Application User" scouter
17 |
18 | ADD agent.host ${HOME}
19 | ADD entrypoint.sh ${HOME}/entrypoint.sh
20 | ADD scouter.conf ${HOME}/conf/scouter.conf
21 |
22 | RUN chown -R 1001:0 ${HOME} && \
23 | chmod 775 -R ${HOME}
24 |
25 | WORKDIR ${HOME}
26 | USER 1001
27 |
28 | CMD ["/opt/host-agent/entrypoint.sh"]
29 | #ENTRYPOINT java -classpath ./scouter.host.jar scouter.boot.Boot ./lib
30 | #CMD while true; do echo hello world; sleep 1; done
31 |
--------------------------------------------------------------------------------
/scouter-host-agent/build-docker.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | source ../config
4 |
5 | docker build -t docker.io/ljhiyh/scouter-host-agent:v${SCOUTER_VERSION} .
6 | docker tag docker.io/ljhiyh/scouter-host-agent:v${SCOUTER_VERSION} docker.io/ljhiyh/scouter-host-agent:latest
7 | docker push docker.io/ljhiyh/scouter-host-agent:latest
8 |
9 |
--------------------------------------------------------------------------------
/scouter-host-agent/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Scouter Server IP
4 | net_collector_ip=${NET_COLLECTOR_IP:-$SCOUTER_SERVER_SERVICE_HOST}
5 |
6 | if [[ z${net_collector_ip} == z ]];
7 | then
8 | net_collector_ip=$(cat /etc/hosts|grep scouter-server|awk '{print $1}')
9 | fi
10 | # Update Scouter Ports
11 | # UDP Receive Port(Default : 6100)
12 | net_collector_udp_port=${NET_COLLECTOR_UDP_PORT:-6101}
13 |
14 |
15 | sed "s/%NET_COLLECTOR_IP%/${net_collector_ip}/g" -i conf/scouter.conf
16 | sed "s/%NET_COLLECTOR_UDP_PORT%/${net_collector_udp_port}/g" -i conf/scouter.conf
17 |
18 | java -classpath ./scouter.host.jar scouter.boot.Boot ./lib
19 |
20 |
--------------------------------------------------------------------------------
/scouter-host-agent/scouter-host-daemonset.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v1
2 | kind: Template
3 | metadata:
4 | creationTimestamp: null
5 | name: scouter-host-agent
6 | objects:
7 | - apiVersion: extensions/v1beta1
8 | kind: DaemonSet
9 | metadata:
10 | name: scouter-host
11 | spec:
12 | selector:
13 | matchLabels:
14 | name: scouter-host-daemonset
15 | app: ${APP_NAME}
16 | template:
17 | metadata:
18 | labels:
19 | name: scouter-host-daemonset
20 | app: ${APP_NAME}
21 | spec:
22 | containers:
23 | - env:
24 | - name: NET_COLLECTOR_IP
25 | value: ${NET_COLLECTOR_IP}
26 | - name: NET_COLLECTOR_UDP_PORT
27 | value: ${NET_COLLECTOR_UDP_PORT}
28 | image: ljhiyh/scouter-host-agent:latest
29 | imagePullPolicy: Always
30 | name: scouter-host-agent
31 | resources: {}
32 | terminationMessagePath: /dev/termination-log
33 | serviceAccount: default
34 | terminationGracePeriodSeconds: 10
35 | parameters:
36 | - description: The name assigned to the application.
37 | displayName: Application Name
38 | name: APP_NAME
39 | value: scouter-host-agent
40 | - description: Scouter Server Service IP
41 | displayName: Scouter Server Service IP
42 | name: NET_COLLECTOR_IP
43 | - description: Scouter UDP Listen Port to be accssible from client
44 | displayName: Scouter UDP Port
45 | name: NET_COLLECTOR_UDP_PORT
46 | value: "6101"
47 |
48 |
--------------------------------------------------------------------------------
/scouter-host-agent/scouter.conf:
--------------------------------------------------------------------------------
1 | net_collector_ip=%NET_COLLECTOR_IP%
2 | net_collector_udp_port=%NET_COLLECTOR_UDP_PORT%
3 |
--------------------------------------------------------------------------------
/scouter-server/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM registry.centos.org/centos/centos
2 | MAINTAINER Jooho Lee
3 | ENV HOME=/opt/server
4 |
5 | RUN yum install -y java-1.8.0-openjdk \
6 | java-1.8.0-openjdk-devel \
7 | net-tools \
8 | unzip \
9 | wget \
10 | which \
11 | yum-utils \
12 | rsync
13 |
14 | RUN mkdir -p ${HOME} && \
15 | chown -R 1001:0 ${HOME}/ && \
16 | useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin -c "Default Application User" scouter
17 | COPY server ${HOME}
18 |
19 | ADD entrypoint.sh ${HOME}/entrypoint.sh
20 | ADD scouter.conf ${HOME}/conf/scouter.conf
21 | WORKDIR ${HOME}
22 | RUN chown -R 1001:0 ${HOME} && \
23 | chmod 775 -R ${HOME}
24 | EXPOSE 6100/TCP
25 | EXPOSE 6101/UDP
26 | USER 1001
27 | CMD [ "/opt/server/entrypoint.sh" ]
28 | #ENTRYPOINT ${HOME}/scouter/entrypoint.sh
29 | #ENTRYPOINT java -Xmx512m -classpath ./boot.jar scouter.boot.Boot ./lib
30 | #CMD while true; do echo hello world; sleep 1; done
31 |
--------------------------------------------------------------------------------
/scouter-server/build-docker.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | source ../config
4 |
5 | docker build -t docker.io/ljhiyh/scouter-server:v${SCOUTER_VERSION} .
6 | docker tag docker.io/ljhiyh/scouter-server:v${SCOUTER_VERSION} docker.io/ljhiyh/scouter-server:latest
7 | docker push docker.io/ljhiyh/scouter-server:latest
8 |
9 |
--------------------------------------------------------------------------------
/scouter-server/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Update Scouter Ports
4 | # Agent Control and Service Port(Default : TCP 6100)
5 | net_tcp_listen_port=${NET_TCP_LISTEN_PORT:-6100}
6 |
7 | # UDP Receive Port(Default : 6100)
8 | net_udp_listen_port=${NET_UDP_LISTEN_PORT:-6101}
9 |
10 | # JAVAOPTS
11 | JAVAOPTS="${JAVAOPTS:--Xms512m}"
12 |
13 | sed "s/%NET_TCP_LISTEN_PORT%/${net_tcp_listen_port}/g" -i conf/scouter.conf
14 | sed "s/%NET_UDP_LISTEN_PORT%/${net_udp_listen_port}/g" -i conf/scouter.conf
15 |
16 |
17 | java $JAVAOPTS -classpath ./scouter-server-boot.jar scouter.boot.Boot ./lib
18 |
--------------------------------------------------------------------------------
/scouter-server/scouter-server-template.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v1
2 | kind: Template
3 | metadata:
4 | creationTimestamp: null
5 | name: scouter-server
6 | objects:
7 | - apiVersion: v1
8 | kind: ImageStream
9 | metadata:
10 | labels:
11 | app: ${APP_NAME}
12 | name: ${APP_NAME}
13 | spec:
14 | tags:
15 | - annotations:
16 | openshift.io/imported-from: ljhiyh/scouter-server:latest
17 | from:
18 | kind: DockerImage
19 | name: docker.io/ljhiyh/scouter-server:latest
20 | importPolicy: {}
21 | name: latest
22 | referencePolicy:
23 | type: Source
24 | status:
25 | dockerImageRepository: ""
26 | - apiVersion: v1
27 | kind: Service
28 | metadata:
29 | labels:
30 | app: ${APP_NAME}
31 | name: ${APP_NAME}
32 | spec:
33 | ports:
34 | - name: ${NET_TCP_LISTEN_PORT}-tcp
35 | port: ${NET_TCP_LISTEN_PORT}
36 | protocol: TCP
37 | targetPort: 6100
38 | - name: ${NET_UDP_LISTEN_PORT}-udp
39 | port: ${NET_UDP_LISTEN_PORT}
40 | protocol: UDP
41 | targetPort: 6101
42 | selector:
43 | app: ${APP_NAME}
44 | deploymentconfig: ${APP_NAME}
45 | sessionAffinity: None
46 | type: ClusterIP
47 | - apiVersion: v1
48 | kind: DeploymentConfig
49 | metadata:
50 | annotations:
51 | openshift.io/generated-by: OpenShiftNewApp
52 | labels:
53 | app: ${APP_NAME}
54 | name: ${APP_NAME}
55 | spec:
56 | replicas: 1
57 | selector:
58 | app: ${APP_NAME}
59 | deploymentconfig: ${APP_NAME}
60 | strategy:
61 | activeDeadlineSeconds: 21600
62 | resources: {}
63 | rollingParams:
64 | intervalSeconds: 1
65 | maxSurge: 25%
66 | maxUnavailable: 25%
67 | timeoutSeconds: 600
68 | updatePeriodSeconds: 1
69 | type: Rolling
70 | template:
71 | metadata:
72 | annotations:
73 | openshift.io/generated-by: OpenShiftNewApp
74 | creationTimestamp: null
75 | labels:
76 | app: ${APP_NAME}
77 | deploymentconfig: ${APP_NAME}
78 | spec:
79 | containers:
80 | - env:
81 | - name: NET_TCP_LISTEN_PORT
82 | value: ${NET_TCP_LISTEN_PORT}
83 | - name: NET_UDP_LISTEN_PORT
84 | value: ${NET_UDP_LISTEN_PORT}
85 | image: "${APP_NAME}"
86 | imagePullPolicy: Always
87 | name: scouter-server
88 | ports:
89 | - containerPort: ${NET_TCP_LISTEN_PORT}
90 | protocol: TCP
91 | - containerPort: ${NET_UDP_LISTEN_PORT}
92 | protocol: UDP
93 | resources: {}
94 | terminationMessagePath: /dev/termination-log
95 | dnsPolicy: ClusterFirst
96 | restartPolicy: Always
97 | securityContext: {}
98 | terminationGracePeriodSeconds: 30
99 | test: false
100 | triggers:
101 | - type: ConfigChange
102 | - imageChangeParams:
103 | automatic: true
104 | containerNames:
105 | - ${APP_NAME}
106 | from:
107 | kind: ImageStreamTag
108 | name: ${APP_NAME}:latest
109 | type: ImageChange
110 | parameters:
111 | - description: The name assigned to the application.
112 | displayName: Application Name
113 | name: APP_NAME
114 | value: scouter-server
115 | - description: Scouter TCP Port to be accssible from client
116 | displayName: Scouter TCP Port
117 | name: NET_TCP_LISTEN_PORT
118 | value: "6100"
119 | - description: Scouter UDP Port to be accssible from client
120 | displayName: Scouter UDP Port
121 | name: NET_UDP_LISTEN_PORT
122 | value: "6101"
123 |
--------------------------------------------------------------------------------
/scouter-server/scouter.conf:
--------------------------------------------------------------------------------
1 | # Agent Control and Service Port(Default : TCP 6100)
2 | net_tcp_listen_port=%NET_TCP_LISTEN_PORT%
3 |
4 | # UDP Receive Port(Default : 6100)
5 | net_udp_listen_port=%NET_UDP_LISTEN_PORT%
6 |
7 | # DB directory(Default : ./database)
8 | db_dir=./database
9 |
10 | # Log directory(Default : ./logs)
11 | log_dir=./logs
12 |
--------------------------------------------------------------------------------
/scouter-test-app/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM registry.centos.org/centos/centos
2 | MAINTAINER Jooho Lee
3 | ENV HOME=/opt/scouter-test-app \
4 | TOMCAT_HOME=/opt/scouter-test-app/apache-tomcat-7.0.67
5 |
6 | RUN yum install -y java-1.8.0-openjdk \
7 | java-1.8.0-openjdk-devel \
8 | net-tools \
9 | unzip \
10 | wget \
11 | which \
12 | yum-utils \
13 | rsync
14 |
15 | RUN mkdir -p ${HOME} && \
16 | chown -R 1001:0 ${HOME}/ && \
17 | useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin -c "Default Application User" scouter
18 |
19 | ADD apache-tomcat-7.0.67 ${HOME}/apache-tomcat-7.0.67
20 | ADD scouter/agent.java ${TOMCAT_HOME}/scouter/agent.java
21 | ADD conf ${TOMCAT_HOME}/scouter/conf
22 | ADD entrypoint.sh ${TOMCAT_HOME}/entrypoint.sh
23 |
24 | RUN chown -R 1001:0 ${HOME} && \
25 | chmod 777 -R ${HOME}
26 | WORKDIR ${TOMCAT_HOME}
27 | EXPOSE 8080
28 | USER 1001
29 | CMD ./entrypoint.sh
30 | #CMD entrypoint.sh bin/startup.sh; tail -f logs/catalina.out
31 |
32 | #CMD while true; do echo hello world; sleep 1; done
33 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/.DS_Store
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/._.DS_Store:
--------------------------------------------------------------------------------
1 | Mac OS X 2 F x ATTR x x
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Tomcat
2 | Copyright 1999-2015 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
7 | The Windows Installer is built with the Nullsoft
8 | Scriptable Install System (NSIS), which is
9 | open source software. The original software and
10 | related information is available at
11 | http://nsis.sourceforge.net.
12 |
13 | Java compilation software for JSP pages is provided by the Eclipse
14 | JDT Core Batch Compiler component, which is open source software.
15 | The original software and related information is available at
16 | http://www.eclipse.org/jdt/core/.
17 |
18 | For the bayeux implementation
19 | The org.apache.cometd.bayeux API is derivative work originating at the Dojo Foundation
20 | * Copyright 2007-2008 Guy Molinari
21 | * Copyright 2007-2008 Filip Hanik
22 | * Copyright 2007 Dojo Foundation
23 | * Copyright 2007 Mort Bay Consulting Pty. Ltd.
24 |
25 | The original XML Schemas for Java EE Deployment Descriptors:
26 | - javaee_5.xsd
27 | - javaee_web_services_1_2.xsd
28 | - javaee_web_services_client_1_2.xsd
29 | - javaee_6.xsd
30 | - javaee_web_services_1_3.xsd
31 | - javaee_web_services_client_1_3.xsd
32 | - jsp_2_2.xsd
33 | - web-app_3_0.xsd
34 | - web-common_3_0.xsd
35 | - web-fragment_3_0.xsd
36 | may be obtained from http://java.sun.com/xml/ns/javaee/
37 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/.DS_Store
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/._.DS_Store:
--------------------------------------------------------------------------------
1 | Mac OS X 2 F x ATTR x x
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/bootstrap.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/bootstrap.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/catalina-tasks.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 |
24 | Catalina Ant Manager, JMX and JSPC Tasks
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/commons-daemon-native.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/commons-daemon-native.tar.gz
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/commons-daemon.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/commons-daemon.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/configtest.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Configuration test script for the CATALINA Server
19 | rem ---------------------------------------------------------------------------
20 |
21 | setlocal
22 |
23 | rem Guess CATALINA_HOME if not defined
24 | set "CURRENT_DIR=%cd%"
25 | if not "%CATALINA_HOME%" == "" goto gotHome
26 | set "CATALINA_HOME=%CURRENT_DIR%"
27 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
28 | cd ..
29 | set "CATALINA_HOME=%cd%"
30 | cd "%CURRENT_DIR%"
31 | :gotHome
32 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
33 | echo The CATALINA_HOME environment variable is not defined correctly
34 | echo This environment variable is needed to run this program
35 | goto end
36 | :okHome
37 |
38 | set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
39 |
40 | rem Check that target executable exists
41 | if exist "%EXECUTABLE%" goto okExec
42 | echo Cannot find "%EXECUTABLE%"
43 | echo This file is needed to run this program
44 | goto end
45 | :okExec
46 |
47 | rem Get remaining unshifted command line arguments and save them in the
48 | set CMD_LINE_ARGS=
49 | :setArgs
50 | if ""%1""=="""" goto doneSetArgs
51 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52 | shift
53 | goto setArgs
54 | :doneSetArgs
55 |
56 | call "%EXECUTABLE%" configtest %CMD_LINE_ARGS%
57 |
58 | :end
59 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/configtest.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Configuration Test Script for the CATALINA Server
20 | # -----------------------------------------------------------------------------
21 |
22 | # Better OS/400 detection: see Bugzilla 31132
23 | os400=false
24 | case "`uname`" in
25 | OS400*) os400=true;;
26 | esac
27 |
28 | # resolve links - $0 may be a softlink
29 | PRG="$0"
30 |
31 | while [ -h "$PRG" ] ; do
32 | ls=`ls -ld "$PRG"`
33 | link=`expr "$ls" : '.*-> \(.*\)$'`
34 | if expr "$link" : '/.*' > /dev/null; then
35 | PRG="$link"
36 | else
37 | PRG=`dirname "$PRG"`/"$link"
38 | fi
39 | done
40 |
41 | PRGDIR=`dirname "$PRG"`
42 | EXECUTABLE=catalina.sh
43 |
44 | # Check that target executable exists
45 | if $os400; then
46 | # -x will Only work on the os400 if the files are:
47 | # 1. owned by the user
48 | # 2. owned by the PRIMARY group of the user
49 | # this will not work if the user belongs in secondary groups
50 | eval
51 | else
52 | if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
53 | echo "Cannot find $PRGDIR/$EXECUTABLE"
54 | echo "The file is absent or does not have execute permission"
55 | echo "This file is needed to run this program"
56 | exit 1
57 | fi
58 | fi
59 |
60 | exec "$PRGDIR"/"$EXECUTABLE" configtest "$@"
61 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/digest.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Script to digest password using the algorithm specified
19 | rem ---------------------------------------------------------------------------
20 |
21 | setlocal
22 |
23 | rem Guess CATALINA_HOME if not defined
24 | set "CURRENT_DIR=%cd%"
25 | if not "%CATALINA_HOME%" == "" goto gotHome
26 | set "CATALINA_HOME=%CURRENT_DIR%"
27 | if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
28 | cd ..
29 | set "CATALINA_HOME=%cd%"
30 | cd "%CURRENT_DIR%"
31 | :gotHome
32 | if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
33 | echo The CATALINA_HOME environment variable is not defined correctly
34 | echo This environment variable is needed to run this program
35 | goto end
36 | :okHome
37 |
38 | set "EXECUTABLE=%CATALINA_HOME%\bin\tool-wrapper.bat"
39 |
40 | rem Check that target executable exists
41 | if exist "%EXECUTABLE%" goto okExec
42 | echo Cannot find "%EXECUTABLE%"
43 | echo This file is needed to run this program
44 | goto end
45 | :okExec
46 |
47 | rem Get remaining unshifted command line arguments and save them in the
48 | set CMD_LINE_ARGS=
49 | :setArgs
50 | if ""%1""=="""" goto doneSetArgs
51 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52 | shift
53 | goto setArgs
54 | :doneSetArgs
55 |
56 | call "%EXECUTABLE%" -server org.apache.catalina.realm.RealmBase %CMD_LINE_ARGS%
57 |
58 | :end
59 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/digest.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Script to digest password using the algorithm specified
20 | # -----------------------------------------------------------------------------
21 |
22 | # Better OS/400 detection: see Bugzilla 31132
23 | os400=false
24 | case "`uname`" in
25 | OS400*) os400=true;;
26 | esac
27 |
28 | # resolve links - $0 may be a softlink
29 | PRG="$0"
30 |
31 | while [ -h "$PRG" ] ; do
32 | ls=`ls -ld "$PRG"`
33 | link=`expr "$ls" : '.*-> \(.*\)$'`
34 | if expr "$link" : '/.*' > /dev/null; then
35 | PRG="$link"
36 | else
37 | PRG=`dirname "$PRG"`/"$link"
38 | fi
39 | done
40 |
41 | PRGDIR=`dirname "$PRG"`
42 | EXECUTABLE=tool-wrapper.sh
43 |
44 | # Check that target executable exists
45 | if $os400; then
46 | # -x will Only work on the os400 if the files are:
47 | # 1. owned by the user
48 | # 2. owned by the PRIMARY group of the user
49 | # this will not work if the user belongs in secondary groups
50 | eval
51 | else
52 | if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
53 | echo "Cannot find $PRGDIR/$EXECUTABLE"
54 | echo "The file is absent or does not have execute permission"
55 | echo "This file is needed to run this program"
56 | exit 1
57 | fi
58 | fi
59 |
60 | exec "$PRGDIR"/"$EXECUTABLE" -server org.apache.catalina.realm.RealmBase "$@"
61 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/mydatabase.properties:
--------------------------------------------------------------------------------
1 | #HSQL Database Engine 2.3.3
2 | #Tue Nov 22 13:35:48 EST 2016
3 | version=2.3.3
4 | modified=yes
5 | tx_timestamp=0
6 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/setclasspath.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
19 | rem are valid and consistent with the selected start-up options and set up the
20 | rem endorsed directory.
21 | rem ---------------------------------------------------------------------------
22 |
23 | rem Make sure prerequisite environment variables are set
24 |
25 | rem In debug mode we need a real JDK (JAVA_HOME)
26 | if ""%1"" == ""debug"" goto needJavaHome
27 |
28 | rem Otherwise either JRE or JDK are fine
29 | if not "%JRE_HOME%" == "" goto gotJreHome
30 | if not "%JAVA_HOME%" == "" goto gotJavaHome
31 | echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
32 | echo At least one of these environment variable is needed to run this program
33 | goto exit
34 |
35 | :needJavaHome
36 | rem Check if we have a usable JDK
37 | if "%JAVA_HOME%" == "" goto noJavaHome
38 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
39 | if not exist "%JAVA_HOME%\bin\javaw.exe" goto noJavaHome
40 | if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
41 | if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome
42 | set "JRE_HOME=%JAVA_HOME%"
43 | goto okJava
44 |
45 | :noJavaHome
46 | echo The JAVA_HOME environment variable is not defined correctly.
47 | echo It is needed to run this program in debug mode.
48 | echo NB: JAVA_HOME should point to a JDK not a JRE.
49 | goto exit
50 |
51 | :gotJavaHome
52 | rem No JRE given, use JAVA_HOME as JRE_HOME
53 | set "JRE_HOME=%JAVA_HOME%"
54 |
55 | :gotJreHome
56 | rem Check if we have a usable JRE
57 | if not exist "%JRE_HOME%\bin\java.exe" goto noJreHome
58 | if not exist "%JRE_HOME%\bin\javaw.exe" goto noJreHome
59 | goto okJava
60 |
61 | :noJreHome
62 | rem Needed at least a JRE
63 | echo The JRE_HOME environment variable is not defined correctly
64 | echo This environment variable is needed to run this program
65 | goto exit
66 |
67 | :okJava
68 | rem Don't override the endorsed dir if the user has set it previously
69 | if not "%JAVA_ENDORSED_DIRS%" == "" goto gotEndorseddir
70 | rem Set the default -Djava.endorsed.dirs argument
71 | set "JAVA_ENDORSED_DIRS=%CATALINA_HOME%\endorsed"
72 | :gotEndorseddir
73 |
74 | rem Don't override _RUNJAVA if the user has set it previously
75 | if not "%_RUNJAVA%" == "" goto gotRunJava
76 | rem Set standard command for invoking Java.
77 | rem Also note the quoting as JRE_HOME may contain spaces.
78 | set _RUNJAVA="%JRE_HOME%\bin\java.exe"
79 | :gotRunJava
80 |
81 | rem Don't override _RUNJDB if the user has set it previously
82 | rem Also note the quoting as JAVA_HOME may contain spaces.
83 | if not "%_RUNJDB%" == "" goto gotRunJdb
84 | set _RUNJDB="%JAVA_HOME%\bin\jdb.exe"
85 | :gotRunJdb
86 |
87 | goto end
88 |
89 | :exit
90 | exit /b 1
91 |
92 | :end
93 | exit /b 0
94 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/setclasspath.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
20 | # are valid and consistent with the selected start-up options and set up the
21 | # endorsed directory.
22 | # -----------------------------------------------------------------------------
23 |
24 | # Make sure prerequisite environment variables are set
25 | if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
26 | if $darwin; then
27 | # Bugzilla 54390
28 | if [ -x '/usr/libexec/java_home' ] ; then
29 | export JAVA_HOME=`/usr/libexec/java_home`
30 | # Bugzilla 37284 (reviewed).
31 | elif [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home" ]; then
32 | export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home"
33 | fi
34 | else
35 | JAVA_PATH=`which java 2>/dev/null`
36 | if [ "x$JAVA_PATH" != "x" ]; then
37 | JAVA_PATH=`dirname $JAVA_PATH 2>/dev/null`
38 | JRE_HOME=`dirname $JAVA_PATH 2>/dev/null`
39 | fi
40 | if [ "x$JRE_HOME" = "x" ]; then
41 | # XXX: Should we try other locations?
42 | if [ -x /usr/bin/java ]; then
43 | JRE_HOME=/usr
44 | fi
45 | fi
46 | fi
47 | if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
48 | echo "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined"
49 | echo "At least one of these environment variable is needed to run this program"
50 | exit 1
51 | fi
52 | fi
53 | if [ -z "$JAVA_HOME" -a "$1" = "debug" ]; then
54 | echo "JAVA_HOME should point to a JDK in order to run in debug mode."
55 | exit 1
56 | fi
57 | if [ -z "$JRE_HOME" ]; then
58 | JRE_HOME="$JAVA_HOME"
59 | fi
60 |
61 | # If we're running under jdb, we need a full jdk.
62 | if [ "$1" = "debug" ] ; then
63 | if [ "$os400" = "true" ]; then
64 | if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
65 | echo "The JAVA_HOME environment variable is not defined correctly"
66 | echo "This environment variable is needed to run this program"
67 | echo "NB: JAVA_HOME should point to a JDK not a JRE"
68 | exit 1
69 | fi
70 | else
71 | if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME"/bin/javac ]; then
72 | echo "The JAVA_HOME environment variable is not defined correctly"
73 | echo "This environment variable is needed to run this program"
74 | echo "NB: JAVA_HOME should point to a JDK not a JRE"
75 | exit 1
76 | fi
77 | fi
78 | fi
79 |
80 | # Don't override the endorsed dir if the user has set it previously
81 | if [ -z "$JAVA_ENDORSED_DIRS" ]; then
82 | # Set the default -Djava.endorsed.dirs argument
83 | JAVA_ENDORSED_DIRS="$CATALINA_HOME"/endorsed
84 | fi
85 |
86 | # Set standard commands for invoking Java, if not already set.
87 | if [ -z "$_RUNJAVA" ]; then
88 | _RUNJAVA="$JRE_HOME"/bin/java
89 | fi
90 | if [ "$os400" != "true" ]; then
91 | if [ -z "$_RUNJDB" ]; then
92 | _RUNJDB="$JAVA_HOME"/bin/jdb
93 | fi
94 | fi
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/shutdown.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Stop script for the CATALINA Server
19 | rem ---------------------------------------------------------------------------
20 |
21 | setlocal
22 |
23 | rem Guess CATALINA_HOME if not defined
24 | set "CURRENT_DIR=%cd%"
25 | if not "%CATALINA_HOME%" == "" goto gotHome
26 | set "CATALINA_HOME=%CURRENT_DIR%"
27 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
28 | cd ..
29 | set "CATALINA_HOME=%cd%"
30 | cd "%CURRENT_DIR%"
31 | :gotHome
32 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
33 | echo The CATALINA_HOME environment variable is not defined correctly
34 | echo This environment variable is needed to run this program
35 | goto end
36 | :okHome
37 |
38 | set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
39 |
40 | rem Check that target executable exists
41 | if exist "%EXECUTABLE%" goto okExec
42 | echo Cannot find "%EXECUTABLE%"
43 | echo This file is needed to run this program
44 | goto end
45 | :okExec
46 |
47 | rem Get remaining unshifted command line arguments and save them in the
48 | set CMD_LINE_ARGS=
49 | :setArgs
50 | if ""%1""=="""" goto doneSetArgs
51 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52 | shift
53 | goto setArgs
54 | :doneSetArgs
55 |
56 | call "%EXECUTABLE%" stop %CMD_LINE_ARGS%
57 |
58 | :end
59 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/shutdown.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Stop script for the CATALINA Server
20 | # -----------------------------------------------------------------------------
21 |
22 | # Better OS/400 detection: see Bugzilla 31132
23 | os400=false
24 | case "`uname`" in
25 | OS400*) os400=true;;
26 | esac
27 |
28 | # resolve links - $0 may be a softlink
29 | PRG="$0"
30 |
31 | while [ -h "$PRG" ] ; do
32 | ls=`ls -ld "$PRG"`
33 | link=`expr "$ls" : '.*-> \(.*\)$'`
34 | if expr "$link" : '/.*' > /dev/null; then
35 | PRG="$link"
36 | else
37 | PRG=`dirname "$PRG"`/"$link"
38 | fi
39 | done
40 |
41 | PRGDIR=`dirname "$PRG"`
42 | EXECUTABLE=catalina.sh
43 |
44 | # Check that target executable exists
45 | if $os400; then
46 | # -x will Only work on the os400 if the files are:
47 | # 1. owned by the user
48 | # 2. owned by the PRIMARY group of the user
49 | # this will not work if the user belongs in secondary groups
50 | eval
51 | else
52 | if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
53 | echo "Cannot find $PRGDIR/$EXECUTABLE"
54 | echo "The file is absent or does not have execute permission"
55 | echo "This file is needed to run this program"
56 | exit 1
57 | fi
58 | fi
59 |
60 | exec "$PRGDIR"/"$EXECUTABLE" stop "$@"
61 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/startup.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Start script for the CATALINA Server
19 | rem ---------------------------------------------------------------------------
20 |
21 | setlocal
22 |
23 | rem Guess CATALINA_HOME if not defined
24 | set "CURRENT_DIR=%cd%"
25 | if not "%CATALINA_HOME%" == "" goto gotHome
26 | set "CATALINA_HOME=%CURRENT_DIR%"
27 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
28 | cd ..
29 | set "CATALINA_HOME=%cd%"
30 | cd "%CURRENT_DIR%"
31 | :gotHome
32 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
33 | echo The CATALINA_HOME environment variable is not defined correctly
34 | echo This environment variable is needed to run this program
35 | goto end
36 | :okHome
37 |
38 | set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
39 |
40 | rem Check that target executable exists
41 | if exist "%EXECUTABLE%" goto okExec
42 | echo Cannot find "%EXECUTABLE%"
43 | echo This file is needed to run this program
44 | goto end
45 | :okExec
46 |
47 | rem Get remaining unshifted command line arguments and save them in the
48 | set CMD_LINE_ARGS=
49 | :setArgs
50 | if ""%1""=="""" goto doneSetArgs
51 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52 | shift
53 | goto setArgs
54 | :doneSetArgs
55 |
56 | call "%EXECUTABLE%" start %CMD_LINE_ARGS%
57 |
58 | :end
59 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/startup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Start Script for the CATALINA Server
20 | # -----------------------------------------------------------------------------
21 |
22 | # Better OS/400 detection: see Bugzilla 31132
23 | os400=false
24 | case "`uname`" in
25 | OS400*) os400=true;;
26 | esac
27 |
28 | # resolve links - $0 may be a softlink
29 | PRG="$0"
30 |
31 | while [ -h "$PRG" ] ; do
32 | ls=`ls -ld "$PRG"`
33 | link=`expr "$ls" : '.*-> \(.*\)$'`
34 | if expr "$link" : '/.*' > /dev/null; then
35 | PRG="$link"
36 | else
37 | PRG=`dirname "$PRG"`/"$link"
38 | fi
39 | done
40 |
41 | PRGDIR=`dirname "$PRG"`
42 | EXECUTABLE=catalina.sh
43 |
44 | # Check that target executable exists
45 | if $os400; then
46 | # -x will Only work on the os400 if the files are:
47 | # 1. owned by the user
48 | # 2. owned by the PRIMARY group of the user
49 | # this will not work if the user belongs in secondary groups
50 | eval
51 | else
52 | if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
53 | echo "Cannot find $PRGDIR/$EXECUTABLE"
54 | echo "The file is absent or does not have execute permission"
55 | echo "This file is needed to run this program"
56 | exit 1
57 | fi
58 | fi
59 |
60 | exec "$PRGDIR"/"$EXECUTABLE" start "$@"
61 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/tomcat-juli.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/tomcat-juli.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/tomcat-native.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/bin/tomcat-native.tar.gz
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/tool-wrapper.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Wrapper script for command line tools
19 | rem
20 | rem Environment Variable Prerequisites
21 | rem
22 | rem CATALINA_HOME May point at your Catalina "build" directory.
23 | rem
24 | rem TOOL_OPTS (Optional) Java runtime options.
25 | rem
26 | rem JAVA_HOME Must point at your Java Development Kit installation.
27 | rem Using JRE_HOME instead works as well.
28 | rem
29 | rem JRE_HOME Must point at your Java Runtime installation.
30 | rem Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
31 | rem are both set, JRE_HOME is used.
32 | rem
33 | rem JAVA_OPTS (Optional) Java runtime options.
34 | rem
35 | rem JAVA_ENDORSED_DIRS (Optional) Lists of of semi-colon separated directories
36 | rem containing some jars in order to allow replacement of APIs
37 | rem created outside of the JCP (i.e. DOM and SAX from W3C).
38 | rem It can also be used to update the XML parser implementation.
39 | rem Defaults to $CATALINA_HOME/endorsed.
40 | rem ---------------------------------------------------------------------------
41 |
42 | setlocal
43 |
44 | rem Guess CATALINA_HOME if not defined
45 | set "CURRENT_DIR=%cd%"
46 | if not "%CATALINA_HOME%" == "" goto gotHome
47 | set "CATALINA_HOME=%CURRENT_DIR%"
48 | if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
49 | cd ..
50 | set "CATALINA_HOME=%cd%"
51 | cd "%CURRENT_DIR%"
52 | :gotHome
53 | if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
54 | echo The CATALINA_HOME environment variable is not defined correctly
55 | echo This environment variable is needed to run this program
56 | goto end
57 | :okHome
58 |
59 | rem Ensure that any user defined CLASSPATH variables are not used on startup,
60 | rem but allow them to be specified in setenv.bat, in rare case when it is needed.
61 | set CLASSPATH=
62 |
63 | rem Get standard environment variables
64 | if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
65 |
66 | rem Get standard Java environment variables
67 | if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
68 | echo Cannot find "%CATALINA_HOME%\bin\setclasspath.bat"
69 | echo This file is needed to run this program
70 | goto end
71 | :okSetclasspath
72 | call "%CATALINA_HOME%\bin\setclasspath.bat" %1
73 | if errorlevel 1 goto end
74 |
75 | rem Add on extra jar files to CLASSPATH
76 | rem Note that there are no quotes as we do not want to introduce random
77 | rem quotes into the CLASSPATH
78 | if "%CLASSPATH%" == "" goto emptyClasspath
79 | set "CLASSPATH=%CLASSPATH%;"
80 | :emptyClasspath
81 | set "CLASSPATH=%CLASSPATH%%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\tomcat-juli.jar;%CATALINA_HOME%\lib\servlet-api.jar"
82 |
83 | set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
84 |
85 | rem Get remaining unshifted command line arguments and save them in the
86 | set CMD_LINE_ARGS=
87 | :setArgs
88 | if ""%1""=="""" goto doneSetArgs
89 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
90 | shift
91 | goto setArgs
92 | :doneSetArgs
93 |
94 | %_RUNJAVA% %JAVA_OPTS% %TOOL_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.home="%CATALINA_HOME%" org.apache.catalina.startup.Tool %CMD_LINE_ARGS%
95 |
96 | :end
97 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/tool-wrapper.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Wrapper script for command line tools
20 | #
21 | # Environment Variable Prerequisites
22 | #
23 | # CATALINA_HOME May point at your Catalina "build" directory.
24 | #
25 | # TOOL_OPTS (Optional) Java runtime options.
26 | #
27 | # JAVA_HOME Must point at your Java Development Kit installation.
28 | # Using JRE_HOME instead works as well.
29 | #
30 | # JRE_HOME Must point at your Java Runtime installation.
31 | # Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
32 | # are both set, JRE_HOME is used.
33 | #
34 | # JAVA_OPTS (Optional) Java runtime options.
35 | #
36 | # JAVA_ENDORSED_DIRS (Optional) Lists of of colon separated directories
37 | # containing some jars in order to allow replacement of APIs
38 | # created outside of the JCP (i.e. DOM and SAX from W3C).
39 | # It can also be used to update the XML parser implementation.
40 | # Defaults to $CATALINA_HOME/endorsed.
41 | # -----------------------------------------------------------------------------
42 |
43 | # OS specific support. $var _must_ be set to either true or false.
44 | cygwin=false
45 | darwin=false
46 | os400=false
47 | case "`uname`" in
48 | CYGWIN*) cygwin=true;;
49 | Darwin*) darwin=true;;
50 | OS400*) os400=true;;
51 | esac
52 |
53 | # resolve links - $0 may be a softlink
54 | PRG="$0"
55 |
56 | while [ -h "$PRG" ]; do
57 | ls=`ls -ld "$PRG"`
58 | link=`expr "$ls" : '.*-> \(.*\)$'`
59 | if expr "$link" : '/.*' > /dev/null; then
60 | PRG="$link"
61 | else
62 | PRG=`dirname "$PRG"`/"$link"
63 | fi
64 | done
65 |
66 | # Get standard environment variables
67 | PRGDIR=`dirname "$PRG"`
68 |
69 | # Only set CATALINA_HOME if not already set
70 | [ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
71 |
72 | # Ensure that any user defined CLASSPATH variables are not used on startup,
73 | # but allow them to be specified in setenv.sh, in rare case when it is needed.
74 | CLASSPATH=
75 |
76 | if [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then
77 | . "$CATALINA_HOME/bin/setenv.sh"
78 | fi
79 |
80 | # For Cygwin, ensure paths are in UNIX format before anything is touched
81 | if $cygwin; then
82 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
83 | [ -n "$JRE_HOME" ] && JRE_HOME=`cygpath --unix "$JRE_HOME"`
84 | [ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
85 | [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
86 | fi
87 |
88 | # For OS400
89 | if $os400; then
90 | # Set job priority to standard for interactive (interactive - 6) by using
91 | # the interactive priority - 6, the helper threads that respond to requests
92 | # will be running at the same priority as interactive jobs.
93 | COMMAND='chgjob job('$JOBNAME') runpty(6)'
94 | system $COMMAND
95 |
96 | # Enable multi threading
97 | export QIBM_MULTI_THREADED=Y
98 | fi
99 |
100 | # Get standard Java environment variables
101 | if $os400; then
102 | # -r will Only work on the os400 if the files are:
103 | # 1. owned by the user
104 | # 2. owned by the PRIMARY group of the user
105 | # this will not work if the user belongs in secondary groups
106 | . "$CATALINA_HOME"/bin/setclasspath.sh
107 | else
108 | if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
109 | . "$CATALINA_HOME"/bin/setclasspath.sh
110 | else
111 | echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
112 | echo "This file is needed to run this program"
113 | exit 1
114 | fi
115 | fi
116 |
117 | # Add on extra jar files to CLASSPATH
118 | if [ ! -z "$CLASSPATH" ] ; then
119 | CLASSPATH="$CLASSPATH":
120 | fi
121 | CLASSPATH="$CLASSPATH""$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/tomcat-juli.jar:"$CATALINA_HOME"/lib/servlet-api.jar
122 |
123 | # For Cygwin, switch paths to Windows format before running java
124 | if $cygwin; then
125 | JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
126 | JRE_HOME=`cygpath --absolute --windows "$JRE_HOME"`
127 | CATALINA_HOME=`cygpath --absolute --windows "$CATALINA_HOME"`
128 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
129 | JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
130 | fi
131 |
132 | JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
133 |
134 | # ----- Execute The Requested Command -----------------------------------------
135 |
136 | exec "$_RUNJAVA" $JAVA_OPTS $TOOL_OPTS \
137 | -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
138 | -Dcatalina.home="$CATALINA_HOME" \
139 | org.apache.catalina.startup.Tool "$@"
140 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/version.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 |
17 | rem ---------------------------------------------------------------------------
18 | rem Version script for the CATALINA Server
19 | rem ---------------------------------------------------------------------------
20 |
21 | setlocal
22 |
23 | rem Guess CATALINA_HOME if not defined
24 | set "CURRENT_DIR=%cd%"
25 | if not "%CATALINA_HOME%" == "" goto gotHome
26 | set "CATALINA_HOME=%CURRENT_DIR%"
27 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
28 | cd ..
29 | set "CATALINA_HOME=%cd%"
30 | cd "%CURRENT_DIR%"
31 | :gotHome
32 | if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
33 | echo The CATALINA_HOME environment variable is not defined correctly
34 | echo This environment variable is needed to run this program
35 | goto end
36 | :okHome
37 |
38 | set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
39 |
40 | rem Check that target executable exists
41 | if exist "%EXECUTABLE%" goto okExec
42 | echo Cannot find "%EXECUTABLE%"
43 | echo This file is needed to run this program
44 | goto end
45 | :okExec
46 |
47 | rem Get remaining unshifted command line arguments and save them in the
48 | set CMD_LINE_ARGS=
49 | :setArgs
50 | if ""%1""=="""" goto doneSetArgs
51 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
52 | shift
53 | goto setArgs
54 | :doneSetArgs
55 |
56 | call "%EXECUTABLE%" version %CMD_LINE_ARGS%
57 |
58 | :end
59 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/bin/version.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # -----------------------------------------------------------------------------
19 | # Version Script for the CATALINA Server
20 | # -----------------------------------------------------------------------------
21 |
22 | # Better OS/400 detection: see Bugzilla 31132
23 | os400=false
24 | case "`uname`" in
25 | OS400*) os400=true;;
26 | esac
27 |
28 | # resolve links - $0 may be a softlink
29 | PRG="$0"
30 |
31 | while [ -h "$PRG" ] ; do
32 | ls=`ls -ld "$PRG"`
33 | link=`expr "$ls" : '.*-> \(.*\)$'`
34 | if expr "$link" : '/.*' > /dev/null; then
35 | PRG="$link"
36 | else
37 | PRG=`dirname "$PRG"`/"$link"
38 | fi
39 | done
40 |
41 | PRGDIR=`dirname "$PRG"`
42 | EXECUTABLE=catalina.sh
43 |
44 | # Check that target executable exists
45 | if $os400; then
46 | # -x will Only work on the os400 if the files are:
47 | # 1. owned by the user
48 | # 2. owned by the PRIMARY group of the user
49 | # this will not work if the user belongs in secondary groups
50 | eval
51 | else
52 | if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
53 | echo "Cannot find $PRGDIR/$EXECUTABLE"
54 | echo "The file is absent or does not have execute permission"
55 | echo "This file is needed to run this program"
56 | exit 1
57 | fi
58 | fi
59 |
60 | exec "$PRGDIR"/"$EXECUTABLE" version "$@"
61 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/conf/context.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 | WEB-INF/web.xml
23 |
24 |
25 |
28 |
29 |
31 |
34 |
35 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/conf/logging.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
17 |
18 | .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
19 |
20 | ############################################################
21 | # Handler specific properties.
22 | # Describes specific configuration info for Handlers.
23 | ############################################################
24 |
25 | 1catalina.org.apache.juli.FileHandler.level = FINE
26 | 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
27 | 1catalina.org.apache.juli.FileHandler.prefix = catalina.
28 |
29 | 2localhost.org.apache.juli.FileHandler.level = FINE
30 | 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
31 | 2localhost.org.apache.juli.FileHandler.prefix = localhost.
32 |
33 | 3manager.org.apache.juli.FileHandler.level = FINE
34 | 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
35 | 3manager.org.apache.juli.FileHandler.prefix = manager.
36 |
37 | 4host-manager.org.apache.juli.FileHandler.level = FINE
38 | 4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
39 | 4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
40 |
41 | java.util.logging.ConsoleHandler.level = FINE
42 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
43 |
44 |
45 | ############################################################
46 | # Facility specific properties.
47 | # Provides extra control for each logger.
48 | ############################################################
49 |
50 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
51 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
52 |
53 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
54 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler
55 |
56 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
57 | org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler
58 |
59 | # For example, set the org.apache.catalina.util.LifecycleBase logger to log
60 | # each component that extends LifecycleBase changing state:
61 | #org.apache.catalina.util.LifecycleBase.level = FINE
62 |
63 | # To see debug messages in TldLocationsCache, uncomment the following line:
64 | #org.apache.jasper.compiler.TldLocationsCache.level = FINE
65 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/conf/tomcat-users.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
24 |
29 |
36 |
37 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/annotations-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/annotations-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-ant.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-ant.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-ha.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-ha.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-tribes.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/catalina-tribes.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/catalina.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/catalina.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/ecj-4.4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/ecj-4.4.2.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/el-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/el-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/jasper-el.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/jasper-el.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/jasper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/jasper.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/jsp-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/jsp-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/servlet-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/servlet-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-coyote.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-coyote.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-dbcp.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-dbcp.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-es.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-es.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-fr.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-fr.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-ja.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-i18n-ja.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-jdbc.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-jdbc.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-util.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat-util.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat7-websocket.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/tomcat7-websocket.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/lib/websocket-api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/lib/websocket-api.jar
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2015-12-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2015-12-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2015-12-23.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2015-12-23.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-04-01.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-04-01.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-11-17.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-11-17.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-11-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2016-11-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2017-08-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/host-manager.2017-08-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/localhost.2017-08-22.log:
--------------------------------------------------------------------------------
1 | Aug 22, 2017 1:43:41 PM org.apache.catalina.core.ApplicationContext log
2 | INFO: No Spring WebApplicationInitializer types detected on classpath
3 | Aug 22, 2017 1:43:42 PM org.apache.catalina.core.ApplicationContext log
4 | INFO: Initializing Spring root WebApplicationContext
5 | Aug 22, 2017 1:45:04 PM org.apache.catalina.core.ApplicationContext log
6 | INFO: Closing Spring root WebApplicationContext
7 | Aug 22, 2017 1:45:20 PM org.apache.catalina.core.ApplicationContext log
8 | INFO: No Spring WebApplicationInitializer types detected on classpath
9 | Aug 22, 2017 1:45:20 PM org.apache.catalina.core.ApplicationContext log
10 | INFO: Initializing Spring root WebApplicationContext
11 | Aug 22, 2017 1:46:36 PM org.apache.catalina.core.ApplicationContext log
12 | INFO: Closing Spring root WebApplicationContext
13 | Aug 22, 2017 1:47:02 PM org.apache.catalina.core.ApplicationContext log
14 | INFO: No Spring WebApplicationInitializer types detected on classpath
15 | Aug 22, 2017 1:47:02 PM org.apache.catalina.core.ApplicationContext log
16 | INFO: Initializing Spring root WebApplicationContext
17 | Aug 22, 2017 1:47:21 PM org.apache.catalina.core.ApplicationContext log
18 | INFO: Closing Spring root WebApplicationContext
19 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/localhost_access_log.2017-08-22.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/localhost_access_log.2017-08-22.txt
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2015-12-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2015-12-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2015-12-23.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2015-12-23.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-04-01.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-04-01.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-11-17.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-11-17.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-11-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2016-11-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2017-08-22.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/logs/manager.2017-08-22.log
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: gunlee
3 | Build-Jdk: 1.7.0_79
4 | Created-By: Apache Maven 3.3.3
5 | Archiver-Version: Plexus Archiver
6 |
7 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/META-INF/maven/org.mybatis/jpetstore/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Apache Maven
2 | #Wed Dec 23 16:57:17 KST 2015
3 | version=6.0.2-SNAPSHOT
4 | groupId=org.mybatis
5 | artifactId=jpetstore
6 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/META-INF/maven/org.mybatis/jpetstore/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 | 4.0.0
20 |
21 |
22 | org.mybatis
23 | mybatis-parent
24 | 26
25 |
26 |
27 |
28 | org.mybatis
29 | 6.0.2-SNAPSHOT
30 | jpetstore
31 | war
32 |
33 | JPetStore Demo 6
34 | http://www.mybatis.org
35 |
36 |
37 | http://github.com/mybatis/jpetstore
38 | scm:git:ssh://github.com/mybatis/jpetstore.git
39 | scm:git:ssh://git@github.com/mybatis/jpetstore.git
40 | HEAD
41 |
42 |
43 | GitHub Issue Management
44 | https://github.com/mybatis/jpetstore/issues
45 |
46 |
47 | Travis CI
48 | https://travis-ci.org/jpetstore/guice
49 |
50 |
51 |
52 | gh-pages
53 | Mybatis GitHub Pages
54 | git:ssh://git@github.com/mybatis/jpetstore-6.git?gh-pages#
55 |
56 |
57 |
58 |
59 |
60 | org.mybatis
61 | mybatis
62 | 3.3.0
63 |
64 |
65 | org.mybatis
66 | mybatis-spring
67 | 1.2.3
68 |
69 |
70 | org.springframework
71 | spring-jdbc
72 | 4.2.3.RELEASE
73 |
74 |
75 | org.springframework
76 | spring-web
77 | 4.2.3.RELEASE
78 |
79 |
80 | net.sourceforge.stripes
81 | stripes
82 | 1.6.0
83 |
84 |
85 | javax.servlet
86 | jstl
87 | 1.2
88 |
89 |
90 | javax.servlet
91 | jsp-api
92 | 2.0
93 | provided
94 |
95 |
96 | log4j
97 | log4j
98 | 1.2.17
99 |
100 |
101 | org.hsqldb
102 | hsqldb
103 | 2.3.3
104 |
105 |
106 |
107 |
108 | jpetstore
109 |
110 |
111 |
112 | org.apache.maven.plugins
113 | maven-war-plugin
114 | 2.6
115 |
116 |
117 |
118 |
119 |
120 | org.apache.maven.plugins
121 | maven-resources-plugin
122 |
123 | true
124 |
125 |
126 |
127 | org.apache.tomcat.maven
128 | tomcat6-maven-plugin
129 | 2.2
130 |
131 |
132 | org.apache.tomcat.maven
133 | tomcat7-maven-plugin
134 | 2.2
135 |
136 |
137 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | MyBatis JPetStore
2 | Copyright 2010-2013
3 |
4 | This product includes software developed by
5 | The MyBatis Team (http://mybatis.org/).
6 |
7 | iBATIS
8 | This product includes software developed by
9 | The Apache Software Foundation (http://www.apache.org/).
10 |
11 | Copyright 2010 The Apache Software Foundation
12 |
13 | Licensed under the Apache License, Version 2.0 (the "License");
14 | you may not use this file except in compliance with the License.
15 | You may obtain a copy of the License at
16 |
17 | http://www.apache.org/licenses/LICENSE-2.0
18 |
19 | Unless required by applicable law or agreed to in writing, software
20 | distributed under the License is distributed on an "AS IS" BASIS,
21 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | See the License for the specific language governing permissions and
23 | limitations under the License.
24 |
25 | OGNL
26 | //--------------------------------------------------------------------------
27 | // Copyright (c) 2004, Drew Davidson and Luke Blanshard
28 | // All rights reserved.
29 | //
30 | // Redistribution and use in source and binary forms, with or without
31 | // modification, are permitted provided that the following conditions are
32 | // met:
33 | //
34 | // Redistributions of source code must retain the above copyright notice,
35 | // this list of conditions and the following disclaimer.
36 | // Redistributions in binary form must reproduce the above copyright
37 | // notice, this list of conditions and the following disclaimer in the
38 | // documentation and/or other materials provided with the distribution.
39 | // Neither the name of the Drew Davidson nor the names of its contributors
40 | // may be used to endorse or promote products derived from this software
41 | // without specific prior written permission.
42 | //
43 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
44 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
45 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
46 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
47 | // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
48 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
49 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
50 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
51 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
52 | // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
53 | // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
54 | // DAMAGE.
55 | //--------------------------------------------------------------------------
56 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/StripesResources.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jooho/scouter-docker/ac6c2fd796091c07733c1e463fe078d9ef68e761/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/StripesResources.properties
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/database/jpetstore-hsqldb-schema.sql:
--------------------------------------------------------------------------------
1 | --
2 | -- Copyright 2010-2013 the original author or authors.
3 | --
4 | -- Licensed under the Apache License, Version 2.0 (the "License");
5 | -- you may not use this file except in compliance with the License.
6 | -- You may obtain a copy of the License at
7 | --
8 | -- http://www.apache.org/licenses/LICENSE-2.0
9 | --
10 | -- Unless required by applicable law or agreed to in writing, software
11 | -- distributed under the License is distributed on an "AS IS" BASIS,
12 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | -- See the License for the specific language governing permissions and
14 | -- limitations under the License.
15 | --
16 |
17 | create table supplier (
18 | suppid int not null,
19 | name varchar(80) null,
20 | status varchar(2) not null,
21 | addr1 varchar(80) null,
22 | addr2 varchar(80) null,
23 | city varchar(80) null,
24 | state varchar(80) null,
25 | zip varchar(5) null,
26 | phone varchar(80) null,
27 | constraint pk_supplier primary key (suppid)
28 | );
29 |
30 | create table signon (
31 | username varchar(25) not null,
32 | password varchar(25) not null,
33 | constraint pk_signon primary key (username)
34 | );
35 |
36 | create table account (
37 | userid varchar(80) not null,
38 | email varchar(80) not null,
39 | firstname varchar(80) not null,
40 | lastname varchar(80) not null,
41 | status varchar(2) null,
42 | addr1 varchar(80) not null,
43 | addr2 varchar(40) null,
44 | city varchar(80) not null,
45 | state varchar(80) not null,
46 | zip varchar(20) not null,
47 | country varchar(20) not null,
48 | phone varchar(80) not null,
49 | constraint pk_account primary key (userid)
50 | );
51 |
52 | create table profile (
53 | userid varchar(80) not null,
54 | langpref varchar(80) not null,
55 | favcategory varchar(30),
56 | mylistopt int,
57 | banneropt int,
58 | constraint pk_profile primary key (userid)
59 | );
60 |
61 | create table bannerdata (
62 | favcategory varchar(80) not null,
63 | bannername varchar(255) null,
64 | constraint pk_bannerdata primary key (favcategory)
65 | );
66 |
67 | create table orders (
68 | orderid int not null,
69 | userid varchar(80) not null,
70 | orderdate date not null,
71 | shipaddr1 varchar(80) not null,
72 | shipaddr2 varchar(80) null,
73 | shipcity varchar(80) not null,
74 | shipstate varchar(80) not null,
75 | shipzip varchar(20) not null,
76 | shipcountry varchar(20) not null,
77 | billaddr1 varchar(80) not null,
78 | billaddr2 varchar(80) null,
79 | billcity varchar(80) not null,
80 | billstate varchar(80) not null,
81 | billzip varchar(20) not null,
82 | billcountry varchar(20) not null,
83 | courier varchar(80) not null,
84 | totalprice decimal(10,2) not null,
85 | billtofirstname varchar(80) not null,
86 | billtolastname varchar(80) not null,
87 | shiptofirstname varchar(80) not null,
88 | shiptolastname varchar(80) not null,
89 | creditcard varchar(80) not null,
90 | exprdate varchar(7) not null,
91 | cardtype varchar(80) not null,
92 | locale varchar(80) not null,
93 | constraint pk_orders primary key (orderid)
94 | );
95 |
96 | create table orderstatus (
97 | orderid int not null,
98 | linenum int not null,
99 | timestamp date not null,
100 | status varchar(2) not null,
101 | constraint pk_orderstatus primary key (orderid, linenum)
102 | );
103 |
104 | create table lineitem (
105 | orderid int not null,
106 | linenum int not null,
107 | itemid varchar(10) not null,
108 | quantity int not null,
109 | unitprice decimal(10,2) not null,
110 | constraint pk_lineitem primary key (orderid, linenum)
111 | );
112 |
113 | create table category (
114 | catid varchar(10) not null,
115 | name varchar(80) null,
116 | descn varchar(255) null,
117 | constraint pk_category primary key (catid)
118 | );
119 |
120 | create table product (
121 | productid varchar(10) not null,
122 | category varchar(10) not null,
123 | name varchar(80) null,
124 | descn varchar(255) null,
125 | constraint pk_product primary key (productid),
126 | constraint fk_product_1 foreign key (category)
127 | references category (catid)
128 | );
129 |
130 | create index productCat on product (category);
131 | create index productName on product (name);
132 |
133 | create table item (
134 | itemid varchar(10) not null,
135 | productid varchar(10) not null,
136 | listprice decimal(10,2) null,
137 | unitcost decimal(10,2) null,
138 | supplier int null,
139 | status varchar(2) null,
140 | attr1 varchar(80) null,
141 | attr2 varchar(80) null,
142 | attr3 varchar(80) null,
143 | attr4 varchar(80) null,
144 | attr5 varchar(80) null,
145 | constraint pk_item primary key (itemid),
146 | constraint fk_item_1 foreign key (productid)
147 | references product (productid),
148 | constraint fk_item_2 foreign key (supplier)
149 | references supplier (suppid)
150 | );
151 |
152 | create index itemProd on item (productid);
153 |
154 | create table inventory (
155 | itemid varchar(10) not null,
156 | qty int not null,
157 | constraint pk_inventory primary key (itemid)
158 | );
159 |
160 | CREATE TABLE sequence
161 | (
162 | name varchar(30) not null,
163 | nextid int not null,
164 | constraint pk_sequence primary key (name)
165 | );
166 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/log4j.properties:
--------------------------------------------------------------------------------
1 | # Copyright 2010-2013 the original author or authors.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | # Rules reminder:
16 | # DEBUG < INFO < WARN < ERROR < FATAL
17 |
18 | # Global logging configuration
19 | log4j.rootLogger=WARN, stdout
20 |
21 | # My logging configuration...
22 | log4j.logger.org.mybatis.jpetstore=TRACE
23 | log4j.logger.org.mybatis.spring=TRACE
24 |
25 | ## Console output...
26 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
27 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
28 | log4j.appender.stdout.layout.ConversionPattern=%r [%t] %-5p %c %x - %m%n
29 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/AccountMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
49 |
50 |
76 |
77 |
78 | UPDATE ACCOUNT SET
79 | EMAIL = #{email},
80 | FIRSTNAME = #{firstName},
81 | LASTNAME = #{lastName},
82 | STATUS = #{status},
83 | ADDR1 = #{address1},
84 | ADDR2 = #{address2,jdbcType=VARCHAR},
85 | CITY = #{city},
86 | STATE = #{state},
87 | ZIP = #{zip},
88 | COUNTRY = #{country},
89 | PHONE = #{phone}
90 | WHERE USERID = #{username}
91 |
92 |
93 |
94 | INSERT INTO ACCOUNT
95 | (EMAIL, FIRSTNAME, LASTNAME, STATUS, ADDR1, ADDR2, CITY, STATE, ZIP, COUNTRY, PHONE, USERID)
96 | VALUES
97 | (#{email}, #{firstName}, #{lastName}, #{status}, #{address1}, #{address2,jdbcType=VARCHAR}, #{city}, #{state}, #{zip}, #{country}, #{phone}, #{username})
98 |
99 |
100 |
111 |
112 |
113 | UPDATE PROFILE SET
114 | LANGPREF = #{languagePreference},
115 | FAVCATEGORY = #{favouriteCategoryId}
116 | WHERE USERID = #{username}
117 |
118 |
119 |
126 |
127 |
128 | INSERT INTO PROFILE (LANGPREF, FAVCATEGORY, USERID)
129 | VALUES (#{languagePreference}, #{favouriteCategoryId}, #{username})
130 |
131 |
132 |
133 | UPDATE SIGNON SET PASSWORD = #{password}
134 | WHERE USERNAME = #{username}
135 |
136 |
137 |
138 | INSERT INTO SIGNON (PASSWORD,USERNAME)
139 | VALUES (#{password}, #{username})
140 |
141 |
142 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/CategoryMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
32 |
33 |
40 |
41 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/ItemMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
44 |
45 |
67 |
68 |
73 |
74 |
75 | UPDATE INVENTORY SET
76 | QTY = QTY - #{increment}
77 | WHERE ITEMID = #{itemId}
78 |
79 |
80 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/LineItemMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
34 |
35 |
36 | INSERT INTO LINEITEM (ORDERID, LINENUM, ITEMID, QUANTITY, UNITPRICE)
37 | VALUES (#{orderId}, #{lineNumber}, #{itemId}, #{quantity}, #{unitPrice})
38 |
39 |
40 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/OrderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
56 |
57 |
90 |
91 |
92 | INSERT INTO ORDERS (ORDERID, USERID, ORDERDATE, SHIPADDR1, SHIPADDR2, SHIPCITY, SHIPSTATE,
93 | SHIPZIP, SHIPCOUNTRY, BILLADDR1, BILLADDR2, BILLCITY, BILLSTATE, BILLZIP, BILLCOUNTRY,
94 | COURIER, TOTALPRICE, BILLTOFIRSTNAME, BILLTOLASTNAME, SHIPTOFIRSTNAME, SHIPTOLASTNAME,
95 | CREDITCARD, EXPRDATE, CARDTYPE, LOCALE)
96 | VALUES(#{orderId}, #{username}, #{orderDate}, #{shipAddress1}, #{shipAddress2,jdbcType=VARCHAR}, #{shipCity},
97 | #{shipState}, #{shipZip}, #{shipCountry}, #{billAddress1}, #{billAddress2,jdbcType=VARCHAR}, #{billCity},
98 | #{billState}, #{billZip}, #{billCountry}, #{courier}, #{totalPrice}, #{billToFirstName}, #{billToLastName},
99 | #{shipToFirstName}, #{shipToLastName}, #{creditCard}, #{expiryDate}, #{cardType}, #{locale})
100 |
101 |
102 |
103 | INSERT INTO ORDERSTATUS (ORDERID, LINENUM, TIMESTAMP, STATUS)
104 | VALUES (#{orderId,jdbcType=NUMERIC}, #{orderId,jdbcType=NUMERIC}, #{orderDate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR})
105 |
106 |
107 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/ProductMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
33 |
34 |
43 |
44 |
53 |
54 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/classes/org/mybatis/jpetstore/persistence/SequenceMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
30 |
31 | UPDATE SEQUENCE
32 | SET NEXTID = #{nextId}
33 | WHERE NAME = #{name}
34 |
35 |
36 |
--------------------------------------------------------------------------------
/scouter-test-app/apache-tomcat-7.0.67/webapps/jpetstore/WEB-INF/jsp/account/EditAccountForm.jsp:
--------------------------------------------------------------------------------
1 | <%@ include file="../common/IncludeTop.jsp"%>
2 |
3 |
6 |
7 |
User Information
8 |
9 |
10 |
11 |
User ID:
12 |
${actionBean.username}
13 |
14 |
15 |
New password:
16 |
17 |
18 |
19 |
Repeat password:
20 |
21 |
22 |
23 | <%@ include file="IncludeAccountFields.jsp"%>
24 |
25 |
26 |
27 | My Orders