What's the difference between "mvn spring-boot:run" and "Add to Tomcat server" in Eclipse? -
i downloaded sample of spring-boot cxf web services here. able run sucessfully in eclipse using: right click on project> run as>maven build...> , setting goals: spring-boot:run
the server starts, logged console.
next tried deploy on tomcat server in eclipse (see screenshot.png) when server started spring not started. no spring info logged console
according line log bellow knows spring should start. why won't start properly?
info: spring webapplicationinitializers detected on classpath: [org.springframework.boot.autoconfigure.jersey.jerseyautoconfiguration@4ed48c2]
the whole log:
led 07, 2016 3:39:18 odp. org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:spring-boot-sample-ws-cxf' did not find matching property. led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: server version: apache tomcat/8.0.28 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: server built: oct 7 2015 18:25:21 utc led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: server number: 8.0.28.0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: os name: windows 10 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: os version: 10.0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: architecture: amd64 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: java home: c:\program files\java\jdk1.8.0_60\jre led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: jvm version: 1.8.0_60-b27 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: jvm vendor: oracle corporation led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: catalina_base: c:\users\cerny\javaprojects\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: catalina_home: c:\program files\tomcat 8.0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dcatalina.base=c:\users\cerny\javaprojects\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dcatalina.home=c:\program files\tomcat 8.0 led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dwtp.deploy=c:\users\cerny\javaprojects\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: command line argument: -djava.endorsed.dirs=c:\program files\tomcat 8.0\endorsed led 07, 2016 3:39:18 odp. org.apache.catalina.startup.versionloggerlistener log info: command line argument: -dfile.encoding=cp1250 led 07, 2016 3:39:18 odp. org.apache.catalina.core.aprlifecyclelistener lifecycleevent info: 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_60\bin;c:\windows\sun\java\bin;c:\windows\system32;c:\windows;c:/program files/java/jre1.8.0_65/bin/server;c:/program files/java/jre1.8.0_65/bin;c:/program files/java/jre1.8.0_65/lib/amd64;c:\program files\apache-maven-3.3.3\bin;c:\programdata\oracle\java\javapath;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon\;c:\program files (x86)\skype\phone\;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon\;c:\program files\eclipse;;. led 07, 2016 3:39:18 odp. org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["http-nio-8080"] led 07, 2016 3:39:18 odp. org.apache.tomcat.util.net.nioselectorpool getsharedselector info: using shared selector servlet write/read led 07, 2016 3:39:18 odp. org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["ajp-nio-8009"] led 07, 2016 3:39:18 odp. org.apache.tomcat.util.net.nioselectorpool getsharedselector info: using shared selector servlet write/read led 07, 2016 3:39:18 odp. org.apache.catalina.startup.catalina load info: initialization processed in 1036 ms led 07, 2016 3:39:18 odp. org.apache.catalina.core.standardservice startinternal info: starting service catalina led 07, 2016 3:39:18 odp. org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/8.0.28 led 07, 2016 3:39:25 odp. org.apache.jasper.servlet.tldscanner scanjars info: @ 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. led 07, 2016 3:39:25 odp. org.apache.catalina.core.applicationcontext log info: spring webapplicationinitializers detected on classpath: [org.springframework.boot.autoconfigure.jersey.jerseyautoconfiguration@4ed48c2] led 07, 2016 3:39:25 odp. org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-nio-8080"] led 07, 2016 3:39:25 odp. org.apache.coyote.abstractprotocol start info: starting protocolhandler ["ajp-nio-8009"] led 07, 2016 3:39:25 odp. org.apache.catalina.startup.catalina start info: server startup in 7300 ms
jar generated out of spring boot project have tomcat server in it. can start server using following command
java -jar xxx.jar
Comments
Post a Comment