Java 7 Update 51 deploy with exceptions

Comments

5 comments

  • Shawn Anderson

    Hi Ian, we're looking now at the Deployment Configuration File and Properties with Java 7 Update 51. It seems that this is possible using the system-level deployment.properties file, but we need to do more testing. We'll keep you posted on what we find. In the meantime, here are the URL's we are researching:

    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/properties.html

    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/exception_site_list.html

    https://blogs.oracle.com/java-platform-group/entry/upcoming_exception_site_list_in

    0
    Comment actions Permalink
  • Ian Empson

    Thanks Shawn - appreciate your efforts on this new Java issue.

    ps. apologies for sending two separate messages - unfamiliar with the discussion group blog and wasn't certain if I had submitted it properly

    0
    Comment actions Permalink
  • Kresimir Sut

    Here is how we solved problem with Java exception.

    On Win7/Vista file containing exceptions is  %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security named exception.sites.

    On XP it is in %USERPROFILE%\Application Data\Sun\Java\Deployment\security.

    Simply edit file, add sites (must contain full name like https://www.google.com/. Then create deployer (or modify existing Java deployer to include next steps:

    Include exception.sites in deployer.

    1. Step 1 - OS version is Windows 7/Vista command is  - copy exception.sites %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security /y.

    Critical is to modify step to run as logged user.

    2. Step 2 - OS version is XP command is - copy exception.sites "%USERPROFILE%\Application Data\Sun\Java\Deployment\security" /y. Also deploy as logged user.

    That should do it.

    0
    Comment actions Permalink
  • Ian Empson

    Thanks Kresimir. That will save me some time.

    regards

    0
    Comment actions Permalink
  • Ian Empson

    Postscript

    I found that I needed to add a full path to the source for the deployment to work. It also didn't seem to work when I attempted to source it from my Users/Appdata folder so I copied the exception.sites file to a shared drive as below and ran it successfully. I also added the quote marks to each path just to be sure...

    copy "M:\_aUpdates\Java\exception.sites" "%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\" /y

    regards and thanks again

    0
    Comment actions Permalink

Please sign in to leave a comment.