|
From: <php...@li...> - 2008-02-04 06:37:33
|
Thanx Jost for your reply.
I have disabled mod_jk and enabled mod_proxy as per your suggestion, but th=
e
problem is still the same. If I put test123.php under JavaBridge, it works
fine. But whereas if I put test123.php under Apache DocumentRoot, it still
gives me the same error. The code I am trying to execute in test123.php is
following:
<?php
if(!extension_loaded("java"))
require_once("http://localhost/JavaBridge/java/Java.inc");
$s =3D new Java("java.lang.String", "hello");
phpinfo();
?>
I am able to access http://localhost/JavaBridge and execute PHP scripts
under this app.
Is my desired setup configuration i.e. PHP scripts on Apache htdocs and
JavaClasses on Tomcat correct? What are the better alternatives to this
setup?
regds,
Bharti
On Feb 4, 2008 1:38 AM, <php...@li...> wrote=
:
> Hi,
>
> >using mod_jk connectors
>
> you must forward *all* requests to the back end or none. Please consult
> the mod_jk dokumentation
> for details.
>
> However, mod_jk is slow and very difficult to set up. A much better
> approach is to use mod_rewrite
> or mod_proxy. Example httpd.conf:
>
> ProxyPass /JavaBridge balancer://mycluster maxattempts=3D3
> <Proxy balancer://mycluster>
> BalancerMember http://diego:8080/JavaBridge
> BalancerMember http://carlos:8080/JavaBridge
> BalancerMember http://localhost:8080/JavaBridge
> </Proxy>
>
>
>
> Regards,
> Jost Boekemeier
>
>
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie=B4s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|