Connecting IntelliJ to weblogic server - java

I have a server that it has weblogic on its own. I develop my program with intelliJ. Can I connect intelliJ to the weblogic server and just run and deploy the project from intelliJ (just like when we use Tomcat application server on our local and start/stop that with intelliJ)?

You indeed can. You can create a Run/Debug configuration for WebLogic same way as for Tomcat, but you might see it as an option only after you click N items more (irrelevant), which is at the very bottom of the list.
Also, this is supported only in Ultimate edition. If you're using community edition, you can't do that from the IDE.
The process of configuration is also described in Intellij IDEA's guides

Related

Compatibility Glassfish and Eclipse for WebApplications

I tried some tutorials for creating Web Applications using Eclipse Neon 3, Hibernate, Spring and Glassfish server 4.1. I downloaded Glassfish Tools via Eclipse Marketplace, but I don't know how to solve my error about not publishing via Glassfish server the project. Could you tell me what is the compatibility between them? Glassfish tools don't refer to the Glassfish server 4.1, just 4.
I read another questions and tried the solutions found there but it didn't work.
The error is: Could not publish to the server.
java.lang.NullPointerException
cannot Deploy [project_name]
deploy is failling = java.util.concurrent.TimeoutException
In Eclipse Project---> Clean --> Clean all projects---> ok.
Try to run the project Run as server.
Right click on the Glassfish Server -> Properties -> GlassFish -> Tick on the Use JAR Archives for deployment. (at the bottom)
This might work.
And also if you get any domain related errors, just change the location of the installed Glassfish server from C: drive to other drives as Glassfish needs administrative access if placed in C: drive. So better place in other drives.

Remote connection between Intelij and Tomcat running on unix machine

Am getting into java web development and currently web server (tomcat) is running on the same laptop I use for coding. Now, I want to install FreeBSD on other computer, then install stuff like tomcat, some db server to learn more about unix and have a more real world environment. Idea is to have my laptop for coding (it uses win7 and InteliJ as IDE) and this other computer (freeBSD on it) for server side stuff. So my question is, how do I make this happen? Is there a way to connect intelij to that computer and have intelij acces its file system where my web related stuf would be stored. That sounds like a good way to do it. Give me some advice and pointers, Thanks !
Not sure if this is what you want.
IntelliJ will allow you to remote debug an application in the tomcat server. However to have IntelliJ reload the application to tomcat requires the ultimate edition of IntelliJ.
That said you can write scripts or use Maven (Ant or Gradle) from within IntelliJ to deploy your application to Tomcat, its more clunky than the remote deploy option with ultimate.

running spring mvc openshift application locally

I have created an Java app on openshift platform with JBoss Application Server 7 and MySQL 5.5 using eclipse and Jboss Openshift Tools. Now I wannt to run this application on localhost but I am unable to find any option to do so.
I googled and followed some links and was able to create jboss-as-7.1.1 server but cannot figure out how to run the application using this server as there is not option to select a server in Run As window of eclipse. Do i need to modify anything in project settings?
Did you create a server adapter for your jboss-as-7.1.1 in Eclipse? I assume you did so it looks like your project is missing the required Eclipse WTP nature. Maven project (like any OpenShift Java app) get those for free if you have m2e-wtp installed. To me it looks like you're missing that one (and eventually possibly Eclipse m2e) and need to install it.
Either use the Eclipse marketplace or point Eclipse to the following update site:
http://download.eclipse.org/m2e-wtp/releases/luna/

JBoss EAP 6.0 in Eclipse (Kepler): How do you run a custom script at startup?

I have a project that runs in JBoss EAP 6.0. However, it currently requires that a custom script (.bat) is run at startup.
This is possible in IntelliJ. When settings up a Run/Debug Configuration, a tab is provided titled "Startup/Connection" in which a "Startup script" can be targeted.
Eclipse is my preferred IDE but it does not appear to have this option. I have tried several things without any results.
I know in Eclipse, you can select which JBoss config file you choose to run on the Server view after you create a new Server config.
Alternatively, you can modify JBoss running scipt which will call your custom script.
Go to Eclipse Marketplace and try installing Jboss Tools and you should be able to start server and whole lot of other options.
Go to Help> Eclipse Marketplace and search "Jboss tools" and install the appropriate for your version of eclipse.

Can I use Eclipse and GlassFish together?

I use Eclipse as IDE. I use Eclipse to test my Java apps.
But now I want to make website with Spring, Hibernate. Can I do it through Eclipse only or I need to install GlassFish.
After installing GlassFish can I see some button on Eclipse which put required files automatically in required folders, I mean I don't want to manually copy the files in diff directories.
Do I add Spring, Hibernate in Eclipse or GlassFish?
Something like click on create web app.
You should install Oracle Enterprise Pack for Eclipse, which includes GlassFish tools. You can get it from here:
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
Alternative, if you have Eclipse IDE for Java EE Developers, got to Window -> Preferences -> Server -> Runtime Environments -> Add. Then click on "Download additional server adapters. That will show you a list of server adapters that Eclipse knows about, including GF Tools from OEPE. The wizard will guide you through the process of installing it.
Beyond that, if you need help using Java EE facilities of Eclipse, google "Eclipse WTP tutorial" or similar. There are many articles written on the topic.
No, you don't require Glassfish. You can use any Java web-app container like Jetty, Tomcat, Weblogic etc. Tomcat is the easiest to integrate with Eclipse.
I have used Glassfish previously, but much like stand-alone. I have never integrated Glassfish with Eclipse, but it seems like as easy as Tomcat integration. See here.
http://dlc.sun.com.edgesuite.net/glassfish/eclipse/
and
here
http://dlc.sun.com.edgesuite.net/glassfish/eclipse/GF-Tools-for-Eclipse-Guide12.pdf
As quoted in the guide
To publish Projects
To publish applications to the GlassFish Server, use the following procedure:
Select Servers view.
Select GlassFish Server.
Right click and select Publish fromServer popup menu.
The selected applications are published to the GlassFish Server.

Categories