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...> - 2008-02-19 11:18:00
|
Hi,
I've deployed PHP/Java bridge as a Tomcat module. My PHP application which uses it to connect with Java application is deployed to the same server. It works fine now, but the issue I can't resolve now is how to provide MySQL support for my PHP application.
It works from Apache but I had problems to connect it with php/java bridge on Tomcat, so I have decided to deploy it on Tomcat. I have tried to add "extension=php_mysql.dll" to the php.ini available on the "..\Tomcat 5.5\webapps\MyAPP\WEB-INF\cgi\php.ini" which is used by my PHP application, but it always crashes.
Is it possible to connect PHP, Tomcat and MySQL, and if yes, how can I do it?
Thanks
Zoran
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
|
|
From: <php...@li...> - 2008-02-18 12:34:40
|
Hi,
> The Fat Jar Eclipse Plug-In is a Deployment-Tool which deploys an Eclipse java-project into one
> executable jar.
amazing...
But if you do this more than once, you might get a PermGenSpace or some other OutOfMemoryError.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-18 11:59:05
|
HI,
I have resolved this issue too. The problem persist if I use One-Jar to pack my jar file. However, if I turn it of it works fine.
Regards
Zoran
Zoran Jeremic <jer...@ya...> wrote:
Hi,
>Not really. The only person who could resolve this issue is the person who has compiled
>the class or library. You could look at the library docs, which probably include a section
>which lists the libraries which must be linked together in order to build an executable.
I have resolved this issue. I have created jar file using Fat-Jar eclipse plugin. I have tested it from command prompt and it works fine. The main class is depths.moodle.MainClass which is executed successfully. However the following code
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper_fat.jar");
echo "<br>";
try{
$repository=new Java("depths.moodle.MainClass");
generates ClassNotFoundException for depth.moodle.MainClass in java_require() path (complete error code is given bellow.
>Once you know which libraries to link, you can append them to the java_require path or
>copy them to WEB-INF/lib/ and restart the J2EE server.
Could you tell me where exactly should this jar file reside. I have tried to put it at the same folder as test.php page that use it, or at the "Tomcat/webapps/JavaBridge/WEB-INF/lib". In both case, I got the same error message.
Error (File: http://localhost:8080/JavaBridge/java/Java.inc, line 222): [[o:ClassNotFoundException]:"java.lang.ClassNotFoundException: Could not find depths.moodle.MainClass in java_require() path. Please check the path and the SEL and File permissions." at: #-10 php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:284) #-9 java.lang.ClassLoader.loadClassInternal(Unknown Source) #-8 java.lang.Class.forName0(Native Method) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ExceptionProxyFactory->getProxy(2, 'java.lang.Class...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(417): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(621): java_Client->getResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1744): java_Client->invokeMethod(1, 'getCause', Array) #5
http://localhost:8080/JavaBridge/java/Java.inc(2112): java_JavaProxy->__call('getCause', Array) #6 [internal function]: java_exception->__call('getCause', Array) #7 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(14): java_InternalException->getCause() #8 {main}] end of message.
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.MainClass. Cause: java.lang.ClassNotFoundException: Could not find depths.moodle.MainClass in java_require() path. Please check the path and the SEL and File permissions. VM: 1.6.0_04@http://java.sun.com/" at: #-10 php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:284) #-9 java.lang.ClassLoader.loadClassInternal(Unknown Source) #-8 java.lang.Class.forName0(Native Method) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, false) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(false) #2 http://localhost:8080/JavaBridge/java/Java.inc(414): java_Client->getWrappedResult(false) #3 http://localhost:8080/JavaBridge/java/Java.inc(596): java_Client->getInternalResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1947): java_Client->createObject('depths.moodle.M...', Array) #5
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(8): Java->Java('depths.moodle.M...') #6 {main}]end
Regards
Zoran
php...@li... wrote:
Hi Zoran,
> references other JARS, and that somethimes it can cause "classnotfound"
this isn't a class not found exception. It is a hard error: NoClassDefFound.
> >Java has no "module system". The above message means that there's an
> open reference >which cannot be resolved.
>
> Could you please be more specific about this "open reference which
> cannot be resolved".
Not really. The only person who could resolve this issue is the person who has compiled the
class or library. You could look at the library docs, which probably include a section which lists
the libraries which must be linked together in order to build an executable.
Once you know which libraries to link, you can append them to the java_require path or
copy them to WEB-INF/lib/ and restart the J2EE server.
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Never miss a thing. Make Yahoo your homepage.
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|
|
From: <php...@li...> - 2008-02-18 10:55:22
|
Hi,
>Not really. The only person who could resolve this issue is the person who has compiled
>the class or library. You could look at the library docs, which probably include a section
>which lists the libraries which must be linked together in order to build an executable.
I have resolved this issue. I have created jar file using Fat-Jar eclipse plugin. I have tested it from command prompt and it works fine. The main class is depths.moodle.MainClass which is executed successfully. However the following code
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper_fat.jar");
echo "<br>";
try{
$repository=new Java("depths.moodle.MainClass");
generates ClassNotFoundException for depth.moodle.MainClass in java_require() path (complete error code is given bellow.
>Once you know which libraries to link, you can append them to the java_require path or
>copy them to WEB-INF/lib/ and restart the J2EE server.
Could you tell me where exactly should this jar file reside. I have tried to put it at the same folder as test.php page that use it, or at the "Tomcat/webapps/JavaBridge/WEB-INF/lib". In both case, I got the same error message.
Error (File: http://localhost:8080/JavaBridge/java/Java.inc, line 222): [[o:ClassNotFoundException]:"java.lang.ClassNotFoundException: Could not find depths.moodle.MainClass in java_require() path. Please check the path and the SEL and File permissions." at: #-10 php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:284) #-9 java.lang.ClassLoader.loadClassInternal(Unknown Source) #-8 java.lang.Class.forName0(Native Method) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ExceptionProxyFactory->getProxy(2, 'java.lang.Class...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(417): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(621): java_Client->getResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1744): java_Client->invokeMethod(1, 'getCause', Array) #5
http://localhost:8080/JavaBridge/java/Java.inc(2112): java_JavaProxy->__call('getCause', Array) #6 [internal function]: java_exception->__call('getCause', Array) #7 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(14): java_InternalException->getCause() #8 {main}] end of message.
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.MainClass. Cause: java.lang.ClassNotFoundException: Could not find depths.moodle.MainClass in java_require() path. Please check the path and the SEL and File permissions. VM: 1.6.0_04@http://java.sun.com/" at: #-10 php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:284) #-9 java.lang.ClassLoader.loadClassInternal(Unknown Source) #-8 java.lang.Class.forName0(Native Method) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, false) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(false) #2 http://localhost:8080/JavaBridge/java/Java.inc(414): java_Client->getWrappedResult(false) #3 http://localhost:8080/JavaBridge/java/Java.inc(596): java_Client->getInternalResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1947): java_Client->createObject('depths.moodle.M...', Array) #5
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(8): Java->Java('depths.moodle.M...') #6 {main}]end
Regards
Zoran
php...@li... wrote:
Hi Zoran,
> references other JARS, and that somethimes it can cause "classnotfound"
this isn't a class not found exception. It is a hard error: NoClassDefFound.
> >Java has no "module system". The above message means that there's an
> open reference >which cannot be resolved.
>
> Could you please be more specific about this "open reference which
> cannot be resolved".
Not really. The only person who could resolve this issue is the person who has compiled the
class or library. You could look at the library docs, which probably include a section which lists
the libraries which must be linked together in order to build an executable.
Once you know which libraries to link, you can append them to the java_require path or
copy them to WEB-INF/lib/ and restart the J2EE server.
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Never miss a thing. Make Yahoo your homepage.
|
|
From: <php...@li...> - 2008-02-15 10:02:56
|
Hi,
> So with that in mind, I was unaware that myapp (the web app instance of java) needed to be
> deployed on the "local" apache document root as well.
unless the PHP option allow_url_include is set to on, php can only access local files.
> would load the java from the Tomcat instance - and then any calls to such classes would of
> course execute there. Like I say - I have done that - but the java_require / autoload still
> fails.
Although there's nothing wrong with the dynamic loader per se, I'd like to remove it in one
of the next releases. I want to get rid of the class loading problems. If Java users have
(the usual) class loading issues, they should contact their AS vendor, not us.
> For number 3, you indicate copying "myapp" to the apache root, does myapp in that case mean the
> exploded war
The directory which contains the myapp web application, yes.
Regards,
Jost Boekemeier
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-14 23:13:39
|
Hi Jost,
Thanks for your reply. It is certainly possible to copy all of my libraries to WEB-INF/lib. Infact this has been my behavior once I was able to finally package up myapp.jar (a huge pain - not the jar -cvf etc, but the silly java app I am trying to consolidate here).
So with that in mind, I was unaware that myapp (the web app instance of java) needed to be deployed on the "local" apache document root as well. It was my understanding that loading a library via:
java_require("myapp.jar");
would load the java from the Tomcat instance - and then any calls to such classes would of course execute there. Like I say - I have done that - but the java_require / autoload still fails.
For number 3, you indicate copying "myapp" to the apache root, does myapp in that case mean the exploded war, or rather just the PHP myapp - which contains no java binary?
Sorry for the confusion man, I did not get the impression from any documentation that the myapp.jar (in any form) had to be deployed on the apache doc root (or any where else in the apache context) as well.
Thanks,
~tim
> Despite apache / tomcat being on the same server, it seems promiscuous needs to be on, as well
> as allow_url_include.
yes, this is documented, I think. :)
See also: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/
> But now, I cannot get java_require or java_autoload to get at my classes packaged within my web
> app.
Isn't it possible to copy all your libraries to WEB-INF/lib?
Basically users should be able to install the bridge with 3 simple steps:
1. Rename JavaBridge.war to myApp.war and add all needed Java and PHP libraries to the
myApp.war
2. Copy myApp.war to the J2EE autodeploy folder, wait until the directory myApp appears
3. Copy the directory myApp over to the Apache or IIS document root
4. Browse to http://yourHost.com/myApp and run the PHP/Java applications.
|
|
From: <php...@li...> - 2008-02-14 18:23:10
|
Hi Zoran,
> references other JARS, and that somethimes it can cause "classnotfound"
this isn't a class not found exception. It is a hard error: NoClassDefFound.
> >Java has no "module system". The above message means that there's an
> open reference >which cannot be resolved.
>
> Could you please be more specific about this "open reference which
> cannot be resolved".
Not really. The only person who could resolve this issue is the person who has compiled the
class or library. You could look at the library docs, which probably include a section which lists
the libraries which must be linked together in order to build an executable.
Once you know which libraries to link, you can append them to the java_require path or
copy them to WEB-INF/lib/ and restart the J2EE server.
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-14 17:30:51
|
Hi, Thank you for your quick answer. I have tried to resolved what you have write about this issue. Regardless I have some experiences with Java, I must admit that I'm not familiar with deploying it as JAR files. I have tried to google for some pages related to this issue, and I have resolved till now that it is related to the problem of how JAR references other JARS, and that somethimes it can cause "classnotfound" problems, but I didn't found anything that clearly explains how to struggle this issue. Could you suggest me some link that could be useful to resolve this. >Java has no "module system". The above message means that there's an open reference >which cannot be resolved. Could you please be more specific about this "open reference which cannot be resolved". In my Java class I don't have anything that could cause "org/openrdf/sesame/query/QueryEvaluationException" that is not handled from Java (I have attached this class, as well as php file that use it, if it could be helpful) Regards Zoran php...@li... wrote: Hi, > java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: > org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README > section "Java platform issues" for > details. VM: 1.6.0_04@http://java.sun.com/" at: Java has no "module system". The above message means that there's an open reference which cannot be resolved. Please re-read the README section "Java platform issues" and your Java documentation for details. If there's anything we can do to describe the problem more clearly, please let us know. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Never miss a thing. Make Yahoo your homepage. |
|
From: <php...@li...> - 2008-02-14 09:08:39
|
Hi, > java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: > org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README > section "Java platform issues" for > details. VM: 1.6.0_04@http://java.sun.com/" at: Java has no "module system". The above message means that there's an open reference which cannot be resolved. Please re-read the README section "Java platform issues" and your Java documentation for details. If there's anything we can do to describe the problem more clearly, please let us know. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
|
From: <php...@li...> - 2008-02-14 09:04:10
|
Hi,
I found that this error is not connected with libraries used in Java. Rather it has something with proxy, as the error code refere to the Java.inc getProxy function. However, I don't have problem to access other java classes in the same package, as well as to access this class from Java code. Here is the complete error code I got:
Error (File: http://localhost:8080/JavaBridge/java/Java.inc, line 222): [[o:ClassNotFoundException]:"java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details." at: #-6 php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:427) #-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:498) #-4 php.java.bridge.Request.handleRequest(Request.java:447) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ExceptionProxyFactory->getProxy(4, 'java.lang.Class...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(417): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(621): java_Client->getResult() #4
http://localhost:8080/JavaBridge/java/Java.inc(1744): java_Client->invokeMethod(3, 'getCause', Array) #5 http://localhost:8080/JavaBridge/java/Java.inc(2112): java_JavaProxy->__call('getCause', Array) #6 [internal function]: java_exception->__call('getCause', Array) #7 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\test\test.php(18): java_InternalException->getCause() #8 {main}]
Thanks
Zoran
php...@li... wrote:
Hi,
I'm newby in PHP and PHP/Java bridge, and I have some doubt about it. It seems that I can not instantiate Java class from PHP in case that class imports some external library, regardless that library is available in jar file that I use. Here is the PHP code:
....
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper v0.003.jar");
$repository=new Java("depths.moodle.RepositoryFactory");
....
Java code
package depths.moodle;
import org.openrdf.sesame.repository.SesameRepository;
import depths.moodle.repository.Repository;
public class RepositoryFactory {
....
And here is the error:
javax.servlet.ServletException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.RepositoryFactory. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details. VM: 1.6.0_04@http://java.sun.com/" at:
Did I make some mistake here, or I have to create facade class in order to access this class?
Thanks
Zoran
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
|
|
From: <php...@li...> - 2008-02-13 20:00:07
|
Hi,
I'm newby in PHP and PHP/Java bridge, and I have some doubt about it. It seems that I can not instantiate Java class from PHP in case that class imports some external library, regardless that library is available in jar file that I use. Here is the PHP code:
...
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper v0.003.jar");
$repository=new Java("depths.moodle.RepositoryFactory");
...
Java code
package depths.moodle;
import org.openrdf.sesame.repository.SesameRepository;
import depths.moodle.repository.Repository;
public class RepositoryFactory {
...
And here is the error:
javax.servlet.ServletException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.RepositoryFactory. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details. VM: 1.6.0_04@http://java.sun.com/" at:
Did I make some mistake here, or I have to create facade class in order to access this class?
Thanks
Zoran
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|
|
From: <php...@li...> - 2008-02-13 18:53:42
|
Hi,
> Despite apache / tomcat being on the same server, it seems promiscuous needs to be on, as well
> as allow_url_include.
>
> So now I can load the Java.inc via:
>
> require_once("http://192.168.15.62:8080/JavaBridge/java/Java.inc");
The IP is interesting. However, if you want to connect to a back end running on any other
interface than 127.0.0.1, you need to switch on promiscuous mode, even if 192.168.15.62 resolve to
a local address. If you have disabled the loopback interface, please enable it. It is considerably
faster. (In promiscuous mode the bridge switches off named pipe communication, furthermore some OS
switch on Nagle's algorithm if the communication goes through a real network interface).
> But now, I cannot get java_require or java_autoload to get at my classes packaged within my web
> app.
java_require ("foo.jar") is equivalent to:
$here=getcwd(); java_require("$here/foo.jar");
Otherwise you must use an absolute path or even a URL, for example:
java_autoload("file:///c:/foo.jar;http://php-java-bridge.sf.net/baz.jar");
> java_require("http://localhost:8080/JavaBridge/myapp.jar");
Yes, this will work. Since version 4.1.0 the bridge copies
http://localhost:8080/JavaBridge/myapp.jar to file:/{java.io.tempdir}/myapp.jar and rewrites the
URL to use the local file instead.
> As I understand it, simply using java_require("myapp.jar") should be able to resolve correctly,
> considering the context of the Java.inc being within the JavaBridge web app.
The bridge tries to load myapp.jar from 1) /usr/share/java, 2) from $HOME/lib/ and 3) from
getcwd()/
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen
Yahoo! Mail. www.yahoo.de/mail
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2008-02-13 18:35:44
|
Hi, > Can anyone help me work with php java bridge. I am currently using wamp 1.7.2 and > php-java-bridge_5.1.0_j2ee. When i try to run hello.php on php java bridge and I get an error > on php. It might be I misconfigure something on php and apache. you will get the same error, if you start PHP from the console. So this is not an issue with apache or the php/java bridge. > The Error I get is this : > Fatal error: Call to undefined function bindtextdomain() in C:\wamp\www\JavaBridge\hello.php on > line 23 > can anyone help me how to configure my wamp with php java bridge. You need to add GNU Gettext, which might be disabled on Windows. -- I have never used PHP on windows, so I don't know how to resolve this issue. In the worst case you need to compile GNU Gettext for windows. Please see the PHP documentation: http://www.php.net/manual/en/ref.gettext.php and the PHP mailing lists for further help. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
|
From: <php...@li...> - 2008-02-13 09:17:24
|
> Despite apache / tomcat being on the same server, it seems promiscuous needs to be on, as well > as allow_url_include. yes, this is documented, I think. :) See also: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/ > But now, I cannot get java_require or java_autoload to get at my classes packaged within my web > app. Isn't it possible to copy all your libraries to WEB-INF/lib? Basically users should be able to install the bridge with 3 simple steps: 1. Rename JavaBridge.war to myApp.war and add all needed Java and PHP libraries to the myApp.war 2. Copy myApp.war to the J2EE autodeploy folder, wait until the directory myApp appears 3. Copy the directory myApp over to the Apache or IIS document root 4. Browse to http://yourHost.com/myApp and run the PHP/Java applications. Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
|
From: <php...@li...> - 2008-02-13 09:07:26
|
> Fatal error: Call to undefined function bindtextdomain() in C:\wamp\www\JavaBridge\hello.php on
> line 23
the message means that bindtextdomain() is not defined. :)
Please see your PHP documentation for details.
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-13 07:49:14
|
Can anyone help me work with php java bridge. I am currently using wamp 1.7.2 and php-java-bridge_5.1.0_j2ee. When i try to run hello.php on php java bridge and I get an error on php. It might be I misconfigure something on php and apache.
The Error I get is this :
Fatal error: Call to undefined function bindtextdomain() in C:\wamp\www\JavaBridge\hello.php on line 23
can anyone help me how to configure my wamp with php java bridge.
my specs is : WINXP OS SP2, Apache/2.2.4 (Win32) PHP/5.2.3
Jemariel J. Requina , BSCS
Software Developer
JINISYS Software, Inc.
G/F Cebu Holdings Center, Cardinal Rosales Ave.
Cebu Business Park , 6000 Cebu City Phils.
Email : act...@ya...
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|
|
From: <php...@li...> - 2008-02-12 23:11:43
|
I think I got it, but I am still having some trouble getting at my custom java classes.
Despite apache / tomcat being on the same server, it seems promiscuous needs to be on, as well as allow_url_include.
So now I can load the Java.inc via:
require_once("http://192.168.15.62:8080/JavaBridge/java/Java.inc");
But now, I cannot get java_require or java_autoload to get at my classes packaged within my web app.
Do I have to serve up the jar and reference it something like this?
java_require("http://localhost:8080/JavaBridge/myapp.jar");
As I understand it, simply using java_require("myapp.jar") should be able to resolve correctly, considering the context of the Java.inc being within the JavaBridge web app. In other words, if indeed the Java.inc is setup correctly within the JavaBridge web app, by just doing java_require("myapp.jar"), the PhpJavaServlet will be called upon to load up that class from within its local lib, no?
I am almost there!!
Thanks again,
~tim
Message: 8
Date: Tue, 12 Feb 2008 15:41:42 -0500
From: php...@li...
Subject: Re: [Php-java-bridge-users] bridge setup - missing something
To: <php...@li...>
Message-ID: <4BE...@EV...>
Content-Type: text/plain; charset="iso-8859-1"
Hi Jost,
I see the need for JavaBridge.jar and php-servlet.jar (which includes the PhpJavaServlet). I see how it is an example web app, that happens to include the required modules for apache <--> tomcat, as well as a couple of handy files such as test.php.
My JavaBridge.war deployment loads fine, and I can access test.php, as well as settings.php. The JSP's load fine too. The test.php in particular loads, and has all of the java system properties, as well as the "PHP says that Java says: hello PHP from Java!" and php_java_bridge_Util::type()->VERSION
produces 5.0.0 too.
This suggests that it is working fine on Tomcat - however...
The following test.php on apache:
<?php
require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc");
$System = java("java.lang.System");
echo $System->getProperties();
?>
produces nothing in the page, and::
PHP Warning: require_once(http://127.0.0.1:8080/JavaBridge/java/Java.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: no suitable wrapper could be found in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\test.php on line 2
in the apache error logs.
I am sure I am missing an apache setting, but I have been unable to figure out what.
Please help, thanks so much, and sorry for bothering you with this crap.
~tim
|
|
From: <php...@li...> - 2008-02-12 20:42:04
|
Hi Jost,
I see the need for JavaBridge.jar and php-servlet.jar (which includes the PhpJavaServlet). I see how it is an example web app, that happens to include the required modules for apache <--> tomcat, as well as a couple of handy files such as test.php.
My JavaBridge.war deployment loads fine, and I can access test.php, as well as settings.php. The JSP's load fine too. The test.php in particular loads, and has all of the java system properties, as well as the "PHP says that Java says: hello PHP from Java!" and php_java_bridge_Util::type()->VERSION
produces 5.0.0 too.
This suggests that it is working fine on Tomcat - however...
The following test.php on apache:
<?php
require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc");
$System = java("java.lang.System");
echo $System->getProperties();
?>
produces nothing in the page, and::
PHP Warning: require_once(http://127.0.0.1:8080/JavaBridge/java/Java.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: no suitable wrapper could be found in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\test.php on line 2
in the apache error logs.
I am sure I am missing an apache setting, but I have been unable to figure out what.
Please help, thanks so much, and sorry for bothering you with this crap.
~tim
------------------------------
Message: 8
Date: Wed, 6 Feb 2008 12:03:44 +0100 (CET)
From: php...@li...
Subject: Re: [Php-java-bridge-users] bridge setup - missing something
To: php...@li...
Message-ID: <377...@we...>
Content-Type: text/plain; charset=iso-8859-1
Hi,
> I am trying to connect my php front-end to my web application in the tomcat backend.
all you need is the PhpJavaServlet in the back end and, if you don't want to call
the back end trough raw PHP fread/fwrite calls, the Java.inc (you can fetch the
Java.inc from the Servlet, or store it locally).
> myBackendApp.war", and that the example uses the
> JavaBridge.jar
It needs JavaBridge.jar and php-servlet.jar and the web.xml which declares the servlet stored
in php-servlet.jar.
You can use the JavaBridge.war as a template; JavaBridge.war is actually just a sample web archive
which contains some PHP examples.
> I will not need any deployed JavaBridge.war
> in order to communicate via the apache php and the tomcat java
Right. Just rename JavaBridge.war to foo.war and change your apache PHP script to
require_once ("http://localhost:8080/foo/java/Java.inc");
:)
> Building this particular backend war requires quite a bit of effort
Just rename JavaBridge.war to myBackendApp.war, add the libraries and/or PHP files you need
to the myBackendApp.war zip archive and you're done.
Note that the Java files are distributed under the MIT License, so you can do whatever you want
with that code.
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-10 21:29:39
|
Thank you. I have solved this issue, but I'm not sure what was the reason. I have done two things: 1. Remove Zend Core Debugger, as I saw from phpInfo that php.ini is loaded from it instead from C:\PHP. I hope it will not make a problem if I install it again later because I use it for PHP debugging in Eclipse. 2. I have installed PHP again without any extensions Best regards Zoran php...@li... wrote: > Do you have some suggestions how can I find what makes a problem? I have > already tried with PHP 5.1.0, a Try to disable all PHP extensions. I'd be very surprised if the problem persists. > nd different versions of Tomcat (5.5 and 6), and I have always had the same > problem. This has noting to do with the PHP version, the Java bridge version or with Java or with the Tomcat version. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
|
From: <php...@li...> - 2008-02-10 20:41:30
|
> Do you have some suggestions how can I find what makes a problem? I have
> already tried with PHP 5.1.0, a
Try to disable all PHP extensions. I'd be very surprised if the problem persists.
> nd different versions of Tomcat (5.5 and 6), and I have always had the same
> problem.
This has noting to do with the PHP version, the Java bridge version or with Java or with the Tomcat version.
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|
|
From: <php...@li...> - 2008-02-10 20:19:17
|
>Both, the bridge and PHP work well i suppose. It's just that PHP crashes. Now you need >to find out what or which component makes it crash. Most likely you >have some broken PHP extension in your path which doesn't work anymore with PHP 5.2. Do you have some suggestions how can I find what makes a problem? I have already tried with PHP 5.1.0, and different versions of Tomcat (5.5 and 6), and I have always had the same problem. >I don't think this has anything to do with tomcat or the php-java bridge or with the tomcat >setup. BTW: What do you mean with "I have not setup Tomcat well to work with PHP". It >is impossible to do this, unless you have modified the PHP/Java Bridge source code, of >course. I thought that maybe I have to change something in Tomcat's configuration files in order to set it to work with PHP. Regards, Zoran php...@li... wrote: php...@li... wrote: > These messages have nothing to do with the PHP/Java Bridge. You are absolutely right about that. I have tried to deploy other PHP application to the Tomcat and I have experienced the same problem, so I suppose that I have not setup Tomcat well to work with PHP. Both, the bridge and PHP work well i suppose. It's just that PHP crashes. Now you need to find out what or which component makes it crash. Most likely you have some broken PHP extension in your path which doesn't work anymore with PHP 5.2. I don't think this has anything to do with tomcat or the php-java bridge or with the tomcat setup. BTW: What do you mean with "I have not setup Tomcat well to work with PHP". It is impossible to do this, unless you have modified the PHP/Java Bridge source code, of course. --------------------------------- Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
|
From: <php...@li...> - 2008-02-10 19:55:00
|
php...@li... wrote:
> These messages have nothing to do with the PHP/Java Bridge.
You are absolutely right about that. I have tried to deploy other PHP application to the Tomcat and I have experienced the same problem, so I suppose that I have not setup Tomcat well to work with PHP.
Both, the bridge and PHP work well i suppose. It's just that PHP crashes. Now you need to find out what or which component makes it crash. Most likely you
have some broken PHP extension in your path which doesn't work anymore with PHP 5.2.
I don't think this has anything to do with tomcat or the php-java bridge or with the tomcat setup. BTW: What do you mean with "I have not setup Tomcat well to work with PHP". It is impossible to do this, unless you have modified the PHP/Java Bridge source code, of course.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
|
|
From: <php...@li...> - 2008-02-10 19:22:08
|
Hi Jost, > These messages have nothing to do with the PHP/Java Bridge. You are absolutely right about that. I have tried to deploy other PHP application to the Tomcat and I have experienced the same problem, so I suppose that I have not setup Tomcat well to work with PHP. When I have installed PHP I have set it as Apache 2.2 module. Do I need to configure something in Tomcat in other to use it with PHP? >Try to use another PHP SAPI instead, i.e. start PHP as an Apache module PHP works fine with Apache, but how can I use php/java bridge if I don't use Java application server (i.e. Tomcat)? I can't use pure PHP solution because of performances. Regards, Zoran php...@li... wrote: Hi, > I'm using Java JDK 1.6 update 4, Tomcat 6.0, PHP 5.2.5 and Apache 2.2 > to start it from Web browser I'm getting a plenty of messages "CGI / FastCGI has encountered a > problem and needs to close. We are sorry for the inconvenience.". These messages have nothing to do with the PHP/Java Bridge. Try to use another PHP SAPI instead, i.e. start PHP as an Apache module instead, and/or please report this bug to the PHP developers. -- I know that the PHP developers have revamped FastCGI in version 5.1.2, it may break older components. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Never miss a thing. Make Yahoo your homepage. |
|
From: <php...@li...> - 2008-02-10 15:59:33
|
Try to use another PHP SAPI instead, i.e. start PHP as an Apache module instead, and/or please
A different server api won't make a difference. If PHP is crashing frequently, there's some problem with the PHP setup (php module crashing) or with PHP itself.
For example the following code crashes PHP immediately:
function f () { f(); }
f();
Most likely the crashes happen due to some deprecated PHP module.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
|
|
From: <php...@li...> - 2008-02-10 15:17:15
|
Hi,
> I'm using Java JDK 1.6 update 4, Tomcat 6.0, PHP 5.2.5 and Apache 2.2
> to start it from Web browser I'm getting a plenty of messages "CGI / FastCGI has encountered a
> problem and needs to close. We are sorry for the inconvenience.".
These messages have nothing to do with the PHP/Java Bridge.
Try to use another PHP SAPI instead, i.e. start PHP as an Apache module instead, and/or please
report this bug to the PHP developers. -- I know that the PHP developers have revamped FastCGI in
version 5.1.2, it may break older components.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|