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-27 11:28:29
|
If I have one JAR-file with some packages and classes I can access all classes without any problems:
$myObj = new java("newweb.farben");//newweb=package;farben=class
but if I puck a JAR in another JAR-file the classes are not found anymore. ....
|
|
From: <php...@li...> - 2009-04-27 11:03:27
|
As long as you notify the Java application server about your changes, for example by re-deploying your changes, this will work, yes. Apr 27, 2009 10:41 vorm. schrieb am < php...@li...>: Hi Jost, thank you for your answer. 1) Is it absolutely impossible to do it on the way I did it? I added the JAR-file (with many classes) to WEB-INF/lib and tryed to access the class? If not, sorry for the stupid question,but 2)"You need to create a library containing your classes and add it to Java's repository, along with all dependencies."Do you mean I should create the folder "classes" with all jars (I already have lib for it and the java code/classes/ I have in eclipse). Could you explain it please step by step? Many thanks in advance!!! ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-27 08:40:54
|
Hi Jost,
thank you for your answer.
1) Is it absolutely impossible to do it on the way I did it? I added the JAR-file (with many classes) to WEB-INF/lib and tryed to access the class? If not, sorry for the stupid question,but
2)"You need to create a library containing your classes and add it to Java's
repository, along with all dependencies."Do you mean I should create the folder "classes" with all jars (I already have lib for it and the java code/classes/ I have in eclipse). Could you explain it please step by step?
Many thanks in advance!!!
|
|
From: <php...@li...> - 2009-04-27 07:43:46
|
Hi,
You need to create a library containing your classes and add it to Java's
repository, along with all dependencies.
Or you can add your classes and all their dependencies to your
JavaBridge.war zip file and re-deploy that. You can find a video at the
bottom of our install section on our web site, which shows that.
Regards,
Jost Boekemeier
Apr 27, 2009 8:24 vorm. schrieb am <
php...@li...>:
Hello Jost,
the underlined part of the code does not work. Is it the right way to find a
class in the jar?
<?php
require_once("http://localhost:8081/Ordner/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java("WebProjekt2.web.FacettenBrowser");
echo (String) $myObj->HalloWelt();
?>
I get such an errormessage:
root cause java.lang.RuntimeException: PHP Fatal error: Uncaught
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new
WebProjekt2.web.FacettenBrowser. Cause: java.lang.ClassNotFoundException:
WebProjekt2.web.FacettenBrowser VM: 1.6.0_10@http://java.sun.com/" at:
#-11
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
#-10
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
#-9 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
#-8 java.lang.Class.forName0(Native Method)
#-7 java.lang.Class.forName(Class.java:247)
#-6
php.java.bridge.SimpleJavaBridgeClassLoader.forName(SimpleJavaBridgeClassLoader.java:157)
#-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:455)
#-4 php.java.bridge.Request.handleRequest(Request.java:452)
#-3 php.java.bridge.Request.handleRequests(Request.java:490)
#-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146)
#-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
#0 http://localhost:8081/Ordner/java/Java.inc(248): java_ThrowE in
http://localhost:8081/Ordner/java/Java.inc on line 215
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:484)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:379)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:387)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:382)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
you have to put the class "HelloWorld" into the "HalloWelt.web" package.
so it looks like
[code]
package HalloWelt.web;
import ....;
public class HelloWorld{
public HelloWorld() { /* do something */ }
}
[/code]
2009/4/24 <php...@li...>
> Hello,
> in my jar file there are many classes, and the class which I need to
access
> can't be found.
> I tryed to solve it so:
> $myObj = new java("HalloWelt.web.HelloWorld");
> but it does not work.Please tell me how can I access this class?
>
>
>
> Thank you in advance!
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-27 06:24:00
|
Hello Jost,
the underlined part of the code does not work. Is it the right way to find a class in the jar?
<?php
require_once("http://localhost:8081/Ordner/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java("WebProjekt2.web.FacettenBrowser");
echo (String) $myObj->HalloWelt();
?>
I get such an errormessage:
root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new WebProjekt2.web.FacettenBrowser. Cause: java.lang.ClassNotFoundException: WebProjekt2.web.FacettenBrowser VM: 1.6.0_10@http://java.sun.com/" at:
#-11 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
#-10 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
#-9 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
#-8 java.lang.Class.forName0(Native Method)
#-7 java.lang.Class.forName(Class.java:247)
#-6 php.java.bridge.SimpleJavaBridgeClassLoader.forName(SimpleJavaBridgeClassLoader.java:157)
#-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:455)
#-4 php.java.bridge.Request.handleRequest(Request.java:452)
#-3 php.java.bridge.Request.handleRequests(Request.java:490)
#-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146)
#-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
#0 http://localhost:8081/Ordner/java/Java.inc(248): java_ThrowE in http://localhost:8081/Ordner/java/Java.inc on line 215
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:484)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:379)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:387)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:382)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
you have to put the class "HelloWorld" into the "HalloWelt.web" package.
so it looks like
[code]
package HalloWelt.web;
import ....;
public class HelloWorld{
public HelloWorld() { /* do something */ }
}
[/code]
2009/4/24 <php...@li...>
> Hello,
> in my jar file there are many classes, and the class which I need to access
> can't be found.
> I tryed to solve it so:
> $myObj = new java("HalloWelt.web.HelloWorld");
> but it does not work.Please tell me how can I access this class?
>
>
>
> Thank you in advance!
>
>
|
|
From: <php...@li...> - 2009-04-26 05:18:43
|
Oops, I just saw that you want it the other way 'round. You can send the XML C an I protocol requests directly from your c# programs. Please see the python an scheme examples from our web site. Regards, Jost Boekemeier Apr 25, 2009 8:52 vorm. schrieb am < php...@li...>: Hello, I need to use a java library from a C# program. php-java-bridge approach sounds pretty interesting. For what I could understand, calling java from php works through (ether local or remote) network connections. If I could replicate Java.inc in the dot Net platform (which does not seems trivial), Could I call java from C sharp as php does, using the bridge? Best Regards. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-25 06:59:00
|
Hi, Just double-click on MonoBridge.exe to start a .NET daemon. After that you can dynamically link .NET libraries into PHP using mono/Mono.inc, see the load_assembly.php for details. Regards, Jost Boekemeier Apr 25, 2009 8:52 vorm. schrieb am < php...@li...>: Hello, I need to use a java library from a C# program. php-java-bridge approach sounds pretty interesting. For what I could understand, calling java from php works through (ether local or remote) network connections. If I could replicate Java.inc in the dot Net platform (which does not seems trivial), Could I call java from C sharp as php does, using the bridge? Best Regards. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-25 06:52:30
|
Hello, I need to use a java library from a C# program. php-java-bridge approach sounds pretty interesting. For what I could understand, calling java from php works through (ether local or remote) network connections. If I could replicate Java.inc in the dot Net platform (which does not seems trivial), Could I call java from C sharp as php does, using the bridge? Best Regards. |
|
From: <php...@li...> - 2009-04-24 14:25:45
|
you have to put the class "HelloWorld" into the "HalloWelt.web" package.
so it looks like
[code]
package HalloWelt.web;
import ....;
public class HelloWorld{
public HelloWorld() { /* do something */ }
}
[/code]
2009/4/24 <php...@li...>
> Hello,
> in my jar file there are many classes, and the class which I need to access
> can't be found.
> I tryed to solve it so:
> $myObj = new java("HalloWelt.web.HelloWorld");
> but it does not work.Please tell me how can I access this class?
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-04-24 11:18:08
|
Hello,
in my jar file there are many classes, and the class which I need to access can't be found.
I tryed to solve it so:
$myObj = new java("HalloWelt.web.HelloWorld");
but it does not work.Please tell me how can I access this class?
|
|
From: <php...@li...> - 2009-04-24 11:00:07
|
Hi, is it an OutOfMemoryError or a perm gen space?You may want to report this problem to the jboss mailing list. The JavaBridgeTemplate.war ist available here: http://sourceforge.net/project/downloading.php?group_id=117793&filename=JavaBridgeTemplate5442rc1.war&a=19353110. The java/Java.inc appears after deployment at: http://localhost:8080/JavaBridgeTemplate5442rc1/java/Java.inc Regards, Jost Boekemeier Apr 24, 2009 11:57 vorm. schrieb am < php...@li...>: I will try using the servlet, but i can not find JavaBridgeTemplate.war, only JavaBridge.war (which gives me an java.io.IOException: java.io.IOException: Cannot allocate memory error deploying) If I use the Java daemon, how must I configure the bridge (and where, php.ini?) to communicate with it? Is still needed to include Java.inc? Thanks! El vie, 24-04-2009 a las 10:47 +0200, php...@li... escribió: > Hi, > > 1. If you don't want to use the .wa... > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-jav... Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign optio... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-br... |
|
From: <php...@li...> - 2009-04-24 09:55:19
|
I will try using the servlet, but i can not find JavaBridgeTemplate.war, only JavaBridge.war (which gives me an java.io.IOException: java.io.IOException: Cannot allocate memory error deploying) If I use the Java daemon, how must I configure the bridge (and where, php.ini?) to communicate with it? Is still needed to include Java.inc? Thanks! El vie, 24-04-2009 a las 10:47 +0200, php...@li... escribió: > Hi, > > 1. If you don't want to use the .war file, then start a Java daemon from PHP > to communicate with the J2EE back end. For example start java with: java > -Dphp.java.bridge.daemon=true -jar JavaBridge.jar form PHP. > > But as long as you run your J2EE back end as a daemon, you don't need to > start an additional daemon from PHP. > > 2. If your j2ee server cannot deploy a standard J2EE module, please report > this bug to the server developers. We know that the JavaBridgeTemplate.war > runs on jboss 5 w/o problems. We have tested bridge version 5.4.4.2 (current > download is rc, will be final tomorrow). > > Regards, > Jost Boekemeier > > Apr 24, 2009 10:32 vorm. schrieb am < > php...@li...>: > > Thank you a lot for the reply, > > 1. I've not using servlet with php-java-bridge 4.0.1, I made the > connection directly, so there is no JavaBridge.war in the jboss deploy > directory when I get that error (jboss 5.0.1 + php-java-bridge 4.0.1) > When I upgrade to jboss 5.0.1, I compile it also with --disable-servlet > but then I get the second error (java not found) > I also must to say that when I've tried to deploy the JavaBridge.war > file into jboss, I could not access to http://localhost:8080/JavaBridge > as the tutorial says, but I have several others .war files deployed ok :( > > 2. Where is the Java.inc file? that is the one I can find in > server/META-INF/java/Java.inc when I uncompress the php-java-bridge, > isn't it? Should I remove the [java] block at php.ini and at java.ini? > > 3. I'm using ejb3, so there is no need of env mapping declaration. > > Regards, and sorry my English! > Pedro Navajas > > El vie, 24-04-2009 a las 08:59 +0200, > php...@li... escribió: > > > Hi, > > 1. NoClassDefFound errors appear when the same class is loaded > more than > once. Probably... > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensign option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > php-java-bridge-users > mailing list > php-java-br... > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > > _______________________________________________ php-java-bridge-users > mailing list php-java-bridge-u... > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-24 09:52:56
|
Hello Jost,
I've got a problem: I need to access a class which is in the jar-file with many other classes (with many subfolders- zip)
This way to solve this problem was not successful:
$myObj = new java("..../..../....");
Thank you in advance for your help!
|
|
From: <php...@li...> - 2009-04-24 08:48:14
|
Hi, 1. If you don't want to use the .war file, then start a Java daemon from PHP to communicate with the J2EE back end. For example start java with: java -Dphp.java.bridge.daemon=true -jar JavaBridge.jar form PHP. But as long as you run your J2EE back end as a daemon, you don't need to start an additional daemon from PHP. 2. If your j2ee server cannot deploy a standard J2EE module, please report this bug to the server developers. We know that the JavaBridgeTemplate.war runs on jboss 5 w/o problems. We have tested bridge version 5.4.4.2 (current download is rc, will be final tomorrow). Regards, Jost Boekemeier Apr 24, 2009 10:32 vorm. schrieb am < php...@li...>: Thank you a lot for the reply, 1. I've not using servlet with php-java-bridge 4.0.1, I made the connection directly, so there is no JavaBridge.war in the jboss deploy directory when I get that error (jboss 5.0.1 + php-java-bridge 4.0.1) When I upgrade to jboss 5.0.1, I compile it also with --disable-servlet but then I get the second error (java not found) I also must to say that when I've tried to deploy the JavaBridge.war file into jboss, I could not access to http://localhost:8080/JavaBridge as the tutorial says, but I have several others .war files deployed ok :( 2. Where is the Java.inc file? that is the one I can find in server/META-INF/java/Java.inc when I uncompress the php-java-bridge, isn't it? Should I remove the [java] block at php.ini and at java.ini? 3. I'm using ejb3, so there is no need of env mapping declaration. Regards, and sorry my English! Pedro Navajas El vie, 24-04-2009 a las 08:59 +0200, php...@li... escribió: > Hi, > > 1. NoClassDefFound errors appear when the same class is loaded more than > once. Probably... > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php-java-br... ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ php-java-bridge-users mailing list php-java-bridge-u... |
|
From: <php...@li...> - 2009-04-24 08:31:52
|
Thank you a lot for the reply,
1. I've not using servlet with php-java-bridge 4.0.1, I made the
connection directly, so there is no JavaBridge.war in the jboss deploy
directory when I get that error (jboss 5.0.1 + php-java-bridge 4.0.1)
When I upgrade to jboss 5.0.1, I compile it also with --disable-servlet
but then I get the second error (java not found)
I also must to say that when I've tried to deploy the JavaBridge.war
file into jboss, I could not access to http://localhost:8080/JavaBridge
as the tutorial says, but I have several others .war files deployed ok :(
2. Where is the Java.inc file? that is the one I can find in
server/META-INF/java/Java.inc when I uncompress the php-java-bridge,
isn't it? Should I remove the [java] block at php.ini and at java.ini?
3. I'm using ejb3, so there is no need of env mapping declaration.
Regards, and sorry my English!
Pedro Navajas
El vie, 24-04-2009 a las 08:59 +0200,
php...@li... escribió:
> Hi,
>
> 1. NoClassDefFound errors appear when the same class is loaded more than
> once. Probably jboss 5 already contains some libraries which are also
> included in the JavaBridge.war. Please use the JavaBridgeTemplate.war
> instead, which contains only the essential libraries JavaBridge.jar,
> php-script.jar and php-servlet.jar.
>
> 2. Please do not use the java.so or php_java.dll anymore. The pure PHP
> implementation contained in Java.inc is faster and works well with 64 bit
> Java VMs.
> Please add a
>
> require_once("java/Java.inc")
>
> or
> require_once("http://localhost:8080/JavaBridge/java/Java.inc")
>
> to the PHP scripts which require Java functionality.
>
> 3. Your PHP code should work, provided that the remote interface is
> accessible (ejb2 needed some env mapping declared in a proprietary web xml
> file, this may have changed in ejb3, just guessing)
>
>
> Regards,
> Jost Boekemeier
>
> Apr 23, 2009 7:18 nachm. schrieb am <
> php...@li...>:
>
> I was using apache + jboss 4.2.2 + php-java-bridge for a long time, but
> recently I upgraded to jboss 5.0.1 and suddenly the php-java-bridge stop
> working (it couldn't connect with the deployed jboss ejbs, and prints
> some weird errors about not founded classes), but it initialized
> correctly.
>
> I thought that upgrading to php-java-bridge 5.0.1 should be the best
> choice, but now the bridge dont even initialize correctly and apache
> shows:
> Fatal error: class 'Java' not found
>
> Any hints??, I am using Gentoo GNU/Linux, apache web server and jboss
> aplication server
>
> I configured the bridge using the
> file /etc/php/apache/ext-active/java.ini:
> ---------------------------------------------java.ini
> extension = java.so
> extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613
> [java]
> java.java_home = /etc/java-config-2/current-system-vm
> java.java = /etc/java-config-2/current-system-vm/bin/java
> java.log_file = /var/log/php-java-bridge.log
> java.log_level = 4
> -----------------------------------------------------
>
> And the bridge is used as the following:
> --------------------------------------bridge-example:
> $envt = array("java.naming.factory.initial" =>
> "org.jnp.interfaces.NamingContextFactory",
> "java.naming.factory.url.pkgs" =>
> "org.jboss.naming:org.jnp.interfaces",
> "java.naming.provider.url" => 192.168.1.111);
>
> // The initial context
> $ctx = new Java("javax.naming.InitialContext", $envt);
>
> // Lookup for some object
> $someObject = $ctx->lookup("SomeObjectBean/remote");
> -----------------------------------------------------
>
> Thanks in advance!
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-24 06:59:42
|
Hi,
1. NoClassDefFound errors appear when the same class is loaded more than
once. Probably jboss 5 already contains some libraries which are also
included in the JavaBridge.war. Please use the JavaBridgeTemplate.war
instead, which contains only the essential libraries JavaBridge.jar,
php-script.jar and php-servlet.jar.
2. Please do not use the java.so or php_java.dll anymore. The pure PHP
implementation contained in Java.inc is faster and works well with 64 bit
Java VMs.
Please add a
require_once("java/Java.inc")
or
require_once("http://localhost:8080/JavaBridge/java/Java.inc")
to the PHP scripts which require Java functionality.
3. Your PHP code should work, provided that the remote interface is
accessible (ejb2 needed some env mapping declared in a proprietary web xml
file, this may have changed in ejb3, just guessing)
Regards,
Jost Boekemeier
Apr 23, 2009 7:18 nachm. schrieb am <
php...@li...>:
I was using apache + jboss 4.2.2 + php-java-bridge for a long time, but
recently I upgraded to jboss 5.0.1 and suddenly the php-java-bridge stop
working (it couldn't connect with the deployed jboss ejbs, and prints
some weird errors about not founded classes), but it initialized
correctly.
I thought that upgrading to php-java-bridge 5.0.1 should be the best
choice, but now the bridge dont even initialize correctly and apache
shows:
Fatal error: class 'Java' not found
Any hints??, I am using Gentoo GNU/Linux, apache web server and jboss
aplication server
I configured the bridge using the
file /etc/php/apache/ext-active/java.ini:
---------------------------------------------java.ini
extension = java.so
extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613
[java]
java.java_home = /etc/java-config-2/current-system-vm
java.java = /etc/java-config-2/current-system-vm/bin/java
java.log_file = /var/log/php-java-bridge.log
java.log_level = 4
-----------------------------------------------------
And the bridge is used as the following:
--------------------------------------bridge-example:
$envt = array("java.naming.factory.initial" =>
"org.jnp.interfaces.NamingContextFactory",
"java.naming.factory.url.pkgs" =>
"org.jboss.naming:org.jnp.interfaces",
"java.naming.provider.url" => 192.168.1.111);
// The initial context
$ctx = new Java("javax.naming.InitialContext", $envt);
// Lookup for some object
$someObject = $ctx->lookup("SomeObjectBean/remote");
-----------------------------------------------------
Thanks in advance!
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-23 17:17:39
|
I was using apache + jboss 4.2.2 + php-java-bridge for a long time, but
recently I upgraded to jboss 5.0.1 and suddenly the php-java-bridge stop
working (it couldn't connect with the deployed jboss ejbs, and prints
some weird errors about not founded classes), but it initialized
correctly.
I thought that upgrading to php-java-bridge 5.0.1 should be the best
choice, but now the bridge dont even initialize correctly and apache
shows:
Fatal error: class 'Java' not found
Any hints??, I am using Gentoo GNU/Linux, apache web server and jboss
aplication server
I configured the bridge using the
file /etc/php/apache/ext-active/java.ini:
---------------------------------------------java.ini
extension = java.so
extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613
[java]
java.java_home = /etc/java-config-2/current-system-vm
java.java = /etc/java-config-2/current-system-vm/bin/java
java.log_file = /var/log/php-java-bridge.log
java.log_level = 4
-----------------------------------------------------
And the bridge is used as the following:
--------------------------------------bridge-example:
$envt = array("java.naming.factory.initial" =>
"org.jnp.interfaces.NamingContextFactory",
"java.naming.factory.url.pkgs" =>
"org.jboss.naming:org.jnp.interfaces",
"java.naming.provider.url" => 192.168.1.111);
// The initial context
$ctx = new Java("javax.naming.InitialContext", $envt);
// Lookup for some object
$someObject = $ctx->lookup("SomeObjectBean/remote");
-----------------------------------------------------
Thanks in advance!
|
|
From: <php...@li...> - 2009-04-22 07:37:40
|
Jost,
thank you very much for your help!!!!! It is a good example.
|
|
From: <php...@li...> - 2009-04-22 07:31:14
|
The tests.php5 folder from the documentation download contains lots of them.
The following can be typed on the windows or linux command shell:
echo 'public class c{public Integer[]f(Integer[]p){return p;}}'>c.java
javac c.java
jar cf c.jar c.class
jrunscript -classpath JavaBridge.jar -l php-interactive
java_require ("c.jar")
$c=new java("c")
$arOb=$c->f(array(1,2,3))
echo $arOb[2]
=>3
$lOb=java("java.util.Arrays")->asList($arOb)
echo (string) $lOb
=>[1, 2, 3]
$lOb->add(5)
=> Exception, backed by array
$ar=java_values($lOb)
print_r($ar)
Hope it helps.
Regards,
Jost Boekemeier
Apr 22, 2009 8:13 vorm. schrieb am <
php...@li...>:
Hello Jost,
would you please give an example of an array list in php-java-bridge.
Many thanks in advance!!!!
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-22 06:12:40
|
Hello Jost,
would you please give an example of an array list in php-java-bridge.
Many thanks in advance!!!!
|
|
From: <php...@li...> - 2009-04-21 13:14:33
|
You can include the output of a portlet into php via requestDispatcher->include(...). Since PHP/Java Bridge version 5.4.4.2 (rc is available for download, final at the end of this month), you can use any php script to render the view for a portlet. Similar to this example jsp: http://nlc.nlc.go.cn/resin-doc/portlet/tutorial/basic-jsp/index.xtp Regards, Jost Boekemeier Apr 21, 2009 2:10 nachm. schrieb am < php...@li...>: Hi, I'm looking at a solution to embed a Java portlet (JSR-168) in a PHP webapp. For now, I found nobody on the Web who talk about this. Somebody on this mailing-list has an idea if it's possible ? Thank you very much for your response. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-21 12:09:35
|
Hi, I'm looking at a solution to embed a Java portlet (JSR-168) in a PHP webapp. For now, I found nobody on the Web who talk about this. Somebody on this mailing-list has an idea if it's possible ? Thank you very much for your response. |
|
From: <php...@li...> - 2009-04-21 11:48:23
|
Jost,
I've done it:
public class TestCase {
public ArrayList add(String a,String b){
but now "ClassNotFoundException"......
Well, am I right if I think, that it will work if I use "java_values($object-> add ($hund,$ball) );"
<?php
require_once("java/Java.inc");
$System = java("java.lang.System");
$object = new Java( "TestCase");
$result = java_values($object-> add ($hund,$ball) );
print_r($result);
?>
Or do I need anything else????
Thanks in advance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
From: <php...@li...> - 2009-04-21 10:54:51
|
maybe you should fix your java code first... its a bad idea to name your class "List" when you're importing at the same time the List Interface from java.util. You will probably get some visibility problems with that. next your method does not accept any parameters (at least not in the java code). how do you think php can then give it two parameters? Fix your java code first, write a testcase and then port that testcase to php using the bridge. 2009/4/21 <php...@li...> > Jost, > I tryed to add "v.addAll" to my javacode but it did not work . try/catch > did not help too much. I can invoke the method in php on the same way as it > were only an array,can't I?(with java_values and so on) > > > > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-04-21 10:18:36
|
I think you've lost it. PHP Java objects can be inspected with echo java_inspect($jval), which reveals the java object's features with their parameters. But since you already know this from one of the last error message you've sent, I don't know how I can help. Regards, Jost Boekemeier Apr 21, 2009 11:58 vorm. schrieb am < php...@li...>: Jost, I tryed to add "v.addAll" to my javacode but it did not work . try/catch did not help too much. I can invoke the method in php on the same way as it were only an array,can't I?(with java_values and so on) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |