File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes Local php-java-bridge problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "Local php-java-bridge problem" Watch "Local php-java-bridge problem" New topic

Local php-java-bridge problem

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401

I need to add some Java functionality to my php webapp, so am trying to set up php-java-bridge on my PC.

The problem I'm having it that I have my PHP server running on localhost:80, and Tomcat running on localhost:8084. And, presumably due to the different port numbers, this code...


...does not succeed.

Does anyone have anytime for setting up php-java-bridge in this situation?

Many thanks,
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Hard to answer because we don't know what you saw when it "did not succeed" -- it could be any number of things.

I'd like to know how your tomcat is setup and I'd like to know what you see when you point your browser at http://localhost:8084 (is Tomcat even running?)
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

The downloadable bridge WAR file is named JavaBridge.war, so did you rename it to myPhpApp.war? If not, what is in myPhpApp.war? (I assume you deployed a war by that name to Tomcat and that tomcat is running).

What happes in you access that URL from a browser? The browser should display the contents of the file.
I agree. Here's the link:
subject: Local php-java-bridge problem
It's not a secret anymore!