-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3481907
By: nobody
Hey,
Really like the look of ZK but have hit a brick wall when trying to deploy it in Tomcat. I get the error message -
"com.potix.lang.SystemException:
com.potix.zk.ui.metainfo.DefinitionNotFoundException: Language not found for extension zul"
Any ideas what im doing wrong? I even tried to reinstall Tomcat but still no joy. I'm using the latest version of ZK and Tomcat 5.5. Any help greatly appreciated!
Cheers,
Mike
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3482490
By: tomyeh
Did you copy zul.jar (with zk.jar) into the class path?
Did it happen when you tried the demo (/zkdemo/userguide)?
Did it happen all the time or just after re-deploying?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3483005
By: nobody
Sorry, yes it happens when i try to run the demo /zkdemo/userguide. And i have copied the jar files into Tomcat 5.5\shared\lib as directed.
It deploys fine and happens every time the demo is run. I followed the quick-start instructions exactly and it all works fine up until the point i try running the demo. Will have
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3483142
By: tomyeh
Could you send me the log (/logs)?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3483337
By: nobody
19-Dec-2005 15:12:48 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
19-Dec-2005 15:12:48 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
19-Dec-2005 15:12:48 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
19-Dec-2005 15:12:49 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
19-Dec-2005 15:12:49 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
19-Dec-2005 15:13:34 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet zkLoader threw exception
java.lang.NoClassDefFoundError: bsh/UtilEvalError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.potix.lang.Classes.forNameByThread(Classes.java:158)
at com.potix.zk.ui.metainfo.DefinitionLoaders.locateClass(DefinitionLoaders.jav
a:131)
at com.potix.zk.ui.metainfo.DefinitionLoaders.parse(DefinitionLoaders.java:124)
at com.potix.zk.ui.metainfo.DefinitionLoaders.load(DefinitionLoaders.java:67)
at com.potix.zk.ui.metainfo.LanguageDefinition.lookupByExtension(LanguageDefini
tion.java:128)
at com.potix.zk.ui.sys.AbstractParser.parse(AbstractParser.java:172)
at com.potix.zk.ui.sys.AbstractParser.parse(AbstractParser.java:68)
at com.potix.zk.ui.http.Definitions$MyLoader.parse(Definitions.java:136)
at com.potix.web.util.resource.ResourceLoader.load(ResourceLoader.java:78)
at com.potix.util.resource.ResourceCache$ResourceInfo.load(ResourceCache.java:2
10)
at com.potix.util.resource.ResourceCache$ResourceInfo.<init>(ResourceCache.java
:183)
at com.potix.util.resource.ResourceCache.get(ResourceCache.java:122)
at com.potix.web.util.resource.ResourceCaches.get(ResourceCaches.java:117)
at com.potix.zk.ui.http.Definitions.getPageDefinition(Definitions.java:54)
at com.potix.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:264)
at com.potix.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:244)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
831)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:652)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
at java.lang.Thread.run(Thread.java:595)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3483380
By: tomyeh
Looks like you forgot to copy lib/ext/*.jar to shared/lib (step 3).
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3483554
By: nobody
OOps sorry wrong log entry! That was the problem yep and fixed that one. Here's the log entry for the "language" problem that has me stumped.
com.potix.lang.SystemException: com.potix.zk.ui.metainfo.DefinitionNotFoundException:
Language not found for extension zul
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor
Impl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
AccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
com.potix.lang.Classes.newInstance(Classes.java:79)
com.potix.lang.Exceptions.wrap(Exceptions.java:159)
com.potix.lang.SystemException$Aide.wrap(SystemException.java:47)
com.potix.util.resource.ResourceCache.get(ResourceCache.java:137)
com.potix.web.util.resource.ResourceCaches.get(ResourceCaches.java:117)
com.potix.zk.ui.http.Definitions.getPageDefinition(Definitions.java:54)
com.potix.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:264)
com.potix.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3484836
By: tomyeh
Could you post the whole log? The stack trace shown here is only a wrapper, not real cause.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3485344
By: nobody
For some reason it's now working fine. No idea what was wrong! Thanks for the advice and help anyway, look forward to playing with this today :)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3497029
By: nobody
It made me the same thing ,but after many tries it works;I dont know exactly why .
Try to deploy by Tomcat Manager,shutdown tomcat and reboot your computer.
Hope you enjoy when zkdemo will run !
I'm using glassfish v 4, jee7, maven zk v 7.0.1
I have simple zul file : hello world
and getting error: StandardWrapperValve[zkLoader]: Servlet.service() for servlet zkLoader threw exception org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Language not found for extension zul
Asked: 2005-12-18 17:54:30 +0800
Seen: 2,662 times
Last updated: May 23 '14