I have downloaded JBoss EAP 7 and am configuring it on Netbeans 8. I have reached the wizard "instance Properties" where am asked to select a "domain" from a select box. When I open the select box, it is empty. There is nothing there to choose from. Because of this, the "finish" button also is inactive which make in impossible to complete the configuration.
I am adding Jboss via the "services" tab. What is going wrong here?
JBoss EAP 6.4.0 works perfectly fine with Netbeans 8.1, however, if you are like me and wanted to take advantage of the JSF 2.2 functionality, which was only added in JBoss EAP 7.0.0, you will currently need to do some work-arounds.
In Netbeans 8.1 I managed to work around the problem with the blank domain by setting up JBoss EAP 7.0.0 selecting the "WildFly Application Server" option instead of "JBoss Application Server". Here's are more detailed instructions:
In Netbeans 8.0.1, select "Services", right click on "Servers" and select "Add Server...", pick the option "WildFly Application Server", point "server location" to the root of your JBoss EAP 7 install (e.g. c:\jboss7) and then point the server configuration option to c:\jboss7\standalone\configuration\standalone-full.xml and that's it.
However, even after doing this the application server is now added, there is still a bug where your code will not deploy correctly, see details here:
https://netbeans.org/bugzilla/show_bug.cgi?id=258091
Thankfully, this has been fixed in the Netbeans nightly build. It looks like the bug was actually fixed in Feb 2016. I installed NetBeans IDE Build 201607140002, which includes this fix (as will any other newer I presume). So, you can grab the nightly build from here (alternatively, you can wait for the bug fix in Netbeans 8.2, whenever that will be):
http://bits.netbeans.org/dev/nightly/
It should be noted, even after using the nightly build, I still had to add the server to Netbeans using the above technique (add it as a "WildFly Application Server", not a "JBoss Application Server" otherwise you will still get the blank domain issue).
Everything appears to be working as expected so far anyway using the above... of course, there is an element of risk using the nightly build, as it's technically still in a test phase. This is the price we pay for living on the sharp edge of the sword! :)
There is no support for domain mode in NetBeans. What use case should be covered with a domain deployment ? We're talking about an IDE used for development.
Also I'm not sure EAP 7 is correctly detected.
Related
I have a problem that after about 3 deployments from eclipse to wildfly - deployment times out.
The odd thing is that when I deploy .war through management console everything is fine even when I run wildfly in debug mode, and does not get slower.
Another odd thing is that it fails on the same step (Initilizing servlet) when the option "Deploy projects as compressed archives" is enabled but fails randomly when it's not enabled.
There are no classloader memory leaks and I removed all breakpoints, even tried it on different PC with same result. Im using Eclipse 2021-03 and wildfly 23.0.2.
What else can I try?
You did not describe which Eclipse plugin is used to connect to Wildfly.
If you are not already using the JBoss Tools plugin, please take a look at
https://www.baeldung.com/eclipse-wildfly-configuration and install and configure the plugin as described at the website.
If you are still using JBoss Tools plugin you could try following:
Switch to an another JBoss tools plugin version and check if the problem still exists.
Open Get involved JBoss page and report the issue
(here the direct link to JBoss tools issue tracker )
Ask the question at the JBoss tools community - e.g. inside the user forum
If none of the former steps did solve your poblem, you could still try out another eclipse plugin for EE respectively Wildfly on eclipse marketplace.
I'm using Eclipse 4.7.3a with Tomcat 9.0.4 in the IDE. I upgraded from Java 8 to Java 10. I changed my JAVA_HOME to point to the JDK 10 installation. I went into Eclipse and created a new JDK installed JRE pointing at the Java 10 JDK, and selected it. I rebuilt my project, and tried to start the Tomcat server I had. It said:
-Djava.endorsed.dirs=C:\bin\tomcat\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
I poked around and found that in the Tomcat launch configuration in Eclipse, under the Arguments tab, there are the following VM arguments:
-Dcatalina.base="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="C:\bin\tomcat" -Dwtp.deploy="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="C:\bin\tomcat\endorsed"
I removed the last part, -Djava.endorsed.dirs="C:\bin\tomcat\endorsed", and hit Apply, but the changes don't "stick"; when I come back to that dialog, the value is still there, and I still can't run Tomcat.
How can I removed the java.endorsed.dirs system property from the Eclipse Tomcat configuration?
Better yet, how can I avoid the problem altogether? Isn't Eclipse and Tomcat ready for Java 9+? Will a newer version of Tomcat 9 fix the problem? Should I remove and add back the Eclipse server? How can I get to the root of the problem?
I also have this problem before and but after updating WTP plugin to the latest version (3.9.5) which is not included even in the latest Eclipse (Oxygen.3a) to solve the problem.
For me this was still occurring even in the latest Eclipse IDE 2019-12R with eclipse web tools platform release 3.16 running AdoptOpenJDK jdk-11.0.5.10-hotspot.
I did as the OP, found -Djava.endorsed.dirs in the Arguments tab under the VM arguments for Tomcat. Get there by right clicking your project, select Run As -> Run Configurations... then, search for tomcat. In my case I clicked on 'Tomcat v9.0 Server at localhost', selected the Arguments tab and found the offending entry by scrolling down in the 'VM arguments' text box. I deleted the argument and it's referenced path. I restarted Eclipse and it seems to have stuck.
I installed Eclipse and tomcat6 service on windows 8
i get the tomcat front page at localhost:8080 and in server tab in eclipse it says "Tomcat v6.0 at localhost Started, Syncronized" however im unable to run any of my imported projects on server.
Right click on server -> add and remove... -> There are no resources that can be added
Right click on project -> Properties -> Facets, Dynamic web module is checked
in project properties, in targeted runtimes i only get option for tomcat7
and if i click show all runtimes it will show 6.0 but it's diabled and cannot be selected.
Does this mean i have to uninstall 6 and install 7 instead or what?
all the project files are from school so i dont know about them but i dont remember anyone saying that i need to install newer version...
Trying to run on server just brings up server selection without possibility to use existing server...
It has to do with the Dynamic Web Module Version. Tomcat 6 supports upto version 2.5 if I am right. So upgrade to use a newer tomcat (By the way tomcat 6 is very old and you should use at least 8) or use an older Dynamic Web Module Version.
I had some troubles to install Eclipse with tomcat 6. The problem was that the server was not compatible with the Dynamic Web.
For that reason download a new version of the server. Just change the parameters and you will run your app. Also be sure about you have the JDK that you need installed.
Last version of Apache Tomcat:
https://tomcat.apache.org/download-90.cgi
The instructions for the Java EE tutorial specify to download and install the following :
Java SE SDK
Java EE SDK
Netbeans
I downloaded SE 8, EE 7 & Netbeans 8.0.2
Installed SE ok, and EE ok - it's essentially glassfish4. While installing Netbeans I'm instructed in the tutorial to NOT install glassfish and, when done with Netbeans to add glassfish to the Netbeans installation.
When I do so, I get the following message (I'm pointing # c:\glassfish4\glassfish which is the correct path AFAIK)
Not a valid GlassFish Server installation.
I've seen another person in the last week with this same error, I looked into that problem and it said that there should be a file in a directory to solve the problem (C:\glassfish4\glassfish\config\glassfish.container). That file does exist on my system.
How does netbeans determine a valid Glassfish installation?
ETA: I followed zapl's advice below, reinstalled Netbeans with it's default Glassfish and, when I right click on Glassfish 4.1 Server, all options are greyed except Refresh and Remove (so, no start/stop, no view of Admin Console, Server Log or Update Center)
I ran into the same problem. It is a known Netbeans-Bug: https://netbeans.org/bugzilla/show_bug.cgi?id=253008
There appear to be two solutions:
Use a nightly Build Netbeans Version equal or higher than 201506180001
In /glassfish/lib/install/applications/__admingui/WEB-INF/lib link (or copy) console-core-4.2-SNAPSHOT.jar to console-core-4.1.jar. After that netbeans is able to find the JAR file and add Glassfish nightly as a Glassfish 4.1 server.
I renamed the JAR as in solution 2 and now it works fine...
Hope this helps!
I have GlassFish server3.1.2.2 pre installed on my machine. Which I want to use in my Eclipse Luna
How do I manually configure it to use in Eclipse?
When I tried using Eclipse Market Place i got an error
No repository found at http://download.oracle.com/otn_software/oepe/luna.
I tried searching through net for which I get pointed to the Oracle Enterprise Pack for Eclipse (OEPE) which is of about 485MB.
Is there an another way round for this?
You must use Eclipse WTP (Web Tool Platform), and should use the lastest version is Luna 4.4.
Link download: Eclipse IDE for Java EE Developers
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunar
Menu Windows\Show view\Other, choose folder Server, click on Servers.
Right click on blank area to use context menu, choose New\Server
Press link "Download additional server adapters"
Choose "GlassFish Tools" from Oracle vendor.
Then, restart Eclipse.
Or you download GlassFish tools (Supports GlassFish 4.0 and 3.1) from: https://marketplace.eclipse.org/content/glassfish-tools and install manually.
Read more about creating a server: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.server.ui.doc.user%2Ftopics%2Ftwcrtins.html
I could fix it using below steps.(GlassFish server3.1.2.2 and eclipse Luna 4.4.1)
Help > Eclipse Marketplace > Search GlassFish > you will see
GlassFish Tools > Select appropriate one and install it.
Restart eclipse
Windows > Open Views > Other > Server > Servers > GlassFish 3.1
You will need jdk1.7.0 added to Installed JRE. Close the previous window to take effect of new default jdk1.7.0.
This questions seems a little bit outdated but here is my solution.
I assume that you have already downloaded GlassFish on your hard drive and unzipped the files on a directory.
A - Eclipse MarketPlace / Installing GlassFish Tools
The first thing as it is said on previous answers, you have to downloaded GlassFish Tools from eclipse marketplace;
Help -> EclipseMarket Place
And install GlassFish on the screen below;
B - Adding GlassFish Server
Open Server View, if it is not visible on the bottom of the eclipse, then;
Window -> Show View -> Servers
As the server view is visible, simply click "No servers are available. Click this link to create a new server..." as shown below;
C - Adding GlassFish Server
On the New Server window, select GlassFish as shown below. On my experience, there is only one GlassFish option that I can select, instead of several GlassFish options with versions as you can see down below;
D - Configuring GlassFish & Java Locations
Enter the exact GlassFish location and also Java location as you can see below;
E - Last Step
On the last step of this configuration, just leave everything as it is. For simplicity, I don't define an admin password;
Now everything is all set, hope that this helps!
To use Glassfish tools with Eclipse Luna you need Java 8. I also faced this problem because I had Java 7. If you have Java 7 in your environment then download eclipse Kepler. It will work fine.
I had the same issue.
Not able to install neither using Marketplace nor Servers tab.
Following is the alternative.
1) Help -> Install New Software
2) Use url : http://download.oracle.com/otn_software/oepe/12.1.3.6/luna/repository
Above is the OEPE tool provided by oracle for EE development.
3) From all the suggestions, select glassfish tools.
4) Install it.
5) Restart eclipse.
Eclipse 4.4.2 Luna
JDK : 1.8
I had the same problem, to resolve it, go windows -> preferences -> servers and select runtime environment, and now you will see a new window, in the
upper right you will see a option: Download additional server adapter, click and install the glassfish server.
For Eclipse Mars use the similar approach as harshit.
1) Help -> Install New Software
2) Use url: http://download.oracle.com/otn_software/oepe/mars repository Above is the OEPE tool provided by oracle for EE development.
3) From all the suggestions, select Glassfish Tools, (Oracle Weblogic Server Tools, Oracle Weblogic Scripting Tools, Oracle patches, Oracle Maven Tools).
4) Install it.
5) Restart eclipse
In point 3) are 4 tools are in braces, I don't know minimal combination, but only install Glassfish Tools has no effect.
During restart Oepe ask for Java 8 JDK if Eclipse run on on older version.
Eclipse 4.5.0 Mars JDK : 1.8
For Eclipse Luna
Go to Help>Eclipse MarketPlace> Search for GlassFish Tools and install it.
Restart Eclipse.
Now go to servers>new>server and you will find Glassfish server.
You should use eclipse official website and official oracle links.
https://www.eclipse.org/setups/marketplace/?id=2318313
http://download.oracle.com/otn_software/oepe/neon
Use the relevant link for the new version eclipse .
It took me 4 hours to resolve this. Hope this helps others.