Sensible Open Source

Blog Status

  • 4 yrs 44 wks 2 days old
  • Updated: 7 Feb 2010
  • 450 entries
  • 173 comments
Total: 1,177,948
since: 5 Apr 2005

LinkBlogS

Creating Vidcasts

18 June 2007, Monday 7:05 P GMT-06
Tags:      

Man, Can't Microsoft Catch A Break?

16 March 2007, Friday 12:26 P GMT-06

Viacom, Google andYou Tube, Oh My!

16 March 2007, Friday 12:25 P GMT-06

Switch to digital TV to start in October

16 March 2007, Friday 7:46 A GMT-06

Is the Ice Ready? No, Its Still To Hot To Use...

16 March 2007, Friday 7:43 A GMT-06

MIT Entire Curriculum At disposal of e-learners

6 March 2007, Tuesday 11:52 A GMT-06

A cure for e-mail attention disorder?

2 March 2007, Friday 12:51 A GMT-06
Tags:  

Windows-on-Mac software gets virtualization update

1 March 2007, Thursday 5:08 A GMT-06

EnterpriseDB is/n't Open Source

1 March 2007, Thursday 3:37 A GMT-06

BitTorrent download portal debuts

27 February 2007, Tuesday 9:05 A GMT-06

$45b TXU buyout

27 February 2007, Tuesday 9:02 A GMT-06

iPhone Competitors Got The Touch

26 February 2007, Monday 3:43 A GMT-06
Tags:        

HTC - Smart Mobility

25 February 2007, Sunday 4:22 A GMT-06

Hard to find 1-800 numbers

23 February 2007, Friday 8:35 A GMT-06

Cuba Embraces Open-Source Software

21 February 2007, Wednesday 3:10 A GMT-06

Vista at the tipping point, Err Dipping Point?

11 February 2007, Sunday 11:11 A GMT-06
Tags:  

PostgreSQL Open Source And Persistence

3 February 2007, Saturday 10:32 P GMT-06

Blackboard Pledges No Patent Blocks

3 February 2007, Saturday 10:28 P GMT-06

UVU

5 January 2007, Friday 11:58 P GMT-06

Open-source IP PBX software appliance"

4 January 2007, Thursday 3:44 A GMT-06

Asterisk an under-appreciated Open Source Success Story

4 January 2007, Thursday 3:43 A GMT-06

Open Source AJAX Tooling

4 January 2007, Thursday 3:41 A GMT-06

Google MAIL API Secuirty Alert

1 January 2007, Monday 7:37 P GMT-06
Tags:    

United States Patent Application: 0060288329

26 December 2006, Tuesday 4:00 A GMT-06

LinkBlog Popular Tags

                                       







««Feb 2010»»
SMTWTFS
 
1
234
5
6
78910111213
14151617181920
21222324252627
28

 

August 16, 2012

Time Left

2 years 6 months 4 days

                   

New Design: RedTie by alexisc22

24 May 2009, Sunday
alexisc22's "RedTie" was just added to OSWD! It is white and red and validates XHTML 1.0 Transitional.

New Design: Simple Beauty by dboy

24 May 2009, Sunday
dboy's "Simple Beauty" was just added to OSWD! It is white and gray and validates XHTML 1.0 Strict.

New Design: Rounded_2 by jedignork

24 May 2009, Sunday
jedignork's "Rounded_2" was just added to OSWD! It is blue and white and validates XHTML 1.0 Strict.

New Design: Delicious Fruit by Dieter

24 May 2009, Sunday
Dieter's "Delicious Fruit" was just added to OSWD! It is yellow and green and validates XHTML 1.0 Strict.

New Design: Touching by timmytima

24 May 2009, Sunday
timmytima's "Touching" was just added to OSWD! It is white and black and validates XHTML 1.0 Transitional.

New Design: BlackandGreen by shipping_guy

24 May 2009, Sunday
shipping_guy's "BlackandGreen" was just added to OSWD! It is orange and green and validates XHTML 1.0 Strict.

