1

org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core

asked 2015-10-07 14:50:41 +0800

szarza gravatar image szarza
72 3
http://balteus.blogspot.c...

updated 2015-10-07 14:51:15 +0800

I tried to migrate an application to ZK8 today and I found two problems:

1) The pages with the statement <? Taglib uri = "http://www.zkoss.org/dsp/web/core" prefix = "c"?> gives the error

"org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core"

2) I have lost the way they looked pages (fonts, centered, etc)

Does it happen to someone else? How could I solve that? Regards,

delete flag offensive retag edit

Comments

Can you try using the path in stead of uri?

chillworld ( 2015-10-10 08:20:19 +0800 )edit

When i do that I get : org.zkoss.zk.ui.UiException: file:/C:/Proje...ps/octave-webapp/index.zul:7:63: Both uri and prefix attribute are required

WilliamB ( 2015-10-27 14:30:46 +0800 )edit

7 Answers

Sort by » oldest newest most voted
1

answered 2015-11-04 16:26:52 +0800

martindk gravatar image martindk
19 1

I was seeing this error as well. Turns out it was because I have a couple of custom tag libraries that were failing to load because apparently the "config-name" tag is now a required element of the config.xml file. This was preventing other tag libraries from loading as well. Once I added the "config-name" tag to my config.xml file, the problem went away.

link publish delete flag offensive edit
0

answered 2015-10-09 16:56:14 +0800

danielgoodwin gravatar image danielgoodwin
76 2

Having similar problems, notably with sapphire theme On the taglib.. Im working on basis that this may be answer:

http://books.zkoss.org/wiki/ZUMLReference/ZUML/ProcessingInstructions/taglib/Custom_Taglib

link publish delete flag offensive edit
0

answered 2015-10-09 18:30:07 +0800

danielgoodwin gravatar image danielgoodwin
76 2

HAve also tried this (class resource set to true)

<servlet-name>dspLoader</servlet-name> <servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class>

   <!-- Specify class-resource, if you want to access TLD defined in jar files -->
   <init-param>
       <param-name>class-resource</param-name>
       <param-value>true</param-value>
   </init-param>
link publish delete flag offensive edit
0

answered 2015-10-12 06:32:42 +0800

twestphal gravatar image twestphal
1

Hi,

we have the same Problem here while using following zk-spring maven dependency with zk8:

<dependency>
       <groupId>org.zkoss.zk</groupId>
       <artifactId>zkspring-core</artifactId>
       <version>3.1.1</version>
       <exclusions>
         <exclusion>
                <artifactId>servlet-api</artifactId>
                <groupId>javax.servlet</groupId>
         </exclusion>
         <exclusion>
                <artifactId>logback-classic</artifactId>
                <groupId>ch.qos.logback</groupId>
         </exclusion>
       </exclusions>
   </dependency>
   <dependency>
       <groupId>org.zkoss.zk</groupId>
       <artifactId>zkspring-security</artifactId>
       <version>3.1.1</version>
       <exclusions>
         <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
         </exclusion>

       </exclusions>
   </dependency>

Starting the application we getting following exception in "FINER" Logging:

    12.10.2015 07:58:46.065 [http-bio-8080-exec-1] ERROR org.zkoss.xel.taglib.Taglibs - 
org.zkoss.util.IllegalSyntaxException: <config-name> wird benötigt ([null:jar:file:/C:/Users/b15326/.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) ~[zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:141) ~[zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:120) ~[zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.util.resource.ClassLocator.getDependentXMLResources(ClassLocator.java:79) ~[zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.taglib.Taglibs.getDefaultTLDs(Taglibs.java:324) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.taglib.Taglibs.getDefaultURL(Taglibs.java:308) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:106) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:93) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:133) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:109) [zcommon-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.metainfo.PageDefinition.getTaglibMapper(PageDefinition.java:888) [zk-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.metainfo.PageDefinition.preInit(PageDefinition.java:927) [zk-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:422) [zk-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:358) [zk-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217) [zk-8.0.0.jar:8.0.0]
       at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) [zk-8.0.0.jar:8.0.0]
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) [spring-security-web-3.2.2.RELEASE.jar:3.2.2.RELEASE]
       at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
       at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) [log4j-web-2.1.jar:2.1]
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-embed-core-7.0.47.jar:7.0.47]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_25]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_25]
       at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]

The config.xml is missing the <config-name> element. I think the zkspring-security artefact is the latest in Version 3.1.1 ...

Tim

link publish delete flag offensive edit
0

answered 2015-10-12 07:02:35 +0800

twestphal gravatar image twestphal
1

Change zkspring-security-3.1.1.jar!/metainfo/tld/config.xml to

<config>
    <config-name>zkspring-security</config-name>
    <depends>zweb</depends>
    ...
</config>

Then our applications run again. Potix should fix this ...

link publish delete flag offensive edit

Comments

hawk has opened an case on ZKSpring JIRA: http://tracker.zkoss.org/browse/ZKSPRING-49. The fix is scheduled for 30. Nov. 2015 as Version 3.2

twestphal ( 2015-10-19 06:24:16 +0800 )edit

But I don't use Spring. I get error on an application using Core TagLib that runs normally (well ;) on ZK7.

szarza ( 2015-10-20 15:56:53 +0800 )edit
0

answered 2015-10-27 14:33:48 +0800

WilliamB gravatar image WilliamB
1609 1 6

So what is the fix for

org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core

I've the same issue, works fine in ZK7.

link publish delete flag offensive edit
0

answered 2015-10-28 05:50:56 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2015-10-28 05:51:16 +0800

Please download zkspring 3.2.0 to work with zk 8.0.0

ref: http://tracker.zkoss.org/browse/ZKSPRING-49

link publish delete flag offensive edit

Comments

I'm not using spring, so I don't understand why I must download zkspring in order to use Core Taglib. I think Potix should fix this issue.

szarza ( 2015-11-03 11:42:21 +0800 )edit

If you are not using zkspring then it must be caused by something else. can you provide complete exception stack trace or a reproducing zul?

hawk ( 2015-11-04 00:53:03 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-10-07 14:50:41 +0800

Seen: 184 times

Last updated: Nov 04 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More