Hi folks I want to create a remote glassfish server.I mean to say that I want glassfish server on a single machine and its remote client connect to it and use it and compile/develop their code from that server machine because i don't want to install glassfish on all machines.My remote users will use eclipse for development
Thanks
First you need to install glassfish on the machine that you are using. See how it is done with glassfish v2.1: http://glassfish.java.net/downloads/v2.1.1-final.html
Then you need to attach the remote glassfish to your IDE. If you are using the glassfish for development do not forget to enable debug and start glassfish in debug mode.
I have used remote glassfish with IntelliJ, it has a perfect integration. I do not how it will work with Eclipse, but this link: http://java.dzone.com/articles/how-debug-remote-java-applicat might be what you need.
Related
I need to be able to "remotely debug" a Java/Jakarta EE servlet running under Wildfly 20 under Ubuntu 20 from Eclipse 2020-06 running on Windows 10 at a different IP.
My research has discovered what appears to be two different approaches: one is what I want and the other is a simpler "subset".
*** First the "simple" approach. This approach is supposed to let me debug from Eclipse an app that is already deployed and running on Wildfly. To do this I uncomment this line in standalone.conf:
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
Then I start Wildfly and ensure the app also starts.
In Eclipse I create in Debug Configuration a new Remote Java Application and ensure I use the same port 8787 as above. Then I just push "Debug".
I get this error:
Failed to connect to remote VM. Connection refused. Connection refused: connect
If I return to the Wildfly system and run the following I see that port 8787 is not being monitored so that sure looks like a problem:
ss -tp | grep 8787
(nothing is found)
*** The other approach appears to be what I want to do which is to have Eclipse deploy changed files to Wildfly and also allow me to debug remotely. That is how I worked with Eclipse Oxygen and Wildfly 10 when both were installed on the same Windows machine.
In this case I set up a new Remote Connection in Eclipse and then a new Server (and attach my Project to the Server) using that Connection. I then start the Server in Debug mode. In the Progress View I can see files being copied to a Path on the Wildfly server so that seems like progress but after 20 seconds I see the same error I got in the "simple" approach above.
Failed to connect to remote VM. Connection refused.
What's interesting is that if, in the Remote Systems View I open the Remote Connection I created, I am able to use the sftp item to see files on the remote Wildfly system. So it seems that I am able to connect to Wildfly.
I need help fixing both of these problems but especially the last one since I need to have Eclipse deploy changes to Wildfly as it did when Wildfly was local.
Thank you in advance.
I'm able to create a simple Web project in Eclipse that has a simple single HelloWorld servlet. I'm able to debug this fine with the local Tomcat (setting breakpoints in the index.jsp or in the servlet), which land when I try the sample URL:
http://localhost:8080/RemoteDebugTest/HelloWorld
However, when I try to use the Eclipse debug configuration for a remote java application, I am able to connect and see the server threads, but my application does not deploy, and the URL appears as if the web module never deployed. (There are 404 errors for the same URL above.) Help me StackOverflow, you're my only hope.
Things I have tried:
Set environment variables such as JPDA_ADDRESS to 8000, JPDA_TRANSPORT to dt_socket.
Set those in the catalina.sh (on a remote linux Tomcat7 server) or catalina.bat
Run the catalina startup script with jpda run, or with jpda start
I've extensively scoured online resources and noone else seems to have this problem, other than one article that simply recommended Jetty. (I came from a background of never having a problem with this using WAS.)
Other pieces of info:
OS: Windows 7 (64-bit)
Tomcat 7.0.0.28
MyEclipse 10 (based on Eclipse 3.7.2)
I have managed to get my app, up & running in my vps an over the internet, but I have done using this from netbeans, is it the same or I should close netbeans, run glassfish from bin files, deploy and start from admin console and have only glassfish running?
Enviroment: glassfish v3, JSF2.0, netbeans 6.8
Thank you very much
Best regards
Ignacio
The 'standard' way would be to have Glassfish running as a standalone app.
You can still use netbeans to administer it from your machine (by setting up a remote domain GF server in 'services->servers') or you can use the admin console (http://yourhost:4848) or indeed use the asadmin CLI tool.
I'm using eclipse galileo for developing some web application. But I want to get the eclipse installed on the server(assume some other pc or server machine) and I want to access it as a client and work as I was working before. Please suggest me what type of server I should configure and which Operating System supports it.
A little bit weird to put the IDE on the server but you can use whatever OS you want, put the Eclipse there and connect to it using VNC or Remote Desktop.
I have a remote server connected over SSH using the RSE plugin in Eclipse Galileo. Is there anyway to "map" it to a PHP Debug session in Eclipse?
(Xdebug is installed and working)
I have heard that another solution is SSHFS but this might be tricky as I'm on WinXP and would prefer a 'generic' Eclipse solution.
The short answer is NO. RSE will not work with PHP Debugger. This might change in Eclipse Halios but I've not moved to Halios yet. The most common solution for Windows seems to be a virtual machine and share a samba mount of the remote webserver between the host and client. Not tried that yet either!
or i imported remote server through RSE so you can debug the remote server when you have the same copy locally. then whenever needed, i edit the local php files and they copy it from eclipse, got RSE, paste it there (overwrite).
it's a pain that RSE does not auto sync.