JCosole can't connect to glassfish / change address of http listeners - glassfish

I run a FreeBSD 11.0 server at home, in my private network. I wanted to learn some Java EE, so I installed GlassFish 4.1 at the server. After creating a domain (domain1), I wanted to login in via JConsole. But I get this error message "Connection failed: non-JRMP server at remote endpoint". The ip of the server is 19.168.178.91, so I tried to connect to "192.168.178.91:8686" is that roight?
My other issue is, in the book, which I'm using, they install glassfish at the same machine, which is used use to programm, so they changed the address of the three http listeners, of the IIOP-listener and of the jmx-connector from 0.0.0.0 to 127.0.0.1. Should I change it to the ip of the server or just leave it like it is?
Thank you in advance

Related

Web access to Gluu v4.0 server, installed on Ubuntu 20 machine

I have installed Gluu server version 4.0 on an Ubuntu ver.20 powered machine. After running setup script I am able to login to server from command line and according to Gluu docs I should be able to access UI from web browser using this pattern https://<hostname-where-gluu-server-installed>.
But this doesn't work. I have enabled port 443. Both browser and server are on the same machine. Thanks in advance for your answers!
Gluu must be deployed on a server or VM with a static IP Address. The static IP address should resolve to a computer hostname which can be achieved by adding an entry to the DNS server or in /etc/hosts.
More information on official Gluu docs:
https://gluu.org/docs/gluu-server/4.0/installation-guide/

IntelliJ error: "Empty response from server" - Run/Debug Configuration for a remote GlassFish

I am trying to associate my remote glassfish 5.1 server with my IntelliJ IDEA 2020.1
but I am getting the error:
Error running 'GlassFish 51': Unable to connect to the example.com:4848, reason: com.intellij.javaee.process.common.WrappedException: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Empty response from server.
The remote server is being running and it is possible to open a Glassfish remote admin console at an address example.com:4848 . These are my settings:
(The blured host name is a domain name of my remote server. Say example.com)
Username and Password on the first picture are the same that I successfully use when entering the Glassfish remote admin console.
How to enable the connection? I can add more screenshots of the configuration and add more information when needed.
The solution was to turn on an option Use SSL connection. Strange but helped. I did not do anything about SSL at that web server. The urls are of an http type, not https...

Bitnami WildFly 10.0.1 on Google Compute Engine can't access management interface

I have recently launched the Bitnami Wildfly on Google Compute Engine. I have done all the configuration and everythings is working fine except for the management interface which give an error message:
The management interface could not be loaded.
Authentication required.
I know i have to create a tunnel via SSH with Putty, I did that and I am able to access the server terminal. The Tunnel i created is to allow connections via localhost:9999 from the remote port 9990.
I have also tried editing standalone.xml and changed the interface to accept connection on , that too did not work.
Kindly assist.
Solved: It appears that when configuring the tunnel use 127.0.0.1:9990 instead of localhost:9990, I guess this is because the standalone.xml is configured to accept connections on 127.0.0.1.

How to use IP instead of localhost

I am using Windows server 2008 and installed wamp on it. Now I want to share the local link with client using same network.
Instead of [localhost], I am trying [server_ip_address]. but it's giving me error.
I want to use it as 192.168.30.1 but not able access this.
I also put the wamp online and restart the server. I m able use the ip from my m/c only. If I use this link from another m/c then its giving following error
URL http://192.168.5.12:8080
Error The connection has timed out
you can access the Server from your clients with url like,
http://server ip address : port
Your Local clients and your Local server must be connected in a LAN network.
Check your Windows firewall settings. Check by turning off the private network firewall

Connecting to Zend Debugger on remote server

I am having great difficulty connecting to the zend debugger on a dreamhost account.
I get the following error message.
Failed to connect to host '192.168.11.7'. Failed to connect to host '192.168.56.1'. Failed to connect to host '127.0.0.1'.
Is this a problem with the debugger not being able to connect to my local machine? Do I need to forward a port on my router perhaps?
I have also added my external ip to the allowed hosts but to no avail.
Any hints much appreciated,
thanks
Is XDebug enable on Dreamhost - not sure it is. You can port forward using an SSH shell, Check here