0

Exception after updating to the newest ZK version (3.6.3)

asked 2009-11-03 14:01:19 +0800

gyowanny gravatar image gyowanny
283 1 2 6

updated 2009-11-03 14:05:05 +0800

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

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2009-11-03 22:32:01 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

Please remove all of the zk jar files from your tomcat, and then put them into the tomcat directory again.

link publish delete flag offensive edit

answered 2009-11-04 05:10:37 +0800

gyowanny gravatar image gyowanny
283 1 2 6

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

link publish delete flag offensive edit

answered 2009-11-04 05:53:05 +0800

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

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...

link publish delete flag offensive edit

answered 2009-11-04 06:26:12 +0800

gyowanny gravatar image gyowanny
283 1 2 6

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

link publish delete flag offensive edit

answered 2009-12-29 06:00:02 +0800

spike gravatar image spike
30

Hi Gyo

I run with the exact error In my production environment.
Did you manage to solve this problem?

Thanks,
Eyal

link publish delete flag offensive edit

answered 2009-12-30 03:53:24 +0800

gowish gravatar image gowish
33 1

Hi gyowanny
I had same trouble as you and i did all your said,it's also problem there. :(

link publish delete flag offensive edit

answered 2009-12-30 15:57:30 +0800

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

updated 2009-12-30 15:58:22 +0800

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

link publish delete flag offensive edit

answered 2010-01-03 09:26:31 +0800

spike gravatar image spike
30

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)

link publish delete flag offensive edit

answered 2010-01-10 20:26:18 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

updated 2010-01-10 20:28:08 +0800

stop tomcat, Delete the Tomcat webapp/YOURAPPLICATION folder. Copy the new war file. start tomcat.

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-11-03 14:01:19 +0800

Seen: 3,899 times

Last updated: Jan 11 '10

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