Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-23-2008, 08:21 AM   PM User | #1
jpmad4it
New Coder

 
Join Date: Jan 2006
Posts: 85
Thanks: 2
Thanked 0 Times in 0 Posts
jpmad4it is an unknown quantity at this point
PHP - Java Bridge Deployment

Hi there,

I have installed the Java Application Platform (Glassfish) and Java EE 5.

I also downloaded the PHP - Java Bridge. I extracted the JavaBridge.wat file and auto deployed it within java.

When I log into the admin console and launch the JavaBridge examples from the menu most of them work, a few give errors though.

Has anyone else used this bridge? If the examples are working does this mean the bridge is working i.e. PHP and Java are communicating?

I also have J2EE SDK installed.

The instructions on the PHP-Java bridge webpage (http://php-java-bridge.sourceforge.n...stallation.php) show that you should deploy the war file in Apache Tomcat instead. I have read that some people have used glassfish instead with no problems. So I thought I'd autodeploy it using glassfish instead.

I have PHP 5.2.6 installed on my system, the paths are all set correct (PHP_HOME and path in system variables) yet when I use one of the examples in the JavaBridge package to show my PHP configuration ( phpinfo() ) its showing PHP 5.2.1. The code that forms this page is JSP, so I guess Java is consulting PHP for this info???

Here are some variables from phpinfo() :

- Server API: CGI/FastCGI - I've always wondered what this is?

- Configuration File (php.ini) Path: C:\PHP\php.ini

- JAVA_HOME: C:\Program Files\Java\jdk1.6.0_07\jre\

- Path: C:\Program Files\Sun\SDK\bin;C:\Program Files\Sun\SDK\bin;C:\PHP\;C:\CA_APPSW;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

Then there is a huge list of PHP variables are the end, for example one of which is:

_SERVER["X_JAVABRIDGE_INCLUDE"]: C:\Program Files\Sun\SDK\domains\domain1\applications\j2ee-modules\JavaBridge\jsp+php.jsp._cache_.php

So does all this indicate that the bridge is working?

PS: if I am running the Application server does this mean that a Java Virtual Machine is running in the background? How do I go about installing a JDBC driver within that virtual machine?

Any help would be great.

Kind regards
Jp

Last edited by jpmad4it; 10-23-2008 at 08:24 AM..
jpmad4it is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:21 PM.


Advertisement
Log in to turn off these ads.