|
From: <php...@li...> - 2008-02-14 23:13:39
|
Hi Jost,
Thanks for your reply. It is certainly possible to copy all of my libraries to WEB-INF/lib. Infact this has been my behavior once I was able to finally package up myapp.jar (a huge pain - not the jar -cvf etc, but the silly java app I am trying to consolidate here).
So with that in mind, I was unaware that myapp (the web app instance of java) needed to be deployed on the "local" apache document root as well. It was my understanding that loading a library via:
java_require("myapp.jar");
would load the java from the Tomcat instance - and then any calls to such classes would of course execute there. Like I say - I have done that - but the java_require / autoload still fails.
For number 3, you indicate copying "myapp" to the apache root, does myapp in that case mean the exploded war, or rather just the PHP myapp - which contains no java binary?
Sorry for the confusion man, I did not get the impression from any documentation that the myapp.jar (in any form) had to be deployed on the apache doc root (or any where else in the apache context) as well.
Thanks,
~tim
> Despite apache / tomcat being on the same server, it seems promiscuous needs to be on, as well
> as allow_url_include.
yes, this is documented, I think. :)
See also: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/
> But now, I cannot get java_require or java_autoload to get at my classes packaged within my web
> app.
Isn't it possible to copy all your libraries to WEB-INF/lib?
Basically users should be able to install the bridge with 3 simple steps:
1. Rename JavaBridge.war to myApp.war and add all needed Java and PHP libraries to the
myApp.war
2. Copy myApp.war to the J2EE autodeploy folder, wait until the directory myApp appears
3. Copy the directory myApp over to the Apache or IIS document root
4. Browse to http://yourHost.com/myApp and run the PHP/Java applications.
|