Timeout while deploying Java Application to remote glassfish server from Netbeans - java

while deploying to a remote Glassfish 4.1 Server from Netbeans 8.0.1, i get a Timeout.
I configured the Glassfish Server by adding a new Server Instance and that seemed to work. I can see the applications running on the server and i am able to undeploy a application (directly from netbeans).
But when i try to deploy my application to the remote Server, i get a timeout Exception.
(i used enable-secure-admin to gain remote access from netbeans to the server)
What confuses me is, that when i enabled secure admin, i expected to see a https:// url in netbeans. But this url starts with http:// and i cant find an option to change this.
Server Attributes:
Host: [remote-ip]
DAS Port: 4848
Domain: domain1 (same as on the remote server)
Target: empty
Username PW : as set on the remote server
"Enable JDBC Driver Deployment" and "Preserve Sessions Across Redeployment" are checked

Could you please attach the logs.
most probably its issue with the grizzly jar.
Please try the patched grizzly jar and see if it works for you.
Checkout : https://java.net/jira/browse/GRIZZLY-1713 for the same

Related

Hawtio throws "Cannot connect to Jolokia to access this Java process" exception

Hawtio throws "Cannot connect to Jolokia to access this Java process" exception for user , while trying to access container perspective from the Hawtio UI
This is what I have done so far
on hawtio server
Have a tomcat server running
Install hawtio.war file
Modify the hawtio/WEB-INF/web.xml and add my remote server IP to the param-name>proxyWhitelist
Access http://IP:3100/hawtio/login from browser and is able to see the authentication screen
authenticate successfully
Get the error when trying to connect to the remote tomcat machine
Remote server tomcat server
Install jolokia war
Modify jolokia-access.xml file -- add the HAWTIO server
curl http://localhost:3100/jolokia -- This return the Jolokia version
Can you please let me know how what else I need to change
Thanks
--

IntelliJ Community, remote debugging on server with user and password

I have a java maven application. I want to remote debug this application on server. Im using IntellJ Community. I tried to connect to localhost jar by -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 and all works great. But now I want to debug application which is on remote server (I login into this server by Microsoft Remote Server by passing ip, user and password.) I run jar on server with argument from code snippet, but in intellij I get an error ("Connection timed out"). Is it any possibility to connect with host by user and password (in intellij debug configuration I only can set host and port)?

Trying to get LetsEncrypt to run on GlassFish

I've been trying to install LetsEncrypt on my server. My server is running on GlassFish and I've been getting a whole bunch of challenge errors from all of the letsencrypt services, any help would be appreciated!
System Info:
CentOS 7
Webservice: GlassFish
Here are some images of the error codes:
The problem is not in your GlassFish configuration but because LetsEncrypt services are not able to find the letsencrypt file under the url displayed in the error (starting with https://mdjdreview.com/index.php/.well-known/acme-challenge/...).
This is because your GlassFish does not serve the file, but redirects the URL to EdgeMAX application, which just returns a 404 page - not found.
I recommend to follow the steps in the letsencrypt guide here: https://certbot.eff.org/#centosrhel7-other, and use the certonly option with --standalone. You would need to stop GlassFish (or a proxy server listening on port 80) for a while, as this option needs to run a standalone HTTP server and it would collide with GlassFish.
Letsencrypt requires your server to serve the letsencrypt file from the specified URL, and with your current configuration, it is not possible to do it with GlassFish.

CONNECTION_REFUSED from Apache 2.2 server ( the channel to weblogic 10.3.6 server)

I built a web-service application using Jdeveloper 11.1.1.7 and deployed on weblogic 10.3.6 on physical server let us call it back-end server.
I do not want to give client direct access to back-end server so I make use of Apache 2.2 to be in the middle of client and back-end server. Apache 2.2 is configured on different physical server let us call it middle server.
I defined application's context root (which deployed in back-end server) on middle server in Apache httpd.conf file.
I shared WSDL file location to client ( WSDL URL which referring to the middle server domain name). The external client can access the URL thorug browser where he/she can see the WSDL content
But when the client trying send requests to middle server URL it get rejected with the following error:
[error] [client -clinet public IP goes here-] ap_proxy: trying POST /[application context root goes
here] at backend host '[back-end server local IP]/[port goes here]; got exception 'CONNECTION_REFUSED
[os error=0, line 1602 of URL.cpp]: apr_socket_connect call failed with error=730061, host=[back-end
server local IP], port=[port goes here]'
This error from middle server Apache error log file. No logs from back-end server
What is done so far:
I check the if I can access the middle server as external user using the telnet command. telnet IP port. It is working and the middle server is listening.
I also checked for all ports. between external client and middle server, between middle server and back-end server also using telnet. All ports working.
In this answer : ssl - Apache 2 with Weblogic Plug-in Redirection, original location still requested to backend - Server Fault
they are suggestion to increase the Accept Backlog value from weblogic server tuning . I did that in back-end server but still the issue is not resolved.
Problem resolved
I need to enable (WebLogic Plug-In Enabled) option from weblogic server where the application is deployed
from Domain Structure (Left Panel in admin console) - > Environment - > Servers -> (select the server where you deploy your application on it) - > General tab (from server setting)-> Advance - > (tic the option) WebLogic Plug-In Enabled
Then restarted the server.
By this your are telling the server you will get indirect request through proxy server or load balancer for example
You can do this on many level like cluster or server based on your needs check this site for more information
Understanding the use of “WebLogic Plugin Enabled”

'Could no access URL through the external browser.' in deployment of RESTful web service

i am using NetBeans IDE 7.2.1 and building REST Web services in java. i am using Apache Tomcat server 7.0.52 and Windows 7 os, when i click on test RESTful web service in NetBeans. first it shows a dialog in NetBeans with message "Could no access URL through the external browser. Check the browser configuration." and the it opens default browser(Mozilla firefox in my case) with error status 404 The requested resource is not available.
i have tested it with old as well as new Mozilla firefox browser. in my case Apache tomcat server is starting and when i close the NetBeans the it also stops Apache tomcat server properly. thanks.
The Tomcat installed by Netbeans is configured with ports different from http 80 and https 443 standard ports, so check first the port configured in your Netbeans Tomcat server, then specify that port in the your URL.

Categories