0

ZK Fatal When Running Tomcat in Eclipse

asked 2008-11-20 03:37:04 +0800

wangevine gravatar image wangevine
15 2

Hello and thanks for the help!

I'm a Newbe to ZK coming from GWT and I really like what I see w/ZK. The problem I am having is running Tomcat in Eclipse using the Tomcat Sysdeo plug in. The details of my configuration are:

- Eclipse Ganymede 3.4
- Tomcat 6.0
- Sysdeo Eclipse Tomcat Launcher v 3.2.1 (http://www.eclipsetotale.com/tomcatPlugin.html)

If I load the WAR of a valid sample app into Tomcat's webapps directory then start Tomcat outside Eclipse, when I invoke the URL for the site in the browser the application works fine. So outside of Eclipse the ZK application and Tomcat work great.

After stopping Tomcat I now use the Sysdeo Eclipse Tomcat Launcher to start Tomcat from with in Eclipse. I can see from the the eclise console window that Tomcat starts fine. I then set a breakpoint in my MainWindow ("public class MainWindow extends Window { ..."). When I invoke the (same) URL from the browser I get the following error:

SEVERE: Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Language not found: xul/html
at org.zkoss.zk.ui.metainfo.LanguageDefinition.lookup(LanguageDefinition.java:173)
at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:178)
at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:101)
at org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:196)
at org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:94)
at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:229)
at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:203)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:144)
at org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:131)
at org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:142)
at org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:115)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:222)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
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:619)

Looks like I have a configuration or path error. Any suggestions?

Thanks!
-Bill

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-01 09:36:33 +0800

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

Hi Bill,

Looks like it cannot load those jar files correctly. How did you make ZK application running on Eclipse?
Using Importing War file?

/robbie

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: 2008-11-20 03:37:04 +0800

Seen: 1,083 times

Last updated: Dec 01 '08

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