Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-335

RhinoClassLoader doesn't work in applet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Later
    • 1.5
    • None
    • Scripting
    • None
    • Operating System: All
      Platform: PC

    Description

      As reported to Batik-users list. A signed applet that essentially does

      new SVGCanvas
      ALWAYS_DYNAMIC
      setURI()

      fails when loading SVG with scripts.

      RhinoClassLoader fails with

      ========================== Rhino loader code source is :
      jar:file:/D:/cygwin/home/gavin/test_rimis/rimis/applications/epss/applet/testCan
      vas.jar!/resources/svg/testICT.svg
      <no certificates>)

      ========================== Trying to load : org.mozilla.javascript.gen.c1

      java.lang.NoClassDefFoundError: org/mozilla/javascript/NativeScript
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at org.apache.batik.script.rhino.RhinoClassLoader.defineClass(Unknown So
      urce)

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            gavin.walker@csiro.au Gavin Walker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: