After embarrassing myself by providing a linux sysadmin with a WebObjects 5.3.1 license key and telling him he was licensed to deploy my webobjects app on his system, I wrote a simple java command line app to test my license key before I distribute an app containing the key.  Others may find it useful so here is the source.

//to compile, save as LicenseCheck.java and then type
// javac -classpath /Library/WebObjects/lib/JavaWebObjects.jar LicenseCheck.java
//
public class LicenseCheck extends com.webobjects.appserver._private.License {

    public LicenseCheck(String s) {
        super(s);
    }
    
    public static void main(String args[]) {
        if(args.length == 0)        {
            System.out.println("Usage: java -cp /Library/WebObjects/lib/JavaWebObjects.jar:. LicenseCheck serial-number");
            System.exit(0);
        }
        try {
            System.out.println(SerialNumberUtil.FSSerialBytes2Struct(SerialNumberUtil.FSSerialString2Bytes(args[0])));
        System.out.println(new LicenseCheck(args[0]));
        } catch(IllegalArgumentException iae) {
            System.out.println("Invalid serial number");
        }
    }

}

The output gives a bit more information than Apple's WebObjectsLicenseUpgrader which hasn't shipped since 5.2 anyway. Here is some sample output I got from recent keys

WebObjects 5.3 key
<FSSerialRec productCode=10 version=83 locationCode=1 serialNumberVersion=1 serialNumber=3 check=398563 station=0 reserved=0 maxrequests=0 expiremonth=0 womacosx=true wowinnt=true wounix=true multithreading=true loadbalancing=true >
<License productCode=10
productMajorVers=5
productMinorVers=3
maxReqPerMin=0
multithreadingEnabled=true
loadBalancingEnabled=true>

WebObjects 5.3.1 key
<FSSerialRec productCode=11 version=83 locationCode=1 serialNumberVersion=1 serialNumber=2 check=523789 station=0 reserved=0 maxrequests=0 expiremonth=0 womacosx=true wowinnt=false wounix=false multithreading=true loadbalancing=true >
<License productCode=11
productMajorVers=5
productMinorVers=3
maxReqPerMin=0
multithreadingEnabled=true
loadBalancingEnabled=true>

WebObjects 5.3.2 key
<FSSerialRec productCode=11 version=83 locationCode=1 serialNumberVersion=1 serialNumber=4 check=1022001 station=0 reserved=0 maxrequests=0 expiremonth=0 womacosx=true wowinnt=true wounix=true multithreading=true loadbalancing=true >
<License productCode=11
productMajorVers=5
productMinorVers=3
maxReqPerMin=0
multithreadingEnabled=true
loadBalancingEnabled=true>

It looks like productCode=10 is WebObjects Developer, while productCode=11 is WebObjects Deployment.  As expected the 5.3.1 key didn't work with linux (wounix=false), but the 5.3 key did.  It looks like the 5.3.2 key is a true deployment key for all platforms.

Enjoy!


Tim


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to