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
|
|
From: <php...@li...> - 2009-04-30 07:36:05
|
I think this feature isn't useful for applications. The tomcat container
uses it to open the .war files:
<?php require_once("
http://localhost:8081/JavaBridgeTemplate5442/java/Java.inc");
echo
java("java.lang.Thread")->currentThread()->getContextClassLoader()->getResource("php/java/bridge/global.properties");
echo "\n";
?>
=>
jar:file:/home/opt/apache-tomcat-6.0.18/webapps/JavaBridgeTemplate5442/WEB-INF/lib/JavaBridge.jar!/php/java/bridge/global.properties
If you write your own class loader derived from url class loader, you may do
the same from PHP -- java_require uses an url loader, but it also needs a
timestamp.
There are several papers from rice.edu on this topic (java "link-time
components"), for example this one: http%3A%2F%2Fwww.cs.rice.edu
%2F~javaplt%2Fpapers%2Fsac2007.pdf
Regards,
Jost Boekemeier
Apr 29, 2009 9:48 vorm. schrieb am <
php...@li...>:
Hello,
do you mean that fat jar is not the best solution? How to use jar://URI?
(maybe a simple example or a link where I can find some examples) Where
exactly do I find the proposal?
Hi, Although it is possible to fetch libraries from other jar files using a
jar:// URI, at least ...
|
|
From: <php...@li...> - 2009-04-30 06:28:17
|
Hi Andre,
I have just tested it on a tomcat 6.0.18 running with -security switched on.
It stops the PhpCGIServlet from executing /bin/sh.
This can be solved by removing the JavaBridge.jar, php-servlet.jar and
php-script.jar from the application "JavaBridge.war", and adding them to the
shared library dir TOMCAT_HOME/lib/ instead. Neither additional security
declarations nor manipulations of global, shared XML files are necessary to
fix this problem.
It is true that PHP scripts may do foolish things like killing all other
running php scripts, <?php system("killall php")?>, or even its own java
container, <?php system("killall java");?>, but Java security doesn't help.
The best way to secure PHP scripts is to use "Security Enhanced Linux"
rules. RedHat Fedora and Enterprise Linux already contains these rules.
Rules for the PHP/Java Bridge are contained in the security folder of the
redhat RPM, and applied when the RPM is installed.
Regards,
Jost Boekemeier
Apr 29, 2009 10:33 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<200...@te...>
<3af...@ma...>
<3af...@ma...> <
3af...@ma...>
Message-ID: <ef694f0b3cfec3015febb4fe6e11ef83@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29
Apr
2009 09:34:29 -0300
User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
I will verify what are the JSP permissions.
Debian Policy does not allow a package manipulate configuration files
from other packages.
Because of this, the right way is to create a new own file at policy.d
directory
I tested
/etc/tomcat5.5/policy.d/60JavaBridge.policy
containing:
grant codeBase "file:${catalina.base}/webapps/JavaBridge/-" {
permission java.security.AllPermission;
};
And it worked well after restarting tomcat.
I simply placed the war file at the autodeploy dir and automagically all
worked.
I will try to create a new package using the debconf tools for manipulating
the new
file and test it.
Regards.
Andre Felipe
On Wed, 29 Apr 2009 22:22:26 +0200,
php...@li... wrote: > I think PHP should have
the same permissions ...
--
http://www.techforce.com.br
A Debian user never dies. Issues a last command:
#shutdown -h now
------------------------------------------------------------------------------
Register Now & Save...
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-br...
|
|
From: <php...@li...> - 2009-04-29 21:13:50
|
Which security hole? In the standard setup the bridge only accepts requests from an apache or iis front end from localhost. If security is your concern, you should disable the PhpCGIServlet and use the Apache or IIS front end anyway. Regards, Jost Boekemeier Apr 29, 2009 11:04 nachm. schrieb am < php...@li...>: I'm sorry to interrupt, but I would be happy if you check now what files really are necessary to be enabled instead of opening a security hole for everyone. thanks. 2009/4/29 <php...@li...> > I think java.lang.AllPermissions is a good start then. > TOMCAT_HOME/lib has AllPermissions, too.... > ------------------------------------------------------------------------------ > Register Now & Sa... > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ Register Now & Save... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-29 21:03:01
|
I'm sorry to interrupt, but I would be happy if you check now what files
really
are necessary to be enabled instead of opening a security hole for everyone.
thanks.
2009/4/29 <php...@li...>
> I think java.lang.AllPermissions is a good start then.
> TOMCAT_HOME/lib has AllPermissions, too.
>
> Regards,
> Jost Boekemeier
>
> Apr 29, 2009 10:33 nachm. schrieb am <
> php...@li...>:
>
> <3af...@ma...>
> <200...@te...>
> <3af...@ma...>
> <3af...@ma...> <
> 3af...@ma...>
> Message-ID: <ef694f0b3cfec3015febb4fe6e11ef83@localhost>
>
> X-Sender: and...@te...
>
> Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29
> Apr
> 2009 09:34:29 -0300
>
> User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8"
> Content-Transfer-Encoding: 8bit
>
>
> Hello,
>
> I will verify what are the JSP permissions.
>
> Debian Policy does not allow a package manipulate configuration files
>
> from other packages.
>
> Because of this, the right way is to create a new own file at policy.d
>
> directory
>
> I tested
>
> /etc/tomcat5.5/policy.d/60JavaBridge.policy
>
>
>
> containing:
>
> grant codeBase "file:${catalina.base}/webapps/JavaBridge/-" {
> permission java.security.AllPermission;
>
> };
>
>
>
> And it worked well after restarting tomcat.
>
> I simply placed the war file at the autodeploy dir and automagically all
>
> worked.
>
>
>
> I will try to create a new package using the debconf tools for manipulating
>
> the new
>
> file and test it.
>
> Regards.
>
> Andre Felipe
>
>
>
>
>
>
>
>
>
>
>
> On Wed, 29 Apr 2009 22:22:26 +0200,
>
> php...@li... wrote: > I think PHP should
> have
> the same permissions ...
> --
>
> http://www.techforce.com.br
> A Debian user never dies. Issues a last command:
>
> #shutdown -h now
>
>
> ------------------------------------------------------------------------------
> Register Now & Save...
>
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-br...
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-04-29 21:02:19
|
May be. But we may need a few releases to determine the correct permissions
by try and error.
Furthermore the JavaBridge contains the OSGI framework used by the BIRT
report engine. I don't know exactly which permissions it needs.
Regards,
Jost Boekemeier
Apr 29, 2009 10:54 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<20090429121437.28AD04786D@techforce.c...
<3af...@ma...> <
3af...@ma...>
Message-ID: <0b1dafcbe998bf9cd98cee78499048d3@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29
Apr
2009 09:55:00 -0300
User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
I found [3] and [4].
Instead of AllPermissions, a good security should list the exact files
and respective permissions.
Well, what are the essential ones (files X permissions)?
Regards.
Andre Felipe
[3] http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html
[4] http://java.sun.com/j2se/1.5.0/docs/guide/security/permissions.html
--
http://www.techforce.com.br
A Debian user never dies. Issues a last command: #shutdown -h now
-------------------------------...
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. ...
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-br...
|
|
From: <php...@li...> - 2009-04-29 20:53:15
|
<3af...@ma...> <200...@te...> <3af...@ma...> <3af...@ma...> <3af...@ma...> Message-ID: <0b1dafcbe998bf9cd98cee78499048d3@localhost> X-Sender: and...@te... Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29 Apr 2009 09:55:00 -0300 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, I found [3] and [4]. Instead of AllPermissions, a good security should list the exact files and respective permissions. Well, what are the essential ones (files X permissions)? Regards. Andre Felipe [3] http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html [4] http://java.sun.com/j2se/1.5.0/docs/guide/security/permissions.html -- http://www.techforce.com.br A Debian user never dies. Issues a last command: #shutdown -h now |
|
From: <php...@li...> - 2009-04-29 20:52:45
|
I think java.lang.AllPermissions is a good start then.
TOMCAT_HOME/lib has AllPermissions, too.
Regards,
Jost Boekemeier
Apr 29, 2009 10:33 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<200...@te...>
<3af...@ma...>
<3af...@ma...> <
3af...@ma...>
Message-ID: <ef694f0b3cfec3015febb4fe6e11ef83@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29
Apr
2009 09:34:29 -0300
User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
I will verify what are the JSP permissions.
Debian Policy does not allow a package manipulate configuration files
from other packages.
Because of this, the right way is to create a new own file at policy.d
directory
I tested
/etc/tomcat5.5/policy.d/60JavaBridge.policy
containing:
grant codeBase "file:${catalina.base}/webapps/JavaBridge/-" {
permission java.security.AllPermission;
};
And it worked well after restarting tomcat.
I simply placed the war file at the autodeploy dir and automagically all
worked.
I will try to create a new package using the debconf tools for manipulating
the new
file and test it.
Regards.
Andre Felipe
On Wed, 29 Apr 2009 22:22:26 +0200,
php...@li... wrote: > I think PHP should have
the same permissions ...
--
http://www.techforce.com.br
A Debian user never dies. Issues a last command:
#shutdown -h now
------------------------------------------------------------------------------
Register Now & Save...
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-br...
|
|
From: <php...@li...> - 2009-04-29 20:32:44
|
<3af...@ma...>
<200...@te...>
<3af...@ma...>
<3af...@ma...> <3af...@ma...>
Message-ID: <ef694f0b3cfec3015febb4fe6e11ef83@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29 Apr
2009 09:34:29 -0300
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
I will verify what are the JSP permissions.
Debian Policy does not allow a package manipulate configuration files
from other packages.
Because of this, the right way is to create a new own file at policy.d
directory
I tested
/etc/tomcat5.5/policy.d/60JavaBridge.policy
containing:
grant codeBase "file:${catalina.base}/webapps/JavaBridge/-"
{
permission java.security.AllPermission;
};
And it worked well after restarting tomcat.
I simply placed the war file at the autodeploy dir and automagically all
worked.
I will try to create a new package using the debconf tools for manipulating
the new
file and test it.
Regards.
Andre Felipe
On Wed, 29 Apr 2009 22:22:26 +0200,
php...@li... wrote:
> I think PHP should have the same permissions tha JSP has.
>
> If I understand Java's security correctly, we only need to place the
> JavaBridge.jar into the same directory from which the JSP library is
> loaded.
>
> Unfortunately I can't verify this at the moment.
>
> Regards,
> Jost Boekemeier
--
http://www.techforce.com.br
A Debian user never dies. Issues a last command:
#shutdown -h now
|
|
From: <php...@li...> - 2009-04-29 20:22:30
|
I think PHP should have the same permissions tha JSP has.
If I understand Java's security correctly, we only need to place the
JavaBridge.jar into the same directory from which the JSP library is loaded.
Unfortunately I can't verify this at the moment.
Regards,
Jost Boekemeier
Apr 29, 2009 10:13 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<200...@te...> <
3af...@ma...>
Message-ID: <1dec4d2e0bebecc88f51d99ff996ca2d@localhost>
X-Sender: and...@te... Received: from 161.148.54.70
[161.148.54.70] with HTTP/1.1 (...
2009 09:14:37 -0300
User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encodin...
The following worked enough at
compiling 5.4.4.2-1 debian package from cvs and after restarting
the tomcat5.5 server with
invoke-rc.d tomcat5.5 restart
Added at:
/etc/tomcat5.5/policy.d/50user.policy
The lines:
grant codeBase "file:${catalina.base}/webapps/JavaBridge/-" { permission
java.security.AllPer...
But i guess it is too permissive for production environment.
Is there a stricter security configuration that allow
JavaBridge work, or it should stay "AllPermissions" for all directory?
Regards.
Andre Felipe Machado
http://www.techforce.com.br
------------------------------------------------------------------------------
Register Now & Save...
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-29 20:12:52
|
<3af...@ma...>
<200...@te...> <3af...@ma...>
Message-ID: <1dec4d2e0bebecc88f51d99ff996ca2d@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29 Apr
2009 09:14:37 -0300
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
The following worked enough at
compiling 5.4.4.2-1 debian package from cvs and after restarting
the tomcat5.5 server with
invoke-rc.d tomcat5.5 restart
Added at:
/etc/tomcat5.5/policy.d/50user.policy
The lines:
grant codeBase "file:${catalina.base}/webapps/JavaBridge/-"
{
permission java.security.AllPermission;
};
But i guess it is too permissive for production environment.
Is there a stricter security configuration that allow
JavaBridge work, or it should stay "AllPermissions" for all directory?
Regards.
Andre Felipe Machado
http://www.techforce.com.br
|
|
From: <php...@li...> - 2009-04-29 20:12:14
|
I haven't tested it, but it may be suficient to move the JavaBridge.jar,
php-script.jar and php-servlet.jar to tomcats lib dir. Libraries loaded from
this directory should have AllPermission.
I will test this. This package change will be useful for the rpm package,
too.
Regards,
Jost Boekemeier
Apr 29, 2009 10:01 nachm. schrieb am <
php...@li...>:
Hello
Searching around, I found that tomcat5.5 directories were reorganized
in Debian Lenny, for FHS compliance.
Also, debian sun-jdk and tomcat 5.5 packages turn on security by default,
allowing
multiapps deployment.
Different from upstream tomcat.
Then, old or weak policies may break.
The debian right way should be to configure
/etc/tomcat5.5/policy.d/50user.policy
following [1] doc.
and [0] hints regarding paths, if needed.
I will try something like
grant codeBase
"file:${catalina.base}/webapps/JavaBridge/-"
{
permission java.security.AllPermission;
};
Maybe could work.
More suggestions?
Regards.
Andre Felipe
[0]
http://aleph-null.tv/article/20080327-0202-760.xml/Tomcat-5.5-On-Debian:-Security-policies-and-%7Bcatalina.home%7D
[1] http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html
On Wed, 29 Apr 2009 08:41:43 -0300,
php...@li... wrote: >
> I guess the right way is a correct edition of > >
/etc/tomcat5.5/policy.d/04webapps.policy > > u...
------------------------------------------------------------------------------
Register Now & Save f...
|
|
From: <php...@li...> - 2009-04-29 20:00:55
|
Hello
Searching around, I found that tomcat5.5 directories were reorganized
in Debian Lenny, for FHS compliance.
Also, debian sun-jdk and tomcat 5.5 packages turn on security by default,
allowing
multiapps deployment.
Different from upstream tomcat.
Then, old or weak policies may break.
The debian right way should be to configure
/etc/tomcat5.5/policy.d/50user.policy
following [1] doc.
and [0] hints regarding paths, if needed.
I will try something like
grant codeBase
"file:${catalina.base}/webapps/JavaBridge/-"
{
permission java.security.AllPermission;
};
Maybe could work.
More suggestions?
Regards.
Andre Felipe
[0]
http://aleph-null.tv/article/20080327-0202-760.xml/Tomcat-5.5-On-Debian:-Security-policies-and-%7Bcatalina.home%7D
[1] http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html
On Wed, 29 Apr 2009 08:41:43 -0300,
php...@li... wrote:
>
> I guess the right way is a correct edition of
>
> /etc/tomcat5.5/policy.d/04webapps.policy
>
> using the debconf tools.
>
|
|
From: <php...@li...> - 2009-04-29 19:56:24
|
Yes, you are right.
I've got this strange idea when reading the support request. But since the
(deb- and rpm-) packages depend on apache anyway, there's no problem.
Regards,
Jost Boekemeier
Apr 29, 2009 9:40 nachm. schrieb am <
php...@li...>:
<3af...@ma...> <
3af...@ma...>
Message-ID: <1f90ee22edd1aad825827c88d44b88f8@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29
Apr
2009 08:41:43 -0300
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello,
Despite being "possible" to manipulate the global web.xml file
it should be avoided.
The deployment must be feasible using application's web.xml (and
sometimes,
the context.xml also) into the war file.
Maybe even using some clever tomcat manager html interface command.
Or using Ant commands (then, one more dependency).
Or security issues will rise ahead.
I guess the right way is a correct edition of
/etc/tomcat5.5/policy.d/04webapps.policy
using the debconf tools.
The web.xml is deployed already, but it is blocked, afaik.
Suggestions are welcome.
Regards.
Andre Felipe Machado
On Wed, 29 Apr 2009 21:03:07 +0200,
php...@li... wrote: > Hi Andre, > > Is it
possible to install th...
------------------------------------------------------------------------------
Register Now & Save f...
|
|
From: <php...@li...> - 2009-04-29 19:40:07
|
<3af...@ma...> <3af...@ma...> Message-ID: <1f90ee22edd1aad825827c88d44b88f8@localhost> X-Sender: and...@te... Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Wed, 29 Apr 2009 08:41:43 -0300 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, Despite being "possible" to manipulate the global web.xml file it should be avoided. The deployment must be feasible using application's web.xml (and sometimes, the context.xml also) into the war file. Maybe even using some clever tomcat manager html interface command. Or using Ant commands (then, one more dependency). Or security issues will rise ahead. I guess the right way is a correct edition of /etc/tomcat5.5/policy.d/04webapps.policy using the debconf tools. The web.xml is deployed already, but it is blocked, afaik. Suggestions are welcome. Regards. Andre Felipe Machado On Wed, 29 Apr 2009 21:03:07 +0200, php...@li... wrote: > Hi Andre, > > Is it possible to install the bridge so that the debian security manager > doesn't stop the back end from running php, if no apache is installed or > used? As described here: > http://php-java-bridge.sourceforge.net/pjb/FAQ.html#global-servlet > > If it is not possible to manipulate tomcat's global web.xml from a debian > package, we could leave it as it is and add a note to the debian install > instructions > so that users can change the web.xml themselves. > > Regards, > Jost Boekemeier |
|
From: <php...@li...> - 2009-04-29 19:03:17
|
Hi Andre, Is it possible to install the bridge so that the debian security manager doesn't stop the back end from running php, if no apache is installed or used? As described here: http://php-java-bridge.sourceforge.net/pjb/FAQ.html#global-servlet If it is not possible to manipulate tomcat's global web.xml from a debian package, we could leave it as it is and add a note to the debian install instructions so that users can change the web.xml themselves. Regards, Jost Boekemeier Apr 29, 2009 5:12 nachm. schrieb am < php...@li...>: Hi, I tried install the php-java-bridge 5.4.4.1 on a debian lenny: I made a new deb package (amd64), and copied the war file to the tomcat's webapp directory. When I call the http://tomcat:port/JavaBridge , I get: Servlet PhpCGIServlet is not available. What's wrong? Thanks: -- Üdv, Ricsi ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-29 19:00:46
|
Hello, For some reason, the web.xml is not being accepted by Tomcat 5.5 auto deploy. I will investigate this. If someone have some suggestions, feel free to post. Also, there are some packaging errors at 5.4.4.1-1 deb file. Please, wait the 5.4.4.2-1 or compile from repository tomorrow for this test. (See README.Debian) Regards. Andre Felipe Machado |
|
From: <php...@li...> - 2009-04-29 15:11:43
|
Hi, I tried install the php-java-bridge 5.4.4.1 on a debian lenny: I made a new deb package (amd64), and copied the war file to the tomcat's webapp directory. When I call the http://tomcat:port/JavaBridge , I get: Servlet PhpCGIServlet is not available. What's wrong? Thanks: -- Üdv, Ricsi |
|
From: <php...@li...> - 2009-04-29 07:48:31
|
Hello, do you mean that fat jar is not the best solution? How to use jar://URI? (maybe a simple example or a link where I can find some examples) Where exactly do I find the proposal? Hi, Although it is possible to fetch libraries from other jar files using a jar:// URI, at least in the Sun Java platform, this feature may not work on other platforms; GCC/GCJ uses ELF libs instead. I think there's no use for this feature. If you're looking for a java module system, read the proposal from the RICE people, which was inspired by the SML/NJ. It uses real generics to build compound modules. Regards, Jost Boekemeier Apr 28, 2009 3:24 nachm. schrieb am < php...@li...>: Hello Jost, I am very sorry but I still can't solve the problem which I described yesterday. I try to explain it again in other words, maybe I explained it not very clearly. Well there are many jars in one jar (fat jar) I don't have to change anything in this structure, I need only to access the classes . I tryed to get it with java_require and got this error: exception javax.servlet.ServletException: java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:416) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 The video which you recommended is only about one "folder"with classes. In my case it is not so. As Ihave already written "jars in jar"(fat jar) and I must not change this structure... It does not work: <?php require_once("http://localhost:8081/Ordner/java/Java.inc"); $System = java("java.lang.System"); $myObj = new java("web.FacettenBrowser"); echo $myObj->HalloWelt(); ?> Many thanks in advance! ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-29 07:21:09
|
Hi, Although it is possible to fetch libraries from other jar files using a jar:// URI, at least in the Sun Java platform, this feature may not work on other platforms; GCC/GCJ uses ELF libs instead. I think there's no use for this feature. If you're looking for a java module system, read the proposal from the RICE people, which was inspired by the SML/NJ. It uses real generics to build compound modules. Regards, Jost Boekemeier Apr 28, 2009 3:24 nachm. schrieb am < php...@li...>: Hello Jost, I am very sorry but I still can't solve the problem which I described yesterday. I try to explain it again in other words, maybe I explained it not very clearly. Well there are many jars in one jar (fat jar) I don't have to change anything in this structure, I need only to access the classes . I tryed to get it with java_require and got this error: exception javax.servlet.ServletException: java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:416) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 The video which you recommended is only about one "folder"with classes. In my case it is not so. As Ihave already written "jars in jar"(fat jar) and I must not change this structure... It does not work: <?php require_once("http://localhost:8081/Ordner/java/Java.inc"); $System = java("java.lang.System"); $myObj = new java("web.FacettenBrowser"); echo $myObj->HalloWelt(); ?> Many thanks in advance! ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-28 14:05:49
|
afaik one can not nest jar's (exceptions are war, ear, etc.)
=> you have to put all the jar's you want to use directly into /WEB-INF/lib
or /WEB-INF/classes etc.
try that.
also it looks like the code you provided below does not correspond to the
exception you gave
(because there is no java_require("WebProject2.jar") in your code)
dominik
2009/4/28 <php...@li...>
> Hello Jost,
> I am very sorry but I still can't solve the problem which I described
> yesterday. I try to explain it again in other words, maybe I explained it
> not very clearly.
> Well there are many jars in one jar (fat jar) I don't have to change
> anything in this structure, I need only to access the classes .
> I tryed to get it with java_require and got this error:
> exception javax.servlet.ServletException: java.lang.RuntimeException: PHP
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
> [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String],
> (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause:
> java.io.IOException: Could not open jar file WebProjekt2, reason:
> WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM:
> 1.6.0_10@http://java.sun.com/" at:
> #-18
> php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108)
> #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192)
> #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117)
> #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64)
> #-14
> php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74)
> #-13
> php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87)
> #-12
> php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111)
> #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on
> line 215
>
> php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:416)
> php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> root cause java.lang.RuntimeException: PHP Fatal error: Uncaught
> [[o:Exception]:"java.lang.Exception: Invoke failed:
> [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String],
> (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause:
> java.io.IOException: Could not open jar file WebProjekt2, reason:
> WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM:
> 1.6.0_10@http://java.sun.com/" at:
> #-18
> php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108)
> #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192)
> #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117)
> #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64)
> #-14
> php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74)
> #-13
> php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87)
> #-12
> php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111)
> #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on
> line 215
>
> The video which you recommended is only about one "folder"with classes. In
> my case it is not so.
> As Ihave already written "jars in jar"(fat jar) and I must not change this
> structure...
> It does not work:
> <?php
> require_once("http://localhost:8081/Ordner/java/Java.inc");
>
> $System = java("java.lang.System");
>
> $myObj = new java("web.FacettenBrowser");
> echo $myObj->HalloWelt();
> ?>
>
> Many thanks in advance!
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-04-28 13:23:08
|
Hello Jost, I am very sorry but I still can't solve the problem which I described yesterday. I try to explain it again in other words, maybe I explained it not very clearly. Well there are many jars in one jar (fat jar) I don't have to change anything in this structure, I need only to access the classes . I tryed to get it with java_require and got this error: exception javax.servlet.ServletException: java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:416) php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file WebProjekt2, reason: WebProjekt2 (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/" at: #-18 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-17 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:192) #-16 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:117) #-15 php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:64) #-14 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath(DynamicJavaBridgeClassLoader.java:74) #-13 php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPath(DynamicJavaBridgeClassLoader.java:87) #-12 php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath(SimpleJavaBridgeClassLoader.java:111) #-11 php.java.bridge.J in http://localhost:8081/Ordner/java/Java.inc on line 215 The video which you recommended is only about one "folder"with classes. In my case it is not so. As Ihave already written "jars in jar"(fat jar) and I must not change this structure... It does not work: <?php require_once("http://localhost:8081/Ordner/java/Java.inc"); $System = java("java.lang.System"); $myObj = new java("web.FacettenBrowser"); echo $myObj->HalloWelt(); ?> Many thanks in advance! |
|
From: <php...@li...> - 2009-04-28 12:42:18
|
Hello there, first thank you for the very fast replies! I just solved it. It was quiet easy. Shame on me: I just installed php-cgi additionally and everything works fine. Greets Malte >make sure "php-cgi" is in your $PATH. usually if you open a shell and type >php-cgi -v and get something other than >bash: php-cgi: command not found >this is the case. and >You need to install PHP. Please check the ubuntu documentation for details. >The missing program belongs to the php core. >If there is no php available for you distribution, you must compile php >from >the source. Please see the install instructions on php.net for details. >Regards, >Jost Boekemeier -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a |
|
From: <php...@li...> - 2009-04-28 12:23:36
|
make sure "php-cgi" is in your $PATH. usually if you open a shell and type php-cgi -v and get something other than bash: php-cgi: command not found this is the case. 2009/4/28 <php...@li...> > Hello there, > Following problem: > I run the php java bridge successfully as standalone under Win XP and > Vista. For that I extracted the jars from downloaded > "JavaBridgeTemplate5442.war". > So i have > - JavaBridge.jar > - php-script.jar > - php-servlet.jar > - myown.jar > The classes of "myown.jar" use the classes of the bridge. My aim is to run > that on ubuntu 8_10 but i sadly receive following exception: > > javax.script.ScriptException: java.io.IOException: Cannot run program > "php-cgi": java.io.IOException: error=2, No such file or directory > at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112) > at > php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:299) > at > javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247) > at > de.labtrax.affiliatewindow.service.impl.AffiliateServiceImpl.main(AffiliateServiceImpl.java:51) > Caused by: java.io.IOException: Cannot run program "php-cgi": > java.io.IOException: error=2, No such file or directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) > at java.lang.Runtime.exec(Runtime.java:593) > at php.java.bridge.Util$Process.start(Util.java:972) > at > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1074) > at > php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1129) > at php.java.script.CGIRunner.doRun(CGIRunner.java:125) > at php.java.script.HttpProxy.doRun(HttpProxy.java:79) > at php.java.script.CGIRunner.run(CGIRunner.java:110) > Caused by: java.io.IOException: java.io.IOException: error=2, No such file > or directory > at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) > at java.lang.ProcessImpl.start(ProcessImpl.java:65) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) > ... 7 more > > I got the same problem on vista but solved it easily with just installing > php. On my ubuntu php5 is installed per synaptic and php works in apache in > and as cli. > Any clues how i get this working on ubuntu? > > Thank you > Malte > -- > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: > http://www.gmx.net/de/go/multimessenger01 > > -- > Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + > Telefonanschluss für nur 17,95 Euro/mtl.!* > http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-04-28 12:01:54
|
You need to install PHP. Please check the ubuntu documentation for details. The missing program belongs to the php core. If there is no php available for you distribution, you must compile php from the source. Please see the install instructions on php.net for details. Regards, Jost Boekemeier Apr 28, 2009 1:51 nachm. schrieb am < php...@li...>: Hello there, Following problem: I run the php java bridge successfully as standalone under Win XP and Vista. For that I extracted the jars from downloaded "JavaBridgeTemplate5442.war". So i have - JavaBridge.jar - php-script.jar - php-servlet.jar - myown.jar The classes of "myown.jar" use the classes of the bridge. My aim is to run that on ubuntu 8_10 but i sadly receive following exception: javax.script.ScriptException: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112) at php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:299) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247) at de.labtrax.affiliatewindow.service.impl.AffiliateServiceImpl.main(AffiliateServiceImpl.java:51) Caused by: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at java.lang.Runtime.exec(Runtime.java:593) at php.java.bridge.Util$Process.start(Util.java:972) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1074) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1129) at php.java.script.CGIRunner.doRun(CGIRunner.java:125) at php.java.script.HttpProxy.doRun(HttpProxy.java:79) at php.java.script.CGIRunner.run(CGIRunner.java:110) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 7 more I got the same problem on vista but solved it easily with just installing php. On my ubuntu php5 is installed per synaptic and php works in apache in and as cli. Any clues how i get this working on ubuntu? Thank you Malte -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-28 11:50:48
|
Hello there, Following problem: I run the php java bridge successfully as standalone under Win XP and Vista. For that I extracted the jars from downloaded "JavaBridgeTemplate5442.war". So i have - JavaBridge.jar - php-script.jar - php-servlet.jar - myown.jar The classes of "myown.jar" use the classes of the bridge. My aim is to run that on ubuntu 8_10 but i sadly receive following exception: javax.script.ScriptException: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112) at php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:299) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247) at de.labtrax.affiliatewindow.service.impl.AffiliateServiceImpl.main(AffiliateServiceImpl.java:51) Caused by: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at java.lang.Runtime.exec(Runtime.java:593) at php.java.bridge.Util$Process.start(Util.java:972) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1074) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1129) at php.java.script.CGIRunner.doRun(CGIRunner.java:125) at php.java.script.HttpProxy.doRun(HttpProxy.java:79) at php.java.script.CGIRunner.run(CGIRunner.java:110) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 7 more I got the same problem on vista but solved it easily with just installing php. On my ubuntu php5 is installed per synaptic and php works in apache in and as cli. Any clues how i get this working on ubuntu? Thank you Malte -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a |