我将Tomcat8.5与Eclipse集成在一起,但当我启动服务器并转到http://localhost:8080或http://localhost:8080/psite(配置了带有index.html的Eclipse项目)时,每次都会出现404错误。
-
Feb 16, 2017 3:41:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.5.11
Feb 16, 2017 3:41:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jan 10 2017 21:02:52 UTC
Feb 16, 2017 3:41:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.11.0
Feb 16, 2017 3:41:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Feb 16, 2017 3:41:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_121\jre
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_121-b13
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Nadav\Desktop\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.5
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Nadav\Desktop\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.5
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Nadav\Desktop\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.5\endorsed
Feb 16, 2017 3:41:31 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Feb 16, 2017 3:41:31 PM 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\jdk1.8.0_121\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;C:\Users\Nadav\eclipse\java-neon\eclipse;;.
Feb 16, 2017 3:41:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Feb 16, 2017 3:41:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Feb 16, 2017 3:41:32 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Feb 16, 2017 3:41:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Feb 16, 2017 3:41:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1436 ms
Feb 16, 2017 3:41:32 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 16, 2017 3:41:32 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.11
Feb 16, 2017 3:41:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-nio-8080]
Feb 16, 2017 3:41:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-nio-8009]
Feb 16, 2017 3:41:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 246 ms
从workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\logs“
127.0.0.1 - - [16/Feb/2017:15:37:39 +0200] "GET / HTTP/1.1" 404 988
0:0:0:0:0:0:0:1 - - [16/Feb/2017:15:37:43 +0200] "GET / HTTP/1.1" 404 988
127.0.0.1 - - [16/Feb/2017:15:40:57 +0200] "GET / HTTP/1.1" 404 988
0:0:0:0:0:0:0:1 - - [16/Feb/2017:15:40:59 +0200] "GET / HTTP/1.1" 404 988
127.0.0.1 - - [16/Feb/2017:15:41:32 +0200] "GET / HTTP/1.1" 404 988
0:0:0:0:0:0:0:1 - - [16/Feb/2017:15:41:34 +0200] "GET / HTTP/1.1" 404 988
127.0.0.1 - - [16/Feb/2017:16:06:00 +0200] "GET / HTTP/1.1" 404 988
0:0:0:0:0:0:0:1 - - [16/Feb/2017:16:06:06 +0200] "GET /manager HTTP/1.1" 404 1002
从eclipse启动tomcat时,它会更改catalina_base:
-Dcatalina.base=C:\Users\Nadav\Desktop\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
这样,您就永远不会有manager应用程序在Eclipse中运行:它完全是空的。默认情况下部署了一个空根应用程序。现在,我怀疑您还没有在Servers视图中将应用程序添加到服务器(右键单击您的tomat并选择“添加或删除”)。控制台输出应该提到在这种情况下部署了psite。您还可以转到catalina base文件夹,检查您的应用程序的wtpwebapps文件夹。
我们在windows 10机器上从Tomcat 9.0.29升级到9.0.44,并收到503条错误消息。Tomcat托管Java应用程序。对Tomcat服务器的请求作为工作线程从单独的Apache代理服务器通过端口8010发送。我可以看到Tomcat服务正在运行,Java应用程序正在启动并运行。这可以从Tomcat服务器上的//localhost:8080/{JavaApp}进行验证。 但是,来自
问题内容: 我有一台运行Java servlet的Tomcat服务器。我正在尝试使一个servlet返回给定的加密ID的存储文件。 编号:100 加密的ID:+ e4 / E5cR / aM = 网址编码的ID:%2Be4%2FE5cR%2FaM%3D 结果URL:http:// localhost / file / demo /%2Be4%2FE5cR%2FaM%3D 当我尝试访问该链接时,我什
我有一个运行Java servlets的Tomcat服务器。我正在尝试制作一个返回存储文件的 servlet,给定它们的加密 ID。 编号: 100 加密ID:e4/E5cR/aM= URL编码的ID: +e4/E5cR/aM= 生成的网址:http://localhost/file/demo/+e4/E5cR/aM= 当我试图访问那个链接时,我甚至没有进入我的servlet的代码——服务器返回这
问题内容: 这是简单的代码,我没有得到设置位图的结果,而是得到了null。谁能告诉我我在哪里犯错了? 更新 好的,所以我无法像我想的那样将文本转换为图像。这样呢 这会创建位图吗? 问题答案: 从文档中: 返回 解码的位图;如果无法解码图像,则 返回 null。 字符串“ test”中涉及的字节不是有效的位图,对吗? 如果将文本“ test”保存在名为or 等的文件中,并试图在Windows中打开它
问题内容: 为什么要用Python返回? 我如何获得改组后的值而不是? 问题答案: 更改列表 到位 。 在原位更改结构的Python API方法通常返回,而不是修改后的数据结构。 如果要基于现有列表创建 新的 随机混排列表,并按顺序保留现有列表,则可以使用输入的完整长度: 您还可以将with用于排序键: 但这会调用排序(O(NlogN)操作),而采样到输入长度仅需要O(N)操作(与所使用的过程相同
问题内容: 我正在使用a 检查我的哈希密码。我有PHP 5.5: 我上车了。我已经检查了posts的值和mysql user_password_hash返回。 我不知道为什么它返回假 有任何想法吗? 问题答案: 手册中的列长度可能是问题所在: 建议将结果存储在可扩展超过60个字符的数据库列中(255个字符是一个不错的选择)。 链接