在同一服务器上运行nodeJS-app和Tomcat-App

时间:2018-12-03 09:02:02

标签: node.js tomcat ubuntu-16.04

我这里有一个奇怪的星座,请不要问这是为什么,可悲的是我不得不忍受它:/

因此有一个运行网站的Tomcat服务器(您可以将其想象为一种包装器)..以特定用户身份登录时,主机重定向到localhost:3000(这是我的nodeJs-app)。

在Windows机器上进行测试时,一切都很好。但是在服务器上(ubuntu 16.4),我收到此错误:

undefined:1 <html><head><title>Apache Tomcat/7.0.68 (Ubuntu) - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#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 : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /wattlie/rest/synergy/objecttypes</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/wattlie/rest/synergy/objecttypes</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.68 (Ubu

这是当NodsJS尝试向运行在Tomcat上的REST-api发出http请求时出现的。

0 个答案:

没有答案
相关问题