Ability to sign additional .jnlp files during JWS packaging
Are you missing a feature? Request its implementation here.
-
- Posts: 12
- Joined: Wed Jan 11, 2012 7:46 pm
Ability to sign additional .jnlp files during JWS packaging
I was able to follow the JWS install setup directions (http://www.oxygenxml.com/doc/ug-editor/ ... aller.html), and with a few tweaks, I was able to get it to work with maven. As part of my install, I created a second oxygen.jnlp file (oxygenBeta.jnlp).
oxygen.jnlp's jnlp codebase attribute points to serverA:
<jnlp codebase="http://serverA.com/oxygen/1.0-SNAPSHOT/ ... /oxygenJWS" href="oxygen.jnlp">
while oxygenBeta.jnlp codebase attribute points to serverB:
<jnlp codebase="http://serverB.com/oxygen/1.0-SNAPSHOT/ ... /oxygenJWS" href="oxygenBeta.jnlp">
However oxygenBeta.jnlp will not work because the JWS setup process only signs oxygen.jnlp. It would be nice if there was a packager.properties property that allowed you to indicate all the .jnlp files that needs to be signed as part of the packaging process.
In this way, you only have to run through the JWS set process once, and then put the install files on different servers and just point your index.html to the respective .jnlp file.
oxygen.jnlp's jnlp codebase attribute points to serverA:
<jnlp codebase="http://serverA.com/oxygen/1.0-SNAPSHOT/ ... /oxygenJWS" href="oxygen.jnlp">
while oxygenBeta.jnlp codebase attribute points to serverB:
<jnlp codebase="http://serverB.com/oxygen/1.0-SNAPSHOT/ ... /oxygenJWS" href="oxygenBeta.jnlp">
However oxygenBeta.jnlp will not work because the JWS setup process only signs oxygen.jnlp. It would be nice if there was a packager.properties property that allowed you to indicate all the .jnlp files that needs to be signed as part of the packaging process.
In this way, you only have to run through the JWS set process once, and then put the install files on different servers and just point your index.html to the respective .jnlp file.
-
- Posts: 9437
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Ability to sign additional .jnlp files during JWS packaging
Hi,
Signing the JNLP file actually means that a copy of it will also be included in the deployer.jar JAR library under the folder path:
JNLP-INF/APPLICATION.JNLP
This is done in the Oxygen JWS build.xml using the target:
But only one JNLP file can be signed this way because the file name in the JAR file is unique: APPLICATION.JNLP.
So using this approach you can sign only one JNLP file.
But there seems to be an interesting approach described here:
http://blogs.oracle.com/thejavatutorial ... les_with_a
which seems to say that you you copy to the JAR library in JNLP-INF/APPLICATION_TEMPLATE.JNLP a JNLP content which contains * instead of a specific @href attribute value, then both JNLP files used to start the JWS deployment would be considered signed by the Java Runtime. But this has to be tested.
Regards,
Radu
Signing the JNLP file actually means that a copy of it will also be included in the deployer.jar JAR library under the folder path:
JNLP-INF/APPLICATION.JNLP
This is done in the Oxygen JWS build.xml using the target:
Code: Select all
<target name="putJnlpInMainJar">
...
So using this approach you can sign only one JNLP file.
But there seems to be an interesting approach described here:
http://blogs.oracle.com/thejavatutorial ... les_with_a
which seems to say that you you copy to the JAR library in JNLP-INF/APPLICATION_TEMPLATE.JNLP a JNLP content which contains * instead of a specific @href attribute value, then both JNLP files used to start the JWS deployment would be considered signed by the Java Runtime. But this has to be tested.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service