WebLogic 12.1.3 and Spring Boot 2.x

Tushar Agrawal
Sep 9, 2018 · 2 min read

One of our client uses WebLogic 12.1.3 and we built applications for them using Spring Boot 2.x. After grueling all nighter and without any luck on google, I learned hard way how to successfully deploy Spring Boot 2.x app on WebLogic 12.1.3

Lets get started….

Source Code

You can also download it from GitHub

Create a New Spring Boot Application

https://start.spring.io/

Open application in your favorite IDE and follow along:

  • Change the Wls1213Application.java
  • Create a HelloWorldController
  • Add a weblogic.xml file
  • Update weblogic.xml
  • Update pom.xml
  • Build and Deploy on Weblogic 12.1.3
  • Validate

Most Common Exception

  • You will get below exception if you have a JAR that is not compatible with WebLogic 12.1.3. It fails while reading module-info in Java 9 compatible jars.
<Error> <J2EE> <BEA-160228> <AppMerge failed to merge your application. If you are running AppMerge on the command-line, merge again with the -verbose option for more details. See the error message(s) below.>weblogic.utils.compiler.ToolFailureException

Have a wonderful time and keep coding!!!!

Tushar Agrawal

Written by

Software Engineer and Entrepreneur

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade