Deploy Spring-boot application to Weblogic : getting error

本小妞迷上赌 提交于 2019-12-14 00:25:38

问题


I'm trying to deploy a spring-boot application in a weblogic server. Therefore I follow some documented instructions such as:

 - create webapp folder

 - create  dispatcherServlet-servlet.xml

 - create weblogic.xml
 - make MyApplication class extends
        SpringBootServletInitializer and implements WebApplicationInitializer, 
 - turn the scope of embedded server to provided

{

    <artifactId>spring-boot-starter-tomcat</artifactId>
                <scope>provided</scope>
    }

 - packaging to WAR in pom.xml

Unfortunetely, I'm getting:

<blockquote>
May 30, 2018 11:51:54 AM BST Warning Deployer BEA-149078 Stack trace for message 149004
weblogic.application.ModuleException: null
null
    at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1824)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:270)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:682)
    at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
    at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)
    Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalArgumentException
    at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
    at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
    at weblogic.application.utils.annotation.ClassInfoImpl.init(ClassInfoImpl.java:41)
    at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:240)
    at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:193)
    Truncated. see log file for complete stacktrace

</blockquote>

I've tried some things, but I couldn't figure out why the deployment is null?

Any clue?

Thanks Rui

来源:https://stackoverflow.com/questions/50607732/deploy-spring-boot-application-to-weblogic-getting-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!