java - Can't deply war on Tomcat -
i've spring messaging app i've developed inside of eclipse using local instance of tomcat 8. works fine inside eclipse, when create war , deploy inside webapps
directory of tomcat doesn't work. these steps i've done till now. i'm using gradle build system, on windows machine. ran gradlew build
. generated war
file inside root/build/lib
went bin directory of local tomcat , ran start.bat
set tomcat running, copied war webapps
directory of tomcat. 404
.
this catalina.log
07-sep-2016 10:32:21.857 info [main] org.apache.catalina.startup.versionloggerlistener.log server version: apache tomcat/8.0.36 07-sep-2016 10:32:21.858 info [main] org.apache.catalina.startup.versionloggerlistener.log server built: jun 9 2016 13:55:50 utc 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log server number: 8.0.36.0 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log os name: windows 8.1 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log os version: 6.3 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log architecture: amd64 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log java home: c:\program files\java\jdk1.8.0_91\jre 07-sep-2016 10:32:21.859 info [main] org.apache.catalina.startup.versionloggerlistener.log jvm version: 1.8.0_91-b14 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log jvm vendor: oracle corporation 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log catalina_base: c:\tomcat\v8\apache-tomcat-8.0.36 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log catalina_home: c:\tomcat\v8\apache-tomcat-8.0.36 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djdk.tls.ephemeraldhkeysize=2048 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.util.logging.config.file=c:\tomcat\v8\apache-tomcat-8.0.36\conf\logging.properties 07-sep-2016 10:32:21.860 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.util.logging.manager=org.apache.juli.classloaderlogmanager 07-sep-2016 10:32:21.861 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.endorsed.dirs=c:\tomcat\v8\apache-tomcat-8.0.36\endorsed 07-sep-2016 10:32:21.861 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcatalina.base=c:\tomcat\v8\apache-tomcat-8.0.36 07-sep-2016 10:32:21.861 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -dcatalina.home=c:\tomcat\v8\apache-tomcat-8.0.36 07-sep-2016 10:32:21.862 info [main] org.apache.catalina.startup.versionloggerlistener.log command line argument: -djava.io.tmpdir=c:\tomcat\v8\apache-tomcat-8.0.36\temp 07-sep-2016 10:32:21.862 info [main] org.apache.catalina.core.aprlifecyclelistener.lifecycleevent apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: c:\program files\java\jdk1.8.0_91\bin;c:\windows\sun\java\bin;c:\windows\system32;c:\windows;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\programdata\oracle\java\javapath;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\git\cmd;c:\program files\microsoft sql server\110\tools\binn\;c:\program files (x86)\accurev\bin;c:\common;c:\program files (x86)\windows kits\8.1\windows performance toolkit\;%maven_home/bin%;c:\program files\apache\apache-maven-3.3.9\bin;c:\dev\gradle-2.13\bin;c:\program files\nodejs\;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\intel\intel(r) management engine components\ipt;c:\users\sg047329\appdata\roaming\npm;. 07-sep-2016 10:32:22.029 info [main] org.apache.coyote.abstractprotocol.init initializing protocolhandler ["http-nio-8080"] 07-sep-2016 10:32:22.094 info [main] org.apache.tomcat.util.net.nioselectorpool.getsharedselector using shared selector servlet write/read 07-sep-2016 10:32:22.096 info [main] org.apache.coyote.abstractprotocol.init initializing protocolhandler ["ajp-nio-8009"] 07-sep-2016 10:32:22.104 info [main] org.apache.tomcat.util.net.nioselectorpool.getsharedselector using shared selector servlet write/read 07-sep-2016 10:32:22.105 info [main] org.apache.catalina.startup.catalina.load initialization processed in 524 ms 07-sep-2016 10:32:22.130 info [main] org.apache.catalina.core.standardservice.startinternal starting service catalina 07-sep-2016 10:32:22.130 info [main] org.apache.catalina.core.standardengine.startinternal starting servlet engine: apache tomcat/8.0.36 07-sep-2016 10:32:22.223 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deploying web application archive c:\tomcat\v8\apache-tomcat-8.0.36\webapps\opl-ws-webui-0.1.0.war 07-sep-2016 10:32:29.090 info [localhost-startstop-1] org.apache.jasper.servlet.tldscanner.scanjars @ least 1 jar scanned tlds yet contained no tlds. enable debug logging logger complete list of jars scanned no tlds found in them. skipping unneeded jars during scanning can improve startup time , jsp compilation time. 07-sep-2016 10:32:33.793 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deployment of web application archive c:\tomcat\v8\apache-tomcat-8.0.36\webapps\opl-ws-webui-0.1.0.war has finished in 11,570 ms 07-sep-2016 10:32:33.795 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\docs 07-sep-2016 10:32:33.826 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\docs has finished in 30 ms 07-sep-2016 10:32:33.826 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\examples 07-sep-2016 10:32:34.734 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\examples has finished in 908 ms 07-sep-2016 10:32:34.735 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\host-manager 07-sep-2016 10:32:34.775 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\host-manager has finished in 40 ms 07-sep-2016 10:32:34.776 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\manager 07-sep-2016 10:32:34.811 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\manager has finished in 35 ms 07-sep-2016 10:32:34.811 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\root 07-sep-2016 10:32:34.835 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory c:\tomcat\v8\apache-tomcat-8.0.36\webapps\root has finished in 24 ms 07-sep-2016 10:32:34.839 info [main] org.apache.coyote.abstractprotocol.start starting protocolhandler ["http-nio-8080"] 07-sep-2016 10:32:34.856 info [main] org.apache.coyote.abstractprotocol.start starting protocolhandler ["ajp-nio-8009"] 07-sep-2016 10:32:34.871 info [main] org.apache.catalina.startup.catalina.start server startup in 12765 ms
i've few questions here,
- how deploy war , run inside tomcat.
- when run inside eclipse, don't see war being created inside
build/lib
, how eclipse using tomcat run webapp anyway?
1.- way yo start clean tomcat instance is:
- stop tomcat server
- clean logs, temp , work folders
- copy .war file webapps folder
start tomcat
if process not work can see files generated in tomcat logs files see why not starting
2.- eclipse other ide's idea use directly webapp, build folder of application, not .war file. war file contains inside webapp folder unzipped when start tomcat.
Comments
Post a Comment