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

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.

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.

liberty profile default installation location

I have used Eclipse Market place to install the "IBM Websphere Application Server liberty developer tools for Kepler".
Next thing I wish to do is create a New Server. So I right clicked on the Servers tab. New > Server. And create a server of type "WebSphere Application Server V8.5 Liberty Profile". On the second page of the wizard it asks me to choose an existing installation.
Selecting something random for this directory gives an error:
The installation directory is not valid. Check that the path points to a Liberty profile runtime environment (e.g. /wlp).
Where has marketplace installed the liberty profile? Have I even installed the right thing. A simple windows search seems to throw nothing up when I look for wlp.
The developer tools do not include a copy of WAS Liberty itself, it is just the tools to help you develop and deploy applications into a WAS Liberty server. So you have installed the correct thing, but you also need to install a WAS Liberty server as well. The developer tools will install this for you if want.
On the second page, don't select 'existing installation', instead select 'Install from an archive or repository'. Click next, and on the third page, you have the option to 'Download and install a new runtime environment from ibm.com'
"Download WAS Liberty in Eclipse" explains the steps for installing Eclipse, the WebSphere Developer Tools, and a Liberty server, with links for the downloads.
"Installing WebSphere Application Server Liberty Profile" on YouTube uses that page and shows how to:
Install the WebSphere Developer Tools into Eclipse (which you've already done)
Use the tools to install Liberty and create a server
It assumes you already have Eclipse installed.

How to configure application level settings in Websphere developer tool in Eclipse?

I install WebSphere Developer tools for Eclipse and refer to my local WebSphere 7 installation. Then deploy a Spring application within an EAR project. However, when I deploy the EAR project into WebSphere server instance in Eclipse, I find no options/UI to assign external library or assign role/user mapping etc, just like what I can do in WebSphere console.
When log on WebSphere console I do see the project setting but cannot save the change.
So is there anyway to configure on the UI or I have to make every change in an WebSphere XML configuration file?
In Eclipse, I find no options/UI to assign external library or assign role/user mapping etc
Yes, you have to do it via console.
When log on WebSphere console I do see the project setting but cannot save the change.
Thats the common problem. Open the Server configuration and uncheck Minimize application files copied to the server. Restart server, undeploy and redeploy application. You should be able to save mappings.
If this doesn't help (helps in most cases but not for some settings and I don't remember for which), then in the Publishing options, switch to Run server with resources on Server, this will work for sure, but deployment will be a bit longer. Of course restart and redeploy app.
You will see the missing OK buttons in the admin console then.

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.