STS/Eclipse: Show Pivotal Server list - spring-tool-suite

In Eclipse, where do you go in the IDE to display the list of existing Pivotal Servers?

Not sure what you exactly mean with "existing Pivotal servers". If you refer to Pivotal tc Server instances that you have installed locally in your machine, you can configure them in the "Servers" view. If that is not showing up already, so go "Show View" and select the "Servers" view from that list.
If you refer to instances of Cloud Foundry that you use in the cloud, they can be configured in the "Servers" view, too. To configure a cloud foundry runtime, create a new server in the servers view, select the "Cloud Foundry" type and enter the credentials. Then you have full access to that Cloud Foundry runtime from within STS.
How this helps!!!

Related

Deploying Applications to Bluemix

Is it possible to deploy the J2EE Module only into Bluemix? Because what I did now is I deployed the entire whole WebSphere Application Server. But then, what happen is that I can't run the application locally anymore because the server.xml configuration has been changed to use the database service selected in the Bluemix platform.
Here's a snippet of the current setup. If there's another way, can someone tell me how
You can publish EAR and web modules directly to the Bluemix server in Eclipse. The Tools also support incremental publish of both type of modules.
To deploy the application, you can simply right click on the Bluemix server on the Servers view and select the Add and Remove option. For details, you can refer to Publishing an EAR file section of the documentation. The steps for publishing a web module is the same as publishing an EAR module.
Note that publishing the module directly does not allow you to include Liberty server configuration, i.e. the server.xml, as part of the publish operation. In case your application require specific server configuration settings, then you need to continue to publish the entire server as before.

Packaged Server option not available in Eclipse with Bluemix and Liberty plugin

I'm trying to customize the Liberty setup, following the instructions from this post:
"Custom Liberty server.xml configurations in IBM Bluemix", see:
https://www.ibm.com/blogs/bluemix/2015/01/modify-liberty-server-xml-configurations-ibm-bluemix/
In order to modify the Liberty server features, I'd like to replace the automatic generation of the configuration file by a customized server configuration, which according to the instructions is called "Liberty packaging server".
In the Eclipse Neon IDE, I've already installed two plugin's, the Bluemix Tool as well as the Liberty Development Plugin. At the server tab, I'm right clicking the active Blumix server, but no option for "packaging server" is displayed at the menu. The default "push" option is working fine.
At the Eclipse IDE, is there a software component missing to create and publish a customized server package (beta + features) for Liberty? How can I run a customized packing without command line tools, using Eclipse?
There are two main ways to publish a packaged server in Bluemix:
You have (or create) a Liberty server instance that represents the server. For details on how to create a Liberty server, see http://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/t_creating_server.html. Once you have the Liberty server created in Eclipse, you can just add the Liberty server to the Bluemix server on the Servers view and it will package the server for you during the publish operation.
You already have an existing packaged server zip file in the workspace that you want to publish. Then, you can just right click on the zip file and do a Run As > Run on Server.
For details, you can refer to https://console.ng.bluemix.net/docs/manageapps/eclipsetools/eclipsetools.html#packagedserversupport
The first method is usually preferred since you can continue to update the applications and also the server configuration file and do incremental update on the application by the publish operation.
In Eclipse, if you want to publish whole server to the Bluemix follow these steps:
stop your local Liberty server
in Eclipse in Servers view, grab the local Liberty server and drag it to the Bluemix one. It will publish whole server with its config.
Check this page for more details - Deploying apps with IBM Eclipse Tools for Bluemix
Instead of right clicking on the Bluemix server, you need to right click on your Liberty server definition.

Websphere 6.1 editor window in Eclipse/MyEclipse

It was possible to double click the websphere server connector in server tab in eclipse/myeclipse to get the server editor window. But now when I do, I can not bring the editor window up. Is this feature removed or do I need to set the correct perspective. I am using MyEclipse Java perspective. Editor window allowed me to change ports and enable/disable security. Please help.
You may be thinking of the Web Tools Platform (WTP) from eclipse. MyEclipse integrates much of the functionality of WTP but has a different way of configuring and deploying to servers. The MyEclipse servers view tab is called "Servers", the WTP servers view tab is called "WTP Servers". Double clicking on a server in WTP Servers will bring up an editor window of the type you describe. In the MyEclipse Servers view, you can bring up the configuration dialog by right clicking on the server and selecting "Configure Server Connector".
In base MyEclipse, you don't have the option of setting ports and security from the server connector, for WebSphere. However, if you switch to the Blue Edition of MyEclipse (more money, though), you do get more extensive configuration capability for WebSphere. I'm not sure what options you have in base MyEclipse; if you can find VM arguments (setting system properties) that provide what you want, you can set these on the JDK page of the configuration screens or, if there are program arguments that can be set, these can be added via a launch configuration, which you can create from the server connector configuration pages (and can modify them by going to the Run Configurations (which can also be reached by right clicking on the server in the Servers view).
Hope this helps. For better support, the MyEclipse forums (on their web site) are your best option.

Eclipse: How to deploy ear project into separate managed server in Weblogic (non AdminConsole)

I'm using Eclipse for J2EE project development. Target app server is Weblogic10R3.
I was successfully deployed my ear project to weblogic via Run As.. Eclipse feature.
By default it deploys to AdminConsole server. Because of project specific issues I have to deploy into separate managed server (not Admin Console).
Am I able to override deploy behavior? I didn't find required settings inside server plugin.
Deploying to a managed server is supported as long as you have configured the server connection as remote vs local. You can do this even if your "remote" server is localhost. If you aren't sure, you probably need to create a new instance in the Servers View. The local vs. remote option is set in the new server wizard.
Once you have a remote server defined, double-click on the instance in the Servers View and you will see an editor open with various options, including those related to publishing.

Netbeans and apache tomcat

Is there a direct way to deploy a netbeans project, where springframe work has been used, in apache tomcat server?
Yes. All you need to do is to register the server and make it the default server for your project.
From the NetBeans online help:
Registering a Server
Before you can deploy an enterprise application, web application, JSP file, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE.
To register an external server:
Choose Tools > Servers in the main menu.
In the Server Manager, click Add Server.
The Add Server wizard appears and displays the types of servers that are compatible with the IDE.
In the dialog box, select the type of server you want to register and click Next.
Specify the server-specific information in the panels that follow and click Finish.
Changing the Target Server
Each project has a target server. The target server is the server that is used when the project is run. You can set the target server to any server which has been registered in the IDE.
To change the target server:
Right-click the project node in the Projects window and choose Properties.
Select Run in the Project Properties dialog box.
Select the new target server from the Server drop-down menu and click OK.