|
From: <php...@li...> - 2009-09-03 19:44:44
|
Hi,
[Just a quick reply while waiting for the bus]
- java_xxx functions are exported from Java.inc, you can find it in the
template folder: http://,,,/java/Java.inc
- java_require is obsolete in new programs
- ajp is obsolete, unless you want to run JSP from apache
- ajp (through mod_proxy or mod_jk) must be configured correctly, see our
FAQ for details
Regards,
Jost Boekemeier
3. Sep 2009 8:34 nachm. schrieb am <
php...@li...>:
Hi,
First of all i need to apologize since this email might be slightly
off-topic.
The only reason i am posting here is that it is a javabridge related.
Really i think though it is an apache2/tomcat integration issue.
So if this is unacceptable please let me know and (if possible) direct me
where i should go.
Here is the problem. I have a web application using the JavaBridgeTemplate.
The index.php is like so:
<?php echo "<br><hr><br>"; echo java("java.lang.System")->getProperties();
?>
It is deployed and i can execute in my browser at port 8080 (tomcat) and it
works.
The problem comes in when i try to go through apache2 via mod_jk.
The following is my setup (jk_mod is installed and loaded):
- /etc/apache2/conf.d/jk.conf:
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
- /etc/libapache2-mod-jk/workers.properties:
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker
- last line in apache2:
JkMount /* ajp13_worker
So, again, from what i can tell it is not directly related to the javabridge
code but i am hoping from some words of wisdom from more experienced people
than i am.
thanks
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|