Aron Mosha
Aron Mosha

Reputation: 23

Spring Integration application deployment fails when deploy war to weblogic version (weblogic 12.2.1.3)

Application runs fine on IDE as well as when I run it as jar Exception occurs when I deploy the application on weblogic server.

I have even tried to exclude spring-starter-json and replace it with gson but I get the same issue.

Here is the stacktrace


weblogic.application.ModuleException: java.lang.VerifyError: Bad return type

Exception Details:
  Location:
    com/fasterxml/jackson/databind/cfg/MapperBuilder.streamFactory()Lcom/fasterxml/jackson/core/TokenStreamFactory; @7: areturn
:
    Type 'com/fasterxml/jackson/core/JsonFactory' (current frame, stack[0]) is not assignable to 'com/fasterxml/jackson/core/TokenStreamFactory' (from method signature)

  Current Frame:
    bci: @7
    flags: { }
    locals: { 'com/fasterxml/jackson/databind/cfg/MapperBuilder' }
    stack: { 'com/fasterxml/jackson/core/JsonFactory' }

  Bytecode:
    0x0000000: 2ab4 0002 b600 08b0                    
    at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
    Truncated. see log file for complete stacktrace

Upvotes: 0

Views: 474

Answers (1)

Aron Mosha
Aron Mosha

Reputation: 23

I have found a solution from reading this article (https://o7planning.org/11901/deploy-spring-boot-application-on-oracle-weblogic-server) , It seems weblogic loads some library (com.fastxml.*) which are outdated and are incompactible with current version of spring boot.

Upvotes: 1

Related Questions