Wiki source code of Troubleshooting Problems Running on Windows
Version 16.1 by chuckhill on 2007/01/30 17:07
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | If you are having problems building or running on Windows, here are some things to check. | ||
2 | |||
3 | === wobuild.properties === | ||
4 | |||
5 | Many things will not work if this is missing, incorrect, or incomplete. The location for this file is: | ||
6 | ##C:ocuments and Settingsuser name>ibraryobuild.properties## | ||
7 | |||
8 | Here is an example: | ||
9 | |||
10 | {{code}} | ||
11 | |||
12 | #This file stores the wo specific properties #Sat Mar 29 11:33:34 PST 2003 | ||
13 | wo.dir.root=U:/Apple | ||
14 | wo.dir.user.home.library.frameworks=C:/Temp | ||
15 | wo.woroot=U:/Apple | ||
16 | wo.dir.local=U:/Apple/Local | ||
17 | wo.wosystemroot=U:/Apple | ||
18 | #wo.dir.user.home.library=C:/Documents and Settings/Chuck Hill/Local/ | ||
19 | Library wo.dir.user.home.library=C:/Temp wo.dir.library=U:/Apple/Library | ||
20 | wo.dir.local.library=U:/Apple/Local/Library | ||
21 | wo.dir.library.frameworks=U:/Apple/Library/Frameworks | ||
22 | wo.dir.local.library.frameworks=U:/Apple/Local/Library/Frameworks | ||
23 | wo.wolocalroot=U:/Apple/Local | ||
24 | wo.dir.system=U:/Apple | ||
25 | eclipse.home=U:/Programs/eclipse | ||
26 | |||
27 | {{/code}} | ||
28 | |||
29 | For the curious, here is an example from OS X: | ||
30 | |||
31 | {{code}} | ||
32 | |||
33 | #This file stores the wo specific properties | ||
34 | #Wed Oct 11 19:51:09 PDT 2006 | ||
35 | wo.dir.root=/ | ||
36 | wo.woroot=/System | ||
37 | wo.dir.user.home.library.frameworks=/Users/chuck/Library/Frameworks | ||
38 | wo.dir.local=/ | ||
39 | wo.wosystemroot=/System | ||
40 | wo.dir.library=/System/Library | ||
41 | wo.dir.user.home.library=/Users/chuck/Library | ||
42 | wo.dir.local.library=/Library | ||
43 | wo.dir.library.frameworks=/System/Library/Frameworks | ||
44 | wo.dir.local.library.frameworks=/Library/Frameworks | ||
45 | wo.wolocalroot=/ | ||
46 | wo.dir.system=/System | ||
47 | wo.dir.reference.api=/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/ | ||
48 | |||
49 | {{/code}} | ||
50 | |||
51 | === Environment Variables === | ||
52 | |||
53 | WebObjects makes use of some environmental variables. I am not sure which ones need to be set with WOLips, but these are the likely candidates: | ||
54 | |||
55 | {{code}} | ||
56 | |||
57 | HOMEDRIVE=C: | ||
58 | HOMEPATH=\Documents and Settings\<USER NAME> | ||
59 | JAVA_HOME=U:\Sun\j2sdk1.4.2_05 | ||
60 | JRE_HOME=U:\Sun\j2sdk1.4.2_05\jre | ||
61 | NEXT_ROOT=U:/Apple | ||
62 | NEXT_SYSTEM_ROOT=U:/Apple | ||
63 | OS=Windows_NT | ||
64 | SystemDrive=C: | ||
65 | SystemRoot=C:\WINNT | ||
66 | TEMP=C:\TEMP | ||
67 | TMP=C:\TEMP | ||
68 | WEBOBJECTS_JAVA_EXTENSIONS=U:\Sun\j2sdk1.4.2_05/JRE/lib/ext | ||
69 | WEBOBJECTS_JAVA_HOME=U:\Sun\j2sdk1.4.2_05 | ||
70 | windir=C:\WINNT | ||
71 | |||
72 | {{/code}} | ||
73 | |||
74 | === Problem Running Applications === | ||
75 | |||
76 | If **wobuild.properties** (see above) is not correct, the application won't be able to launch. The error will look like this: | ||
77 | |||
78 | {{code}} | ||
79 | |||
80 | [2007-01-23 20:09:33 PST] <main> Unable to initialize WOProperties for reason: Cannot find JavaWebObjects framework ! | ||
81 | java.lang.NullPointerException | ||
82 | [2007-01-23 20:09:33 PST] <main> A fatal exception occurred: null: <WOApplication>: Cannot be initialized. | ||
83 | [2007-01-23 20:09:33 PST] <main> com.webobjects.foundation.NSForwardException for java.lang.NullPointerException | ||
84 | at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys (WOProperties.java:188) | ||
85 | at com.webobjects.appserver.WOApplication._initWOApp (WOApplication.java:5081) | ||
86 | at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:551) | ||
87 | |||
88 | {{/code}} |