Gone little dipper in the problem When tomcat plugin started to deploy the war file. I choose to see if file is realy being uploaded to at server of not and here is my out for webapp folder.
I was tracking the change process by excuting the same command again an again. ----- [ad...@192 apache-tomcat-6.0.20]$ ls -la webapps/ total 1756 drwxr-xr-x 7 admin admin 4096 Dec 26 00:41 . drwxrwxr-x 9 admin admin 4096 Oct 12 12:31 .. drwxr-xr-x 10 admin admin 4096 Oct 12 12:31 docs drwxr-xr-x 5 admin admin 4096 Oct 12 12:31 examples drwxr-xr-x 5 admin admin 4096 Oct 12 12:31 host-manager drwxr-xr-x 5 admin admin 4096 Dec 26 00:27 manager -rw-r--r-- 1 root root 1734882 Dec 26 00:43 works.war drwxr-xr-x 3 admin admin 4096 Oct 12 12:31 ROOT ----- And after that i got to see this output. [ad...@192 apache-tomcat-6.0.20]$ ls -la webapps/ total 56 drwxr-xr-x 7 admin admin 4096 Dec 26 00:43 . drwxrwxr-x 9 admin admin 4096 Oct 12 12:31 .. drwxr-xr-x 10 admin admin 4096 Oct 12 12:31 docs drwxr-xr-x 5 admin admin 4096 Oct 12 12:31 examples drwxr-xr-x 5 admin admin 4096 Oct 12 12:31 host-manager drwxr-xr-x 5 admin admin 4096 Dec 26 00:27 manager drwxr-xr-x 3 admin admin 4096 Oct 12 12:31 ROOT [ad...@192 apache-tomcat-6.0.20]$ ---- My works.war folder is completely gone. It means sometime back it was trying to be coppied here but failed. So, I think it must be a issue with the network connection lost in between. What should i do. ? My war is 127Mb big. Regards, Vijay Shanker Dubey On Sat, Dec 26, 2009 at 12:46 AM, vijay shanker <[email protected]>wrote: > Hi friends; > > > I am very screwed here. > > > I am using tomcat-maven-plugin to deploy my work on a remote server.. My > remote server is running on centos box. Now here goes my situation log > whenever i rum deploy command. > I have tried running this by iptables disables. but that also does not > change the situation. > > > Comand > ---- > D:\VijayAtWork\TeamProjects\trunk\works>mvn -e > org.codehaus.mojo:tomcat-maven-plugin:1.0-beta-1:deploy > --- > > > logs > > > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building mobivite > [INFO] task-segment: > [org.codehaus.mojo:tomcat-maven-plugin:1.0-beta-1:deploy] > [INFO] > ------------------------------------------------------------------------ > [INFO] Preparing tomcat:deploy > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [WARNING] While downloading aspectj:aspectjweaver:1.5.4 > This artifact has been relocated to org.aspectj:aspectjweaver:1.5.4. > > > > > [WARNING] While downloading javax.xml.soap:saaj-impl:1.3 > This artifact has been relocated to > com.sun.xml.messaging.saaj:saaj-impl:1.3. > > > > > Downloading: > http://192.168.1.200:8014/artifactory/repo/org/springframework/spring-hibernate3/2.0-rc2/spring-hibernate3-2.0-rc2.pom > Downloading: > http://192.168.1.200:8014/artifactory/repo/woodstox/wstx-asl/3.2.7/wstx-asl-3.2.7.pom > [INFO] [compiler:compile] > [INFO] Compiling 1 source file to > D:\VijayAtWork\TeamProjects\trunk\works\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] Surefire report directory: > D:\VijayAtWork\TeamProjects\trunk\works\target\surefire-reports > > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > There are no tests to run. > > > Results : > > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > > [INFO] [war:war] > [INFO] Packaging webapp > [INFO] Assembling webapp[works] in > [D:\VijayAtWork\TeamProjects\trunk\works\target\works] > [INFO] Processing war project > [INFO] Webapp assembled in[4707 msecs] > [INFO] Building war: > D:\VijayAtWork\TeamProjects\trunk\works\target\works.war > [INFO] [tomcat:deploy] > [INFO] Deploying war to http://servername.net:8080/works > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Cannot invoke Tomcat manager: FAIL - Encountered exception > java.net.SocketTimeoutException: Read timed out > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke > Tomcat manager: FAIL - Encountered exception > java.net.SocketTimeoutException: Read timed out > > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot invoke > Tomcat manager: FAIL - Encountered exception > java.net.SocketTimeoutException: Read timed out > > > at > org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:145) > at > org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:63) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > ... 16 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2 minutes 40 seconds > [INFO] Finished at: Sat Dec 26 00:04:03 IST 2009 > [INFO] Final Memory: 21M/254M > [INFO] > ------------------------------------------------------------------------ > > > D:\VijayAtWork\TeamProjects\works\trunk\works> > > > > > Will you please suggest where should i look for solution. > > > > > My POM.xml entry is given below > > > > ----- > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>tomcat-maven-plugin</artifactId> > <version>1.0-beta-1</version> > <configuration> > <url>http://servername.net:8080/manager</url> > <username>admin</username> > <password>ad...@vijay</password> > <path>/works</path> > </configuration> > </plugin> > ----- > > > Regards, > Vijay Shanker Dubey >
