Installing Tomcat on Mac OSX (Snow Leopard)

November 12, 2009

Complete fresher here, and I guess there might be guys out there in the same boat. Here are the steps I needed to go through to make it work. Following some pointers on the way there:

Start by downloading what we need from

For the latest version see the Which version , but I used 6.x and got the core zip.

After you have downloaded it , most likely to the downloads folder unpack it and rename the folder to Tomcat for simplicity

Copy the complete folder to $$your_profile$$/Library

After you have done this , and got stuck here for a bit, run the following command to enable you to execute the commands from terminal.

chmod a+x /users/$your_profile$/library/tomcat/bin/*.sh

If you don’t expect to see the following:

Peter-Versters-MacBook-Pro:~ Peter$ /users/peter/Library/Tomcat/bin/

-bash: /users/peter/Library/Tomcat/bin/ Permission denied

This will make the files writeable and allow you to start the service.

Then execute the following:


Provided you are still with me navigate to http://localhost:8080 to test if the services is running.

Final step to give you admin access to the site:

is to set up the users as per the following:

conf/tomcat-users.xml in your installation. That file will contain the credentials to let you use this webapp.

You will need to add manager role to the config file listed above. For example:

<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
Happy Tomcatting...

How to write technical documentation

November 4, 2009

This is absolutely brilliant. If only we could all use this approach.

Jeff Moser has written an excellent article describing how the Advanced Encryption Standard works. He uses an very accessible paradigm – the cartoon. He layers the description starting with a simple overview and progressively getting into more and more detail. Because the story is layered, it is complete at each stage before more detail is added. The audience has the opportunity to leave when they know enough.

[From How to write technical documentation...]

SharePoint Online Price Drop

November 4, 2009

Microsoft is cutting its Exchange Online pricing from $10 per user per month to $5 per user per month. It also is cutting the price of the BPOS bundle — which includes SharePoint Online, Exchange Online, Communications Online and Live Meeting — from $15 per user per month, to $10 per user per month. [From Microsoft chops prices of its hosted enterprise cloud offerings | All about Microsoft |]

STSADM Start Excel Services

December 18, 2008

  • STSADM.EXE -o provisionservice -action start -servicetype “Microsoft.Office.Excel.Server.ExcelServerSharedWebService, Microsoft.Office.Excel.Server, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c”

STSADM Template Names for creating sites

December 15, 2008

Can never find this when looking for it

GLOBAL#0 = Global template

STS#0 = Team Site

STS#1 = Blank Site

STS#2 = Document Workspace

MPS#0 = Basic Meeting Workspace

MPS#1 = Blank Meeting Workspace

MPS#2 = Decision Meeting Workspace

MPS#3 = Social Meeting Workspace

MPS#4 = Multipage Meeting Workspace

CENTRALADMIN#0 = Central Admin Site

WIKI#0 = Wiki Site

BLOG#0 = Blog

BDR#0 = Document Center

OFFILE#0 = Records Center

OFFILE#1 = Records Center

OSRV#0 = Shared Services Administration Site

SPS#0 = SharePoint Portal Server Site

SPSPERS#0 = SharePoint Portal Server Personal Space

SPSMSITE#0 = Personalization Site

SPSTOC#0 = Contents area Template

SPSTOPIC#0 = Topic area template

SPSNEWS#0 = News Site

CMSPUBLISHING#0 = Publishing Site

BLANKINTERNET#0 = Publishing Site

BLANKINTERNET#1 = Press Releases Site

BLANKINTERNET#2 = Publishing Site with Workflow

SPSNHOME#0 = News Site

SPSSITES#0 = Site Directory

SPSCOMMU#0 = Community area template


SPSPORTAL#0 = Collaboration Portal

SRCHCEN#0 = Search Center with Tabs

PROFILES#0 = Profiles



SRCHCENTERLITE#0 = Search Center

SRCHCENTERLITE#1 = Search Center

SPSBWEB#0 = SharePoint Portal Server BucketWeb Template

Edit Page in SharePoint without the menu

December 5, 2008

Append this to end of the url ?PageView=Shared&ToolPaneView=2

Private Views are done as follows ?PageView=Personal&ToolPaneView=2

More on this can be found here

Found some javascript to add to favourites, not too sure they are but will dig em out and post it.

Install SharePoint Templates using Script

November 27, 2008

Place the scripts below in one

C# Timer Sample – Simple

November 24, 2008

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Timers;


namespace WindowsTimer




void Main(string[] args)


Timer timer = new

timer.Elapsed += new

timer.Interval = 1000;




void timer_Elapsed(object sender, ElapsedEventArgs e)







Accessing Special Folders C#

November 13, 2008

How to create and read files for various purposes to “special” folders   







void Save_Click(object sender, RoutedEventArgs e)


Microsoft.Office.InfoPath.FormControl infoPath = windowsFormsHost.Child as Microsoft.Office.InfoPath.FormControl;


string folderName = string.Format(@”{0}\{1}.xml”, Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), Guid.NewGuid().ToString());




Debugging SharePoint

November 10, 2008

User friendly error pages are not what we need when trying to debug something…

Modify your web.config as follows, and all will be well.

< ?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>

< configuration>

< configSections>


< SharePoint>

< SafeMode MaxControls=”200″ CallStack=”true”

DirectFileDependencies=”10″ TotalFileDependencies=”50″


< PageParserPaths>



CallStack=”true” being the important setting here.


Then further on down the file:

< customErrors mode=”Off”

Next Page »