Changeset 38806


Ignore:
Timestamp:
2024-03-01T21:42:56+13:00 (3 months ago)
Author:
anupama
Message:

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.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/webswing/trunk/build.xml

    r37358 r38806  
    176176        <filter token="gsdl3srchome" value="${gsdl3srchome}"/>
    177177        <filter token="gsdl3srchomeunix" value="${gsdl3srchome.unix}"/>
     178        <filter token="gsdl3webwritablehome" value="${web.writablehome}"/>
     179        <filter token="gsdl3webwritablehomeunix" value="${web.writablehome.unix}"/>
    178180        <filter token="gsdlos" value="${gsdlos}"/>
    179181        <filter token="internal-ws-webswingserver" value="${internal.ws-webswingserver}"/>
  • gs3-extensions/webswing/trunk/web/etc/webswing.config.in

    r38805 r38806  
    7373    "webHomeDir" : "@gsdl3srchomeunix@/gli",
    7474    "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&amp;rt=r&amp;s=PhindApplet&amp;o=xml&amp;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" : "/"
    75135  }
    76136}
  • main/trunk/greenstone3/build.xml

    r38769 r38806  
    32123212    It seems to have a problem with cat or </dev/null, with or without the < sign. -->
    32133213  <target name="reset-logs" description="Empties catalina.out, solr.log, greenstone.log, usage.log, server.log and contents of web/logs/tmp">
    3214     <echo>Truncating catalina.out, solr.log, greenstone.log, usage.log and server.log, and emptying ${web.writablehome}/logs/tmp</echo>   
     3214    <echo>Truncating catalina.out, catalinahome/bin/logs/webswing.log, solr.log, greenstone.log, usage.log and server.log, and emptying ${web.writablehome}/logs/tmp</echo>   
    32153215    <exec executable="rm" os="${os.unix}" dir="${catalina.home}/logs" spawn="false">
    32163216      <arg value="-f"/>
    32173217      <arg value="catalina.out"/>
     3218    </exec>
     3219    <exec executable="rm" os="${os.unix}" dir="${catalina.home}/bin/logs" spawn="false">
     3220      <arg value="-f"/>
     3221      <arg value="webswing.log"/>
    32183222    </exec>
    32193223    <exec executable="rm" os="${os.unix}" dir="${web.writablehome}/logs" spawn="false">
     
    37063710    <copy file="${build.home}/GAI.jar" todir="${web.lib}"/>
    37073711    <copy file="${build.home}/GAI.jar" todir="${admin.dir}"/>
     3712
    37083713    <jar destfile="${build.home}/phind.jar">
    37093714      <fileset dir="${build.home}">
Note: See TracChangeset for help on using the changeset viewer.