0

ZATS: Error 500 when connecting to ZUL due to missing class org.zkoss.xel.zel.XelELResolver

asked 2013-01-25 10:07:09 +0800

eblues2000 gravatar image eblues2000
0

Hello all,

I'm currently trying to get the ZATS client up and running (for the first time). As a first test, I'm using the example from the ZATS essentials introductory example.

However, whenever this following line is executed:

DesktopAgent desktop = Zats.newClient().connect("/hello.zul");

I get the following Exception:

java.io.IOException: Server returned HTTP response code: 500 for URL: 127.0.0.1:62599/index.zul

Then, when I try to manually open the URL in a web browser, I get an even more detailed error message. Seems, there might be some dependency missing in the EmulatorClient. My context paths (src/main/webapp etc.) are configured correctly.

HTTP ERROR 500

Problem accessing /index.zul. Reason:

Could not initialize class org.zkoss.xel.zel.XelELResolver

Caused by:

java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.xel.zel.XelELResolver at org.zkoss.xel.zel.XelELContext.newELResolver(XelELContext.java:51) at org.zkoss.xel.zel.XelELContext.<init>(XelELContext.java:47) at org.zkoss.xel.zel.ELFactory.newELContext(ELFactory.java:54) at org.zkoss.xel.zel.ELFactory.parseExpression(ELFactory.java:42) at org.zkoss.zk.xel.impl.SimpleEvaluator.parseExpression(SimpleEvaluator.java:63) at org.zkoss.zk.ui.metainfo.AbstractEvalRef.parseExpression(AbstractEvalRef.java:40) at org.zkoss.zk.xel.ExValue.init(ExValue.java:120) at org.zkoss.zk.xel.ExValue.getValue(ExValue.java:108) at org.zkoss.zk.ui.metainfo.Property.getValue(Property.java:134) at org.zkoss.zk.ui.metainfo.Property.assign0(Property.java:227) at org.zkoss.zk.ui.metainfo.Property.assign(Property.java:169) at org.zkoss.zk.ui.metainfo.ComponentInfo.applyProperties(ComponentInfo.java:729) at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:101) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:798) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:767) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:676) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:738) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:698) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:640) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:391) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:313) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:214) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:134) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:345) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:662)

Does anyone here have an idea of how this can be resolved? Your help would be very much appreciated!

Many thanks in advance.

Cheers, Bernhard

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-25 11:16:51 +0800

takach gravatar image takach
30 2

You must have the dependency zcommons.jar in your application.

link publish delete flag offensive edit
0

answered 2014-12-30 05:00:49 +0800

AlwaysALearner gravatar image AlwaysALearner
3 2

Apologize for adding this as an answer as I can't comment.

I too have the exact same issue. I added zcommon-5.0.8.jar and zcommons-el-1.0.1.jar (my ZK version is 5.0.8) and I'm still facing the same issue.

Could there be anything else that could be missing?

link publish delete flag offensive edit
0

answered 2015-05-15 10:11:21 +0800

DSP gravatar image DSP
1

Set WEB-INF path

env = new DefaultZatsEnvironment("D:/prabu/WEB-INF");

env.init("./src/main/webapp");

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
2 followers

RSS

Stats

Asked: 2013-01-25 10:07:09 +0800

Seen: 83 times

Last updated: May 15 '15

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