Netbeans 12 and JBoss - jboss5.x

Is it possible to add a JBoss 5.x server on Netbeans 12?
When I add a new WildFly server going on Servers -> Add Server Instance and I choose the folder where I have the JBoss 5.1.0.GA installed, it keeps saying "Provide a valid WildFly Location" and I'm unable to get further.
I can successfully use Eclipse with the same server, but I really wold like to change the IDE
Any help appreciated :)
thanks

Related

Jboss 6.1 Eclipse 4.19.0 Integration

I have joined a new company where they do not allow us to download anything (Eclipse Marketplace). The default installation of eclipse does not have JBoss wildfly plugin.
Currently, even if I remove a comma in my code, it take 7 to 8 minutes to build/deploy/test
I need to configure Jboss in eclipse and able to do hot deployment whenever I change code. To download the plugin, I need to raise a request. Can I raise a request for below? would it solve my purpose? Can I install this plugin to my eclipse and configure jboss server in the server tab?
https://tools.jboss.org/downloads/jbosstools/2021-03/4.19.1.Final.html#update_site
Jboss 6.1 Eclipse 4.19.0 (I have eclipse 4.2 as well)
Any other idea would be helpful
Yes if you download the update site as a zip file, you will be able to install JBoss Tools plugins in your local Eclipse even in the case you don't have access to network

GlassFish server fails to launch from eclipse [duplicate]

I am trying to test my web application in GlassFish 4 from eclipse. When I am starting GlassFish 4 with a file (startserv.bat), it works fine, but when I am trying to run it from Eclipse, it starts loading, but then the startup process gets stuck at 69%, on a message Launching Delegate...
After several minutes in that condition, it gives me an error message:
After a few re-tries, I got this message:
Even though nothing is running on the port 8080 (GlassFish's port) and 4848 (GlassFIsh's admin port)
It worked fine for me before, but now for some reason, it just doesn't, I haven't done anything to it's settings or anything. How can I resolve this problem?
Here is my startup console log: http://pastebin.com/XL0Lh5zw (using pastebin to avoid making the post to big)
I had the same problem, with the same messages.
After a long search, I gave up and I removed the server.
And I removed the Server Runtime Environment
The Glassfish files were not removed only the eclipse configurations, and then I re-created the Server Runtime and the Server using the existent glassfish server and the problem was fixed :D.
I got the same issue. I'm using Eclipse Luna.
I downgraded my GlassFish Tools to 7.2 and I got the server started back again.
http://download.oracle.com/otn_software/oepe/12.1.3.1/luna/repository
I didn't see any errors in the log, just some warnings about Hibernate stuff, which shouldn't crash the launch. It could be that it is taking too long to initialize with all of the eclipse overhead, but most likely it could be a locking issue, which could cause the timeout, since eclipse would be left infinitely waiting for a resource it could never obtain. Are you sure the server is only being accessed by eclipse, and is not already running or owned by another process?
I was also getting this issue all the week. But in our team we finally fixed it. It seems that Glassfish needs JDK 8 (not JRE 8 default given entry in Eclipse Luna) so you have to firstly install JDK 8 from Oracle web site and after configure Eclipse to point on it in Windows -> Preference -> Java -> Installed JREs Click on "Add" choose "Standard VM" click on "Next" and use "Directory" button to point on your -freshly installed- JDK8 directory if you didn't change any thing during the installation , on windows it would be "C:\Program Files\Java\jdk1.8.0_20".
Just because Glassfish and Glassfish Tools for Luna need JDK8 to perfectly work.
I had the very same issue with GF 3.1.
When looking into the problem I noticed that in the Eclipse console Glassfish appeared to be still running. I deleted the application using the web console and then I quit Eclipse. I then checked the active Java process (i.e. ps -e | grep java) and noticed an zombie Glassfish process.
Sometimes it happens that Eclipse is not able to startup / shutdown Glassfish correctly, "loosing" a process doing so. Usually killing the zombie process fixes Glassfish and related integration with Eclipse.
Another thing to try in this case is to remove the applications from the Server and remove the server from Servers panel in Eclipse, then adding the server and applications again.
I'm using Eclipse Glassfish 3.1.1, Luna 4.4.1, Java 1.7.0_71, OS X Yosemite.
Changing debug port (properties->glassfish->debug port) to current+1 (eg. from 8008 to 8009) every time it happens makes it work for me.
I'm using eclipse neon 4.6.0 + glassfish 4.1
If any one is still stuck go to your glassfish folder domain > domain1 > config
edit domain.xml change network listener port no. to any other port number.
Restart eclipse and glassfish.
assuming you have glassfish 4.1.1 it worked for me.
I fixed the problem by using Eclipse Neon (4.6) and GlassFish 4.1.1.
Had the same problem, no idea why this happens. Anyway, I deleted Glassfish from Eclipse and had a new GF set up. Worked for me just fine!
Using Eclipse Mars and Glassfish 3.2. I used Eclipse > Help > Check for Updates. Two updates were found and one was Glassfish tools. Allowed the update to do its thing and it seems to have resolved the problem.
Go to below path:
C:\glassfish4\glassfish\domains\domain1\config
Also the path where your server location configured into the eclipse and open domain.xml file.
Find out the 8080 port number and change different port number like 8081...
Save and close the file.
In eclipse:
Remove the added server and add fresh Glashfish server.
Start the server. This will solve the problem.
Same problem here, stuck at 68%.
I find out that it was docker which occupied 8080:80.
If any one who is also using docker:
I do "docker ps"to see which one is using 8080
then i do "docker stop [container id]"and "docker rm [container id]"
then the glassfish sever in eclipse finally launched successfully.

How to run and debug JBoss EAP 6 from Eclipse?

I installed JBoss EAP 6.01 on my local computer, and JBoss tools in my eclipse (Juno), I try to access JBoss and debug from within my eclipse, I follow the new server wizard to create and configure sever in eclipse, see attached images:
I then tried to start the server, however, I got error connecting to jmx for JBoss Runtime Server
Can anyone help me figure out why?
Thanks a lot!
It's a little unclear from your question if you want to a) run a fully managed JBoss inside eclipse or b) you want to start Jboss manually and then get eclipse to connect to it.
I'm assuming it's point 'a' and you want eclipse to start and manage jboss eap server for you.
In this case on your second screenshot you need to unselect all the checkboxes and hit next. Also make sure after the server is created in your servers tab to doubleclick the server to bring up the server configuration page and enter username/password etc.
You should be all set. Let me know if that works.

Unable to add installed Glassfish 3.1 to Netbeans 7.0

I recently migrated to Netbeans 7.0(with glassfish 3.1) from 6.9(with glassfish 3.0). After that glassfish server ran just for the first time and when I restarted netbeans, since then, it doesnt show glassfish in the servers list.
Now when I am trying to add my already installed server to netbeans, on pointing to installation location of server, it says C:\Program Files\glassfish-3.1(my glassfish installation directory) does not have a usable default domain.
Then on selecting : Register Local Domain it asks for:
Enter the path to a directory that will contain a new domain.
On selecting any directory, it says : Unsupported domain at C:\Program Files\glassfish-3.1; Admin-listener is disabled or no enabled http-listener
How do I rectify this and add Glassfish support to my netbeans 7.0 ?
I just had the exact same problem and I managed to solve it this way:-
Just run NetBeans as Administrator & try again repeating your steps, everything will work!
I think that NetBeans doesn't have a right to create folders outside of it's own if you don't run it as an Administrator.
This issue also occurred for me in UNIX using GlassFish 4.1.1.
My fix involved gaining write privileges to my GlassFish folder (located for me in /usr/local/glassfish-4.1.1). This can be done by using the chmod command, which requires sudo access if not the owner.
I had same issue but this time Netbeans 8 with Glassfish 4.x win7, the way I solved it is below:
No need to run netbeans as administrator.
No need to dowload the Glassfish zip file, you'll dowload through netbeans IDE.
-create a dir where you'll place your glassfish installation files. In my case (win7) is:
C:\glassfish4
-Enter glassfish ide, go to Services / Servers / Add Server
-when Netbeans request your GlassFish location, browse the one we created above.
-select "Remote Domain"
-mark "I have read and accept licence agreement"
-press "Download" and select glasfish 4, ok.
this should start dowloading the Glasfish Server, just complete configurations steps.
This happens when Java EE is not activated in the IDE. In the Services window, the Servers node is then empty. The node allows to add a new server, and in the process activates Java EE. Now when trying to register, the IDE discovers that it already has the selected server, refusing to register it twice. Just cancel and use the existing server in the refreshed Servers node.

Jboss 7 and eclipse indigo plug in giving error while starting server?

I installed Eclipse indigo and jboss 7 server and jboss server plugins installed for struts2 application.
I created simple application with jsp page and deployed in to jboss7 server ( i installed server ,run from out side of eclipse and i saw new features of jboss 7 ) after deploying application .
I want to start the server but server giving error like " Error:no server JVM at c:\java\jre1.6\bin\server\jvmdll"
help me for this issue.
thanks
param
I also had this problem and did not find where I could set the JVM for JBoss in Eclipse Indigo. I got JBoss 7 working by removing the JRE6 from installed JREs in Eclipse and only having JDK6 there. I also changed JRE6 to JDK6 by double clicking the JBoss server -> Open launch configuration -> Classpath -> Bootstrap Entries.
After this I readded JRE6 to Eclipse for the projects that used it.
change jvm in jboss's tomcat conf from
C:\Program Files\Java\jre6\bin\server\jvm.dll
to
C:\Program Files\Java\jre6\bin\client\jvm.dll
I posted the below answer here
I've just been struggling with this same problem in Eclipse and I noted that as suggested by the answer above the JBoss site has a thread on this issue saying the same as the answer above to copy files from the jdk to the jre folder.
I noticed that you can avoid having to do this if you define the runtime to be the jdk when you create the server. I didn't find how to edit an existing server though.