Bear with me on this, IBM lets us down on the instructions in my opinion, but I do show liberty profile working and it will be a good tool for you. However it is not  WAS and does not take away the need for you to understand how to deploy to WebSphere Application Server after you have developed an application.

https://www.ibm.com/developerworks/mydeveloperworks/blogs/wasdev/entry/download_wlp?lang=en

  1. Download Eclipse Indigo

    http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2

    Unpack and create a desktop shortcut to your eclipse install

  2. Create an Eclipse workspace
  3. Close the Eclipse Welcome page
  4. Drag the “install” icon into the Eclipse workspace
  5. The Eclipse Market Place will start downloading the liberty profile as seen below
  1. Once complete, click “Next” then read and accept license
  2. The install process will then start 

  3. Restart Eclipse

  4. Following the instruction on “IBM Developer Works” using the drag drop method does not work as we have no idea where the Liberty profile is installed? I think it has gone to D:\liberty_workspace\.metadata\.plugins\com.ibm.etools.wdt.server.core\tmp0\usr\servers\defaultServer0 which this silly location inside Eclipse. It did not logically  follow known of the naming I used in the wizard previously. I personally think that we need to download the liberty profile separately? Man alive the 3 seconds I am going to save on start up  better be good as I spent 30 minutes trying so far.

Create Server definition in Eclipse

What we are going to do now is create a server definition which will refer to the WebSphere 8.5 Liberty Profile

  1. Right-mouse click on the Server tab
  2. Select New > Server
  3. Click Next to find that the WAS 8.5 Liberty is not available.

  4. So what I did was ignore IBMs Developer works instructions. Once gain they are poor and created by some nerd who has no idea that real people need simple instructions like I am creating here.
  5. I then resorted to download the java -jar wlp-developers-8.5.0.0.jar
    File and reference it manually. 

  6. What do I do now? I tried running it?
  7. SO I then went back to Step 3 and clicked the Download and install option to try that approach (this one worked – third time luck!)
  8. This is now my third trial to get this installed. Not feeling too great at this moment. IBMs QA is getting worse every year. I faced the same problem in the last 3 days with WSRR upgrade from 7.0.0.3 to 7.0.0.4 and Also WebSphere eXstreme Scale upgrade from 7.1.0.3 to 7.1.1.1. And now Liberty and in all all three cases it has been a challenge. Not like the quality I am used to from IBM. Disappointed me says.
  9. Click Download WebSphere
  10. Application Server v8.5 download site
  11. Click Next and read/accept license
  12. Choose a location. I just typed a location
  13. Click Next
  14. Now we create a New Liberty Profile
  15. I chose to call my server – Server1
  16. Click Finish
  17. We can now start the stand alone server
  18. Well 3 seconds later is says it is ready? Let’s test
    Navigate to http://localhost:9080
  19. Result

    We can see that the server is running, but we have no apps, lets see what we can deploy? Let’s also find out how to configure this puppy>

    Note we can also see the server config in the Enterprise Explorer in the current Eclipse workspace.

  20. What we can do is edit the server.xml

    WE can see in this configuration panel that we can add features

  21. Click Add > Application

  22. In this example I have made up a sample app and I am going to install it. To create the simple test app, I just added a standard dynamic web application to the workspace and exported it as a WAR to d:\tmp. I will then choose an absolute path to it and see of I can get it to run?
  23. There are several eways to reference you application, if you click relative you can use variables like seen below. I chose to use an absolute path as seen immediately after this diagram.
  24. Set you absolute path to where the WAR file is located
  25. Save and see if we can browse to context root

The profile auto restarted as per the default settings


[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.47 seconds.
 

[AUDIT ] CWWKG0016I: Starting server configuration update.

[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/myapp/*

[AUDIT ] CWWKZ0001I: Application My Test App started in 0.38 seconds.

[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.82 seconds.

It shows you a http link, let click and see what happens?

  1. The Eclipse web-browser loads and we have success.
  2. Below is the same app loaded in a standard browser

Well this is the basics and not bad.

I personally have two minds.

1. It detracts from WAS 8.5 standard admin / deploy practices and still will not resolve teaching developers how use WAS properly which is often a weakness in my opinion because many developers do not use RAD. Many developers know Java but not ow IBM WebSphere Application Server works with JEE ie packaging blue prints.

2. The good thing however is that this indded light weight and allows a developer to at least trial the code against a WAS code base which is brilliant for validating syntax of your code. Either way you still need to understand the nuances of deployment as at some point ie your WAR/EAR has to be deployed with resource references and appropriate JNDI resources configured in most likely destined foe a WAS ND cell.

Leave a Reply