0

ZK6 fail to start with GlassFish

asked 2012-02-22 06:54:23 +0800

edwpotapoff gravatar image edwpotapoff
43 1

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?

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2012-02-24 01:25:46 +0800

paowang gravatar image paowang
140 6

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

link publish delete flag offensive edit

answered 2012-03-07 04:36:26 +0800

edwpotapoff gravatar image edwpotapoff
43 1

I used Java 7. With Java 6 and Eclipse the project runs.

link publish delete flag offensive edit

answered 2012-03-12 03:46:50 +0800

paowang gravatar image paowang
140 6

I try NetBeans IDE 7.1.1 and REM6-0-0 version 5.0.3 on JDK 7.
Then, I use REM to create a ZK600Demo and run ZK600Demo at GlassFish Server 3.1.2.
It works fine.

link publish delete flag offensive edit

answered 2012-03-13 13:01:28 +0800

edwpotapoff gravatar image edwpotapoff
43 1

With NetBeans IDE 7.0.1 and JDK 7 it works fine too. But try to move it in a ear project.

link publish delete flag offensive edit

answered 2012-04-24 09:12:10 +0800

paowang gravatar image paowang
140 6

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.

link publish delete flag offensive edit

answered 2012-09-22 10:10:56 +0800

eldiegos gravatar image eldiegos
15 1

updated 2012-09-22 10:11:29 +0800

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.

link publish delete flag offensive edit

answered 2012-10-03 04:00:26 +0800

Alphy gravatar image Alphy
27 1

I am also facing same issue.Not able to deploy in ear. The page is not rendering in browser. Pls help.

link publish delete flag offensive edit

answered 2013-10-21 13:09:22 +0800

crick gravatar image crick
0

I found the fix to this problem guys.

The problem is how packages are deployed. Simply do this:

  1. right-click on WAR project -> properties
  2. Then select "Libraries" and un-check the ZK6.x.yCE library
  3. Go to "Packaging" under "Build" tree-node and click "Add library"
  4. Choose ZK6.x.yCE from list and confirm (the item should appear under "WAR content" area)
  5. Click the "Path in war" column next to library name in "WAR content"
  6. Edit by writing this: "/WEB-INF/lib" (without quotes) and press ENTER to confrirm
  7. Press OK to save

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

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: 2012-02-22 06:54:23 +0800

Seen: 415 times

Last updated: Oct 21 '13

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