XML extension to Trac/java

B

bruce mcdonald

I am creating an extension in java for my style sheet.
I want to return a series of nodes containing dynamic data from an extension
function.

At the top of the style sheet I have

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xalan/java" version="1.0"
exclude-result-prefixes="java">
<xsl:eek:utput method="html" encoding="iso-8859-1"/>


and call a static function as follows.

<xsl:variable name="test" select="java:TestClass2.TestFunc($items)"/>



Now this works fine. but as soon as I place the class in a package structure
ie softgame.fastcars.TestClass2, the Transform says

[09/Feb/2004:14:28:58] info (25366): vs(https-testportal)servlet 'MmsPortal'
class = 'com.mig.mmsportal.MmsPortal' load
d in context = '/'
[09/Feb/2004:14:28:58] info (25366): MmsPortal: init
[09/Feb/2004:14:29:25] failure (25366): Internal error: servlet service
function had thrown ServletException (uri=/msn)
javax.servlet.ServletException: javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: ja
a.lang.ClassNotFoundException: softgame.fastcars, stack:
javax.servlet.ServletException: javax.xml.transform.Transforme
Exception: javax.xml.transform.TransformerException:
java.lang.ClassNotFoundException: softgame.fastcars
at com.mig.mmsportal.MmsPortal.service(MmsPortal.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:981)
, root cause:


What am I doing wrong ?

[09/Feb/2004:14:38:08] info (25366): Shutdown (): running destroy methods on
all active servlets ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top