问题描述
我能够通过Eclipse运行Gwt应用程序,但是一旦我创建了war文件并将其部署到tomcat服务器中就无法访问gwt应用程序。
我已经在eclipse中创建了GWT项目,现在我能够通过IE11和Chrome(连接到服务器并检索数据)访问gwt应用程序。
我已经使用ANT build创建了战争文件,并且在tomcat9.0.14中部署了war之后,当我尝试访问该应用程序时,我在tomcat日志中遇到了以下错误。
网址:http://服务器名称:8080 / migrationService / Migration.html
========================== 无法退出源服务器。 404 HTTP状态404 –未找到h1 {font-family:Tahoma,Arial,sans-serif; color:white; background-color:#525D76; font-size:22px;} h2 {font-family:Tahoma ,Arial,sans-serif;颜色:白色;背景颜色:#525D76;字体大小:16px;} h3 {font-family:Tahoma,Arial,sans-serif;颜色:白色;背景颜色:#525D76; font-size:14px;} body {font-family:Tahoma,Arial,sans-serif; color:black; background-color:white;} b {font-family:Tahoma,Arial,sans-serif; color:white; background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif; background:white; color:black; font-size:12px;} a {color:black;} a.name {color:黑色;} .line {height:1px; background-color:#525D76; border:none;}
HTTP状态404 –找不到
类型状态报告
消息 / XXXXMigration / XXXXXmigration / migrateService
描述原始服务器未找到目标的当前表示形式资源或不愿意透露存在。
Apache Tomcat / 9.0.14
你能帮我吗
解决方法
服务器报告404 HTTP Status Code,表示“找不到页面”。换句话说,您配置了错误的服务器。可能是该服务未安装,未映射到/migrationService
或该服务无法找到或服务Migration.html
页。
这不是GWT,Chrome或IE11问题。这是服务器配置问题。