java - automatic deployment of a web project using eclipse maven and tomcat -
i followed simple steps, achieving this. integrated tomcat , maven eclipse. 1. open eclipse. new->other -> maven project -> webapp 2. added plugins tomcat. 3. right click pom file , run maven clean 4. run maven generate sources 5. run maven build. 6. passed command tomcat:run getting following error,
[error] failed execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run (default-cli) on project simplehelloworld: not start tomcat: protocol handler initialization failed: java.net.bindexception: address in use: jvm_bind <null>:8080 -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception
could not start tomcat: protocol handler initialization failed: java.net.bindexception: address in use: jvm_bind <null>:8080
above error means there service running on port 8080. there tomcat server running already?
if service running on 8080 close shut or need change connector configuration in server.xml below :
<connector port="9090" protocol="ajp/1.3" redirectport="8443"/>
you can find if port in use or not, refer this link.
Comments
Post a Comment