New Design: Sundark by rotw

24 May 2009, Sunday
rotw's "Sundark" was just added to OSWD! It is black and yellow and validates XHTML 1.0 Transitional.

New Design: Cash by alexisc22

24 May 2009, Sunday
alexisc22's "Cash" was just added to OSWD! It is green and gray and validates XHTML 1.0 Transitional.

New Design: Greeny blu by heartlessg

24 May 2009, Sunday
heartlessg's "Greeny blu" was just added to OSWD! It is black and blue and validates XHTML 1.0 Transitional.

New Design: Cloudy Water Sports by boilers

24 May 2009, Sunday
boilers's "Cloudy Water Sports" was just added to OSWD! It is gray and blue and validates XHTML 1.0 Strict.

This week at LWN: On GNOME and its Foundation: an interview with Luis Villa

24 May 2009, Sunday
LWN recently posted a brief article on the GNOME Foundation's plea for support to help it get through a difficult year. Some of the comments on that news questioned the role of the foundation and its

Poseidon USB Stack Bounty Reached: Open Source, AROS Port

24 May 2009, Sunday
Another important bounty quota has been reached in the Power2People website, and this time the result comes from a common effort of the whole Amiga/Morphos/AROS Community. The result of this bounty be

Where to buy Preinstalled Linux Laptop/Desktop

24 May 2009, Sunday
Installing any OS can still sometimes be a tedious task and one that scares the wits out of the average computer user. And, it’s just more fun to buy a computer with Linux already on it and not have t

Microsoft and ODF: Bad for Everyone

24 May 2009, Sunday
Microsoft finally agreed to implement ODF support in Microsoft Office, but they didn't do it quite right, hurting both Microsoft and the ODF specification.

Linux MMORPG Game Engine Sees Major Update

23 May 2009, Saturday
Regnum Online, a Massively Multi-player Online Role Playing Game that has a native Linux client offered by its developers (NGD Studios), has received a major overhaul. Regnum Online is one of the very

Discovery: The Ultimate Linux Device - The Kickfire Appliance

23 May 2009, Saturday
Discover the Kickfire appliance--if this isn't the ultimate Linux device, one might not exist.

Some Funny Linux/Computer Pictures

23 May 2009, Saturday
More funny pictures from the "world wide interweb" - I think that's what Mr. Monk calls it ;)

The Acer Debacle - Closing the Chapter

23 May 2009, Saturday
Michelle Minkin, a friend of this effort and an all-around nice lady; suggested that we auction off the opportunity to destroy these computers. We were almost ready to start soliciting the community f

Cisco Settles, But Where From Here?

23 May 2009, Saturday
Until September 20, 2007, nobody had ever sued anybody for violating the General Public License (GPL) — not a single company, project, or individual developer in the license's then-eighteen

OpenBSD 4.5 update: Reinstall goes quickly, X still in trouble; still running Ubuntu 8.04

23 May 2009, Saturday
I'll keep this quick. I followed the advice of Nathan from OpenBSD101 and replaced my upgraded OpenBSD 4.5 installation with an entirely new, reinstalled system. That took all of 10 minutes. I followe

Desperation, Scare Tactics, and Happy Memorial Day!

23 May 2009, Saturday
I love to poke fun at tech vendors who continually boast of their innovation, when in fact they're scared to death of real innovation, if they could even recognize it. Today I poke fun at the anti-mal

RSS Add-Me








Google Related Links

Mac OS X: [JEE Environment] Installation, Configuration and Final Deployment

posted 20 February 2006, Monday

Lets get right to it! The software to download is listed below:

1. Jetty (HTTP, Servlet)
2. MySql

JETTY INSTALLATION


Jetty website can be found here. The version used here can be found here Jetty-5.1.10. Version zip file is jetty-5.1.10-all.tar.gz.

Unzip the the file in a directory, for demonstartions a staging area directory ~/Scratch/Jetty was creatted. Unzipping the jetty-5.1.10-all.tar.gz to this directory will create a directory structure as follows:

