|
From: Rogan D. (JIRA) <no...@at...> - 2006-12-22 15:38:44
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-285?page=comments#action_21418 ] Rogan Dawes commented on RCP-285: --------------------------------- Ok, I figured out my problem. Thanks, Geoffrey. I'll document the solution here for those searching for info in the future. My situation is as follows: I have a RCP app, which is using JavaHelp, and needs to open network connections and access the filesystem. So, signing the app is required. The biggest problem I had was that I tried to add signing after I had run the mvn install webstart:jnlp goal a few times. As a result, when I tried to add signing, all the dependent jars were already in place in the target directory, and so no matter WHAT I did in the pom.xml. messing around with <includes> and <excludes>, my dependent jars were never being signed. This was easily rectified by simply running mvn clean first. My next problem was that the javahelp jar was already signed. As suggested elsewhere, one approach is simply to unsign the jar before signing it with your own key. My approach was to use a resource element in my jnlp, and exclude the javahelp jar from being signed using a <dependencies><excludes><exclude>javax.hel;p:jhelp</exclude></excludes></dependencies> stanza. My template.vm file then looked like (snipped): <resources> <property name="com.apple.macos.useScreenMenuBar" value="true"/> <property name="apple.laf.useScreenMenuBar" value="true"/> <property name="com.apple.mrj.application.apple.menu.about.name" value="WebScarab"/> <j2se version="1.5+" max-heap-size="128m" /> $dependencies <extension name="Java Help" href="lib/jhelp.jnlp"/> </resources> and jhelp.jnlp looks like: <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="wherever" href="help.jnlp"> <information> <title>JavaHelp</title> <vendor>Sun Microsystems, Inc.</vendor> </information> <resources> <jar href="jhelp-2.0.jar"/> </resources> <component-desc/> </jnlp> Note that I have the jhelp-2.0.jar in a lib subdirectory. Otherwise, if it went directly into the toplevel target directory, the JnlpMojo class would try to sign it anyway, with predictable consequences. Hope this helps someone. If anyone is interested in seeing my app in action, you can try it at: http://dawes.za.net/rogan/webscarab-ng/webstart/WebScarab-ng.jnlp Feedback appreciated ;-) > Petclinic: (Re)Enable webstart + standalone webstart on site demo > ----------------------------------------------------------------- > > Key: RCP-285 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-285 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Build System > Reporter: Geoffrey De Smet > Assignee: Geoffrey De Smet > Fix For: 0.3.0 > > Enable webstart for petlinic: > - client webstart included in server > - standalone webstart included in maven site as demo "WEB START ME NOW" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |