I have Intellij IDEA and I cannot connect it to Glassfish 4.
When I try to Debug, the error message that I get is:
Artifact exploded: Server is not connected. Deploy is not available.
I've started Intellij using JDK 8.
I don't know what can I do to be able to debug directly from Intellij.
I have set up the Glassfish 4 Server in IDEA and put the domain URL and the credentials. Then I've set the war as exploded and set the URL to localhost:8082
It's working with Glassfish 3.
Glassfish 4 is the problem.
I have the last version, 4.1.1, of Glassfish
Here is what I did to get a simple Java web application running in Glassfish 4.1.1 inside IntelliJ 15.0.4 with ultimate license running on JDK 1.8 on a Mac.
Install Maven brew install maven
Install Glassfish brew install glassfish
Create a simple web application through Maven in shell
cd
mvn archetype:generate -DgroupId=so36290127-org -DartifactId=so36290127-app -DarchetypeArtifactId=maven-archetype-webapp
cd so36290127-app
mvn install
Import so36290127-app into IntelliJ as a Maven project. File, New, Project from Existing Sources, choose so36290127-app/pom.xml. Accept all the defaults
In Intellij, go to Run, Edit Configurations
Click +
Choose "more...", GlassFish Server, Local
Click Configure button
Enter the path to the GlassFish libexec directoy, /usr/local/opt/glassfish/libexec in my case.
Set Server Domain to default domain1
Click Deployment
Click +, choose Artifact
Choose so36290127-app:war exploded
Click Ok
Go to Run, Debug and then Hello, World! opens in my browser
Thank you Kirby,
Actually is still not working.
I am using IDEA 14.1.5 on a Windows 8 64-bit
Glassfish version is 4.1.1
I put the JDK / JRE 8 in the Glassfish configuration in IDEA.
I also set IDEA_JDK to point to Java JDK 8 in System Environment variables.
Do you think that I should switch to IDEA 15 and try again?
Or there are some special configuration that have to be done on the Glassfish side?
Best regards,
Related
I have a java EE 5 project. I'm building a project with maven. I use IntelliJ IDEA 2018.2.5 x64.I use weblogic 12.1.3. In the Department of deployment( edit configuration -> Deployment ) specify the ear file. Why doesn't IDEA put ear file in localhost:port/console -> deployments when running ?
Make sure the Runtime Server is added correctly in IntelliJ. Once Added Correctly,You should see the Application servers Tab, where you could Add/Remove Applications effectively.
The Status of the deployment can be seen as Module with a tick Mark in Application Servers Tab.
The answer was simple, the ear file did not deploy due to the fact that I did not enter the domain name and password in the configuration
I want to switch from Tomcat to Glassfish for the deployment of my web application.
Unfortunately, the application server Glassfish is not listed in the dialog of my IntelliJ IDE.
The IntelliJ documentation lists Glassfish.
How am I able to add/use it?
IntelliJ IDEA Ultimate 2017.3.4
MacOS 10.13.3
UPDATE
I tried previous version of the IDE and with 2017.2.7 Glassfish appears in the list of application servers:
Does anybody know why IntelliJ IDEs with versions 2017.3.x are missing Glassfish?
GlassFish Integration bundled plugin must be enabled in Settings (Preferences on Mac) | Plugins.
For one of my POC, I need to get Maven plug-in installed in my Mule Anypoint studio. How I can install the same?
Follow the steps provided by Pratikkumar. Please remember either you need to get settings.xml from your client or get authentication details to connect nexus repository and create settings.xml. This settings.xml should be placed under .m2 folder(Local repository).
click Help > Install New Software and in Work with, click Anypoint Addons Update Site > Maven Tools for Mule. Click Next and follow the install prompts:
you can follow the next instructions from the below links.
https://docs.mulesoft.com/mule-user-guide/v/3.6/using-maven-with-mule
maven installed on your local machine contains conf folder under that global (settings.xml) is available.
copy the settings.xml and placed under .m2 folder(Local repository).
.m2 folder is generated by executing mvn in cmd prompt.
place the authentication details in settings.xml to connect with nexus repository(if it enterprise)
In Anypoint studio click on help==>click on install new software and follow the steps provided in the below image url.
https://i.stack.imgur.com/oGixo.png
After completing this process change the Installed JRE'S in build path to JDK and restart Any point studio.
Using IntelliJ IDA 12.1.6 Ultimate and having installed Tomcat 7, I have no available application servers under IDE Settings via
Application Servers -> +. There is an empty list with text "Nothing here". How do I make IntelliJ aware of the location of the Tomcat install?
You have to install the integrations under IDE SETTINGS -> Plugins.
For example when using Apache Tomcat, the plugin is named "Tomcat and TomEE integrations"
I just downloaded the Glassfish version 3.1.2, this is not yet an official release.
I need this version because my web application is using websockets.
The problem I have now is with the Glassfish plugin for eclipse, he is not recognizing the new Glassfish Version.
With the Glassfish Version 3.1.1 in Eclipse everything works fine.
I am using Oracle Glassfish Server Tools (Eclipse plugin ) version 2.0.0.20111104904 from Oracle(last version I could download).
If I try to add a new Server Runtime Environment in Eclipse for the Glassfish 3.1.2 I get the error:
There is no valid GlassFish installation in the specified directory...
I need everything to be able to debug my web application in Eclipse.
Anyone know what the plugin is checking ?
There is any change to trick the plugin so will run with Glashfish 3.1.2 too ?
Use the plugin from here (for Indigo): http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/
The plugin for Helios does not support 3.1.2.
If you have to live with the bits the are blessed by Oracle or keep using Helios, then you can try the following trick:
create a couple files....
${glassfish.rootdirectory}/modules/jsf-impl.jar and
${glassfish.rootdirectory}/modules/jstl-impl.jar
These files were renamed between 3.1.1 and 3.1.2...
You may be able to get the 3.1.2 to mascarade as 3.1.1 by just
creating empty files with the above names. If that doesn't do it,
make copies of the following files should do it.
The new name for jstl-impl.jar is
gf312/glassfish/modules/javax.servlet.jsp.jstl.jar
The new name for jsf-impl.jar is
gf312/glassfish/modules/javax.faces.jar.
If you are on Helios, you can try the following:
uninstall the Glassfish 3.1.1 plugin (and all associated runtimes and servers).
go to "Install new software" and type in (for the URL): http://download.java.net/glassfish/eclipse/indigo
Though the plugin says indigo, it is also working for me in Helios. And it gives options for both Glassfish 3.1.1 and 3.1.2 servers (pre and post name changes).
Note that it downloads Glassfish itself, and installs an internal server. You can delete that one, and install your own server ("New server...") if you have an existing server you want to work with (as I did).
HTH.