|
From: Bill H. <Bil...@Ac...> - 2003-11-12 05:05:46
|
Bingo! Thank you very much.
Bill
On 11 Nov 2003 at 20:44, David Glick wrote:
> Hi Bill,
>
> Do you have PostToReflector in a jar file in the Babeldoc lib
> directory? Babeldoc ignores the classpath.
>
>
> Hope this helps,
>
> David
>
>
> On Tuesday 11 November 2003 7:40 pm, Bill Harrelson wrote:
> > Hi all,
> >
> > I hope someone can help.
> >
> > I'm trying to get my scripting stage to work (similar to what Qin
> > was trying to do a while ago.) and I am getting this error that I
> > don't know what to do with. I'm on babeldoc 1.1.9, jdk 1.4.1_01.
> > The script works just fine in Rhino, but not in Babeldoc. Same
> > directory, same classpath. Here's the Rhino: (the class is local in
> > the directory)
> >
> > C:\jakarta-tomcat-4.1.24\webapps_QIP\PipelineProcessorHome>java
> > org.mozilla.javascript.tools.shell.M ain Rhino 1.5 release 4.1 2003
> > 04 21 js> importClass(Packages.PostToReflector); js>
> > PostToReflector.Post(new java.io.FileInputStream("codelco.txt"));
> > after creating InputSource from filename stdin [- diagnostic message
> > from class] First 2k:<?xml version="1.0" encoding="iso-8859-1"?>
> > [.... lots of output from the class.]
> >
> > Here's the Babeldoc pipeline:
> >
> > entryStage=filewrite
> >
> > filewrite.stageType=FileWriter
> > filewrite.append=false
> > filewrite.outputFile=file.txt
> > filewrite.nextStage=sendAckHttp
> >
> > sendAckHttp.stageType=Scripting
> > sendAckHttp.language=javascript
> > sendAckHttp.script=\
> > importClass(Packages.PostToReflector); \
> > PostToReflector.PostToReflector(new
> > java.io.FileInputStream("file.txt")); sendAckHttp.nextStage=null
> >
> >
> > Here's the error thrown:
> >
> > <2003-11-11 22:33:23,992> INFO [main] : PipelineStage name:
> > filewrite <2003-11-11 22:33:24,162> INFO [main] : PipelineStage
> > name: sendAckHttp <2003-11-11 22:33:25,134> ERROR [main] :
> > [DefaultPipelineStageErrorHandler.handlePipelineStageError
> > ] PipelineStage name: sendAckHttp Error:
> > com.babeldoc.core.pipeline.PipelineException: Script proces
> > sing failed: JavaScript Error: Function importClass must be called
> > with a class; had "[JavaPackage P ostToReflector]" instead.
> > <2003-11-11 22:33:25,154> ERROR [main] : [PipelineFeeder.process]
> > org.apache.bsf.BSFException: JavaScript Error: Function importClass
> > must be called with a class; had
> > "[JavaPackage PostToReflector]" instead.
> > at
> > org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(Unkno
> > wn Source) at
> > org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown
> > Source) at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source)
> > at org.apache.bsf.BSFManager$6.run(Unknown Source)
> > at java.security.AccessController.doPrivileged(Native
> > Method) at org.apache.bsf.BSFManager.exec(Unknown Source) at
> > com.babeldoc.core.pipeline.stage.ScriptingPipelineStage.process(Unkn
> > own Source)
> > at
> > com.babeldoc.core.pipeline.PipelineStage.processStage(Unknow
> > n
> > Source) at
> > com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor.proc
> > essPipe
> >lineStage( Unkn
> > own Source)
> > at
> > com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor.proc
> > ess(Unk
> >nown Source)
> > ... more.
> >
> > Any idea what I should do?
> >
> > Thanks in advance,
> >
> > Bill
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: ApacheCon 2003,
> > 16-19 November in Las Vegas. Learn firsthand the latest
> > developments in Apache, PHP, Perl, XML, Java, MySQL,
> > WebDAV, and more! http://www.apachecon.com/
> > _______________________________________________
> > Babeldoc-user mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-user
>
> --
> David Glick
> Transmit Consulting, Inc
> 619-475-4052
> dg...@tr...
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Babeldoc-user mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-user
|