Uploaded image for project: 'ZK Spring'
  1. ZK Spring
  2. ZKSPRING-49

Support to work with ZK 8

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2.0
    • Component/s: security
    • Labels:
      None

      Description

      steps to reproduce

      1. Load a zul within a normal project with zkspring-security and zk 8.0.0

      actual result

      SEVERE:
      org.zkoss.util.IllegalSyntaxException: <config-name> is required ([null:jar:file:/Users/hawk/.m2/repository/org/zkoss/zk/zkspring-security/3.1.1/zkspring-security-3.1.1.jar!/metainfo/tld/config.xml:14:9]).
      at org.zkoss.idom.util.IDOMs.getRequiredElementValue(IDOMs.java:79)
      at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:141)
      at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:120)
      at org.zkoss.util.resource.ClassLocator.getDependentXMLResources(ClassLocator.java:79)
      at org.zkoss.xel.taglib.Taglibs.getDefaultTLDs(Taglibs.java:324)
      at org.zkoss.xel.taglib.Taglibs.getDefaultURL(Taglibs.java:308)
      at org.zkoss.web.servlet.dsp.impl.Parser$Context.loadTaglib(Parser.java:512)
      at org.zkoss.web.servlet.dsp.impl.Parser$Context.access$500(Parser.java:465)
      at org.zkoss.web.servlet.dsp.impl.Parser.parseControl(Parser.java:208)
      at org.zkoss.web.servlet.dsp.impl.Parser.parse0(Parser.java:105)
      at org.zkoss.web.servlet.dsp.impl.Parser.parse(Parser.java:68)
      at org.zkoss.web.servlet.dsp.Interpreter.parse(Interpreter.java:87)
      at org.zkoss.web.util.resource.DspExtendlet$DspLoader.parse(DspExtendlet.java:152)
      at org.zkoss.web.util.resource.DspExtendlet$DspLoader.parse(DspExtendlet.java:137)
      at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:109)
      at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:41)
      at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227)
      at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:202)
      at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)
      at org.zkoss.web.util.resource.DspExtendlet.service(DspExtendlet.java:80)
      at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:585)
      at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:571)
      at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:262)
      at org.zkoss.web.util.resource.ClassWebResource$CWC.include(ClassWebResource.java:811)
      at org.zkoss.zk.ui.http.WcsExtendlet.service(WcsExtendlet.java:112)
      at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:585)
      at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:571)
      at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:262)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:427)
      ...

      • cannot load all style sheets

        SEVERE: Failed to parse /zul/css/norm.css.dsp
        java.io.FileNotFoundException: http://www.zkoss.org/dsp/web/core
        at org.zkoss.web.servlet.dsp.impl.Parser$Context.loadTaglib(Parser.java:514)
        at org.zkoss.web.servlet.dsp.impl.Parser$Context.access$500(Parser.java:465)
        at org.zkoss.web.servlet.dsp.impl.Parser.parseControl(Parser.java:208)
        at org.zkoss.web.servlet.dsp.impl.Parser.parse0(Parser.java:105)
        at org.zkoss.web.servlet.dsp.impl.Parser.parse(Parser.java:68)
        at org.zkoss.web.servlet.dsp.Interpreter.parse(Interpreter.java:87)
        at org.zkoss.web.util.resource.DspExtendlet$DspLoader.parse(DspExtendlet.java:152)

      • cannot use taglib

        org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
        at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:108)
        at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:93)
        at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:133)
        at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:109)
        at org.zkoss.zk.ui.metainfo.PageDefinition.getTaglibMapper(PageDefinition.java:888)
        at org.zkoss.zk.ui.metainfo.PageDefinition.preInit(PageDefinition.java:927)
        at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:422)
        at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:358)
        at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217)
        at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)

      Root Cause

      Specification change of config.xml since ZK 8.
      <config-name> is a new, required element.
      See: http://books.zkoss.org/wiki/ZUML_Reference/ZUML/Processing_Instructions/taglib/Custom_Taglib#Solving_config.xml_Dependence

      Solution

      add <config-name>zkspring-security</config-name> in config.xml of zkspring-security

        Attachments

          Activity

            People

            Assignee:
            hawk hawk
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: