Проблема развертывания Tomcat с intelliJ на windows - PullRequest
0 голосов
/ 17 января 2020

Я пытаюсь развернуть веб-страницу с помощью сервлетов с IntelliJ IDE и сервером Tomcat. Изначально у меня было много предупреждений:

Problem with directory [C:\Users\HP\.Smart Tomcat\Drink Brand\Drink Brand\lib], exists: [false], isDirectory: [false], canRead: [false]

Так что я просто создал новую папку "lib" в каталоге.

Теперь я получаю следующее:

Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/7.0.99
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Dec 11 2019 13:15:59 UTC
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 7.0.99.0
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jdk-12.0.1
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           12.0.1+12
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\Users\HP\.SmartTomcat\DrinkBrand\DrinkBrand
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\Users\HP\.SmartTomcat\DrinkBrand\DrinkBrand
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jan 17, 2020 10:01:50 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk-12.0.1\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PHP\v7.3;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;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:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Java\jdk-12.0.1\bin;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\HP\AppData\Local\Microsoft\W;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;;C:\Users\HP\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\HP\AppData\Roaming\npm;.]
Jan 17, 2020 10:01:50 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 17, 2020 10:01:50 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 17, 2020 10:01:50 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 893 ms
Jan 17, 2020 10:01:50 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 17, 2020 10:01:50 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.99
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase$1 (file:/C:/xampp/tomcat/lib/catalina.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan 17, 2020 10:01:51 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 17, 2020 10:01:51 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [308] milliseconds.
Jan 17, 2020 10:01:51 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 17, 2020 10:01:51 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 17, 2020 10:01:51 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1096 ms
http://localhost:8080/DrinkBrand

Когда я нажимаю на ссылку в последней строке, я получаю следующее: HTTP Status 404 - Not Found

Тип отчета о состоянии

Message / DrinkBrand /

Описание Исходный сервер не нашел текущее представление для целевого ресурса или не хочет раскрывать, что он существует.

Apache Tomcat / 7.0.99

на веб-странице.

Пожалуйста, помогите.

...