繁体   English   中英

无法在Apache Tomcat服务器上启动Spring Boot应用程序(WAR文件)

[英]Spring Boot Application(WAR file) could not be started On Apache Tomcat Server

当我尝试从Tomcat Web应用程序管理器启动应用程序时,它显示此错误...

FAIL - Application at context path [/surveyreporting] could not be started
FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/surveyreporting]]]

当我使用Mavin制作战争档案时,就会发生...。

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building springboottest 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- lombok-maven-plugin:1.16.8.0:delombok (default) @ surveyreporting ---
[WARNING] Skipping Delombok; no source to process.
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ surveyreporting ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1393 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ surveyreporting ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 143 source files to /var/www/html/new/surveyreporting/target/classes
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[18,47] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[348,9] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[350,23] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[WARNING] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/HomeController.java:[351,18] com.sun.org.apache.xerces.internal.util.URI is internal proprietary API and may be removed in a future release
[INFO] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/Data/Download/PPRDownloadRequest.java: Some input files use unchecked or unsafe operations.
[INFO] /var/www/html/new/surveyreporting/src/main/java/com/piccibhai/Controller/Data/Download/PPRDownloadRequest.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ surveyreporting ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/new/surveyreporting/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ surveyreporting ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ surveyreporting ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-war-plugin:3.1.0:war (default-war) @ surveyreporting ---
[INFO] Packaging webapp
[INFO] Assembling webapp [surveyreporting] in [/var/www/html/new/surveyreporting/target/surveyreporting-1.0]
[INFO] Processing war project
[INFO] Webapp assembled in [2378 msecs]
[INFO] Building war: /var/www/html/new/surveyreporting/target/surveyreporting-1.0.war
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) @ surveyreporting ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ surveyreporting ---
[INFO] Installing /var/www/html/new/surveyreporting/target/surveyreporting-1.0.war to /home/tapumandal/.m2/repository/com/piccibhai/surveyreporting/1.0/surveyreporting-1.0.war
[INFO] Installing /var/www/html/new/surveyreporting/pom.xml to /home/tapumandal/.m2/repository/com/piccibhai/surveyreporting/1.0/surveyreporting-1.0.pom
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ surveyreporting ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.825 s
[INFO] Finished at: 2019-03-05T14:27:44+06:00
[INFO] Final Memory: 51M/757M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project surveyreporting: Failed to deploy artifacts/metadata: Cannot access scp://localhost/surveyreporting with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access scp://localhost/surveyreporting using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: scp
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1

顺便说一句,该应用程序可以在我的计算机上运行(本地)。

服务器信息Tomcat版本:Apache Tomcat / 8.5.34 JVM版本:1.8.0_191-b12

我的电脑(本地)java版本“ 1.8.0_181”

错误信息

[错误]在项目Surveyreporting上无法执行目标org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy(默认部署):无法部署工件/元数据: 无法访问scp:// localhost /使用可用的连接器工厂使用默认类型的Surveyreporting :BasicRepositoryConnectorFactory:无法使用已注册的传输器工厂访问scp:// localhost / surveyreporting:WagonTransporterFactory:java.util.NoSuchElementException

因此,您需要更新scp网址

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM