0

Spreadsheet in outter file

asked 2010-03-28 10:34:25 +0800

Arsen gravatar image Arsen
384 5

updated 2010-03-28 10:36:40 +0800

Good day, everyone.
I've made plugins' system in my project. From main project's page user can select zul page, which is not in war file.
my sun-web.xml has such element

<property name="alternatedocroot_5" value="from=/modules/* dir=c:/MyProject/modules/"/>

so, when page with "module" in path is selected, loader finds it in my special directory.
The problem occurs when my "outter" zul contains spreadsheet
SEVERE: Failed to assign [maxrows=500] to <Spreadsheet resultBook>
Resource not found: web/WEB-INF/tld/zss/function.tld
>>org.zkoss.xel.XelException: Resource not found: web/WEB-INF/tld/zss/function.tld
>>        at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:108)
>>        at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:93)
>>        at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:99)

If I put this zul into main project (and it will be compiled into war), then there is no errors. But I need this file to be outter.
What should I do, to fix? Where I shoud put this tld file?
Application server Glassfish v3.
IDE Netbeans 6.8

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-03-28 20:31:56 +0800

samchuang gravatar image samchuang
4084 4

Hi

do you mean where do you put the zss.jar file ??

link publish delete flag offensive edit

answered 2010-03-29 01:25:15 +0800

Arsen gravatar image Arsen
384 5

Hi, samchuang.
I've putted the zss.jar to glassfish/domain/domain1/lib. Spreadsheet works perfectly, if it's inside project (i.e. inside war file). The problem occurs when I try to put zul with spreadsheet into outter folder (i.e. c:/MyProject/modules/).
By setting property <property name="alternatedocroot_5" value="from=/modules/* dir=c:/MyProject/modules/"/> I say loader to resolve relative addresses /modules/* with folder c:/MyProject/modules/.

link publish delete flag offensive edit

answered 2010-03-29 19:34:23 +0800

samchuang gravatar image samchuang
4084 4

hi

inside the zss.jar has a config.xml file, it locate the tld folder, so I think you have to put the zss.jar inside war file. if you want to change location, you could try to modify the config.xml file. but I haven't tried.

link publish delete flag offensive edit

answered 2010-03-30 02:11:45 +0800

Arsen gravatar image Arsen
384 5

Thanks a lot, samchuang, for idea. I shall try.

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: 2010-03-28 10:34:25 +0800

Seen: 247 times

Last updated: Mar 30 '10

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