how to cnfigure WAS Liberty profile with My Eclipse Blue 2014? - ibm-was

I was using WAS for my app in RAD tool. Since it is costly, I am planning to migrate my application to work on WAS Liberty profile in My Eclipse blue 2014. Could any one of you suggest how to open admin console as we used to in WAS?

There is no admin console for the Liberty Profile. To edit the configuration, you just use a text editor on the configuration file in the profile. If you install MyEclipse 2015 CI, there is an additional option on the context menu for the Liberty Profile, in the Servers view, to edit the configuration, which brings up a specific editor for that task.

Related

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.

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.

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.

How to redeploy the web app using the Eclipse IDE

Im new to Eclipse. I use Tomcat as my run time server, but every time I modified the jsp pages, Eclipse was still displaying the older one. Just wondering how to redeploy the application so the changes can be reflected.
Eclipse: Eclipse IDE for Java EE Developers 1.2.1.20090918-0703
Tomcat: Tomcat 6.0
Thanks
Doubleclick the server instance in question in the Servers view to open its configuration. Now, in the right top you should see a section called Publishing. Open it to verify and configure autopublishing settings.
Eclipse should do that automatically for you.
Otherwise, on the Servers view (Menu Window->Show View->Servers), you can right click on your Tomcat instance and hit "Publish" or "Restart"
Make sure you have the "JST Server Adapters" ("Web, XML and Java EE Development category") feature installed.
Eclipse's publishing functionality requries the project to be a "web project", and in some cases requires additional configurations.
Go to Windows > Preferences > Server > Runtime environments and add your tomcat
Either try using publishing, or (better I think) use the FileSync plugin. There you can tell which folders from your project should be copied (live) to what directory on your machine (the tomcat/webapps/yourapp). With a little more effort the filesync configuration can be made machine independent (only using one parameter as TOMCAT_ROOT), in case you want to check-in the project to a repository where others will use it.
Get the Tomcat plugin. It was nice because you can install Tomcat on your system and then associate your web app with that instance of Tomcat. The plugin will let you stop/start Tomcat and define a server such that when you do a build it knows how to deploy the changes. There may be some newer plugin but the Tomcat plugin worked for me and was fairly simple to install and use. Here is a page from IBM on using Eclipse and Tomcat. Inside that page it points you to the following: http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/