xsl java extensions won't work in tomcat

2001-02-13 Thread David . Schneider

hi all,

i have an xsl stylesheet that includes calls to a java class of my own
devising.  when i call this stylesheet via the command line (bypassing
tomcat), everything works just swell.  However, when the same thing is
called from within a jsp page, i get the following error:

Call to extension function failed: File
"file:/home/dschneid/cvs/cms/rosebud20/com/thestreet/cms/stylesheet/com.thestreet.cms.stylesheet.StylesheetDBHandler"

not found.

inside the stylesheet i have

http://www.w3.org/1999/XSL/Transform"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:dbhandler
="com.thestreet.cms.stylesheet.StylesheetDBHandler"
extension-element-prefixes="dbhandler"
version="1.0">

at the top and



inside a template rule.

the stylesheet and the class file are in the same directory.

i am using tomcat 3.1 standalone (port 8080), jdk 1.2.2, xerces 1.1.2,
xalan 1.2 on a sun solaris box.

any (and all) help is greatly appreciated.




==

This  email  (and  any  attachments)  is  intended  only for the use of the
addressee(s)  and  may  contain  proprietary,  privileged  or  confidential
information.   If you are not the intended recipient, you may not use, copy
or  disclose to anyone this message or any information contained in it.  If
you  have received this message in error, please notify the sender by reply
email  @thestreet.com and delete the original and any copy of this message.
Thank you.
==


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




Re: xsl java extensions won't work in tomcat

2001-02-13 Thread William Brogden



[EMAIL PROTECTED] wrote:
> 
> hi all,
> 
> i have an xsl stylesheet that includes calls to a java class of my own
> devising.  when i call this stylesheet via the command line (bypassing
> tomcat), everything works just swell.  However, when the same thing is
> called from within a jsp page, i get the following error:
> 
> Call to extension function failed: File
> 
>"file:/home/dschneid/cvs/cms/rosebud20/com/thestreet/cms/stylesheet/com.thestreet.cms.stylesheet.StylesheetDBHandler"

. clip
> the stylesheet and the class file are in the same directory.

That is the key point. Web resources such as style sheets, images, 
applet class files can NOT be served from the WEB-INF/ directories
The simplest thing to do is to specify a  URL pointing to
a URL where these resources live.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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