You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
(4) |
2
|
3
|
|
4
|
5
|
6
|
7
|
8
(2) |
9
|
10
(1) |
|
11
|
12
|
13
(3) |
14
(2) |
15
|
16
(1) |
17
(2) |
|
18
(5) |
19
(6) |
20
(6) |
21
(10) |
22
(4) |
23
|
24
|
|
25
|
26
(7) |
27
(6) |
28
(3) |
29
(5) |
30
(2) |
31
|
|
From: <php...@li...> - 2007-03-17 11:39:29
|
Hi, which problems do you have with the PHP/Java Bridge? > java.lang.ClassNotFoundException: > com.intraway.framework.IpuConfigResponsible Well, just locate the Java library which exports the above class and then require it and its dependencies using the java require syntax. > VM: 3.4.3@http://gcc.gnu.org/java/ Also check if you Java VM can interpret the Java library (GNU java is not fully compatible with Java 1.4). If not, switch to IBM or Sun Java. In any case, please do not use @java_reset(), the CLASSPATH. In which documentation have you found this? Also it should never ever be necessary to create a wrapper Java library. The PHP/Java Bridge protocol is efficient enough so that these wrappers are *entirely* obsolete. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: <php...@li...> - 2007-03-16 15:51:52
|
Hi there, I' just downloaded and installed php/java bridge on a RH4, Apache
2.0, PHP 5.1.4 environment and I'm trying to make it work.
I just tried with a short script and I'm getting troubles to make it work.
I'd appreciate any help.
This is my java file:
class Test
{
public Test ()
{
System.out.println("Hi, Im the constructor");
}
public String saySth ()
{
return "Something stupid";
}
public static void main (String[] args)
{
System.out.println("This is the main");
System.exit(0);
}
}
I compiled it with javac and made the Test.jar file.
I tried putting the jar file on:
- /usr/local/apache2/htdocs/tests_java/ =DF my document root
- /usr/shared/java/
I even added the first path to mi CLASSPATH environment variable using php'=
s
putenv function.
Nothing seems to work.
This is my PHP file:
<?
$CLASSPATH =3D getenv('CLASSPATH');
echo "LA ORIGINAL: <br>";
echo $CLASSPATH;
echo "AGREGO EL PATH <br>";
$CLASSPATH .=3D ":/usr/local/apache2/htdocs/tests_java/test.jar";
putenv("CLASSPATH=3D".$CLASSPATH);
$CLASSPATH =3D getenv('CLASSPATH');
echo "LA POSTA: <br>";
echo $CLASSPATH;
@java_reset();
echo "<p><strong>Ejemplos de por ahi con clases propias de JAVA:
</strong></p>";
// get instance of Java class java.lang.System in PHP
$system =3D new Java('java.lang.System');
// demonstrate property access
echo 'Java version=3D' . $system->getProperty('java.version') . '<br />';
echo 'Java vendor=3D' . $system->getProperty('java.vendor') . '<br />';
echo 'OS=3D' . $system->getProperty('os.name') . ' ' .
$system->getProperty('os.version') . ' on ' .
$system->getProperty('os.arch') . ' <br />';
// java.util.Date example
$formatter =3D new Java('java.text.SimpleDateFormat',
"EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
echo java_values($formatter->format(new Java('java.util.Date')));
@java_reset();
echo "<p><strong>Gusto? Bueno, aca viene lo complicado... levantar MI
clase</strong><p>";
try {
java_require("http://172.16.0.75/tests_java/Test.jar");
}catch (JavaException $e) {
if ($ex =3D java_last_exception_get())
{
echo "<strong>JAVA EXCEPTION: NO PUDE LEVANTAR EL JAR
</strong><br />";
echo java_values($ex->getMessage())."<br />";
}
}
try {
$o =3D new Java("Test");
echo (string) $o->saySth();
} catch (JavaException $e) {
if($ex=3Djava_last_exception_get()) {
echo "<strong>JAVA EXCEPTION: </strong><br />";
echo java_values($ex->getMessage())."<br />";
}
}
@java_reset();
echo "<p><strong>A ver que pasa con IpuConfig</strong></p>";
try {
$o =3D new Java("com.intraway.framework.IpuConfig");
$o->showXML();
} catch (JavaException $e) {
if($ex =3D java_last_exception_get())
{
echo "<strong>JAVA EXCEPTION: </strong><br />";
echo java_values($ex->getMessage())."<br />";
}
}
@java_reset();
?>
When I open that on my browser I get this:
LA ORIGINAL:
.:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/bin:/usr/=
local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-
4.0.1/client/jboss-
client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/=
jboss-4.0.1/client/jboss-common-client.jar:/usr/local/apache2/htdocs/Intraw=
ayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-j2ee.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/j=
np-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-=
um/jboss-4.0.1/client/log4j.jar:/usr/local/apache2/htdocs/IntrawayWS/client=
s/ip-unity/mereon-um/jboss-4.0.1/client/jaas.jar:/usr/local/apache2/htdocs/=
IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jbosssx-client.jar=
:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.=
1/client/jboss-transaction-client.jar:/usr/local/apache2/htdocs/IntrawayWS/=
clients/ip-unity/mereon-um/jboss-4.0.1/client/jbossall-client.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/=
UM-MP_WEB-3_1_5_1-0005_webmail_classes.jar:/usr/local/apache2/htdocs/Intraw=
ayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipucommon.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/=
mailAdmin.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-=
um/ipunity_web_classes/mail.jar:/usr/local/apache2/htdocs/IntrawayWS/client=
s/ip-unity/mereon-um/ipunity_web_classes/um.jar:/usr/local/apache2/htdocs/I=
ntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipunity_fw.jar:/us=
r/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_cl=
asses/ipunity_api.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity=
/mereon-um/ipunity_web_classes/classes12.jar:/usr/local/apache2/htdocs/Intr=
awayWS/clients/ip-unity/mereon-um/ipunity_web_classes/activation.jar:/usr/l=
ocal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_class=
es/servlet.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon=
-um/ipunity_web_classes/xalan.jar:/usr/local/apache2/htdocs/IntrawayWS/clie=
nts/ip-unity/mereon-um/ipunity_web_classes/jazzy-core.jar:/usr/local/apache=
2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/conf:/opt/oracle/product/10.=
2.0/jdbc/lib/classes12.zip:.:/usr/local/apache2/htdocs/IntrawayWS/clients/i=
p-unity/mereon-um/bin:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity=
/mereon-um/jboss-4.0.1/client/jboss-client.jar:/usr/local/apache2/htdocs/In=
trawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-common-client.=
jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4=
.0.1/client/jboss-j2ee.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/jboss-4.0.1/client/jnp-client.jar:/usr/local/apache2/htdocs=
/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/log4j.jar:/usr/lo=
cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client=
/jaas.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/j=
boss-4.0.1/client/jbosssx-client.jar:/usr/local/apache2/htdocs/IntrawayWS/c=
lients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar:/=
usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/=
client/jbossall-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/ipunity_web_classes/UM-MP_WEB-3_1_5_1-0005_webmail_classes.=
jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity=
_web_classes/ipucommon.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/ipunity_web_classes/mailAdmin.jar:/usr/local/apache2/htdocs=
/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/mail.jar:/usr/lo=
cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classe=
s/um.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ip=
unity_web_classes/ipunity_fw.jar:/usr/local/apache2/htdocs/IntrawayWS/clien=
ts/ip-unity/mereon-um/ipunity_web_classes/ipunity_api.jar:/usr/local/apache=
2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/classes1=
2.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipuni=
ty_web_classes/activation.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/=
ip-unity/mereon-um/ipunity_web_classes/servlet.jar:/usr/local/apache2/htdoc=
s/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/xalan.jar:/usr/=
local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_clas=
ses/jazzy-core.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/me=
reon-um/conf:/opt/oracle/product/10.2.0/jdbc/lib/classes12.zipAGREGOEL
PATH
LA POSTA:
.:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/bin:/usr/=
local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-
4.0.1/client/jboss-
client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/=
jboss-4.0.1/client/jboss-common-client.jar:/usr/local/apache2/htdocs/Intraw=
ayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-j2ee.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/j=
np-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-=
um/jboss-4.0.1/client/log4j.jar:/usr/local/apache2/htdocs/IntrawayWS/client=
s/ip-unity/mereon-um/jboss-4.0.1/client/jaas.jar:/usr/local/apache2/htdocs/=
IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jbosssx-client.jar=
:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.=
1/client/jboss-transaction-client.jar:/usr/local/apache2/htdocs/IntrawayWS/=
clients/ip-unity/mereon-um/jboss-4.0.1/client/jbossall-client.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/=
UM-MP_WEB-3_1_5_1-0005_webmail_classes.jar:/usr/local/apache2/htdocs/Intraw=
ayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipucommon.jar:/usr/loca=
l/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/=
mailAdmin.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-=
um/ipunity_web_classes/mail.jar:/usr/local/apache2/htdocs/IntrawayWS/client=
s/ip-unity/mereon-um/ipunity_web_classes/um.jar:/usr/local/apache2/htdocs/I=
ntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/ipunity_fw.jar:/us=
r/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_cl=
asses/ipunity_api.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity=
/mereon-um/ipunity_web_classes/classes12.jar:/usr/local/apache2/htdocs/Intr=
awayWS/clients/ip-unity/mereon-um/ipunity_web_classes/activation.jar:/usr/l=
ocal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_class=
es/servlet.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon=
-um/ipunity_web_classes/xalan.jar:/usr/local/apache2/htdocs/IntrawayWS/clie=
nts/ip-unity/mereon-um/ipunity_web_classes/jazzy-core.jar:/usr/local/apache=
2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/conf:/opt/oracle/product/10.=
2.0/jdbc/lib/classes12.zip:.:/usr/local/apache2/htdocs/IntrawayWS/clients/i=
p-unity/mereon-um/bin:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity=
/mereon-um/jboss-4.0.1/client/jboss-client.jar:/usr/local/apache2/htdocs/In=
trawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-common-client.=
jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4=
.0.1/client/jboss-j2ee.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/jboss-4.0.1/client/jnp-client.jar:/usr/local/apache2/htdocs=
/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client/log4j.jar:/usr/lo=
cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/client=
/jaas.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/j=
boss-4.0.1/client/jbosssx-client.jar:/usr/local/apache2/htdocs/IntrawayWS/c=
lients/ip-unity/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar:/=
usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/jboss-4.0.1/=
client/jbossall-client.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/ipunity_web_classes/UM-MP_WEB-3_1_5_1-0005_webmail_classes.=
jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity=
_web_classes/ipucommon.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-=
unity/mereon-um/ipunity_web_classes/mailAdmin.jar:/usr/local/apache2/htdocs=
/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/mail.jar:/usr/lo=
cal/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classe=
s/um.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ip=
unity_web_classes/ipunity_fw.jar:/usr/local/apache2/htdocs/IntrawayWS/clien=
ts/ip-unity/mereon-um/ipunity_web_classes/ipunity_api.jar:/usr/local/apache=
2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/classes1=
2.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipuni=
ty_web_classes/activation.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/=
ip-unity/mereon-um/ipunity_web_classes/servlet.jar:/usr/local/apache2/htdoc=
s/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_classes/xalan.jar:/usr/=
local/apache2/htdocs/IntrawayWS/clients/ip-unity/mereon-um/ipunity_web_clas=
ses/jazzy-core.jar:/usr/local/apache2/htdocs/IntrawayWS/clients/ip-unity/me=
reon-um/conf:/opt/oracle/product/10.2.0/jdbc/lib/classes12.zip:/usr/local/a=
pache2/htdocs/tests_java/test.jar
*Ejemplos de por ahi con clases propias de JAVA: *
Java version=3D3.4.3
Java vendor=3DFree Software Foundation, Inc.
OS=3DLinux 2.6.9-5.EL on i686
Friday, March 16, 2007 at 12:28:45 PM GMT-03:00
*Gusto? Bueno, aca viene lo complicado... levantar MI clase*
*JAVA EXCEPTION: *
CreateInstance failed: new Test. Cause: java.lang.ClassNotFoundException:
Test Responsible VM: 3.4.3@http://gcc.gnu.org/java/
*A ver que pasa con IpuConfig*
*JAVA EXCEPTION: *
CreateInstance failed: new com.intraway.framework.IpuConfig. Cause:
java.lang.ClassNotFoundException:
com.intraway.framework.IpuConfigResponsible VM:
3.4.3@http://gcc.gnu.org/java/
So=85 the extension works fine. I can use java's own classes, but the probl=
em
comes when I want to use my own.
I'm not much of a Java programmer but I've been working with PHP for quite =
a
long time now.
Could you give me any hint on how to get this to work?
Thanx
Andr=E9s Gattinoni
|
|
From: <php...@li...> - 2007-03-14 12:05:42
|
Dear Jost, thank you very much for your detailed answers. With the J2EE one it is now working without problems. Btw. I used the FC6 package, as I read in one tutorial (FC4) that I can use this package also with Linux. Anyhow, we clarified everything now, it works! Thx again for your work. Daniel -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser |
|
From: <php...@li...> - 2007-03-14 10:55:16
|
Hi Daniel,
> Suse Linux 10.1 is installed.
afaik there is no binary RPM available for Novell/Suse
Linux, so you need to compile from source or use the
J2EE binary instead.
> I downloaded the package from SF, installed it via
> Package Manager and moved the files into the
> extension directory.
I don't know which RPM you've installed, but the
RedHat RPM will only work on RedHat based Linux
distributions (Fedora, Centos, ...). There are other
RPM packages available for Mandrake etc.
In practice you need to move the java.so to the php
extension directory and set the java.hosts and
java.servlet (to connect to an external J2EE server)
or java.java and java.home (to start an internal Java
process).
> The php.ini contains the following values for Java:
> [Java]
> extension=java.so
This uses the default settings: it starts the
compiled, native back end which doesn't need any java
installed on the system. -- RedHat ships with gcj
("GNU Java") as the default "Java" implementation.
> What is the file "RunJavaBridge" for?
It is a Security Enhanced Linux wrapper which manages
the domain transition from http_t to javabridge_t.
It is irrelevant for you because Novell/Suse Linux
doesn't support Security Enhanced Linux. -- At the
moment only RedHat based distributions (and some
experimental Debian distributions) support Security
Enhanced Linux. Please see the SEL web page from the
NSA or RedHat for details.
> an executable, but how can I use it?
Try start RunJavaBridge, it should display a
discription.
> Any help to get the Bridge running on my system is
> appreciated.
Well, since your distribution doesn't support any
Linux specific enhancements anyway (no SEL, GNU Java,
...), you can ignore the Linux package and use the
standard J2EE package instead.
Start a Java process (for example from a service
script) as follows:
java -jar JavaBridge.jar SERVLET_LOCAL:8080
To access Java from any PHP script use the following
code:
<?
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
echo $s;
?>
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: <php...@li...> - 2007-03-13 19:36:00
|
Hi all, I already installed the bridge on my test environment on a Windows Machine. That worked like a charm. Now I want to go live on a Linux machine, on which Suse Linux 10.1 is installed. PHP Version is 5.2.1 as part of the XAMPP-Package (which also contains the apache Webserver) I downloaded the package from SF, installed it via Package Manager and moved the files into the extension directory. The php.ini contains the following values for Java: [Java] extension=java.so After restart of apache, I cannot run phpinfo(), as I only get the test.php file for downloading. I haven't found a updated documentation for Linux-install. What is the file "RunJavaBridge" for? It seems to be an executable, but how can I use it? Any help to get the Bridge running on my system is appreciated. Best regards Daniel Preis -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out |
|
From: <php...@li...> - 2007-03-10 02:02:47
|
Testing mailing list |
|
From: <php...@li...> - 2007-03-08 13:54:29
|
> java -jar JavaBridge.jar SERVLET:8101
> require_once("C:\\opt\JavaBridge\java\java.inc");
Use
require_once("http://localhost:8101/JavaBridge/java/Java.inc");
instead.
If you want to use the local Java.inc, change the
option JAVA.SERVLET from 8080 to 8101 (see
C:\\opt\JavaBridge\java\Options.inc).
Regards,
Jost Boekemeier
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
|
|
From: <php...@li...> - 2007-03-08 13:10:36
|
Hello,
I am trying to install the php/java bridge in WindowsXP with the
pure PHP method. Here is what I have.
* Apache Web Server 2.0
* PHP 5.2.0
* php/Java Bridge 4.0.1
Here is what I am doing:
java -jar JavaBridge.jar SERVLET:8101
Then I have a test.php file that is in the apache root dir that has
the following:
<?php
require_once("C:\\opt\JavaBridge\java\java.inc");
$system = new Java'java.lang.System');
?>
This fails with an error in apache's log (java_runtimeException with
message named-pipe communication not implemented ....
I know I don't have something setup correctly. Any hints?
Thanks
--
Michael Speth 石雨濛
Computer Engineer
OPNET
http://www.opnet.com
|
|
From: <php...@li...> - 2007-03-01 20:13:20
|
Hi Sky,
> Would you care to elaborate on the sandbox and on
> how i could possibly get
> the bridge to access the paths i require, btw i have
> disabled SEL so i
> assume the rules are not active...
I'd expect that a
chown root:root /usr/lib/php/modules/RunJavaBridge
chmod 111 /usr/lib/php/modules/RunJavaBridge
setenforce Permissive
should run Java as root with all permissions.
Or you start Java manually, for example with
java -jar JavaBridge.jar SERVLET:8080
or via tomcat for example. And use the pure PHP
implementation
(require_once("http://localhost:8080/JavaBridge/java/Java.inc")
or the following php.ini setting:
[java]
java.servlet=On
java.hosts=127.0.0.1:8080
If the problem persists please open a ticket (please
use
http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233)
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: <php...@li...> - 2007-03-01 20:06:17
|
Ho Wilfrid,
> $cb = $writer->getDirectContent();
> $bf = new Java("com.lowagie.text.pdf.BaseFont");
> $bf->createFont("Helvetica", "Cp1252", false);
> $cb->setFontAndSize( $bf , 12);
> ...
> I got this error:
> Fatal error: Uncaught
> [o(Exception):"java.lang.Exception: Invoke failed:
>
[o(PdfContentByte)]->setFontAndSize((BaseFont)c(BaseFont),
> (float)o(Float)).
> Cause: java.lang.IllegalArgumentException: argument
> type mismatch [...]
Shouldn't be BaseFont an instance? My guess is that
$bf = $bf->createFont(...) should correct this
problem.
BTW: For backward compatibility the bridge allows
sloppy coding:
new Java("com.lowagie.text.pdf.BaseFont");
is valid even though the above code should immediately
throw an exception. If you set the log level to 3
(which is default), you should see a warning message
in the JavaBridge.log file.
> It seems '12' is considerated as an Object Float and
> not a primitive type
> float.
It's more likely that the problem is the first
argument, not the second. float is autoconverted into
a Float, so this shouldn't be the problem.
But you're right, the "illegal argument exception"
should state which argument is illegal, and why! At
the moment we simply pass the exception we've obtained
from Java. In the next version, 4.0.2 we should change
this: wrap the obtained exception and pass more
information to the client.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
|
From: <php...@li...> - 2007-03-01 10:33:47
|
Hi Jost. I dont know if you had followed my previous post here http://sourceforge.net/mailarchive/forum.php?thread_id=3D31573703&forum_id= =3D42415, but i assume you would have. Would you care to elaborate on the sandbox and on how i could possibly get the bridge to access the paths i require, btw i have disabled SEL so i assume the rules are not active... Regards, Sky On 2/10/07, php...@li... < php...@li...> wrote: > > > > This leads me to believe that apache doesn't have > > rights to access certain > > paths on my box. > > It runs in a sand box (uid/gid: apache/apache). > > Furthermore, if you use RedHat Linux (or any > compatible Linux version, Fedora, Centos, ...), the > Security Enhanced Linux rules shipped with the > JavaBridge RPM deny all socket, file, ... access > except files tagged with tmp_t. > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Der fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Ma= il: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2007-03-01 08:28:35
|
Hi everyone,
I'd like to use com.lowagie.text.pdf.PdfContentByte setFontAndSize and
showTextAligned functions but I have a problem in passing them a float.
Here is my code:
...
$cb = $writer->getDirectContent();
$bf = new Java("com.lowagie.text.pdf.BaseFont");
$bf->createFont("Helvetica", "Cp1252", false);
$cb->setFontAndSize( $bf , 12);
...
I got this error:
Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
[o(PdfContentByte)]->setFontAndSize((BaseFont)c(BaseFont), (float)o(Float)).
Cause: java.lang.IllegalArgumentException: argument type mismatch [...]
It seems '12' is considerated as an Object Float and not a primitive type
float.
I had try different things like making an instance of a Float and call the
floatValue() or parseFloat() functions in order to get the float type value
but can't make it works.
How could I get the real primitive float type value?
I use PHP 5.1.1, JRE 1.5.0 Update 11 and iText-1.3.1 jar on Windows XP.
Help would be greatly appreciated!
Wilfrid
|