I am unaware of a Java perl implementation.
Your best bet if you must use Perl is to use proxying. Set up Apache httpd to run your perl. Even configure Apache to only accept requests from localhost. Then simply use the file generator:
<map:generate src="http://localhost/cgi-bin/test.pl"/>
Regards, Upayavira
Willy Reinhardt wrote:
Hi,
My application should execute a Perl script. I consider to use ScriptGenerator. I add in my sitemap:
<map:generator name="script" logger="antilopeFST.generator.scriptgenerator" src="org.apache.cocoon.generation.ScriptGenerator"/>
Note I didn't add Perl language because BSF use extension to determine language
then
<map:match pattern="test.pl"> <map:generate type="script" src="bin/test.pl"/> <map:serialize/> </map:match>
When I call the script I got an exception org.apache.cocoon.ProcessingException: BSFException in
ScriptGenerator.generate(): org.apache.bsf.BSFException: unable to load
language: perl
In the stacktrace I see: org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source)
My question is how to setup and configure ScriptingEngine for perl in cocoon ?
Thanks for your help.
Willy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
