0

Problem with ZK Spring + STS 2.7.2

asked 2011-11-20 13:18:43 +0800

echinopsii gravatar image echinopsii
6 1

updated 2011-11-20 13:22:17 +0800

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

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-11-20 16:40:34 +0800

echinopsii gravatar image echinopsii
6 1

updated 2011-11-20 16:42:39 +0800

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

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-11-20 13:18:43 +0800

Seen: 267 times

Last updated: Nov 20 '11

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