Hello cocoon-dev, last time i try to run PHPGenerator under C2.0.1. i'm 1) download PHP 4.1.1 form php.net 2) copy phpsrvlt.jar into cocoon-2.0.1/lib/optional 3) rebuild C2 generator added... <map:generator name="php" src="org.apache.cocoon.generation.PhpGenerator" logger="sitemap.generator.php"/> 4) make the pipeline
<map:match pattern="php*"> <map:generate type="php" src="docs/php{1}.php"/> <map:serialize/> </map:match> and try to open URL "localhost:8080/phpversion" under Resin 2.0.4 File docs/phpversion.php: <html> <? phpversion() ?> </html> Next error produced: [ java.lang.UnsatisfiedLinkError: no phpsrvlt in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at net.php.reflect.loadLibrary(reflect.java:34) at net.php.reflect.<clinit>(reflect.java:29) at net.php.servlet.init(servlet.java:131) at org.apache.cocoon.generation.PhpGenerator.generate(PhpGenerator.java:140) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:209) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:355) at org.apache.cocoon.www.sitemap_xmap.matchN102C5(sitemap_xmap.java:3226) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2513) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2449) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82) at com.caucho.server.http.Invocation.service(Invocation.java:278) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129) at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:847) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) ] Inside logs/core.log i see this: DEBUG (2002-02-14) 18:06.59:195 [core] (Unknown-URI) Unknown-thread/Cocoon: java.library.path=c: \j\jdk1.3.1_01\bin;.;C:\WINNT\System32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C: \WINNT\system32\nls\English;C:\Util;C:\cygwin\bin And all this not work even when i copy phpsrvlt.jar into C:\WINNT. May be i must change java.library.path? (Add phpsrvlt.jar to it). Then - questions: 1) WHY other jar files accessed through java.class.path (Resin classes) AND through Classpath repository (Cocoon classes - automatically), but phpsrvlt.jar through java.library.path? 2) How to change java.library.path inside C2 environment? 3) May be exist another source of bug? Best regards, Andrew Answer [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]