0

could you Help me with zk loader error

asked 2009-05-07 10:03:24 +0800

evpole gravatar image evpole
481 2

updated 2009-05-07 10:05:21 +0800

It's ok while running my poject in eclipse.
but when i publish it to tomcat,it always got this error:




2009-5-7 17:24:36 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet zkLoader threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)

this is my tomcat setting:
<Context path="/b" docBase="r:/Diss/" ></Context>

and the web.xml keeps default as same as in eclipse .

i've tried serial times and fount it i open a page without any component use "apply" property it works.
just like this one:


<?page title="Login" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="Login" border="normal">
it works!
</window>
</zk>



but this one also threw exception:

<window title="desktop" border="normal" apply="shen.page.main.MainWin">

<html><![CDATA[
<a href="/bbs">bbs</a> ]]></html>
<toolbarbutton id="logcookie" label="logcookie"/>
</window>



thanks for help or any suggestion!

delete flag offensive retag edit

5 Replies

Sort by » oldest newest

answered 2009-05-12 07:29:50 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

how did you publish your application to tomcat? copy/paste? suggest to use the export tool of eclipse to export your zk applicaiton into a WAR file, and copy that WAR file to $TOMCAT_HOME\webapps\.

/robbie

link publish delete flag offensive edit

answered 2009-05-13 08:29:54 +0800

evpole gravatar image evpole
481 2

updated 2009-05-13 08:30:38 +0800

Thanks for response!
yes, i exported it into a war file, and copy to web root of tomcat.
it's very strange that it's the same project that runs ok on one of my pc, throws an exception on another(but works well in eclipse on this pc).
i've tried to reinstall tomcat,but it doesn't help.
aother project without zk works on both of my pcs.
i don't know what's the reason.

link publish delete flag offensive edit

answered 2009-05-13 08:32:26 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-05-13 08:33:02 +0800

Hi,
copy the whole tomcat folder from the running pc to the not running pc.
Delete the unfolded war-file folder in ./webapps/

Stephan

link publish delete flag offensive edit

answered 2009-05-16 08:02:06 +0800

evpole gravatar image evpole
481 2

Thanks! i'll have a try.

link publish delete flag offensive edit

answered 2009-05-18 02:13:01 +0800

evpole gravatar image evpole
481 2

I've got it through this way.
Thanks!
it's caused by the jdk .
the old jre_home was pointed to the jbuilder's jre_home.i've changed it to my jdk,and it got works!

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: 2009-05-07 10:03:24 +0800

Seen: 235 times

Last updated: May 18 '09

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