You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Alexey Manulenko <ma...@rosten.elektra.ru> on 2006/06/29 14:56:57 UTC

PHP Demo Portlet

Hello,

I need help.

I have the same issue, that is described here:
http://mail-archives.apache.org/mod_mbox/portals-jetspeed-user/200508.mbox/%3C4305256B.4040707@canberra.edu.au%3E
I'm just curious has anything change since then?
I have also tried to run a php::php-demo portlet but unfortunately I failed.

I am using: Jetspeed 2.0 embedded database distribution, running on 
WindowsXP, PHP version is 4.3.5.
I have PHP installed in C:\PHP and Jetspeed 2.0 installed in C:\Apache 
Jetspeed 2.0.

I performed the following steps in my attempt to make it work:
I copied 2 files: php4ts.dll and phpsrvlt.dll to C:\PHP directory.
Then I moved php.war archive from C:\Apache Jetspeed 2.0\webapps directory 
to temporary directory, C:\tmp
(This automatically undeployed context /php).
Then I extracted php.war contents to C:\tmp\php directory.
Then I moved /css, /hosts, and /sql folders along with test.php file to 
/WEB-INF directory.
Then I extracted C:\tmp\php\WEB-INF\lib phpportlet-1.0.jar contents to 
C:\tmp\php\WEB-INF\lib\phpportlet-1.0 directory and made
the following changes: I changed 2 files from 
C:\tmp\php\WEB-INF\lib\phpportlet-1.0\com\itgroundwork\portlet\php 
directory:
reflect.properties and servlet.properties the following way:
============reflect.properties===============
library=php4ts
=======================================

============servlet.properties===============
library=php4ts
======================================

Then I made a new phpportlet-1.0.jar archive by executing the following 
command
from C:\tmp\php\WEB-INF\lib\phpportlet-1.0 directory:
jar cvf ../phpportlet-1.0.jar .
I then removed phpportlet-1.0 directory from C:\tmp\php\WEB-INF\lib\
and made a new php.war archive by executing the following command from
C:\tmp\php\ directory:
jar cvf ../php.war .
I then removed php C:\tmp and moved php.war file from C:\tmp to C:\Apache 
Jetspeed 2.0\webapps directory.
After it got deployed I restarted my portal and added the following fragment 
to one of my .psml files:
===================================================
        <fragment id="u4-xx6034" type="portlet" name="php::php-demo">
            <property name="row" value="1"/>
            <property name="column" value="1"/>
        </fragment>

===================================================

When I try to execute "php.exe test.php" from ../webapps/php/WEB-INF 
directory it works fine.

Unfortunately, when I open my psml file I get an exception.
In PHP demo portlet "window" I see the message "Portlet is Not Available: 
php::php-demo Reason: startup"
and in Tomcat window I get the following exception:

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)
         ......


Have I done something wrong? Did I miss something?
Could anyone please prompt me the exact steps I should perform to make 
php::php-demo work?
I REALLY need it to work.
Thank you in advance for help.

Best regards,
Alexey 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Jetspeed-2 / PHP Bridge issue once again

Posted by Alexey Manulenko <ma...@rosten.elektra.ru>.
Hello,
I need help.

Steve Butman sbut...@technologycrossing.com on Fri, 19 Aug 2005 20:57:12 GMT 
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.

Could you please (if you have time now, of course) prompt me the exact steps 
you performed
to get the PHP bridge and php-demo portlet working...

Thank you in advance for your help.

Best regards,
Alexey 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org