我在Eclipse上构建了一个Dynamic Web Project并将其转换为Maven项目。然后将它部署在Eclipse Kepler中的Tomcat7服务器上。它工作得很好。Maven Web项目在eclipse上正常工作,但是在尝试通过startup.bat运行时出现404错误
但它给了我404错误,当我复制战争文件,并从的startup.bat
日志似乎并没有在任何特定方向指向运行服务器。我已经发布了下面的web.xml和pom.xml的文件,以供参考:
的pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
TwitterSentimentAnalysis
TwitterSentimentAnalysis
0.0.1-SNAPSHOT
war
src
maven-compiler-plugin
3.1
1.8
1.8
maven-war-plugin
2.3
WebContent
false
C:\apache-tomcat-7.0.42\webapps
asm
asm
3.3.1
org.json
json
20140107
com.sun.jersey
jersey-server
1.8
org.codehaus.jackson
jackson-mapper-asl
1.9.13
com.googlecode.json-simple
json-simple
1.1.1
edu.stanford.nlp
stanford-corenlp
3.6.0
edu.stanford.nlp
stanford-corenlp
3.5.0
models
javax.servlet
servlet-api
2.5
的web.xml
[![enter image description here][2]][2]<?xml version="1.0" encoding="UTF-8"?>
TwitterSentimentAnalysis
index.html
index.htm
default.html
default.htm
default.jsp
jersey-servlet
com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.config.property.packages
com.shan.twitterrest
1
twit-servlet
com.shan.twitterrest.TwitterAnalysisRest
1
jersey-servlet
/rest/*