Friday, 15 January 2010

When I use Spring Boot to start a remote service interface I get a "missing EmbeddedServletContainerFactory bean" exception -



When I use Spring Boot to start a remote service interface I get a "missing EmbeddedServletContainerFactory bean" exception -

following entire stacktrace in intellijidea:

"c:\program files\java\jdk1.6.0_29\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57558,suspend=y,server=n -javaagent:c:\users\clearity\.intellijidea13\system\groovyhotswap\gragent.jar -dfile.encoding=utf-8 -classpath "c:\program files\java\jdk1.6.0_29\jre\lib\charsets.jar;c:\program files\java\jdk1.6.0_29\jre\lib\deploy.jar;c:\program files\java\jdk1.6.0_29\jre\lib\javaws.jar;c:\program files\java\jdk1.6.0_29\jre\lib\jce.jar;c:\program files\java\jdk1.6.0_29\jre\lib\jsse.jar;c:\program files\java\jdk1.6.0_29\jre\lib\management-agent.jar;c:\program files\java\jdk1.6.0_29\jre\lib\plugin.jar;c:\program files\java\jdk1.6.0_29\jre\lib\resources.jar;c:\program files\java\jdk1.6.0_29\jre\lib\rt.jar;c:\program files\java\jdk1.6.0_29\jre\lib\ext\dnsns.jar;c:\program files\java\jdk1.6.0_29\jre\lib\ext\localedata.jar;c:\program files\java\jdk1.6.0_29\jre\lib\ext\sunjce_provider.jar;d:\work_space\external card related\project_related\icpay_v3_merchant\out\production\icpay_v3_merchant;c:\users\clearity\.gradle\caches\modules-2\files-2.1\org.codehaus.groovy\groovy-all\2.1.6\165b8246372a829c1915611646f6d964010656cf\groovy-all-2.1.6.jar;d:\work_space\spring-boot\annotations-api.jar;d:\work_space\spring-boot\catalina.jar;d:\work_space\spring-boot\commons-codec-1.6.jar;d:\work_space\spring-boot\commons-logging-1.1.3.jar;d:\work_space\spring-boot\ecj-4.3.1.jar;d:\work_space\spring-boot\el-api.jar;d:\work_space\spring-boot\fluent-hc-4.3.4.jar;d:\work_space\spring-boot\httpclient-4.3.4.jar;d:\work_space\spring-boot\httpclient-cache-4.3.4.jar;d:\work_space\spring-boot\httpcore-4.3.2.jar;d:\work_space\spring-boot\httpmime-4.3.4.jar;d:\work_space\spring-boot\jasper-el.jar;d:\work_space\spring-boot\jasper.jar;d:\work_space\spring-boot\jsp-api.jar;d:\work_space\spring-boot\juli-6.0.41.jar;d:\work_space\spring-boot\servletapi-3.0.jar;d:\work_space\spring-boot\spring-aop-4.0.5.release.jar;d:\work_space\spring-boot\spring-beans-4.0.5.release.jar;d:\work_space\spring-boot\spring-boot-1.1.1.release-tests.jar;d:\work_space\spring-boot\spring-boot-1.1.1.release.jar;d:\work_space\spring-boot\spring-boot-actuator-1.1.1.release.jar;d:\work_space\spring-boot\spring-boot-autoconfigure-1.1.1.release.jar;d:\work_space\spring-boot\spring-boot-gradle-plugin-1.1.1.release.jar;d:\work_space\spring-boot\spring-context-4.0.5.release.jar;d:\work_space\spring-boot\spring-context-support-4.0.5.release.jar;d:\work_space\spring-boot\spring-core-4.0.5.release.jar;d:\work_space\spring-boot\spring-expression-4.0.5.release.jar;d:\work_space\spring-boot\spring-web-4.0.5.release.jar;d:\work_space\spring-boot\spring-webmvc-4.0.5.release.jar;d:\work_space\spring-boot\tomcat-coyote.jar;d:\work_space\spring-boot\tomcat-dbcp.jar;d:\work_space\spring-boot\tomcat-util-7.0.16.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\commons-codec-1.6.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\commons-logging-1.1.3.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\fluent-hc-4.3.4.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\httpclient-4.3.4.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\httpclient-cache-4.3.4.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\httpcore-4.3.2.jar;d:\docs\httpcomponents-client-4.3.4-bin\httpcomponents-client-4.3.4\lib\httpmime-4.3.4.jar;c:\download\usefuljars\fastjson-1.1.39.jar;c:\download\jpos-1.9.0.jar;d:\docs\slf4j-1.7.7\slf4j-1.7.7\slf4j-log4j12-1.7.7.jar;d:\docs\slf4j-1.7.7\slf4j-1.7.7\slf4j-nop-1.7.7.jar;d:\docs\slf4j-1.7.7\slf4j-1.7.7\slf4j-api-1.7.7.jar;c:\download\usefuljars\druid-1.0.4.jar;c:\program files (x86)\jetbrains\intellij thought 13.1.3\lib\idea_rt.jar" merchantapplication connected target vm, address: '127.0.0.1:57558', transport: 'socket' . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: spring boot :: (v1.1.1.release) exception in thread "main" 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:135) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:476) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:120) @ org.springframework.boot.springapplication.refresh(springapplication.java:683) @ org.springframework.boot.springapplication.run(springapplication.java:313) @ org.springframework.boot.springapplication.run(springapplication.java:944) @ org.springframework.boot.springapplication.run(springapplication.java:933) @ org.springframework.boot.springapplication$run.call(unknown source) @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:45) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:108) @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:120) @ merchantapplication.main(merchantapplication.groovy:17) caused by: org.springframework.context.applicationcontextexception: unable start embeddedwebapplicationcontext due missing embeddedservletcontainerfactory bean. @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.getembeddedservletcontainerfactory(embeddedwebapplicationcontext.java:185) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:158) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:132) ... 11 more disconnected target vm, address: '127.0.0.1:57558', transport: 'socket' process finished exit code 1

help me

spring spring-boot

No comments:

Post a Comment