Servoy Admin Page from Help in Developer gives error

I start Servoy Admin Page from the Help menu and get the 404 Not Found error. The URL shown in the browser ist correctly: http://localhost:8080/servoy-admin

I did make an update to macOS 10.13.4 and to the latest Safari version (11.1).

Anyone having this problem as well?

Regards,

Hi,

normally this should open localhost with the correct port number.
However I’ve seen this fail in the past.

Are you sure port 8080 was available at the time you launched Servoy?
If not, Servoy is now running on a different port.

You can also try 127.0.0.1:8080/servoy-admin or your LAN-IP address (probably something like 192.168.xx.xxx:8080/servoy-admin), since localhost is just a loopback interface which might be broken as well.

Hope this helps

Most of the time, this is the bug in java with (older) Tomcat and compression is ON.

viewtopic.php?f=5&t=22114&hilit=compression

Hi Marc, Harjo

Port 8080 ist open om my Mac (when starting Servoy Developer). I have set compression=“off” in server.xml but still can’t access Servoy Admin Page from the Help menu.

Harjo:
Most of the time, this is the bug in java with (older) Tomcat and compression is ON.

viewtopic.php?f=5&t=22114&hilit=compression

Regards,

and the rest does work? like just localhost:8080

jcompagner:
and the rest does work? like just localhost:8080

Yes, localhost:8080 does work.

weird, then there has to be errors somewhere in the various log files (servoy log, tomcat log or developer/workspace log)

or what does the browser really come back with (if it is that compression) (if you look with the developer tools (F12) in your browser)

Hi Johan

I get the following message back, see attached screenshot.

Regards,

very weird,

i think if it was compression you didn’t get a 404.

but somehow that servlet is not there, if localhost:8080 (really after hard refresh) does show you the default servoy start page
Then you really not to dive into the log files of tomcat and check maybe the web.xml (you didn’t really touch that one right?) in the server\webapps\ROOT\WEB-INF\

I made an update of Servoy Developer in the hope to fix the problem. Developer got updated, but NOT so the application server. It failed. As suggested by the Developer, I tried it on the command line with:

java -jar servoy_updater.jar -releaseNumber 3109

It seems the updater can not find the build number 3036 with that URL. Why?

By the way, we had the same behaviour on another machine. Both machines have:

Java 1.8.0_151
Servoy Developer 8.1.4
macOS 10.13.4

MacBook-Pro:Servoy8.1 robert$ java -jar servoy_updater.jar -releaseNumber 3109
Current Servoy version 3035
Checking for new Servoy version
Working in directory: /Applications/Servoy8.1
Loading version info...
New version available 3109


Servoy 8.2.3

NOTE: ALWAYS make a backup of your Servoy directory and your databases before usage.




Downloading...
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://download.servoy.com/downloads/8xx_updates/servoy_update.jar.3036
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944)
	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at com.servoy.updater.VersionCheck.downloadNewVersionJar(VersionCheck.java:181)
	at com.servoy.updater.VersionCheck.downloadIncrementalNewVersions(VersionCheck.java:235)
	at com.servoy.updater.VersionCheck.main(VersionCheck.java:350)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://download.servoy.com/downloads/8xx_updates/servoy_update.jar.3036
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at com.servoy.updater.VersionCheck.downloadNewVersionJar(VersionCheck.java:176)
	... 2 more
MacBook-Pro:Servoy8.1 robert$

Maybe this is your problem (the updater needs to be updated manually): viewtopic.php?f=1&t=21903

Just for your information, this is my server.xml file (zipped).

Regards,

server.xml.zip (1.53 KB)

i was talking about the web.xml not the server.xml

But i guess your application server part is never correctly upgraded. When you did came from 8.1 …
So first fix that

Yes, attached the web.xml file of version 8.1.4

With the new updater, I could update the application server as expected to version 8.2.3. But the Admin Page still brings the same error.

jcompagner:
i was talking about the web.xml not the server.xml

But i guess your application server part is never correctly upgraded. When you did came from 8.1 …
So first fix that

Regards,

web.xml.zip (949 Bytes)

i have no idea then, do a clean install and so how that goes
Without way more logging (any logging including tomcat, servoy, eclipse) i can’t help

Ok, I do a clean install. Tamcat has no influence on this problem, does it? It is just a Servoy Developer thing (and may be Eclipse), is it?

jcompagner:
i have no idea then, do a clean install and so how that goes
Without way more logging (any logging including tomcat, servoy, eclipse) i can’t help

it is a Tomcat that starts up… even inside the Developer…

can you start a new html form editor? (because that also connects to the same tomcat that we start up inside the developer)

Ah, ok, good to know. Do you mean opening for example a .css style fiel in one of the 2 html editors? Yes, that works.

jcompagner:
it is a Tomcat that starts up… even inside the Developer…

can you start a new html form editor? (because that also connects to the same tomcat that we start up inside the developer)

no opening the new form editor
so open a form in the form editor and switch the the html5 (press that html 5 symbol) form editor
that also connects to the same tomcat instance

Found the problem. I accidentally run a http daemon from a trial I did some time ago and did not notice that this http daemon processes blocked the Servoy Tomcat, i. e. the start of the Servoy Admin Page.

Thanks a lot for all the support!

jcompagner:
no opening the new form editor
so open a form in the form editor and switch the the html5 (press that html 5 symbol) form editor
that also connects to the same tomcat instance

Best regards,