The procedure works for both Weblogic 10 and 9.2 (maybe others). I am going to give instructions from 10 (on linux), if you are installing 9.2 you may have some small differences in the procedure, but you can figure it out.
First you gotta get the file: http://www.oracle.com/technology/products/weblogic/index.html It is a free download, you do need an account (It would appear you need a seperate account from oracles main site in order to download 9.2) Please observe the licensing policies.
Note: If you are trying to figure out which build of 9.2 to download (they are distribution specific for linux) I recommend downloading the build that most closely matches your distribitution. I was able to get a Suse built to work just fine on Ubuntu.
Keep in mind that you may or may not want to install this under a root or Administrative account. For testing purposes however, a non Admin account should work just fine.
Install
- Execute the binary in a terminal ./server103_linux32.bin
- The GUI installer will startup, click next to move to the "Choose BEA Home Directory"
- Make sure "Create a new BEA Home" is selected.
- In the BEA Home Directory field make sure you give a location you have permissions to access and write, and remember the location you choose. Click Next.
- For this example we are going to do a "Complete" Install. Click Next.
- On the "Choose Product Installation Directories" Leave everything as is and Click Next.
- On the "Installation Summary" Leave everything as is and Click Next.
- The application will install, when finished, un-check "Run Quickstart" (or not if you want to see the handy menu) and click Done.
Configure
- We need to doing some configuring; execute beahome/wlserver_10.3/common/bin/config_builder (EX. sh /home/user/bea/wlserver_10.3/common/bin/config_builder.sh)
- Make sure "Create a Domain Template" is selected. Click Next.
- Browse for the installed sample domain beahome/wlserver_10.3/samples/domains/wl_server you don't need to expand the wl_server, just select it. Click Next.
- Give your Template a name, doesn't matter. Click Next.
- On the "Add or Omit Applications" screen, just Click Next.
- On the "Add Files" screen, just Click Next.
- On the "Add SQL Scripts" You can probably leave blank, or pick a Database type and version. I add Mysql. On the Type drop down select Mysql, on the Version drop down select "using com.mysql.jdbc.Driver". Click Next.
- Change "examplesServer" to another name... if you want. Don't change anything else. Click Next
- Make sure the User name and password are set to weblogic. The password looks as though it is set to weblogic, but to be safe, I would retype the password in.Click Next. (Don't worry about Configuring additional users, groups .....)
- On the "Specify Start Menu Entries" Screen, just Click Next.
- On the "Prepare Scripts and Files with Replacement Variables" screen. Click Next.
- On the "Review WebLogic Domain Template" screen. Click Next.
- On the "Create a Template" screen. Click Create.
- Click Done.
- From Console run sh beahome/wlserver_10.3/samples/domains/wl_server/bin/startWebLogic.sh
- It may take a little bit of time to start up, just wait for it. (it may or may not start a browser up depending on your system, if it fails, its fine)
- After it is up all the way, go here! http://localhost:7001/console login with username: weblogic password: weblogic
- Your Weblogic server is up and running!
- Want to test your app?
- Follow the Start it up! instructions first.
- If you have any other servers that need to be running for your app (EX. Mysql) start it now.
- Click "Configure Applications"
- Click the "Install Button"
- Navigate to the location of your application (be sure to read the notes on this page as they can be helpful) When you find your app, it should appear differently than the other folders/directories do, and should have a radio button next to it, select the radio button and Click Next.
- Select to deploy either as an application (if you know your app must deploy as a library select that, if you aren't sure select as an application) Click Next.
- On the next screen, leave everything as a default unless you are sure about a change that needs to be made (make sure their is a name given for the app).Click Finish.
- You will be taken to the Summary of Deployments page when the setup finishes.
- If everything went well. you should see your app name in the list, its status should be active and its health should be okay. If the status is not active. check the box next to the app name and click start. If it doesn't start and the health is not okay, their may be something wrong with you app.
- Everything looks good, try to hit your app at http://localhost:7001/nameofapphere
let me know if you have questions by leaving a comment on this blog
I credit some of these instructions to David B.
No comments:
Post a Comment