[Mulgara-general] Errors using Descriptors

Paul Gearon gearon at ieee.org
Tue Oct 9 15:41:26 UTC 2007


This probably came about when I moved Mulgara from Java 1.4 to Java
1.5.  Java 1.4 came with small pieces of Xerces built into it, and the
Descriptors were built around this.  Java 1.5 separated these pieces
out into a different set of packages so they wouldn't interfere with
anyone else's code, which was good.... but created problems for me
trying to get it right.  :-)

Unfortunately, it seems that I wasn't quite successful.

I'm hoping to update a number of the network interfaces in the near
future, so I expect I should be able to clean descriptors up then
(I've never actually used them, so I've yet to work out how they
work!).  In the meantime, thanks for the suggestion Xavier.

Regards,
Paul Gearon

On 10/9/07, Xavier Llorà <xllora at ncsa.uiuc.edu> wrote:
> Hi Tina,
>
> We ran into this one and there is a way to circumvent it. It is a quick fix,
> but it worked for us. The problem is that Mulgara uses a Jetty embedded
> service. The distribution jar misses by default  two required jar files to
> run properly Xerces and Xalan (based of the XSLT transformations used by the
> descriptors). Drop xercesImpl.jar and serializer.jar (just go and download
> them from the apache site, you may find them in the last 2.6.X  or  early
> 2.7.X Xalan releases) into java/ext of your JVM directory so the class
> loader used by mulgara embedded Jetty can find them. That should get rid of
> the error and should allow you to list the default set of descriptors.
>
> Best,
> X.
>
>
> On 10/9/07, Trina Myers <t.myers at bigpond.net.au> wrote:
> > Hi List,
> >
> > Just a quick newbie question. I have set up a Mulgara server on a laptop
> and
> > am going through the tutorials for creating Descriptors. However I am
> unable
> > to list the Descriptors available. From the descriptor management page,
> > after I have deployed the descriptor in Mulgara, I am unable to invoke the
> > Descriptors, I get a http error 500 in the browser and the stack trace
> shows
> > the following:
> >
> > ERROR:  'Unrecognized XSLTC extension 'mulgaraDescriptor:descriptor''
> > 2007-10-09 15:25:02,125 ERROR Descriptor - Transformer failure:
> > java.lang.Runtim
> > eException: Unrecognized XSLTC extension 'mulgaraDescriptor:descriptor'
> > 2007-10-09 15:25:02,125 ERROR ? - Exception for
> > /webservices/descriptor/execute?
> >
> _self=http%3A%2F%2Flocalhost%3A8080%2Fwebservices%2Fdescriptor%2Fdescriptors
> > %2Fd
> >
> efault%2FdescriptorListHTML.xsl&descriptorBase=http%3A%2F%2Flocalhost%3A8080
> > %2Fw
> >
> ebservices%2Fdescriptor%2Fdescriptors%2F&model=rmi%3A%2F%2Flocalhost%2Fserve
> > r1%2
> > 3descriptors
> > org.mulgara.descriptor.DescriptorException: Transformer
> failure:
> >         at
> org.mulgara.descriptor.Descriptor.process(Descriptor.java:646)
> >         at
> > org.mulgara.descriptor.Descriptor.processToString
> (Descriptor.java:577
> > )
> >         at
> >
> org.mulgara.descriptor.DescriptorServlet.doGet(DescriptorServlet.java
> > :495)
> >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >         at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:853)
> >         at
> >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354
> > )
> >         at
> >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
> > onHandler.java:294)
> >         at
> >
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
> > 67)
> >         at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
> >         at
> > org.mortbay.jetty.servlet.WebApplicationContext.handle
> (WebApplication
> > Context.java:525)
> >         at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
> >         at
> org.mortbay.http.HttpServer.service(HttpServer.java:879)
> >         at org.mortbay.http.HttpConnection.service
> (HttpConnection.java:790)
> >         at
> >
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
> >         at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> >         at
> > org.mortbay.http.SocketListener.handleConnection
> (SocketListener.java:
> > 197)
> >         at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
> >         at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
> > Caused by: javax.xml.transform.TransformerException :
> > java.lang.RuntimeException:
> > Unrecognized XSLTC extension 'mulgaraDescriptor:descriptor'
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
> > m(Unknown Source)
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
> > m(Unknown Source)
> >         at
> org.mulgara.descriptor.Descriptor.process(Descriptor.java:638)
> >         ... 17 more
> > Caused by: java.lang.RuntimeException : Unrecognized XSLTC extension
> > 'mulgaraDesc
> > riptor:descriptor'
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeE
> > rror(Unknown Source)
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.runTimeE
> > rror(Unknown Source)
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.unsuppor
> > ted_ElementF(Unknown Source)
> >         at
> >
> GregorSamsa.http$colon$$slash$$slash$www$dot$w3$dot$org$slash$1999$sl
> > ash$xhtml$colon$template$dot$0()
> >         at GregorSamsa.applyTemplates()
> >         at GregorSamsa.transform()
> >         at
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.tran
> > sform(Unknown Source)
> >         ... 20 more
> >
> > I have looked at the list archives and this error has come up in the past
> > but I couldn't find the solution?
> >
> > Any help would be appreciated
> > Cheers
> > Trina
> >
> > _______________________________________________
> > Mulgara-general mailing list
> > Mulgara-general at mulgara.org
> > http://mulgara.org/mailman/listinfo/mulgara-general
> >
>
>
>
> --
> Xavier Llorà
>
> Data-Intensive Technologies and Applications
> National Center for Supercomputing Applications
> University of Illinois at Urbana-Champaign
>  1205 W. Clark Street, Urbana IL 61801
>
> http://dita.ncsa.uiuc.edu/xllora
> _______________________________________________
> Mulgara-general mailing list
> Mulgara-general at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-general
>
>



More information about the Mulgara-general mailing list