|
From: Qin D. <qd...@cs...> - 2003-10-03 17:34:38
|
David and Bruce:
I put the my validation jar into c:\qin\lib foder and set CLASSPATH=c:
\qin\lib\myvalidation.jar;%CLASSPATH%. Re-ran the pipeline. Still got the
error for not finding the class. I built a small app to verify
myvalidation.jar using the same classpath. It finds the
TestManager.validation without the problem. So the problem seems at the my
script. Here is my script:
initialize.script=\
longlegs.core.filevalidation.TestManager.validate(document.get
("file_name"),\
document.getInputStream());\
1. Internally, when this script is received, how does ScriptingStage class
do to start search the external jar?
2. I don't think the external application stage will help me because our
validation jar is not an "application"; and it only takes either
java.io.File or java.io.InputStream.
3. If I can not make it work using Scripting stage, I am think just modify
the directory scanner to include the call to my validation routine after it
picks up the file there. Can I do that by extending the DirectoryScanner?
Once again, if I extend the class, where should I deploy it?
4. There are lots of directories with the numbers as their names. What are
those directories? Does the system perge them eventually?
<2003-10-03 09:59:55,637> INFO [main] : PipelineStage name: initialize
<2003-10-03 09:59:56,108> ERROR [main] :
[DefaultPipelineStageErrorHandler.handlePipelineStageError] PipelineStage
name: initialize Error: com.babeldoc.core.pipeline.PipelineException:
Script processing failed
<2003-10-03 09:59:56,108> ERROR [main] : [PipelineFeeder.process]
com.babeldoc.core.pipeline.PipelineException: Script processing failed
at
com.babeldoc.core.pipeline.stage.ScriptingPipelineStage.process(Unknown
Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown
Source)
at
com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor.processPipelineStage(Unknown
Source)
at
com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor.process(Unknown
Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown
Source)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown
Source)
at
com.babeldoc.core.pipeline.feeder.SynchronousFeeder.process(Unknown Source)
at com.babeldoc.core.pipeline.feeder.FeederFactory.process(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.process(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.execute(Unknown
Source)
at com.babeldoc.core.BabeldocCommand.executeCommand(Unknown Source)
at com.babeldoc.core.BabeldocCommand.<init>(Unknown Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.<init>(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.main(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.babeldoc.core.Main.handleCommand(Unknown Source)
at com.babeldoc.core.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.babeldoc.init.Main.runBabeldocMain(Unknown Source)
at com.babeldoc.init.Main.main(Unknown Source)
Caused by: org.apache.bsf.BSFException: JavaScript Error: Internal Error:
ReferenceError: "longlegs" is not defined.
at
org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(Unknown
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)
... 27 more
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
|