In UNIX/MAC OS X/Linux the home directory '~' or user directory is the perfect location for our staging directory and server directory. This allows the developer to launch the servers from a shell command wihtout installing in the usr/local directories. The execution is kept local at this point and provides for a better development environment. 

1. ~/Scratch/Jetty - unzipping archive
2. ~/Scratch/Jetty/jetty-5.1.10-all/jetty-5.1.10 - Directory created from unzip

NOTE:
Downloading jetty-5.1.10-all.tar.gz was chosen as not to work through the complications of compilation. If a desire to download the source archive for Jetty in order to understand the compliation process would be a very positive exsercise. However, due to the our purposes this will be considered out of scope. Future entries may consider instruction on this topic; only demand of request will be the deciding factor. :-)

Now from this point, move the contents of ~/Scratch/Jetty/jetty-5.1.10-all/jetty-5.1.10 into the ~/Scratch/Jetty and delete the directory ~/Scratch/Jetty/jetty-5.1.10-all.

In order to keep consistent in all platforms putting all servers in a consistent directory will allow consistent documentation. This may or may not be the proper setup for production, however, the idea of this setup is to promote familiarity with the installation. Once, you feel comfortable with this installation preparing this environment for production should provide a smoothier implementation.

Move the ~/Scratch/Jetty to a directory ~/Servers/Jetty. The directory contents should look like Figure 1.


Of course, it is important to peruse this directory structure and understand what each directory contains and its function as well as the function and purpose for each file. Reading the "README.TXT" can only be a good thing, my suggestion is do it.

Now lets get Jetty up and running!! First of all, insure you do not have any server hanging off port 8080. If Tomcat, Resin or any other server occupies this port stop it or change the port in the jetty.xml to a port of your choice.

Now let's launch Jetty.

The simply way is to type java -jar start.jar from a command line. However, it would be better to launch this command with the os command line background command & . This is to allow a comman window with the same environment available to execute the shutdown process of the jetty server. This effort makes it easier to keep a shell available for log viewing, stopping the server and checking the server health.

Setting up an environment variable for jetty is completed from the shell as seen below:

export JETTY_HOME=<jetty install directory>

So, execution of the Jetty server is as follows:

 java -jar /usr/local/jetty/start.jar &

In the internet browser enter the URL Enter http://localhost:8080/ and the response from the server is an Error 404 - Not Found!! as seen in Figure 2


The result is simply explained as the jetty server which was launched without a context. Explaining the context issue will follow, for now select the Template Webapp and the javadoc links. Just read them, look around and get familar with the documentation.

Now, go to the initial command prompt and type: java -jar stop.jar

This will stop the jetty engine. We will now start jetty again with a context. For expediency, we will use the demo applications that reside in the demo directory of the jetty directory structure. The demo provides a test to insure accurate installation that can establish validity across all platforms.

To launch the Jetty server with the demo context simply go to a shell, change directory to ~/servers/jettty.

Executiing the server is exactly the same as done above, however, the demo context must be given as a prameter.

The command line is as follows:

~/Servers/jetty/> java -jar start.jar etc/demo.xml &



The server is accessed by http://localhost:8080/ as you can see by the url in figure 3 is http://localhost:8080/jetty/index.html. Of course, this url is rendered by the demo.xml. Investigating how this works is extrememly valuable and it is highly sugggested and recommended.

However, this concludes the MAC OS X installation entry. The instructions to  Windows can be found here.   After your target OS is configured the next step is to install MySQL.

Once the installations are compete the review of JSP's, Servlets and Database access will be presented.





MYSQL INSTALLATION



The MySQL version we are installing is version 5.0. Version 4.X maybe more stable and more familiar to most developers, but the belief of using the newest and most competent version is the only justification for version 5.0's use in the target environment.

The installation file name for the version 5.0 is mysql-standard-5.0.18-osx10.4-powerpc.dmg.

