-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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/"/>
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
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/.
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.
Asked: 2010-03-28 10:34:25 +0800
Seen: 247 times
Last updated: Mar 30 '10