0

Upgraded to 3.05 from 3.04 - several issues

asked 2008-06-11 12:24:48 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5023532

By: ansancle

I upgraded from 3.05 from 3.04, I simply replaced the libraries in my build path and in my packaging with .05 from .04, changed nothing else. I know get
2 deployment errors and none of my onClick handlers are working anymore.

DEPLOYMENT ERROR 1 ;
I get the following error on deployment even though the jasperreports.jar is DEFINITELY included in the packaging :

10:14:45,984 INFO deploy, ctxPath=/dhuidatabase, warUrl=file:/var/tmp/jboss-bin-4/localhost/digitalhome/deploy/tmp38166com.dh.ui.
database.app.ear-contents/com.dh.ui.database.web-exp.war/
10:14:48,583 ERROR Jun 10, 2008 10:14:48 AM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang:448
WARNING: Component jasperreport ignored. Reason: unable to load org.zkoss.zkex.zul.Jasperreport.
[SYS jar:file:/var/tmp/jboss-bin-4/localhost/digitalhome/deploy/tmp38166com.dh.u
i.database.app.ear-contents/com.dh.ui.database.web-exp.war/WEB-INF/lib/zkex.jar!
/metainfo/zk/lang-addon.xml line 78 col 13]
>>java.lang.NoClassDefFoundError:
>>net/sf/jasperreports/engine/JRDataSource
>> at java.lang.Class.forName0(Native Method) at
>>java.lang.Class.forName(Class.java:242)
>> at org.zkoss.lang.Classes.forNameByThread(Classes.java:199)
>> at
>>org.zkoss.zk.ui.metainfo.DefinitionLoaders.locateClass(DefinitionLoade
>>rs.j
ava:532)
>> at
>> org.zkoss.zk.ui.metainfo.DefinitionLoaders.parseLang(DefinitionLoader
>> s.jav
a:446)
>>...

NEXT DEPLOYMENT ERROR:

I get the following deployment error as well :

10:14:49,004 INFO Started J2EE application:
file:/opt/jboss-bin-4/server/digitalhome/deploy/com.dh.ui.database.app.ear
10:20:07,198 ERROR Jun 10, 2008 10:20:07 AM org.zkoss.zk.au.http.DHtmlUpdateServlet
init:161
WARNING: Failed to configure fileupload. Make sure commons-fileupload.jar is installed.
>>java.lang.NoClassDefFoundError:
>>org/apache/commons/fileupload/RequestContext
>> at
>>org.zkoss.zk.au.http.DHtmlUpdateServlet.init(DHtmlUpdateServlet.java:1
>>57) at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1105)
>> at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
>> a:757
)

The commons-fileupload.jar is DEFINITELY in the packaging.


Also,
NONE of my onClick handlers for my buttons work anymore, I get the following error :

0:20:19,999 ERROR Jun 10, 2008 10:20:19 AM org.zkoss.zk.ui.impl.UiEngineImpl
handleError:863
SEVERE: >>org.zkoss.zk.ui.UiException: Sourced file: inline evaluation
of: ``findmessagetemplates.findButtonClickHandler();'' : Attempt to resolve
method: findButtonClickHandler() on undefined variable or class name:
findmessagetemplates : at Line: 1 : in file: inline evaluation of:
``findmessagetemplates.findButtonClickHandler();'' : findmessagetemplates .findButtonClickHandler ( )

>>Sourced file: inline evaluation of:
``findmessagetemplates.findButtonClickHandler();'' : Attempt to resolve method:
findButtonClickHandler() on undefined variable or class name: findmessagetemplates
: at Line: 1 : in file: inline evaluation of:
``findmessagetemplates.findButtonClickHandler();'' : findmessagetemplates .findButtonClickHandler ( )
>>
>> at bsh.UtilEvalError.toEvalError(Unknown Source) at
>> bsh.UtilEvalError.toEvalError(Unknown Source) at
>> bsh.BSHMethodInvocation.eval(Unknown Source)

Again, all of this worked perfectly under 3.04, I poked around the install for
3.05 and can't find what I may have failed to do.

Help appreciated.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-06-26 13:56:27 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5055790

By: ansancle

I just tried to upgrade from 3.04 to 3.06 and I get the same errors, HELP!!!!!
I don't want to be stuck on 3.04, I really want to keep pace with the newest version but this is really causing a problem.

Thanks.

link publish delete flag offensive edit

answered 2008-06-26 15:04:11 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5055891

By: ansancle

I finally figured out what was going on. When I was building my application I was able to include all the required libraries in my build path from the ext and zkforge directories of the distribution, so I didn't get any errors during compilation. But when was packaging my war file with the zk libraries, I was only including the lib directory, not the libraries from the ext or zkforge directory. Once I added the necessary libraries from these subdirectories the errors went away.
Dumb mistake but frustrating to figure out.

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-06-11 12:24:48 +0800

Seen: 233 times

Last updated: Jun 26 '08

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