|
From: <php...@li...> - 2009-04-02 11:28:18
|
Hi Guys,
Just started using the bridge, wonderful product. I have successfully
managed to connect to my java app standalone, however I am experiencing
problems in getting a web app example up and running. All I'm trying to do
is call a java method from my php script, so I'm not interesting in running
php in a vm. If I understand correct, all I need to do is make the Java.inc
file available to the calling php script, place JavaProxy.php and
JavaBridge.jar in my classpath and the class files of whatever java app I'm
calling.
This is what the directory structure for the web app looks like;
HelloWorldWebApp
|
|-WEB-INF
|-classes
|-lib
|-JavaBridge.jar
|-HelloWorld.jar
|-web.xml
|-META-INF
|-java
|-Java.inc
|-JavaProxy.php
Now I can access my Java.inc file in my browser with the following url;
http://localhost:8080/HelloWorldWebApp/java/Java.inc
And my php looks like;
<?php require_once("http://localhost:8080/HelloWorldWebApp/java/Java.inc");
$myClass = new java("test.HelloWorldTest");
echo $myClass->getMessage();
?>
Now everything seems fine to me, but I run the php script I get the
following error;
"protocol error:
HTTP Status 403 -
type Status report
message
description Access to the specified resource () has been forbidden.
Apache Tomcat/5.5.25
. Check the back end log for details. "
Now firstly why could this be happening and secondly how do I check the back
end log?
I have set recursive permissions on that directory to allow access to all
the files and folders, but I still get the error.
Any ideas?
--
Jaz Chana
Integration Specialist
Lean Practitioner
Direct Dial: 0151 290 5917
Email: jaz...@cd...
Web: www.cdms.co.uk <http://www.cdms.co.uk/>
*****************************************************************************
This email and its attachments are confidential to the intended recipient. If this has come to you in error, please notify the sender immediately and delete this email from your system. You must take no action based on this email, nor must you copy or disclose it or any part of its contents to any person or organisation. Please note that email communications may be monitored. The registered office of CDMS Limited is First Floor, Skyways House, Speke Road, Speke, Liverpool, L70 1AB, registered in England number 00406869.
*****************************************************************************
|