-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi Everyone
I've just updated my app zk libs to the newest 3.6.3 and when I try to open up the login page I get the following exception:
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Language not found for extension zul org.zkoss.zk.ui.metainfo.LanguageDefinition.getByExtension(LanguageDefinition.java:194) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:179) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:102) org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:196) org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:94) org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:219) org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:193) org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134) org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:132) org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:142) org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:115) org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:221) org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:165) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) br.com.eseller.app.zk.servlet.AccessFilter.doFilter(AccessFilter.java:52)
Then looking into tomcat's log file (catalina.out) I found this trace that had been raised while the container has tried to start the application:
Nov 3, 2009 5:54:16 PM org.zkoss.zk.ui.http.WebManager :112 INFO: Starting ZK 3.6.3 Enterprise (build: 09110309) Nov 3, 2009 5:54:16 PM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:127 INFO: Loading system default Nov 3, 2009 5:54:16 PM org.zkoss.zk.ui.sys.ConfigParser checkVersion:100 INFO: Ignore jar:file:/usr/local/jakarta/apache-tomcat-5.5.27/webapps/eSellerZk/WEB-INF/lib/zk.jar!/metainfo/zk/config.xml Cause: version not matched; expected=3.6.3, xml=3.5.2 Nov 3, 2009 5:54:16 PM org.zkoss.zk.ui.sys.ConfigParser checkVersion:100 INFO: Ignore jar:file:/usr/local/jakarta/apache-tomcat-5.5.27/webapps/eSellerZk/WEB-INF/lib/zkex.jar!/metainfo/zk/config.xml Cause: version not matched; expected=3.6.3, xml=3.5.2
And I found this too
SEVERE: Failed to load jar:file:/usr/local/jakarta/apache-tomcat-5.5.27/webapps/eSellerZk/WEB-INF/lib/timelinez.jar!/metainfo/zk/lang-addon.xml >>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.DefinitionLoaders.parseLang(DefinitionLoaders.java:213) >> at org.zkoss.zk.ui.metainfo.DefinitionLoaders.load0(DefinitionLoaders.java:162) >> at org.zkoss.zk.ui.metainfo.DefinitionLoaders.load(DefinitionLoaders.java:123) >> at org.zkoss.zk.ui.metainfo.LanguageDefinition.init(LanguageDefinition.java:265) >>...
I've updated all the jars included in the ZK enterprise distribution.
Thank you
Gyo
Hi,
Please remove all of the zk jar files from your tomcat, and then put them into the tomcat directory again.
Hi jumperchen,
Thank you for your help. I don't have the ZK jar files in my tomcat. I keep them into my application. I noticed that tomcat makes some library cache so that I had to undeploy and deploy the application along the new ZK version twice. Now it's working fine. The other option was to restart the tomcat but as it's managed by another company it would take too long.
Best regards
Gyo
There is a menu point Clean working Directory in the eclipse server manager .
best
Stephan
PS: Gyowanny, please write me of the progress of eSel...
Hi Stephan
In my eclipse the app has worked fine, since the embedded tomcat is restarted several times.
The issue has occurred in my production environment where the tomcat is managed by a host company so I can't restart by myself.
Thank you for your tip!
Gyo
Yes, i have the same problems with tomcat too. Tomcat is not build for hot deployment. In my case with a minimal RAM for the tomcat i can deploy
3 times over an existing application. Than tomcat hangs by 80% system traffic of the server. So i must restart the tomcat.
For hot deploy/undeployments there are the application servers better.
For the case of updated jars, it's better to do a clean on the tomcat working directory too.
best
Stephan
Hi all
I am asking again for your help regarding this error. I am trying to deploy my war on a Unix machine with tomcat. I can start and stop the tomcat but restart for the Unix is problematic. This war is working on my PC without any problems.
can you direct me to which directories I should Manually remove to prevent old jars from mixing with my new war?
How to do clean otherwise?
I use jars from 3.6.3 and the latest zkspring jars.
Thanks,
Eyal
This is the errors that I get in the log
INFO: Initializing Coyote HTTP/1.1 on http-40004
Jan 3, 2010 5:05:15 PM org.apache.catalina.core.StandardService initialize
SEVERE: Error registering Service at domain null
java.lang.NullPointerException
at org.apache.catalina.core.StandardService.initialize(StandardService.java:646)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Jan 3, 2010 5:05:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 515 ms
Jan 3, 2010 5:05:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Standalone
Jan 3, 2010 5:05:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jan 3, 2010 5:05:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 3, 2010 5:05:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 3, 2010 5:05:16 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive spike2.war
Jan 3, 2010 5:05:16 PM org.zkoss.zk.ui.http.WebManager <init>:112
INFO: Starting ZK 3.6.3 Enterprise (build: 09110309)
Jan 3, 2010 5:05:16 PM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:127
INFO: Loading system default
Jan 3, 2010 5:05:16 PM org.zkoss.zk.ui.sys.ConfigParser parse:224
INFO: Parsing jndi:/localhost/spike2/WEB-INF/zk.xml
Jan 3, 2010 5:05:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-40004
Jan 3, 2010 5:05:17 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
Jan 3, 2010 5:05:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2941 ms
this is the GUI error it is similar to gyowanny error
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Language not found for extension zul
org.zkoss.zk.ui.metainfo.LanguageDefinition.getByExtension(LanguageDefinition.java:194)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:179)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:102)
org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:196)
org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:94)
org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:219)
org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:193)
org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)
org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:132)
org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:142)
org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:115)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:221)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
stop tomcat, Delete the Tomcat webapp/YOURAPPLICATION folder. Copy the new war file. start tomcat.
Asked: 2009-11-03 14:01:19 +0800
Seen: 3,900 times
Last updated: Jan 11 '10