weblogic12c - Error on spring boot web application startup with weblogic -


starting spring boot java application clicking file having main method , below error getting, configured weblogic server , application type war , when changed jar same exception coming

org.springframework.context.applicationcontextexception: unable start embedded container; nested exception org.springframework.context.applicationcontextexception: unable start embeddedwebapplicationcontext due missing embeddedservletcontainerfactory bean.     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:137) ~[spring-boot-1.5.4.release.jar:1.5.4.release] 

how configure embeddedservletcontainerfactory bean weblogic server i'm not getting can me .... thanks

below main class

@configuration @enablewebmvc @enablejparepositories(basepackages = {"com.example.demo.repository"}) @entityscan(basepackages = {"com.example.demo.entity"}) @propertysource({"classpath:application.properties"}) @springbootapplication @componentscan(basepackages={"com.example.demo"}) @enableautoconfiguration(exclude = {  org.springframework.boot.autoconfigure.security.securityautoconfiguration.class, org.springframework.boot.actuate.autoconfigure.managementwebsecurityautoconfiguration.class})   public class demoapplication  extends springbootservletinitializer implements webapplicationinitializer{      public static void main(string[] args) {         springapplication.run(demoapplication.class, args);     }      @override        protected springapplicationbuilder configure(springapplicationbuilder builder) {           return builder.sources(demoapplication.class);        }   } 

i have excluded tomcat jars in pom.xml

2017-07-26 20:36:58.350 error 1600 --- [  restartedmain] o.s.boot.springapplication               : application startup failed  org.springframework.context.applicationcontextexception: unable start embedded container; nested exception org.springframework.context.applicationcontextexception: unable start embeddedwebapplicationcontext due missing embeddedservletcontainerfactory bean.     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:137) ~[spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:537) ~[spring-context-4.3.9.release.jar:4.3.9.release]     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:122) ~[spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.springapplication.refresh(springapplication.java:693) [spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.springapplication.refreshcontext(springapplication.java:360) [spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.springapplication.run(springapplication.java:303) [spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.springapplication.run(springapplication.java:1118) [spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.springapplication.run(springapplication.java:1107) [spring-boot-1.5.4.release.jar:1.5.4.release]     @ com.example.demo.demoapplication.main(demoapplication.java:36) [classes/:na]     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_131]     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_131]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_131]     @ java.lang.reflect.method.invoke(method.java:498) ~[na:1.8.0_131]     @ org.springframework.boot.devtools.restart.restartlauncher.run(restartlauncher.java:49) [spring-boot-devtools-1.5.4.release.jar:1.5.4.release] caused by: org.springframework.context.applicationcontextexception: unable start embeddedwebapplicationcontext due missing embeddedservletcontainerfactory bean.     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.getembeddedservletcontainerfactory(embeddedwebapplicationcontext.java:189) ~[spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:162) ~[spring-boot-1.5.4.release.jar:1.5.4.release]     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:134) ~[spring-boot-1.5.4.release.jar:1.5.4.release]     ... 13 common frames omitted 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -