I had a quick look on internet about this node.
So if I understand well for example my plugin uses Servoy lib common-logging.jar. For that my jnlp should look like that:
...
<resources>
<jar href="/plugins/myPlugin.jar" download="eager" version="2.0-016"/>
<jar href="/plugins/myplugin/1st-lib.jar" download="%%loadmethod%%" version="2.1-039"/>
<jar href="/plugins/myplugin/2nd-lib.jar" download="%%loadmethod%%" version="2.0-021"/>
<extension name="Logging" href="/lib/common-logging.jar"/>
...
</resources>
...
Yes, for the lib that you ship yourself, but for the Servoy libs (the ones in /lib) you will need to add an node in the jnlp because these are signed by Servoy, and you can’t have 2 kind of signature (or signed and non signed) code inside one jnlp…
To do that, create another jnlp (put it inside your plugin jars folder for example) and do:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="%%serverURL%%" href="/servoy-client/plugins/myPlugin/servoycommons.jnlp">
<information>
<title>Servoy shipped libs</title>
<vendor>Servoy</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="/lib/commons-httpclient.jar" download%%loadmethod%%" version="%%version%%"/>
<jar href="/lib/commons-codec.jar" download%%loadmethod%%" version="%%version%%"/>
<jar href="/lib/commons-logging.jar" download%%loadmethod%%" version="%%version%%"/>
</resources>
<component-desc/>
</jnlp>
In your jnlp you will then add the extension node inside your node:
<extension name="commons" href="/servoy-client/plugins/myPlugin/servoycommons.jnlp" />
And don’t forget to deal with the security restrictions introduced by Java 6u19+, adding this to your jnlp
<security>
<all-permissions/>
</security>
and signing your jars because even if you are not running this version of Java on your server your clients may do, and then they will not accept mix code (signed and not signed code together).
Foobrother:
No! An extension is not a jar. It is another jnlp!
ptalbot:
because these are signed by Servoy, and you can’t have 2 kind of signature (or signed and non signed) code inside one jnlp…
Ok, I understand better now ![Smile :)]()
I’ll try that then. Many thanks Patrick ![Wink :wink:]()