-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm trying to implement my first ZK HelloWorld by following this tutorial :
Working with ZK Spring/Working with ZK Spring Core/Inject ZK Components in Spring Beans
I already configured:
+ the POM file thanks I get com.springsource.org.jboss.el, zkspring-core, zkspring-webflow in my maven dependencies.
+ the web.xml file with the following piece of code :
<listener> <listener-class>org.zkoss.spring.web.context.CoreContextListener</listener-class> </listener> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
Finally when I try to adapt my controllers.xml file to include ZK like that :
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xmlns:zksp="http://www.zkoss.org/2008/zkspring/core" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.zkoss.org/2008/zkspring/core http://www.zkoss.org/2008/zkspring/core/zkspring-core.xsd"> <context:component-scan base-package="org.zkoss.zkspringessentials.controller,org.zkoss.spring.beans.zkcomponents"></context:component-scan> <zksp:zk-config></zksp:zk> ....
I get the following error in my STS :
Error occured processing XML 'org/zkoss/zk/ui/UiException'. See Error Log for more details
Do anyone have an idea on where could comes that error ? Did I miss something ?
Thank you
Hello again,
I finally found the reason of that error. I was missing ZK dependency in my POM :
<dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zk</artifactId> <version>5.0.7</version> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zul</artifactId> <version>5.0.7</version> </dependency>
Thank you
Asked: 2011-11-20 13:18:43 +0800
Seen: 267 times
Last updated: Nov 20 '11