spring boot - storm run springboot development topology has error -
i use springboot develop topology,but when package jar,and run
bin/storm jar extlib/se-storm-0.0.1-snapshot.jar cn.ennwifi.storm.application
it error. used 3 method package, has error. first,i used maven-assembly-plugin,the detail is:
<plugin> <artifactid>maven-assembly-plugin</artifactid> <version>2.4</version> <configuration> <descriptorrefs> <descriptorref>jar-with-dependencies</descriptorref> </descriptorrefs> <archive> <manifest> <addclasspath>true</addclasspath> <mainclass>cn.ennwifi.storm.application</mainclass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>
the error is:
org.springframework.beans.factory.beandefinitionstoreexception: failed process import candidates configuration class [cn.ennwifi.storm.application]; nested exception java.lang.illegalargumentexception: no auto configuration classes found in meta-inf/spring.factories. if using custom packaging, make sure file correct. @ org.springframework.context.annotation.configurationclassparser.processdeferredimportselectors(configurationclassparser.java:520) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:184) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:308) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.annotation.configurationclasspostprocessor.postprocessbeandefinitionregistry(configurationclasspostprocessor.java:228) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.support.postprocessorregistrationdelegate.invokebeandefinitionregistrypostprocessors(postprocessorregistrationdelegate.java:270) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.support.postprocessorregistrationdelegate.invokebeanfactorypostprocessors(postprocessorregistrationdelegate.java:93) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.support.abstractapplicationcontext.invokebeanfactorypostprocessors(abstractapplicationcontext.java:686) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:524) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:122) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.springapplication.refresh(springapplication.java:737) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.springapplication.refreshcontext(springapplication.java:370) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.springapplication.run(springapplication.java:314) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.springapplication.run(springapplication.java:1162) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.springapplication.run(springapplication.java:1151) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ cn.ennwifi.storm.application.main(application.java:23) [se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] caused by: java.lang.illegalargumentexception: no auto configuration classes found in meta-inf/spring.factories. if using custom packaging, make sure file correct. @ org.springframework.util.assert.notempty(assert.java:276) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.autoconfigure.autoconfigurationimportselector.getcandidateconfigurations(autoconfigurationimportselector.java:152) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.boot.autoconfigure.autoconfigurationimportselector.selectimports(autoconfigurationimportselector.java:94) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] @ org.springframework.context.annotation.configurationclassparser.processdeferredimportselectors(configurationclassparser.java:512) ~[se-storm-0.0.1-snapshot-jar-with-dependencies.jar:?] ... 14 more
the second:
<plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> <configuration> <fork>true</fork> <mainclass>cn.ennwifi.storm.application</mainclass> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
the error is:
错误: 找不到或无法加载主类 cn.ennwifi.storm.application
the third is:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <version>3.0.0</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputdirectory>target/libs</outputdirectory> <includescope>runtime</includescope> </configuration> </execution> </executions> </plugin>
the error is:
error o.a.c.c.containerbase - child container failed during start java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost].tomcatembeddedcontext[]] @ java.util.concurrent.futuretask.report(futuretask.java:122) ~[?:1.8.0_121] @ java.util.concurrent.futuretask.get(futuretask.java:192) ~[?:1.8.0_121] @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:939) [tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872) [tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1419) [tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1409) [tomcat-embed-core-8.5.11.jar:8.5.11] @ java.util.concurrent.futuretask.run(futuretask.java:266) [?:1.8.0_121] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [?:1.8.0_121] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [?:1.8.0_121] @ java.lang.thread.run(thread.java:745) [?:1.8.0_121] caused by: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost].tomcatembeddedcontext[]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167) ~[tomcat-embed-core-8.5.11.jar:8.5.11] ... 6 more caused by: org.apache.catalina.lifecycleexception: failed start component [pipeline[standardengine[tomcat].standardhost[localhost].tomcatembeddedcontext[]]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5099) ~[tomcat-embed-core-8.5.11.jar:8.5.11] ... 7 more caused by: org.apache.catalina.lifecycleexception: failed start component [org.apache.catalina.authenticator.nonloginauthenticator[]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardpipeline.startinternal(standardpipeline.java:170) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5099) ~[tomcat-embed-core-8.5.11.jar:8.5.11] ... 7 more caused by: java.lang.nosuchmethoderror: javax.servlet.servletcontext.getvirtualservername()ljava/lang/string; @ org.apache.catalina.authenticator.authenticatorbase.startinternal(authenticatorbase.java:1137) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardpipeline.startinternal(standardpipeline.java:170) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ~[tomcat-embed-core-8.5.11.jar:8.5.11] @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5099) ~[tomcat-embed-co
what can package jar can run in storm.
Comments
Post a Comment