Sorry to step in late on this topic.

The PHP portlet works fine on Linux and PHP4. The php libraries under Windows have different names and require a tweak in the properties. And it gets more complicated with PHP5. First of all PHP 5 doesn't include the Java API anymore and the Java API is only available from CVS (not included in the source distribution).

I'll package the source code for the PHP java API and the portlet extension for PHP4 and PHP5 and host it on a public server. I'm putting together a document that will include how to recompile PHP with Java and the Servlet support. I have a draft together and if you are interested let me know so that I could send you the current state for testing.

Once this is in place I hope somebody could help to document it for Windows as well. It should be similar but you don't know until you have done it.

Roger

Steve Butman wrote:

I spent several days trying to figure out the PHP bridge, too, and
finally got it working.  I spent a good bit of time looking at the same
error you're seeing.  I cannot recall everything I did, but I know for
certain that I had to move the hosts and css directories of the PHP
webapp into the WEB-INF directory.  (I believe they are in the webapp
directory in the source distribution.)

The easiest thing to do is to download the source, move the directories
where they need to be, build everything from scratch and redeploy.

I'm pressed for time now, but I'll try to post a better explanation over
the weekend.

Good luck.


On Fri, 2005-08-19 at 10:18 +1000, John Voysey wrote:
Hi all,

I've been working on setting up the PHP bridge for Jetspeed-2 for a few days now, and can't seem to figure it out. Hopefully someone out there might be able to point me in the right direction..

I've built Jetspeed with the following setup:

 - Windows XP SP2
 - Java SDK 1.4.2_06
 - Tomcat 5.5.9
 - PHP 5.0.4
 - latest stable Jetspeed release (M3)

For reference, I've also tried with Tomcat 5.0.28 and PHP 4.4.0 with the same results.

As a test, I configured Tomcat to run PHP scripts like a normal web server, and that works correctly; so my PHP libraries appear to be setup properly.

After deploying Jetspeed and logging in (as manager), then opening the PHP Demo Portlet page, I see the following text:

 PHP demo Portlet
 Portlet is Not Available: null
 Reason: startup

Two exceptions are reported in the log files - the stack traces are too long to include, so here are the (I think) meaningful pieces:

2005-08-17 10:36:42 StandardContext[/php]JetspeedContainerServlet: Error rendering portlet "null": java.lang.UnsatisfiedLinkError: startup
java.lang.UnsatisfiedLinkError: startup
        at com.itgroundwork.portlet.php.servlet.startup(Native Method)
        at com.itgroundwork.portlet.php.servlet.init(servlet.java:205)
at org.apache.portals.bridges.php.PHPApplicationPortlet.doView(PHPApplicationPortlet.java:256)
        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
        at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:96) at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:224)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        ......

2005-08-17 10:36:42 StandardContext[/php]JetspeedContainerServlet: Error rendering JetspeedContainerServlet error page: java.lang.UnsatisfiedLinkError: startup
java.lang.UnsatisfiedLinkError: startup
        at com.itgroundwork.portlet.php.servlet.startup(Native Method)
        at com.itgroundwork.portlet.php.servlet.init(servlet.java:205)
at org.apache.portals.bridges.php.PHPApplicationPortlet.doView(PHPApplicationPortlet.java:256)
        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
        at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:96) at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:224)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        ......

Any help would be appreciated! If you need more information, let me know.

Thanks,



---------------------------------------------------------------------
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]

Reply via email to