Mount vs File for logicsheets inside cocoon.xconf

2003-07-01 Thread Derek Hohls
I'd appreciate a brief explanation (or pointer
to such) as to why:

parameter name=href value=file:///my-path-to-cocoon/logic/my-taglib.xsl/

works (placed inside the builtin-logicsheet section of 
cocoon.xconf)

and why:

parameter name=href value=resource://logic/my-taglib.xsl/

gives an error (the file could not be located).  I have seen both
forms of referencing used in examples, but cannot get the latter
to work...  can someone suggest why??



Related follow on:

IF I can get the resource:// to work, then it seems there are 
other issues,  Vadim writes:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102374809216737w=2

Ok, after looking into sources, I can say that if logicsheet is built-in
or not is not important. It is important how it is referenced from the
XSP or cocoon.xconf.

If it is referenced as a file then it is checked for modification using
File java API. If not (like resource://) - then it is not checked.


So - using  resource:// is better from a development/maintenance
point (I dont have to check the xconf file for changes if we move to
a new machine, or from production to public system, for example)
but if it requires restarting the servlet container, then this is NOT
good from a perspective of uptime and admin...

Comments/suggestions for this welcome

Thanks
Derek



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mount vs File for logicsheets inside cocoon.xconf

2003-07-01 Thread Vadim Gritsenko
Derek Hohls wrote:

I'd appreciate a brief explanation (or pointer
to such) as to why:
parameter name=href value=file:///my-path-to-cocoon/logic/my-taglib.xsl/

works (placed inside the builtin-logicsheet section of 
cocoon.xconf)

and why:

parameter name=href value=resource://logic/my-taglib.xsl/

gives an error (the file could not be located).  I have seen both
forms of referencing used in examples, but cannot get the latter
to work...  can someone suggest why??
 

You know that resources are loaded by class loader, right? Which means that

 parameter name=href value=resource://logic/my-taglib.xsl/

translates to

 parameter name=href 
value=file:///my-path-to-cocoon/WEB-INF/classes/logic/my-taglib.xsl/

I guess that was the missing piece.

PS Due to the above (class loader) resources can be reloaded only 
together with all the classes. Redeploy of the whole webapp will pick up 
changes in the logicsheet but then you will have to manually delete all 
compiled XSPs because Cocoon will not know that it was changed.

Vadim



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]