0

ZK7 doesn't work with Glassfish

asked 2013-11-28 21:30:12 +0800

stevenysx gravatar image stevenysx
0

For testing ZK7. I downloaded ZK MVC Tutorial project at zk website under Getting Started and built in both eclipse Juno and Kepler with making sure 7.0.0 as ZK version in the pom. Then I deployed the war files to Tomcat 8-RC, they worked without any issue. But after being deployed the same wars to Glassfish 3 and 4 separately, not any war file worked with Glassfish and having the same error. By the way, previous ZK 6.5.2 testing projects are still working with Glassfish 3 and 4. I think this is a bug of ZK7. Hopefully, it can be fixed ASAP. The following is the error log in glassfish4:

[2013-11-27T10:44:58.939-0700] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=19 _ThreadName=http-listener-1(1)] [timeMillis: 1385574298939] [levelValue: 900] [[ StandardWrapperValve[zkLoader]: Servlet.service() for servlet zkLoader threw exception java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session at org.apache.catalina.session.ManagerBase.checkSessionAttribute(ManagerBase.java:835) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1840) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.zkoss.zk.ui.http.SessionAgent.put(SessionAgent.java:30) at org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:36) at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:158) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:435) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:416) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) ........

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2013-11-29 02:02:58 +0800

cor3000 gravatar image cor3000
4952 2 7
ZK Team

Hi Steven,

thanks for posting this, we tracked this issue under ZK-2039 - including a workaround.

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
1 follower

RSS

Stats

Asked: 2013-11-28 21:30:12 +0800

Seen: 50 times

Last updated: Nov 29 '13

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