source: gs3-extensions/webswing/trunk/web/etc/webswing.config.in@ 38806

Last change on this file since 38806 was 38806, checked in by anupama, 3 months ago

First attempt (2 *hardcoded* config params) of webswing version of Jphind JApplet. With hardcoding the library and collection in the webswing.config.in file, I can get the applet to work, so it tells me that if I can get every param right, the applet will appear. But without hardcoding these 2 params in the webswing.config.in file, and using the now commented-out code in the new webswing-phind.xsl to set the additional parameters, with further change of adding the customArgs property at the very end of the final parameter *value* (*before* end of this value's doublequote), I can get the tomcat/bin/logs/webswing.log to show me that all the custom parameters are as I want, and it attempts to launch the app, but then fails with errors indicating collection is null. So the collection parameter (and probably library param too) are not getting through after all. I was anyway not happy with how I had to add in the customArgs in the webswing.config for applet params nor how I had to set it in the webswing-phind.xsl file. I tried several alternate ways that I felt intuitively may or ought to work, but which didn't work at all, so I settled on the one version where the right values got through into the tomcat/bin/logs/webswing.log file, but even that ultimately ended up with a null collection as I just explained.

File size: 4.3 KB
Line 
1{
2 "/" : {
3 "path" : "/",
4 "security" : {
5 "module" : "EMBEDED",
6 "config" : {
7 "users" : [ {
8 "username" : "webswing-admin",
9 "password" : "greenstone3",
10 "roles" : [ "admin" ]
11 }, {
12 "username" : "webswing-support",
13 "password" : "greenstone3",
14 "roles" : [ "support" ]
15 }, {
16 "username" : "gli",
17 "password" : "greenstone3"
18 } ]
19 },
20 "classPath" : [ ]
21 },
22 "langFolder" : "${webswing.configDir}/lang",
23 "homeDir" : "${user.dir}",
24 "allowedCorsOrigins" : [ "*" ],
25 "adminConsoleUrl" : "http://localhost:8383/webswing-server/admin"
26 },
27 "/gli" : {
28 "path" : "/gli",
29 "security" : {
30 "module" : "NONE",
31 "config" : { },
32 "classPath" : [ ]
33 },
34 "icon" : "classes/images/gatherer.png",
35 "webFolder" : "",
36 "swingConfig" : {
37 "jreExecutable" : "${java.home}/bin/java",
38 "javaVersion" : "${java.version}",
39 "vmArgs" : "",
40 "classPathEntries" : [ "*.jar", "lib/*.jar" ],
41 "theme" : "Murrine",
42 "fontConfig" : {
43 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
44 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
45 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
46 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
47 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
48 },
49 "swingSessionTimeout" : 300,
50 "antiAliasText" : true,
51 "isolatedFs" : true,
52 "debug" : false,
53 "directdraw" : true,
54 "allowDelete" : true,
55 "allowDownload" : true,
56 "allowAutoDownload" : true,
57 "allowUpload" : true,
58 "allowJsLink" : true,
59 "allowLocalClipboard" : true,
60 "launcherType" : "Desktop",
61 "launcherConfig" : {
62 "mainClass" : "org.greenstone.gatherer.GathererProg",
63 "args": "-gsdl @gsdl3srchomeunix@/gs2build -gsdlos @gsdlos@ -gsdl3 @gsdl3srchomeunix@/web -gsdl3src @gsdl3srchomeunix@ -library_url @external-servleturl@ -webswing ${customArgs}"
64 },
65 "homeDir" : "@gsdl3srchomeunix@/gli"
66 },
67 "maxClients" : 4,
68 "maxConnections" : 4,
69 "allowStealSession" : false,
70 "name" : "Greenstone Librarian Interface",
71 "sessionMode" : "ALWAYS_NEW_SESSION",
72 "uploadMaxSize" : 1200,
73 "webHomeDir" : "@gsdl3srchomeunix@/gli",
74 "goodbyeUrl" : "/"
75 },
76 "/phind" : {
77 "path" : "/phind",
78 "security" : {
79 "module" : "NONE",
80 "config" : { },
81 "classPath" : [ ]
82 },
83
84 "webFolder" : "",
85 "swingConfig" : {
86 "jreExecutable" : "${java.home}/bin/java",
87 "javaVersion" : "${java.version}",
88 "vmArgs" : "",
89 "classPathEntries" : [ "applet/*.jar" ],
90 "theme" : "Murrine",
91 "fontConfig" : {
92 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
93 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
94 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
95 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
96 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
97 },
98 "swingSessionTimeout" : 300,
99 "antiAliasText" : true,
100 "isolatedFs" : true,
101 "debug" : false,
102 "directdraw" : true,
103 "allowDelete" : false,
104 "allowDownload" : false,
105 "allowAutoDownload" : true,
106 "allowUpload" : false,
107 "allowJsLink" : true,
108 "allowLocalClipboard" : true,
109 "launcherType" : "Applet",
110 "launcherConfig" : {
111 "appletClass" : "org.greenstone.applet.phind.JPhind",
112 "parameters" : {
113 "library" : "library",
114 "collection" : "tudor",
115 "phindcgi" : "?a=a&rt=r&s=PhindApplet&o=xml&ro=1",
116 "classifier" : "1",
117 "orientation" : "vertical",
118 "depth" : "2",
119 "resultorder" : "L,l,E,e,D,d",
120 "backdrop" : "interfaces/default/images/phindbg1.jpg",
121 "fontsize" : "10",
122 "blocksize" : "10"
123 }
124 },
125 "homeDir" : "@gsdl3webwritablehomeunix@"
126 },
127 "maxClients" : 4,
128 "maxConnections" : 4,
129 "allowStealSession" : false,
130 "name" : "Greenstone Librarian Interface",
131 "sessionMode" : "ALWAYS_NEW_SESSION",
132 "uploadMaxSize" : 1200,
133 "webHomeDir" : "@gsdl3webwritablehomeunix@",
134 "goodbyeUrl" : "/"
135 }
136}
Note: See TracBrowser for help on using the repository browser.