-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1) Create sample ZK600 JavaEE6 Application project in NetBeans.
2) Create J2EE project and add sample ZK600 there.
3) Run J2EE project.
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/zkoss/zk/ui/sys/PageRenderer.
what is problem?
Could you provide the detail of your environment such as application server runtime and others?
I try ZK 6.0.0 with Eclipse and run the webapp on JBoss AS7. It works fine for me.
You can check this for more information:
http://books.zkoss.org/wiki/ZK%20Installation%20Guide
I used Java 7. With Java 6 and Eclipse the project runs.
With NetBeans IDE 7.0.1 and JDK 7 it works fine too. But try to move it in a ear project.
I can run ZK6 on NetBeans 7.1.1
Here is my steps and configuration:
1. download GlassFish Server 3.1.2 and add it into NetBeans
2. create a new enterprise application (eg. EnterpriseApplication)
3. choose GlassFish Server 3.1.2
4. download zk6 bin and unzip
5. add zk6 jars into Libraries configuration of war project (eg. EnterpriseApplication-war)
6. write a zul file and place it at "Web Pages" of war project
7. run this application
I don't put web.xml in WEB-INF (zk6 supported Servlet 3) and it works fine.
Hope this helps.
GLASSFISH 3.1.2.2 , jdk 1.7
It really fails when you deploy into a .ear
Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/zkoss/zk/ui/sys/PageRenderer.
But it runs when you deploy as a .war.
I found the fix to this problem guys.
The problem is how packages are deployed. Simply do this:
Then right-click on EAR project and do a "Clear - Rebuild".
Now the jar files of ZK library are deployed under WEB-INF/lib of the WAR file. Before this, only zk.jar was into that folder, the others 17MB of jars were put under EAR/libs and they were not visibile to web module on startup.
Tested and working with EAR containing EJB and WAR module with ZK library.
Hope this help!
Cheers, Crick
Asked: 2012-02-22 06:54:23 +0800
Seen: 415 times
Last updated: Oct 21 '13