REST not working on Windows Server 2016 - windows

I have a simple WAR application offering a REST Service. I use RESTClient on the same Version of Firefox running on the same machine as the webservice.
This works fine locally on a Tomcat 9.0.10 on Windows 10 Enterprise.
When I start the same application on a Windows Server 2016, which has exactly the same Tomcat running, I get a 404.
Locally accessing the tomcat Management page (http://localhost:8080) works fine. On both machines the same Version on Java 8 is installed.
Any ideas, what could be the reason for this behaviours are welcome …
Regards Claus

I installed a version of TomCat, which initializes Tomcat as a Service. This miraculously solved the problem.
I don't understand, why this solved the Problem. But it did.
So this question is answered (somehow).

Related

Tomcat on Windows, Chrome console: net::ERR_CONTENT_LENGTH_MISMATCH 200

After upgrading Tomcat on windows, Chrome is not able to pull some files. It seems to fail when running scripts using relative paths. Some small files return fine.
Chrome console:
net::ERR_CONTENT_LENGTH_MISMATCH 200
Problem persists when trying several newer versions of Apache Tomcat.
For the record, I have also changed my appBase. Problem seems to persist either way. Default Tomcat content serves fine.
This can be solved by opening the Tomcat Service
Properties
Log On
Select local system account
Allow service to interact with desktop (not sure this is needed?)
And is explained fully here Tomcat Service gets installed with “Local Service” account

Start/Stop in Spring STS boot dashboard

I’m having an issue with the spring boot dashboard. When I start an app the icon show the loading icon and never reaches the green up icon though the app does start and accepts requests. When I stop the app it takes a couple of minutes to stop.
I have access to another machine where the dashboard behaves as expected.
I’m using the getting started rest service app (gs-rest-service-complete) targeting spring boot 1.4.3.release with no modifications. I’m using sts 3.8.3.
I’m experiencing the issue on OSX El Capitan 10.11.6
My jdk version is 1.8.0_112
I've found a couple of similar questions but the suggestions don't resolve my issue.
This one relates to bad entry in hosts file - mine is ok (Spring Boot Dashboard projects never finish starting)
This one suggests switching life-cycle-bean support off, but I want to know how to use run the dashboard with it enabled. The response to this question also requests a sample app, as stated I'm using the gs-rest-service-complete sample app (STS Spring Boot Dashboard Doesn't Recognize Successful Start)
What might be causing this problem?
It sounds like the machine where it doesn't work might have some kind of firewall stopping the JMX connections. These connections are made via sockets. Firewall type software sometimes prevents the connections. If you know of firewall type software running on your machine you could try disabling it or (less drastically) trying to reconfigure it so it allows connections between different processes running on your machine.

Can't install Apache web agent for OpenAM implementation

I have previously installed a J2EE policy agent and implemented SSO with it. Now I was trying to do the same with a web policy agent, but I am stuck. When I am trying to install the Apache22 web agent, I am being asked to provide some inputs. The second input is the URL of the OpenAM server. In my case, that is http://openam.example.com:9080/openIdp2 . But whenever I enter this value, the installation gets stuck. I have taken the following steps:
I have ensured that the openAM server is up and running.
I have created a centralized web agent in the openAM server.
I have installed OpenSSL and included the libeay32.dll, ssleay32.dll files in the agent/lib folder( I don’t have the ‘dll files missing’ error)
I have added the agent/lib folder in the environment variable path.
I have done all this and yet I am getting nowhere. I had used these same steps when I had configured the J2EE agent earlier. The OpenAM server is deployed in Tomcat on my local machine.
This is the configuration I am using:
Http server: Apache 2.2
Web Policy Agent:
i)Release: 4.0.0
ii)Platform: Apache 2.2
OS: Windows 10 64 bit
When I tried installing using the ‘silent’ option, I was asked to provide all the input. I did that and now the console is just stuck with the ‘Validating…’ message. It has been in that way for some time. The installation doesn’t stop, it just freezes.
Can you tell me what I might be doing wrong?
Can anyone help me out?
I had a similar issue a while back and was advised to step-back to the 3.3.4 Agent. Since there were no features I needed in 4.0 that were not in 3.3 I did and have not looked back. Also, consider that the latest agent available is 4.0.1. So either go back to 3.3.4 or consider trying 4.0.1.

starting Websphere portal

I have installed WebSphere portal in my local machine , it was running fine till now.Today i installed IBM HTTP server and suddenly my web sphere portal is not starting .
I have a WAS profile, web sphere portal server and ibm http server in my local machine which is running windows xp. All these are configured to run as windows service , now when i attempt to start the portal server i get below message:
WASService running at the same time for 'IBMWAS70Service -WebSphere_Portal_V$AIN' Service not started
Any input on this will be appreciated.
I restarted my machine and things worked fine :). Mostly likely there was some services created in windows services with same name or something of that sought which was rectified once i restarted my machine.

Difference between internet and Desktop java EE app server

I need some clarification. I know that in order to run a java EE project, one needs a java EE compliant application server, such as tomcat, jboss, glashfish, etc. But, i download these to my desktop, but how about when i run it online? Are Jboss, tomcat, glashfish, etc. application servers just for your desktop, or are these the app server internet service providers have as well. I am trying to use godaddy as my internet service provider; i called them, but the customer service guy didnt know what application server they had, or did i ask the wrong question? Or how can i know waht application server they have? Thank you, any help is greatly appreciated.
There are few companies which provide a restricted Tomcat Web Server.
But in order to get a Java EE Application server, you will have to buy a virtual machine and there you can install any of the available Application Servers.

Resources