0

problem with zk spring security integration

asked 2013-06-05 11:10:46 +0800

demizon gravatar image demizon
179 1 6

Hi, i m trying to integrate ZK with spring securitybut i m getting following error:

5.6.2013 11:17:46 org.zkoss.zk.ui.sys.ConfigParser parse:269
INFO: Parsing jar:file:/C:/Users/hrmi1005/Desktop/zkTest/out/artifacts/zkTest_war_exploded/WEB-INF/lib/zul.jar!/metainfo/zk/zk.xml
5.6.2013 11:17:46 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
5.6.2013 11:17:47 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors

my web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>zkspringcoresec</display-name>


 <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
            /WEB-INF/applicationContext.xml
            /WEB-INF/applicationContext-security.xml
    </param-value>
 </context-param>
   <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  </listener>

   <!--Spring security-->
   <!-- <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>-->
    <!--Spring security-->


    <!--ZK-->
  <listener>
    <description>Used to cleanup when a session is destroyed</description>
    <listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
  </listener>

  <servlet>
        <servlet-name>zkLoader</servlet-name>
        <servlet-class>
            org.zkoss.zk.ui.http.DHtmlLayoutServlet
        </servlet-class>
        <init-param>
            <param-name>update-uri</param-name>
            <param-value>/zkau</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
        <servlet-name>zkLoader</servlet-name>
        <url-pattern>*.zul</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
        <servlet-name>zkLoader</servlet-name>
        <url-pattern>*.zhtml</url-pattern>
  </servlet-mapping>
  <servlet>
    <description>The asynchronous update engine for ZK</description>
    <servlet-name>auEngine</servlet-name>
    <servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
  </servlet>
  <servlet-mapping>
        <servlet-name>auEngine</servlet-name>
        <url-pattern>/zkau/*</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>searchmvvm.zul</welcome-file>
  </welcome-file-list>
</web-app>

there will be prolly some problem with ContextLoaderListener, because when i comment line with ContextLoaderListener app works.

dependencies jars:

zk.jar
zkbind.jar
zkplus.jar
zkspring-security.jar
zul.jar
zweb.jar
antlr-2.7.7.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.2.Final.jar
hibernate-core-4.2.2.Final.jar
hibernate-entitymanager-4.2.2.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
javassist-3.15.0-GA.jar
jboss-logging-3.1.0.GA.jar
jboss-transaction-api_1.1_spec-1.0.1.Final.jar
postgresql-9.0-801.jdbc3.jar
spring-aop-4.0.0.M1.jar
spring-aspects-4.0.0.M1.jar
spring-beans-4.0.0.M1.jar
spring-build-src-4.0.0.M1.jar
spring-context-4.0.0.M1.jar
spring-context-support-4.0.0.M1.jar
spring-core-4.0.0.M1.jar
spring-expression-4.0.0.M1.jar
spring-instrument-4.0.0.M1.jar
spring-instrument-tomcat-4.0.0.M1.jar
spring-jdbc-4.0.0.M1.jar
spring-jms-4.0.0.M1.jar
spring-orm-4.0.0.M1.jar
spring-oxm-4.0.0.M1.jar
spring-security-acl-3.2.0.M1.jar
spring-security-aspects-3.2.0.M1.jar
spring-security-cas-3.2.0.M1.jar
spring-security-config-3.2.0.M1.jar
spring-security-core-3.2.0.M1.jar
spring-security-crypto-3.2.0.M1.jar
spring-security-ldap-3.2.0.M1.jar
spring-security-openid-3.2.0.M1.jar
spring-security-remoting-3.2.0.M1.jar
spring-security-taglibs-3.2.0.M1.jar
spring-security-web-3.2.0.M1.jar
spring-test-4.0.0.M1.jar
spring-tx-4.0.0.M1.jar
spring-web-4.0.0.M1.jar
spring-webmvc-4.0.0.M1.jar
spring-webmvc-portlet-4.0.0.M1.jar
spring-websocket-4.0.0.M1.jar
zcommon.jar
zel.jar
zhtml.jar
zk.jar
zkbind.jar
zkplus.jar
zkspring-security.jar
zul.jar
zweb.jar
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-05 11:19:31 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Lot of examples in my blog. Check here and here

link publish delete flag offensive 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: 2013-06-05 11:10:46 +0800

Seen: 45 times

Last updated: Jun 05 '13

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