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.
Download Eclipse Indigo
Unpack and create a desktop shortcut to your eclipse install
- Create an Eclipse workspace
- Close the Eclipse Welcome page
- Drag the “install” icon into the Eclipse workspace
- The Eclipse Market Place will start downloading the liberty profile as seen below
Once complete, click “Next” then read and accept license
The install process will then start
- 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
- Right-mouse click on the Server tab
- Select New > Server
Click Next to find that the WAS 8.5 Liberty is not available.
- 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.
- I then resorted to download the java -jar wlp-developers-220.127.116.11.jar
File and reference it manually.
- What do I do now? I tried running it?
- 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!)
- 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 18.104.22.168 to 22.214.171.124 and Also WebSphere eXstreme Scale upgrade from 126.96.36.199 to 188.8.131.52. 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.
- Click Download WebSphere
- Application Server v8.5 download site
- Click Next and read/accept license
- Choose a location. I just typed a location
- Click Next
- Now we create a New Liberty Profile
- I chose to call my server – Server1
- Click Finish
- We can now start the stand alone server
- Well 3 seconds later is says it is ready? Let’s test
Navigate to http://localhost:9080
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.
What we can do is edit the server.xml
WE can see in this configuration panel that we can add features
Click Add > Application
- 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?
- 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.
- Set you absolute path to where the WAR file is located
- 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?
- The Eclipse web-browser loads and we have success.
- 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.
- Course Outlines
- IBM BPM
- IBM Consulting
- IBM ESB
- IBM HTTP Server
- IBM Installation Manager
- IBM Integration Bus
- IBM Integration Designer
- IBM Middleware
- IBM Packaging Utility
- IBM Portal Server
- IBM Process Server
- IBM Update Installer
- IIBM 9.0 for Developers
- Integration Specialist
- Liberty Core Runtime
- Liberty Profile
- Middleware Consultant
- Middleware Consulting
- Middleware Knowledge and Insights
- Middleware Training
- Mule ESB
- Object Data Grids
- Success Mentoring
- WAS 7 Migration
- WAS ND
- WebLogic Application Server
- WebSphere 7
- WebSphere 8.5
- WebSphere 8.5.5
- WebSphere Application Server
- WebSphere Architect
- WebSphere Author
- WebSphere Automation
- WebSphere Consulting
- WebSphere Courses
- WebSphere ESB
- WebSphere Expert
- WebSphere Guru
- WebSphere Integrated Developer
- WebSphere Jython
- WebSphere Jython Examples
- WebSphere Message Broker
- WebSphere Migration
- WebSphere MQ
- WebSphere Plugin
- WebSphere Portal Server
- WebSphere Process Server
- WebSphere Profile Management
- WebSphere Scripts
- WebSphere Security
- WebSphere Shell Script
- WebSphere Training
- What Is