Now that we have the download the installation steps are listed below:

  1. Launch mysql-standard-5.0.18-osx10.4-powerpc.dmg to mount the  mysql package
  2. Launch the mysql-standard-5.0.18-osx10.4-powerpc.pkg
    1. Running through the install is very straight forward
    2. The final installation creates the following files in /usr/local:
      • Directory (Mysql directory)
        • mysql-standard-5.0.18-osx10.4-powerpc
      • Symbolic Link to mysql above
        • mysql
  3. MySql requires a user account named mysql.  This is normally created for OS X 10.2 and above
    • You can verify this by entering this comman in the command shell:
      • cat /etc/passwd | grep -i "mysql"
<Helios:sparc> 0 [02-19 13:41] /usr/local (0 Mb)
! cat /etc/passwd | grep -i "mysql"
mysql:*:74:74:MySQL Server:/var/empty:/usr/bin/false
      •  cat /etc/passwd | grep -i "mysql"
<Helios:sparc> 0 [02-19 13:41] /usr/local (0 Mb)
! cat /etc/passwd | grep -i "mysql"
mysql:*:74:74:MySQL Server:/var/empty:/usr/bin/false


4. If you would like to startup MYSQL as a startup item launch MySQLStartupItem.pkg
    The following directory is created in MySQLCOM dir /Library/StartupItems/.  To disable my MySQL from system startup update the following file /etc/hostconfig's variable MYSQLCOM=-YES- to  MYSQLCOM=-NO-

5. Start MySQL command line issue the following commands

<Helios:sparc> 0 [02-20 07:04] /usr/local (0 Mb)
! cd /usr/local/mysql

<Helios:sparc> 0 [02-20 06:57] /usr/local (0 Mb)
! sudo ./bin/mysqld_safe
<Issue a CTRL-Z>


6. Connect to MySQL
<Helios:sparc> 0 [02-20 06:57] /usr/local (0 Mb)
! /usr/local/mysql/bin/mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.18-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show datanases
    -> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'datanases' at line 1
mysql> show databases;
+-----------------------------+
| Database                |
+-----------------------------+
| information_schema|
| mysql                     |
| test                        |
+-----------------------------+
3 rows in set (0.31 sec)

mysql>


You are conencted.

I have been using MySQL Admin to create database and tables, and well, general administartion. I believe to be a nice little package and would suggest using it... Its an easy install and provides a GUI for MySQL Administration.
(NOTE: My experience with MySQL Admin is Windows and Mac OS X only at this time!)

Execute the MYSQL shortcut. You'll be prompted for a password. Enter your password.

Enter show databases:

mysql> show databases;
+--------------------+
| Database
+--------------------+
| information_schema
| mysql
| test |
+--------------------+
3 rows in set (0.00 sec)


mysql> use test;

Create a table foo in Database "test"

mysql> CREATE TABLE foo (a TINYINT NOT NULL);
Query OK, 0 rows affected (0.58 sec)

mysql> show tables;
+----------------+
| Tables_in_test
+----------------+
| foo
+----------------+
1 row in set (0.00 sec)

NOTE: If you received the results above MySQL is installed correctly


MYSQL ADMIN INSTALLATION


MySQL's admin tool is a fairly new tool and provides a better interface than the standard MySQL.exe (some may argue this point with great conviction! :-). The installation is fairly simple and will require the username and password that was created in the MySQL DB installation.

Simply download the MySQL Administrator from MySQL Admin execute the DMG.  this will mount the package drag the MySQL Adminstrator.app to a directory of your choosing.

Launch it and you will be asked for some credentials, enter localhost, if you followed along leave the password and user fields balnk.


You should now be grated acces to the adminsitration tool seen below;


Goto the folder C:\Scratch\MySQLAdmin and execute the mysql-administrator-1.1.5-win.msi installation. Install the Tool in the following directory:

C:\Servers\MySQL\MySQL Administrator 1.1\

Any qestions?? Add comments or send email to SOS











tags:    

links: digg this    del.icio.us    technorati    reddit