java - Spring boot cannot start -
i started spring boot , giving me strange exceptions. console exception follows.
java.lang.nosuchmethoderror: javax.servlet.servletcontext.addfilter(ljava/lang/string;ljavax/servlet/filter;)ljavax/servlet/filterregistration$dynamic; @ org.springframework.boot.context.embedded.filterregistrationbean.onstartup(filterregistrationbean.java:257) ~[spring-boot-1.2.2.release.jar:1.2.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.selfinitialize(embeddedwebapplicationcontext.java:222) [spring-boot-1.2.2.release.jar:1.2.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.access$000(embeddedwebapplicationcontext.java:84) [spring-boot-1.2.2.release.jar:1.2.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext$1.onstartup(embeddedwebapplicationcontext.java:206) ~[spring-boot-1.2.2.release.jar:1.2.2.release] ...
i located method servletcontext#addfilter exception keep saying such method not found.
can give me directions solve problem? in advance.
pom.xml
<?xml version="1com0" encoding="utf-8"?>
xsi:schemalocation="http://mavencomapachecomorg/pom/4com0com0 http://mavencomapachecomorg/maven-v4_0_0comxsd"> <modelversion>4com0com0</modelversion> <name>saki</name> <groupid>comcomsaki</groupid> <artifactid>saki-dot</artifactid> <version>0com1com0</version> <packaging>jar</packaging> <properties> <jdkcomversion>1com8</jdkcomversion> <projectcombuildcomsourceencoding>utf-8</projectcombuildcomsourceencoding> <sitecomencoding>utf-8</sitecomencoding> <slf4jcomversion>1com7com7</slf4jcomversion> <logbackcomversion>1com0com13</logbackcomversion> <stormcomversion>0com9com4</stormcomversion> <saki-streamcomversion>0com6com5</saki-streamcomversion> <siddhicomversion>3com0com0-snapshot</siddhicomversion> <jacococomincludecompackage>acroumsashi.*</jacococomincludecompackage> <jacococomincludecompath>**/saki/**/*</jacococomincludecompath> </properties> <parent> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>1com2com2comrelease</version> </parent> <repositories> <repository> <id>wso2-releases</id> <name>wso2 releases</name> <url>http://mavencomwso2comorg/nexus/content/repositories/releases</url> </repository> <repository> <id>wso2-snapshot</id> <name>wso2 snapshot</name> <url>http://mavencomwso2comorg/nexus/content/repositories/snapshots</url> </repository> </repositories> <dependencies> <!-- test --> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>orgcomhamcrest</groupid> <artifactid>hamcrest-library</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>orgcommockito</groupid> <artifactid>mockito-all</artifactid> <version>1com9com5</version> <scope>test</scope> </dependency> <dependency> <groupid>comcomh2database</groupid> <artifactid>h2</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>comcomcocomtestcomsaki</groupid> <artifactid>saki-stream</artifactid> <version>${saki-streamcomversion}</version> </dependency> <dependency> <groupid>comcomcocomtestcomsaki</groupid> <artifactid>dot-stream</artifactid> <version>0com1com0</version> <exclusions> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>jetty</artifactid> </exclusion> <exclusion> <groupid>javaxcomservlet</groupid> <artifactid>servlet-api</artifactid> </exclusion> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>jetty-util</artifactid> </exclusion> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>servlet-api</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>orgcomapachecomstorm</groupid> <artifactid>storm-core</artifactid> <version>${stormcomversion}</version> <!-- storm provided in runtime environment --> <exclusions> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>jetty</artifactid> </exclusion> <exclusion> <groupid>javaxcomservlet</groupid> <artifactid>servlet-api</artifactid> </exclusion> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>jetty-util</artifactid> </exclusion> <exclusion> <groupid>orgcommortbaycomjetty</groupid> <artifactid>servlet-api</artifactid> </exclusion> </exclusions> </dependency> <!-- log --> <dependency> <groupid>orgcomslf4j</groupid> <artifactid>slf4j-api</artifactid> </dependency> <dependency> <groupid>orgcomslf4j</groupid> <artifactid>log4j-over-slf4j</artifactid> </dependency> <dependency> <groupid>chcomqoscomlogback</groupid> <artifactid>logback-classic</artifactid> </dependency> <!-- spring boot --> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-data-rest</artifactid> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-web</artifactid> <exclusions> <exclusion> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-tomcat</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-jetty</artifactid> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-test</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-websocket</artifactid> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-security</artifactid> </dependency> <dependency> <groupid>orgcomthymeleafcomextras</groupid> <artifactid>thymeleaf-extras-springsecurity3</artifactid> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-jdbc</artifactid> </dependency> <dependency> <groupid>orgcomspringframework</groupid> <artifactid>spring-context-support</artifactid> </dependency> <dependency> <groupid>orgcomthymeleaf</groupid> <artifactid>thymeleaf-spring4</artifactid> </dependency> <dependency> <groupid>javaxcommail</groupid> <artifactid>mail</artifactid> <version>1com4</version> </dependency> <dependency> <groupid>orgcomapachecomcommons</groupid> <artifactid>commons-lang3</artifactid> <version>3com3com2</version> </dependency> <dependency> <groupid>comcomgooglecomguava</groupid> <artifactid>guava</artifactid> <version>17com0</version> </dependency> <!-- scalacompiler --> <dependency> <groupid>orgcomscala-lang</groupid> <artifactid>scala-compiler</artifactid> <version>2com10com4</version> </dependency> <dependency> <groupid>orgcomfreemarker</groupid> <artifactid>freemarker</artifactid> </dependency> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> <version>2com4</version> </dependency> <!-- jdbc driver --> <dependency> <groupid>commons-dbcp</groupid> <artifactid>commons-dbcp</artifactid> </dependency> <dependency> <groupid>orgcomxerial</groupid> <artifactid>sqlite-jdbc</artifactid> <version>3com8com7</version> </dependency> <dependency> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-starter-jta-bitronix</artifactid> </dependency> <dependency> <groupid>orgcomspringframework</groupid> <artifactid>spring-web</artifactid> </dependency> <dependency> <groupid>orgcomapachecomhttpcomponents</groupid> <artifactid>httpclient</artifactid> <version>4com4com1</version> </dependency> <dependency> <groupid>orgcomspringframework</groupid> <artifactid>spring-webmvc-portlet</artifactid> </dependency> </dependencies> <build> <finalname>${projectcomartifactid}-${projectcomversion}</finalname> <!-- ソースコードのルートパスの指定 --> <sourcedirectory>src/main/java</sourcedirectory> <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> <!-- テストコードのルートパスの指定 --> <testsourcedirectory>src/test/java</testsourcedirectory> <testresources> <testresource> <directory>src/test/resources</directory> </testresource> </testresources> <defaultgoal>validate</defaultgoal> <pluginmanagement> <plugins> <plugin> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>2com3com2</version> <configuration> <source>${jdkcomversion}</source> <target>${jdkcomversion}</target> <encoding>${projectcombuildcomsourceencoding}</encoding> <failonerror>true</failonerror> <fork>true</fork> <compilerargument>-nowarn</compilerargument> </configuration> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-site-plugin</artifactid> <version>3com3</version> <configuration> <locales>ja</locales> <inputencoding>${projectcombuildcomsourceencoding}</inputencoding> <outputencoding>${sitecomencoding}</outputencoding> </configuration> </plugin> <!--this plugin's configuration used store eclipse m2e settings onlycom has no influence on maven build itselfcom --> <plugin> <groupid>orgcomeclipsecomm2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1com0com0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <pluginexecution> <pluginexecutionfilter> <groupid>orgcomjacoco</groupid> <artifactid>jacoco-maven-plugin</artifactid> <versionrange>[0com5,) </versionrange> <goals> <goal>prepare-agent</goal> </goals> </pluginexecutionfilter> <action> <!-- m2e doesn't know jacoco, let's ignore or annoying error markers appear see http://wikicomeclipsecomorg/m2e_plugin_execution_not_covered --> <ignore></ignore> </action> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement> <plugins> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-source-plugin</artifactid> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <configuration> <source>${jdkcomversion}</source> <encoding>${projectcombuildcomsourceencoding}</encoding> <docencoding>${sitecomencoding}</docencoding> <charset>${sitecomencoding}</charset> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>orgcomjacoco</groupid> <artifactid>jacoco-maven-plugin</artifactid> <executions> <execution> <id>prepare-agent</id> <phase>test-compile</phase> <goals> <goal>prepare-agent</goal> </goals> <configuration> <propertyname>jacocoargs</propertyname> <includes> <include>*</include> </includes> </configuration> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <configuration> <argline>${jacocoargs}</argline> </configuration> </plugin> <plugin> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> <configuration> <mainclass>sakicomdotcomapplication</mainclass> </configuration> </plugin> <plugin> <groupid>orgcomspringframeworkcomboot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> <dependencies> <dependency> <groupid>orgcomspringframework</groupid> <artifactid>springloaded</artifactid> <version>1com2com1comrelease</version> </dependency> </dependencies> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-assembly-plugin</artifactid> <version>2com2-beta-5</version> <configuration> <finalname>${projectcomname}</finalname> <descriptors> <descriptor>src/main/assembly/distributioncomxml</descriptor> </descriptors> </configuration> <executions> <execution> <id>assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-project-info-reports-plugin</artifactid> <version>2com6</version> <reportsets> <reportset> <reports> <report>index</report> <report>summary</report> <report>project-team</report> <report>plugin-management</report> <report>plugins</report> <!-- report>dependencies</report --> </reports> </reportset> </reportsets> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-jxr-plugin</artifactid> <version>2com3</version> <configuration> <inputencoding> ${projectcombuildcomsourceencoding} </inputencoding> <outputencoding>${sitecomencoding}</outputencoding> </configuration> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <version>2com9</version> <configuration> <source>${jdkcomversion}</source> <encoding>${projectcombuildcomsourceencoding}</encoding> <docencoding>${sitecomencoding}</docencoding> <charset>${sitecomencoding}</charset> </configuration> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-checkstyle-plugin</artifactid> <version>2com12</version> <configuration> <encoding>${projectcombuildcomsourceencoding}</encoding> <configlocation>${projectcombasedir}/dev/checkstylecomxml</configlocation> <!-- <includes>**/*.java</includes> <excludes>**/stub/**/*.java, **/test*.java</excludes> --> </configuration> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-pmd-plugin</artifactid> <version>3com1</version> <configuration> <sourceencoding>${projectcombuildcomsourceencoding}</sourceencoding> <targetjdk>${jdkcomversion}</targetjdk> <!-- <includes> <include>**/*foocomjava</include> </includes> <excludes> <exclude>**/barcomjava</exclude> </excludes> <excluderoots> <excluderoot>src/main/java/stubs</excluderoot> </excluderoots> --> </configuration> <reportsets> <reportset> <reports> <!-- report>pmd</report --> <report>cpd</report> </reports> </reportset> </reportsets> </plugin> <plugin> <groupid>orgcomcodehauscommojo</groupid> <artifactid>findbugs-maven-plugin</artifactid> <version>3com0com0</version> <configuration> <!-- includefilterfile>${basedir}/findbugs-includecomxml</includefilterfile --> <excludefilterfile>${basedir}/dev/findbugs-excludecomxml</excludefilterfile> <xmloutput>true</xmloutput> <failonerror>false</failonerror> <!-- high|normal|low|exp|ignore --> <threshold>normal</threshold> <!-- min|default|max --> <effort>default</effort> <sourceencoding>${projectcombuildcomsourceencoding}</sourceencoding> </configuration> </plugin> <plugin> <groupid>orgcomapachecommavencomplugins</groupid> <artifactid>maven-surefire-report-plugin</artifactid> <version>2com14com1</version> <reportsets> <reportset> <reports> <report>report-only</report> </reports> </reportset> </reportsets> </plugin> <plugin> <groupid>orgcomjacoco</groupid> <artifactid>jacoco-maven-plugin</artifactid> <configuration> <includes> <include>${jacococomincludecompath}</include> </includes> </configuration> </plugin> </plugins> </reporting>
Comments
Post a Comment