====== Deploy SpringBoot 2 on Weblogic 12c ======
Deploying code on old container is a headache. Here is how I solve it. This example is based on SpringBoot 2.3.1.RELEASE, but should work on other 2.x version.
- We need to have the following xml config in those files.
- **!!!**The MS SQL driver ''sqljdbc42.jar'' would no longer work with new Hibernate 5, so you need to update to at least version 6.3.2 (''6.4.0.jre8 recommended'') on your WebLogic server**!!!**.
===== pom.xml =====
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.3.1.RELEASE
com.example
demo
SNAPSHOT
war
demo
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-logging
logback-classic
ch.qos.logback
log4j-over-slf4j
org.slf4j
org.springframework.boot
spring-boot-starter-web
io.jsonwebtoken
jjwt
0.9.1
org.projectlombok
lombok
true
org.springframework.boot
spring-boot-starter-data-jdbc
org.springframework.boot
spring-boot-starter-data-jpa
com.microsoft.sqlserver
mssql-jdbc
6.4.0.jre8
runtime
org.springframework.boot
spring-boot-starter-tomcat
provided
org.springframework.boot
spring-boot-starter-test
test
org.junit.vintage
junit-vintage-engine
org.slf4j
slf4j-log4j12
1.7.30
org.springframework.boot
spring-boot-maven-plugin
===== log4j.xml =====
This file located at ./src/main/resources/log4j.xml. You might un-comment the logger in this file if needed.
===== weblogic.xml =====
This file located at /src/main/webapp/WEB-INF/weblogic.xml.
demo is the path of the URI of your application, you might want to change it to something else.
demo
12.2.1.2
org.slf4j.*
org.apache.commons.*
org.springframework.*
org.hibernate.annotations.common.*
com.fasterxml.*
org/slf4j/impl/StaticLoggerBinder.class