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 John Voysey <jo...@canberra.edu.au> on 2005/08/19 02:18:51 UTC

Jetspeed-2 / PHP Bridge

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,

-- 
John Voysey, BInfoSc (Hons)
Developer, UC Online
ICT Services, Building 10
University of Canberra, ACT 2601
E-mail: John.Voysey@canberra.edu.au

Australian Government Higher Education (CRICOS)
Registered Provider number: #00212K

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


Re: Jetspeed-2 / PHP Bridge

Posted by John Voysey <jo...@canberra.edu.au>.
Thanks for replies.

Steve - your suggestion has eliminated one of the exceptions, but I'm 
still seeing:

   java.lang.UnsatisfiedLinkError: startup
     at com.itgrounwork.portlet.php.servlet.startup(Native Method)
     ....

when the PHP Portlet is loaded.

Roger - I'd be interested in taking a look at whatever documentation you 
can provide. While my machine is running Windows, our official 
development and production servers are all running Unix, so I'd be happy 
if we could get it working on those machines.

Perhaps if I can get it running under Linux/Unix it might give me some 
ideas on what I've missed under Windows.

Thanks again,

John

Roger Ruttimann wrote:
> 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: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>  
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 

-- 
John Voysey, BInfoSc (Hons)
Developer, UC Online
ICT Services, Building 10
University of Canberra, ACT 2601
E-mail: John.Voysey@canberra.edu.au

Australian Government Higher Education (CRICOS)
Registered Provider number: #00212K

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


Re: Jetspeed-2 / PHP Bridge

Posted by Roger Ruttimann <ro...@apache.org>.
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: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>  
>


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


Re: Jetspeed-2 / PHP Bridge

Posted by Steve Butman <sb...@technologycrossing.com>.
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org