it worked. i haven't restarted the tomcat. ok. now is there any plugin/goal which will redeploy the existing war file and redeploy ?
i am using tomcat7 plugin and there is no any redeploy goal please suggest regards On Wed, Oct 23, 2013 at 5:42 PM, Konstantin Kolinko <knst.koli...@gmail.com>wrote: > 2013/10/23 Irfan Sayed <irfu.sa...@gmail.com>: > > hi, > > > > i am facing issues while deploying war file using tomcat7 plugin. tomcat > as > > application is running fine . i can manually deploy files but not through > > maven plugin > > > > following are my files : > > > > *.m2 (settings.xml)* > > > > <server> > > <id>TomcatServer</id> > > <username>admin</username> > > <password>password</password> > > </server> > > > > *pom.xml contents:* > > > > <build> > > <plugins> > > <plugin> > > <groupId>org.apache.tomcat.maven</groupId> > > <artifactId>tomcat7-maven-plugin</artifactId> > > <version>2.1</version> > > <configuration> > > <url>http://localhost:8080/manager/text</url> > > <server>TomcatServer</server> > > <path>/${project.build.finalName}</path> > > </configuration> > > </plugin> > > </plugins> > > <finalName>di</finalName> > > </build> > > > > > > *tomcat-users.xml* > > * > > * > > <?xml version='1.0' encoding='cp1252'?> > > > > <tomcat-users> > > > > <role rolename="manager-script"/> > > <user name="admin" password="password" roles="manager-script" /> > > <user name="tomcat" password="secret" > > roles="admin-script,admin-gui,standard,manager-gui"/> > > </tomcat-users> > > > > i have gone lots of Google search and implemented most of the suggestion, > > still not working > > please suggest . i am stuck > > > > > <url>http://localhost:8080/manager/text</url> > > 1. Is your server running at localhost? > > 2. What is in Tomcat's access log? > (Does Tomcat log that Maven tries to access it?) > > 3. How it fails? What is reported by Maven? > > 4. Have you restarted the server after editing tomcat-users.xml ? > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >