On Thu, Jun 22, 2017 at 2:58 AM, Goncalo Rosa <[email protected]> wrote:
>
> Hi RHawkins,
>
> I can't understand it... I corrected a few things to make it similar to your
> jar.
>
> However still not working on my server... I can't understand what I am
> missing.
>
> Can it be inside jar permissions?
> I am compiling (zip) it on a Windows machine and import it to the server, can
> it be that?
> I am putting it under /usr/share/tomcat/.guacamole/extensions whre I also
> have the guacamole-auth-jdbc-mysql-0.9.12-incubating.jar extension
>
Checking the contents of your .jar, I see:
[mjumper@dev-mjumper ~]$ unzip -l Desktop/v2s-extension.zip
Archive: Desktop/v2s-extension.zip
Length Date Time Name
--------- ---------- ----- ----
0 06-22-2017 10:33 v2s-extension/
0 06-22-2017 10:27 v2s-extension/css/
151 06-22-2017 10:37 v2s-extension/css/login-override.css
320 06-22-2017 10:33 v2s-extension/guac-manifest.json
0 05-30-2017 17:08 v2s-extension/images/
22891 11-17-2014 13:44 v2s-extension/images/V2s.png
276 06-22-2017 10:30 v2s-extension/loginDisclaimer.html
0 05-30-2017 23:13 v2s-extension/translations/
78 06-22-2017 10:36 v2s-extension/translations/en.json
--------- -------
23716 9 files
[mjumper@dev-mjumper ~]$
While you can place any of the other files pretty much anywhere you
like (as long as guac-manifest.json points to the correct path), the
guac-manifest.json file absolutely MUST be at the root level of the
.jar file. It cannot be within a subdirectory.
I suggest getting rid of the "v2s-extension" directory, such that the
contents of your extension .jar are simply:
guac-manifest.json
css/
css/login-override.css
images/
images/V2s.png
loginDisclaimer.html
translations/
translations/en.json
See:
http://guacamole.incubator.apache.org/doc/gug/guacamole-ext.html#ext-file-format
Specifically:
"... There is no set structure to an extension except that the
manifest must be in the root of the archive. ..."
- Mike