Skip to content

Commit

Permalink
Tomcat upgraded to 8.5.11 (#4817)
Browse files Browse the repository at this point in the history
* Added set of logging libs, synced setenv with upstream
  • Loading branch information
skabashnyuk authored Apr 18, 2017
1 parent 1d10171 commit b0dfd90
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 18 deletions.
6 changes: 1 addition & 5 deletions assembly/assembly-main/src/assembly/tomcat/conf/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,7 @@
<Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto"
internalProxies="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"/>

<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true"
filename="${catalina.home}/conf/logback-access-localhost.xml" />
<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true" />

</Host>
</Engine>
Expand Down
6 changes: 1 addition & 5 deletions assembly/assembly-wsagent-server/src/assembly/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->

<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true"
filename="${catalina.home}/conf/logback-access-localhost.xml" />
<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true" />

</Host>
</Engine>
Expand Down
6 changes: 3 additions & 3 deletions assembly/assembly-wsagent-server/src/assembly/setenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#Global LOGS DIR
[ -z "${CHE_LOGS_DIR}" ] && CHE_LOGS_DIR="$CATALINA_HOME/logs"

[ -z "${CHE_LOGS_LEVEL}" ] && CHE_LOGS_LEVEL="INFO"

[ -z "${JPDA_ADDRESS}" ] && JPDA_ADDRESS="4403"

#Tomcat options
Expand All @@ -30,9 +32,7 @@
[ -z "${CLASSPATH}" ] && CLASSPATH="${CATALINA_HOME}/conf/:${JAVA_HOME}/lib/tools.jar"


export JAVA_OPTS="$JAVA_OPTS -Dche.logs.dir=${CHE_LOGS_DIR}"

export JAVA_OPTS="$JAVA_OPTS -Dche.logs.dir=${CHE_LOGS_DIR} -Dche.logs.level=${CHE_LOGS_LEVEL} -Djuli-logback.configurationFile=file:$CATALINA_HOME/conf/tomcat-logger.xml"

#Class path
[ -z "${SERVER_PORT}" ] && SERVER_PORT=8080
export SERVER_PORT
21 changes: 16 additions & 5 deletions assembly/assembly-wsmaster-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down Expand Up @@ -238,6 +242,18 @@
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
Expand All @@ -253,11 +269,6 @@
<artifactId>tomcat-catalina</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-commons-test</artifactId>
Expand Down
20 changes: 20 additions & 0 deletions wsagent/che-wsagent-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<packaging>war</packaging>
<name>Che Workspace Agent War Packaging</name>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down Expand Up @@ -106,6 +110,18 @@
<groupId>org.everrest</groupId>
<artifactId>everrest-websockets</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand All @@ -132,6 +148,10 @@
<configuration>
<ignoredDependencies>
<ignoredDependency>org.everrest:everrest-core</ignoredDependency>
<ignoredDependency>ch.qos.logback:logback-classic</ignoredDependency>
<ignoredDependency>org.slf4j:jul-to-slf4j</ignoredDependency>
<ignoredDependency>org.slf4j:jcl-over-slf4j</ignoredDependency>
<ignoredDependency>org.slf4j:log4j-over-slf4j</ignoredDependency>
</ignoredDependencies>
</configuration>
</execution>
Expand Down

0 comments on commit b0dfd90

Please sign in to comment.