testdriven / psi-probe

Advanced manager and monitor for Apache Tomcat, forked from Lambda Probe
8 stars 1 forks source link

Deploying a web java application (.war) #385

Open padcom opened 9 years ago

padcom commented 9 years ago

From sbo...@gmail.com on November 29, 2013 13:07:27

What steps will reproduce the problem? 1.Select a deployed application 2.Stop this application and Undeploy 3.Select the Deployment tab and then select a war file from file window of Windows 4.Click Deploy button What is the expected result? Upload, unzip and start the application on server What happens instead? The error below What version of Probe are you using? Version 2.3.3 What environment (browser version, Tomcat version, JVM version, server OS)? Chrome - Tomcat - V6.0.20 JVM - 1.6.0_15-b03 Please provide any additional information below. java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.moveFile(Ljava/io/File;Ljava/io/File;)V at com.googlecode.psiprobe.controllers.deploy.UploadWarController.handleRequestInternal(UploadWarController.java:116) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at com.googlecode.psiprobe.ProbeServlet.doDispatch(ProbeServlet.java:54) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at com.googlecode.psiprobe.Tomcat60AgentValve.invoke(Tomcat60AgentValve.java:30) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619)

Original issue: http://code.google.com/p/psi-probe/issues/detail?id=385

padcom commented 9 years ago

From MALfunct...@gmail.com on December 12, 2013 08:58:26

Do you have a version of commons-io in your Tomcat lib?

Status: NeedInfo

padcom commented 9 years ago

From sbo...@gmail.com on December 12, 2013 09:28:21

No, there was not commons-io in our Tomcat lib. We've downloaded and copied commons-io-2.4.jar to /usr/local/tomcat/lib, and then, reinstall that probe version again ... Tha same error occurs.

padcom commented 9 years ago

From MALfunct...@gmail.com on December 12, 2013 12:16:14

commons-io 2.4 does have that method, so I'm not sure why it's not working for you. We're not getting a NoClassDefFoundError, so it's clearly finding the FileUtils class, just not the moveFile method.

My initial thought was that you had an older version on the classpath somewhere. Can you double-check your classpath? That's the only explanation I can think of for this behavior.