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-05-05 06:36:30
|
In the tomcat startup log you have sent, tomcat complains about an invalid library. However, the error message should be in the tomcat error log, usually named localhost.date.log. You could also raise the default_log_level, see our FAQ, to 4 or even 6, to see the details. Log4j chainsaw is quite useful in this case. Just copy it to TOMCAT_HOME/lib, restart tomcat with -Dphp.java.bridge.default_log_level=4 and start Chainsaw with: java -classpath log4j.jar org.apache.log4j.chainsaw.Main Mai 5, 2009 8:06 vorm. schrieb am < php...@li...>: Good morning, I get "protocol error: , Invalid document end at col 16. Check the back end log for OutOfMemoryErrors" after installing postgresql and pgadmin. the back end log: 05.05.2009 07:53:35 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\PHP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI.ACE\Core-Static 05.05.2009 07:53:35 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 05.05.2009 07:53:35 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 275 ms 05.05.2009 07:53:35 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 05.05.2009 07:53:35 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 05.05.2009 07:53:35 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive JavaBridge.war 05.05.2009 07:53:40 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Development\apache-tomcat-6.0.18\webapps\Ordner\WEB-INF\lib\WebProjekt2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 05.05.2009 07:53:42 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 05.05.2009 07:53:42 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 05.05.2009 07:53:42 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/48 config=null 05.05.2009 07:53:42 org.apache.catalina.startup.Catalina start INFO: Server startup in 5167 ms 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.n3.N3ParserFactory 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.ntriples.NTriplesParserFactory 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.rdfxml.RDFXMLParserFactory 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.trig.TriGParserFactory 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.trix.TriXParserFactory 05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.turtle.TurtleParserFactory 05.05.2009 07:56:59 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8081 05.05.2009 07:57:00 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 05.05.2009 07:57:00 org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8081 05.05.2009 07:59:07 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\PHP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI.ACE\Core-Static 05.05.2009 07:59:07 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 05.05.2009 07:59:07 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 253 ms 05.05.2009 07:59:07 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 05.05.2009 07:59:07 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 05.05.2009 07:59:07 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive JavaBridge.war 05.05.2009 07:59:09 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Development\apache-tomcat-6.0.18\webapps\Ordner\WEB-INF\lib\WebProjekt2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 05.05.2009 07:59:10 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 05.05.2009 07:59:10 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 05.05.2009 07:59:10 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null 05.05.2009 07:59:10 org.apache.catalina.startup.Catalina start INFO: Server startup in 1225 ms 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.n3.N3ParserFactory 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.ntriples.NTriplesParserFactory 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.rdfxml.RDFXMLParserFactory 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.trig.TriGParserFactory 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.trix.TriXParserFactory 05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init> INFO: Registered service class org.openrdf.rio.turtle.TurtleParserFactory Thank you very much in advance!!! ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-05-05 06:06:39
|
Good morning,
I get "protocol error: , Invalid document end at col 16. Check the back end log for OutOfMemoryErrors" after installing postgresql and pgadmin.
the back end log:
05.05.2009 07:53:35 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\PHP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI.ACE\Core-Static
05.05.2009 07:53:35 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
05.05.2009 07:53:35 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 275 ms
05.05.2009 07:53:35 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
05.05.2009 07:53:35 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
05.05.2009 07:53:35 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive JavaBridge.war
05.05.2009 07:53:40 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Development\apache-tomcat-6.0.18\webapps\Ordner\WEB-INF\lib\WebProjekt2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
05.05.2009 07:53:42 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
05.05.2009 07:53:42 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
05.05.2009 07:53:42 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/48 config=null
05.05.2009 07:53:42 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5167 ms
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.n3.N3ParserFactory
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.ntriples.NTriplesParserFactory
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.rdfxml.RDFXMLParserFactory
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.trig.TriGParserFactory
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.trix.TriXParserFactory
05.05.2009 07:54:37 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.turtle.TurtleParserFactory
05.05.2009 07:56:59 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8081
05.05.2009 07:57:00 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
05.05.2009 07:57:00 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8081
05.05.2009 07:59:07 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\PHP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\ATI Technologies\ATI.ACE\Core-Static
05.05.2009 07:59:07 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
05.05.2009 07:59:07 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 253 ms
05.05.2009 07:59:07 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
05.05.2009 07:59:07 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
05.05.2009 07:59:07 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive JavaBridge.war
05.05.2009 07:59:09 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Development\apache-tomcat-6.0.18\webapps\Ordner\WEB-INF\lib\WebProjekt2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
05.05.2009 07:59:10 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
05.05.2009 07:59:10 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
05.05.2009 07:59:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
05.05.2009 07:59:10 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1225 ms
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.n3.N3ParserFactory
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.ntriples.NTriplesParserFactory
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.rdfxml.RDFXMLParserFactory
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.trig.TriGParserFactory
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.trix.TriXParserFactory
05.05.2009 07:59:56 info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.rio.turtle.TurtleParserFactory
Thank you very much in advance!!!
|
|
From: <php...@li...> - 2009-05-04 11:32:03
|
Only to be sure, is it ok that I try to invoke the only one method (there are other in the java code)? Because I can't find any mistakes, but I get "SuchMethodNotFoundException"?
|
|
From: <php...@li...> - 2009-05-04 09:55:28
|
try to put it in /WEB-INF/lib
in META-INF only meta-information is stored...
On Mon, May 4, 2009 at 11:44 AM, <
php...@li...> wrote:
>
>
> In the folder Ordner I have the php-file, in META-INF/lib I have the
> jar"WebProjekt".
> <?php
> require_once("http://localhost:8081/Ordner/java/Java.inc");
>
> $System = java("java.lang.System");
>
> $myObj = new java('WebProjekt');
> echo java_inspect('web.FacettenBrowser');
> echo $myObj->getHalloWelt();
>
>
> ?>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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-05-04 09:44:10
|
In the folder Ordner I have the php-file, in META-INF/lib I have the jar"WebProjekt".
<?php
require_once("http://localhost:8081/Ordner/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java('WebProjekt');
echo java_inspect('web.FacettenBrowser');
echo $myObj->getHalloWelt();
?>
|
|
From: <php...@li...> - 2009-05-04 08:14:02
|
have you put the required jar file into the /WEB-INF/lib folder of your web-project ? so it looks like web-project.jar + | someJSP.jsp |- /WEB-INF/web.xml |- /WEB-INF/lib/someOtherJar.jar |- /WEB-INF/classes/org/somedomain/somepackage/SomeClass.class or how does your project look like? and what code do you use that throws the exception. please always provide this information... your exception is specific to your project and if we do not know how your project looks like and which code creates the problem, we cannot help you. 2009/5/4 <php...@li...> > > > Using " java_inspect" I get: > root cause java.lang.RuntimeException: PHP Fatal error: > Uncaught [[o:Exception]:"java.lang.Exception: > CreateInstance failed: new WebProjekt. > Cause: java.lang.ClassNotFoundException: WebProjekt VM: 1.6.0_10@ > http://java.sun.com/" at: > > > > > > > ------------------------------------------------------------------------------ > 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-05-04 07:42:49
|
Using " java_inspect" I get: root cause java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new WebProjekt. Cause: java.lang.ClassNotFoundException: WebProjekt VM: 1.6.0_10@http://java.sun.com/" at: |
|
From: <php...@li...> - 2009-05-04 07:18:25
|
1. You can query the available methods using echo java_inspect($objOrClass)
2. The java_require() creates a new url class loader which can load any .jar
file or directory containing jar files, provided they are accessible and
valid.
3. Classes must be loaded by one and only one class loader. Adding the same
location or copying classes to another location (moving them is okay) will
lead to a disaster. Blame sun for this.
Regards,
Jost Boekemeier
Mai 4, 2009 9:00 vorm. schrieb am <
php...@li...>:
Hello,
I get the whole time "NoSuchMethodException", but if I add
"java_require(".....")" to the php code I get another message:
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
WebProjekt, reason: WebProjekt (Das System kann die angegebene Datei nicht
finden) VM: 1.6.0_10@http://java.sun.com/"Why is the jar(file) not found?
Many thanks in Advance!
------------------------------------------------------------------------------
Register No...
|
|
From: <php...@li...> - 2009-05-04 07:00:21
|
Hello,
I get the whole time "NoSuchMethodException", but if I add "java_require(".....")" to the php code I get another message:
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
WebProjekt, reason: WebProjekt (Das System kann die angegebene Datei nicht finden) VM: 1.6.0_10@http://java.sun.com/"Why is the jar(file) not found?
Many thanks in Advance!
|
|
From: <php...@li...> - 2009-05-01 11:58:01
|
just guessing... have you initialized documents first?
so that getDocuments doesn't return null?
2009/4/30 <php...@li...>
> Well,
> ...............................................(code)
> .................................................
> public Collection<String> getDocuments(){ // one part of the code
> return documents;
> }
> /**
> * Returns the categories if builded.
> * @return
> */
> public ArrayList<ArrayList<String>> getKategorien(){
> return categories;
>
> }
> public String getNewNumber(){
> return "drei";
> }
> }
>
> 2. php:
> <?php
>
> require_once("http://localhost:8080/Bridge/java/Java.inc");
>
> $System = java("java.lang.System");
>
> $Ob = new java("com.SommerHaus");
>
> echo $Ob->getNewNumber();
>
> ?>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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-05-01 07:35:35
|
Well, your code will work, provided that this is really the code that your
computer sees, and not some old version of it.
Apr 30, 2009 4:15 nachm. schrieb am <
php...@li...>:
Well,
...............................................(code)
.................................................
public Collection<String> getDocuments(){ // one part of the code
return documents;
}
/**
* Returns the categories if builded.
* @return
*/
public ArrayList<ArrayList<String>> getKategorien(){
return categories;
}
public String getNewNumber(){
return "drei";
}
}
2. php:
<?php
require_once("http://localhost:8080/Bridge/java/Java.inc");
$System = java("java.lang.System");
$Ob = new java("com.SommerHaus");
echo $Ob->getNewNumber();
?>
------------------------------------------------------------------------------
Register N...
|
|
From: <php...@li...> - 2009-04-30 17:53:05
|
Okay, thanks, I have the file now. Looks okay.
Unfortunately I dont have the time to follow your project at the moment, but
I can set up a debian server next week to help you to test your code.
Regards,
Jost Boekemeier
Apr 30, 2009 7:36 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<200...@te...> <
3af...@ma...>
Message-ID: <d9c817cbb46a25537554979e67e27623@localhost>
X-Sender: and...@te... Received: from 161.148.54.70
[161.148.54.70] with HTTP/1.1 (...
2009 06:37:39 -0300
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit
Hello, Jost
Maybe the attachment was stripped by sf.net server.
The file is at cvs repository now, at HEAD, at /server directory (is it the
best location?).
I am not a security expert, so I left the file as it is now at cvs (enough
for
development) and will study SELinux apps debian packaging procedures next
week.
Good luck!
Andre Felipe
On Thu, 30 Apr 2009 19:16:18 +0200,
php...@li... wrote: > Hi Andre, >
> I am moving to Hamburg , so I probably won't have much time until next >
week. > > The attachm...
------------------------------------------------------------------------------
Register Now & Save f...
|
|
From: <php...@li...> - 2009-04-30 17:35:54
|
<3af...@ma...> <200...@te...> <3af...@ma...> Message-ID: <d9c817cbb46a25537554979e67e27623@localhost> X-Sender: and...@te... Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Thu, 30 Apr 2009 06:37:39 -0300 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, Jost Maybe the attachment was stripped by sf.net server. The file is at cvs repository now, at HEAD, at /server directory (is it the best location?). I am not a security expert, so I left the file as it is now at cvs (enough for development) and will study SELinux apps debian packaging procedures next week. Good luck! Andre Felipe On Thu, 30 Apr 2009 19:16:18 +0200, php...@li... wrote: > Hi Andre, > > I am moving to Hamburg , so I probably won't have much time until next > week. > > The attachment didn't come through, btw. My telefone cannot decode base64 > attachments, yet. I assume that you have added some rules to allow php to > execute scripts. > > But I am not yet convinced that a strict java policy is worth the trouble. > The biggest security hole is php itself, not some missing java policy. > > Regards, > Jost Boekemeier |
|
From: <php...@li...> - 2009-04-30 17:30:02
|
Hello,
I tested in Debian Lenny with an apache2(with mod_jk)+tomcat5.5,
configuring
/etc/php5/apache2/php.ini for
allow_url_include = On
(dangerous, only for development environment)
and using a test.php code from the FAQ.html code at apache2 doc root:
<?php
require_once("http://localhost:8180/JavaBridge/java/Java.inc");
echo java("java.lang.System")->getProperties();
?>
Use your own tomcat configured port number.
It worked as expected using the 5.4.4.2-1 j2ee deb package built from cvs,
placing the new file
60JavaBridge.policy
by hand where and as previously explained.
The 5.4.4.2-1 j2ee debian package is unfinished and only available at cvs
repository
and will not be released for binary download.
Build it from cvs following the README.Debian instructions.
The 60JavaBridge.policy file is available only at the repository HEAD by
now.
Please, test them and send suggestions and improvements to the list.
Regards.
Andre Felipe Machado
--
http://www.techforce.com.br
A Debian user never dies. Issues a last command:
#shutdown -h now
On Thu, 30 Apr 2009 05:00:26 -0300,
php...@li... wrote:
>
> On Thu, 30 Apr 2009 11:27:39 +0200,
>
> php...@li... wrote:
>
>> Hello,
>
>>
>
>> Building from repo solved the problem, calling from tomcat, and linking
>
>> JavaBridge to the webroot, it works.
>
>>
>
>> But the page is'nt found the java_set_library_path php function.
>
>> I have a webpage with an old apache-php-javabridge engine (with
>
>> php-java-bridge 4.0.8). When I started the apache, it starts a java
>
>> process
>
>> listenin on port 9267.
>
>> I want to migrate it to Debian lenny. With the new version of
>
>> php-java-brigde is it possible?
>
>>
>
>> (I think, the java.so starts this process, and it would be better, if I
>
>> can
>
>> leave the tomcat...)
>
>>
>
>> Thanks:
>
>>
>
>> --
>
>> dv,
>
>> Ricsi
|
|
From: <php...@li...> - 2009-04-30 17:16:27
|
Hi Andre,
I am moving to Hamburg , so I probably won't have much time until next week.
The attachment didn't come through, btw. My telefone cannot decode base64
attachments, yet. I assume that you have added some rules to allow php to
execute scripts.
But I am not yet convinced that a strict java policy is worth the trouble.
The biggest security hole is php itself, not some missing java policy.
Regards,
Jost Boekemeier
Apr 30, 2009 5:22 nachm. schrieb am <
php...@li...>:
<3af...@ma...>
<200...@te...> <
3af...@ma...>
Message-ID: <c9c697971c219098321333260d0499fd@localhost>
X-Sender: and...@te...
Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Thu, 30
Apr
2009 04:23:36 -0300
User-Agent: RoundCube Webmail/0.1
Content-Type: multipart/mixed;
boundary="=_dc5421aa863da9665eab1d712707c42b"
--=_dc5421aa863da9665eab1d712707c42b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Hello, Jost
I tested today against Tomcat 5.5 with the attached
/etc/tomcat5.5/policy.d/60JavaBridge.policy
with ideas taken from project's /server/javabridge.policy and
it worked with auto-deploy of JavaBridge.war, using
bridge deb package compiled from cvs.
The file is not at the repository, yet (will include the gpl
header at least).
Unfortunately I will likely not have time to test against
Debian Tomcat 6.x until next week.
The debian package at cvs is prepared to work with tomcat 5.5,
so I expect some effort ahead to debug this.
A regular debian package installing files at tomcat system lib dir
should be avoided whenever possible.
As it is working at the debian tomcat5.5 with auto-deploying, I will
try to test with debian tomcat 6 and get it working in similar way.
I am not a security expert, so if the tomcat security is not enough,
will have to package the javabridge selinux configurations.
I guess there is a debian way to package these configs too.
Regards.
Andre Felipe Machado
http://www.techforce.com.br
On Thu, 30 Apr 2009 08:28:12 +0200,
php...@li... wrote:
> 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
--=_dc5421aa863da9665eab1d712707c42b
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream; name="60JavaBridge.policy";
charset="UTF-8"
Content-Disposition: attachment; filename="60JavaBridge.policy"
IyBDb3B5cmlnaHQgKEMpIDIwMDkgIEFuZHJlIEZlbGlwZSBNYWNoYWRvIDxhbmRyZW1hY2hhZG9A
dGVjaGZvcmNlLmNvbS5icj4KIyBhbmQgcGhwLWphdmEtYnJpZGdlIHByb2plY3QgaHR0cDovL3Bo
cC1qYXZhLWJyaWRnZS5zb3VyY2Vmb3JnZS5uZXQKCiMgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29m
dHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkKIyBpdCB1bmRlciB0
aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBi
eQojIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIGVpdGhlciB2ZXJzaW9uIDMgb2YgdGhl
IExpY2Vuc2UsIG9yCiMgYW55IGxhdGVyIHZlcnNpb24uCiMKIyBUaGlzIHByb2dyYW0gaXMgZGlz
dHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwKIyBidXQgV0lUSE9V
VCBBTlkgV0FSUkFOVFk7IHdpdGhvdX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WQgTGludXggcG9saWNpZXMuCgpncmFudCBjb2RlQmFzZSAiZmlsZToke2NhdGFs
aW5hLmJhc2V9L3dlYmFwcHMvSmF2YUJyaWRnZS8tIiB7IHBlcm1pc3Npb24gamF2YS5zZWN1cml0
eS5BbGxQZXJtaXNzaW9uOyB9OwoKLy8gRm9yIGRldmVsb3BtZW50IG9ubHksIHlvdSBtYXkgZXZl
biBjb21tZW50IG91dCB0aGUgZm9sbG93aW5nIGNvbmZpZ3VyYXRpb246CgpncmFudCB7CiAgcGVy
bWlzc2lvbiBqYXZhLmlvLkZpbGVQZXJtaXNzaW9uICIke3VzZXIuaG9tZX0key99LSIsICJyZWFk
LHdyaXRlLGRlbGV0ZSI7CiAgcGVybWlzc2lvbiBqYXZhLmlvLkZpbGVQZXJtaXNzaW9uICIke2ph
dmEuaW8udG1wZGlyfSR7L30tIiwgInJlYWQsd3JpdGUsZGVsZXRlIjsKICBwZXJtaXNzaW9uIGph
dmEuaW8uRmlsZVBlcm1pc3Npb24gIiR7amF2YS5ob21lfSR7L30tIiwgInJlYWQiOwogIHBlcm1p
c3Npb24gamF2YS51dGlsLlByb3BlcnR5UGVybWlzc2lvbiAiKiIsICJyZWFkIjsKICBwZXJtaXNz
aW9uIGphdmEubGFuZy5SdW50aW1lUGVybWlzc2lvbiAiZ2V0Q2xhc3NMb2FkZXIiOwogIHBlcm1p
c3Npb24gamF2YS5sYW5nLlJ1bnRpbWVQZXJtaXNzaW9uICJhY2Nlc3NDbGFzc0luUGFja2FnZS5z
dW4udG9vbHMuKiI7Cn07Cgo=
--=_dc5421aa863da9665eab1d712707c42b--
------------------------------------------------------------------------------
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-30 15:58:43
|
<609cdaeaac8c01f45596942c256c10fc@localhost> <E83...@of...> Message-ID: <ba4d7118fbb69120b69201f4c9ef3087@localhost> X-Sender: and...@te... Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Thu, 30 Apr 2009 05:00:26 -0300 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, I will test with an apache2+tomcat with mod_jk installation next week. Just commited an initial 60JavaBridge.policy to repository, but it is not packaged yet. It is working with a tomcat5.5 with auto-deply enabled. Should work with a manually deployed war file through the tomcat manager interface too. The php-java-bridge C implementation is deprecated, afaik. See the FAQ.html. Thanks. Andre Felipe -- http://www.techforce.com.br A Debian user never dies. Issues a last command: #shutdown -h now On Thu, 30 Apr 2009 11:27:39 +0200, php...@li... wrote: > Hello, > > Building from repo solved the problem, calling from tomcat, and linking > JavaBridge to the webroot, it works. > > But the page is'nt found the java_set_library_path php function. > I have a webpage with an old apache-php-javabridge engine (with > php-java-bridge 4.0.8). When I started the apache, it starts a java > process > listenin on port 9267. > I want to migrate it to Debian lenny. With the new version of > php-java-brigde is it possible? > > (I think, the java.so starts this process, and it would be better, if I > can > leave the tomcat...) > > Thanks: > > -- > Ãdv, > Ricsi |
|
From: <php...@li...> - 2009-04-30 15:21:53
|
<3af...@ma...> <200...@te...> <3af...@ma...> Message-ID: <c9c697971c219098321333260d0499fd@localhost> X-Sender: and...@te... Received: from 161.148.54.70 [161.148.54.70] with HTTP/1.1 (POST); Thu, 30 Apr 2009 04:23:36 -0300 User-Agent: RoundCube Webmail/0.1 Content-Type: multipart/mixed; boundary="=_dc5421aa863da9665eab1d712707c42b" --=_dc5421aa863da9665eab1d712707c42b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hello, Jost I tested today against Tomcat 5.5 with the attached /etc/tomcat5.5/policy.d/60JavaBridge.policy with ideas taken from project's /server/javabridge.policy and it worked with auto-deploy of JavaBridge.war, using bridge deb package compiled from cvs. The file is not at the repository, yet (will include the gpl header at least). Unfortunately I will likely not have time to test against Debian Tomcat 6.x until next week. The debian package at cvs is prepared to work with tomcat 5.5, so I expect some effort ahead to debug this. A regular debian package installing files at tomcat system lib dir should be avoided whenever possible. As it is working at the debian tomcat5.5 with auto-deploying, I will try to test with debian tomcat 6 and get it working in similar way. I am not a security expert, so if the tomcat security is not enough, will have to package the javabridge selinux configurations. I guess there is a debian way to package these configs too. Regards. Andre Felipe Machado http://www.techforce.com.br On Thu, 30 Apr 2009 08:28:12 +0200, php...@li... wrote: > 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 --=_dc5421aa863da9665eab1d712707c42b Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name="60JavaBridge.policy"; charset="UTF-8" Content-Disposition: attachment; filename="60JavaBridge.policy" IyBDb3B5cmlnaHQgKEMpIDIwMDkgIEFuZHJlIEZlbGlwZSBNYWNoYWRvIDxhbmRyZW1hY2hhZG9A dGVjaGZvcmNlLmNvbS5icj4KIyBhbmQgcGhwLWphdmEtYnJpZGdlIHByb2plY3QgaHR0cDovL3Bo cC1qYXZhLWJyaWRnZS5zb3VyY2Vmb3JnZS5uZ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vbiAiKiIsICJyZWFkIjsKICBwZXJtaXNz aW9uIGphdmEubGFuZy5SdW50aW1lUGVybWlzc2lvbiAiZ2V0Q2xhc3NMb2FkZXIiOwogIHBlcm1p c3Npb24gamF2YS5sYW5nLlJ1bnRpbWVQZXJtaXNzaW9uICJhY2Nlc3NDbGFzc0luUGFja2FnZS5z dW4udG9vbHMuKiI7Cn07Cgo= --=_dc5421aa863da9665eab1d712707c42b-- |
|
From: <php...@li...> - 2009-04-30 14:14:13
|
Well,
...............................................(code)
.................................................
public Collection<String> getDocuments(){ // one part of the code
return documents;
}
/**
* Returns the categories if builded.
* @return
*/
public ArrayList<ArrayList<String>> getKategorien(){
return categories;
}
public String getNewNumber(){
return "drei";
}
}
2. php:
<?php
require_once("http://localhost:8080/Bridge/java/Java.inc");
$System = java("java.lang.System");
$Ob = new java("com.SommerHaus");
echo $Ob->getNewNumber();
?>
|
|
From: <php...@li...> - 2009-04-30 13:54:33
|
you could start by showing os the php code you used and the method signature of the method you would like to invoke. ( e.g. public Integer getNewNumber() or maybe public int getNewNumber(String something), etc. ) 2009/4/30 <php...@li...> > > > > Hi, > the class"SommerHaus" contains many methods, I would like to call > getNewNumber: > java.lang.RuntimeException: PHP Fatal error: > Uncaught [[o:Exception]:"java.lang.Exception: > Invoke failed: [[o:SommerHaus]]->getNewNumber. > Cause: java.lang.NoSuchMethodException:getNewNumber > (). > Candidates: [] VM: 1.6.0_10@http://java.sun.com/" at: > > What can be done to find a solution for this problem? > > > > > > > > > ------------------------------------------------------------------------------ > 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-30 13:14:50
|
Hi, the class"SommerHaus" contains many methods, I would like to call getNewNumber: java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:SommerHaus]]->getNewNumber. Cause: java.lang.NoSuchMethodException:getNewNumber (). Candidates: [] VM: 1.6.0_10@http://java.sun.com/" at: What can be done to find a solution for this problem? |
|
From: <php...@li...> - 2009-04-30 09:27:45
|
Hello,
Building from repo solved the problem, calling from tomcat, and linking
JavaBridge to the webroot, it works.
But the page is'nt found the java_set_library_path php function.
I have a webpage with an old apache-php-javabridge engine (with
php-java-bridge 4.0.8). When I started the apache, it starts a java process
listenin on port 9267.
I want to migrate it to Debian lenny. With the new version of
php-java-brigde is it possible?
(I think, the java.so starts this process, and it would be better, if I can
leave the tomcat...)
Thanks:
--
Üdv,
Ricsi
> -----Original Message-----
> From: php...@li... [mailto:php-java-bridge-
> us...@li...]
> Sent: Wednesday, April 29, 2009 2:02 PM
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] Debian's security manager
>
>
> 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.
> >
>
>
>
> --------------------------------------------------------------------------
> ----
> 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-30 09:06:26
|
Please see our FAQ about NoClassDefFound errors. Since Java has no module
system, you must load all dependencies from exactly one loader.
Furthermore this is a java link-time issue, not a PHP issue, your php code
java("de.iph.foo.MeinFoo")->getNumber() has not been reached, as you should
see from the line number in your stack strace, if you print it.
Regards,
Jost Boekemeier
Apr 30, 2009 10:53 vorm. schrieb am <
php...@li...>:
Anyway I still get the same message:
root cause java.lang.RuntimeException: PHP Fatal error:
Uncaught [[o:Exception]:"java.lang.Exception:
CreateInstance failed: new com.fara.Web. Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: de/iph/foo/MeinFoo.
-- Unable to call constructor
------------------------------------------------------------------------------
Register No...
|
|
From: <php...@li...> - 2009-04-30 08:52:53
|
Anyway I still get the same message:
root cause java.lang.RuntimeException: PHP Fatal error:
Uncaught [[o:Exception]:"java.lang.Exception:
CreateInstance failed: new com.fara.Web. Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: de/iph/foo/MeinFoo.
-- Unable to call constructor
|
|
From: <php...@li...> - 2009-04-30 08:15:44
|
You mean how to invoke the procedure with the name
de.iph.foo.MeinFoo#getNumber?
With java("de.iph.foo")->getNumber(), as usual, see how you have accessed
the System struct.
Apr 30, 2009 9:54 vorm. schrieb am <
php...@li...>:
Good morning,
I have 2 Classes for example:
1.
package de.iph.foo;
public class MeinFoo {
public static int getNumber(){
return 42;
}
}
2.
package com.fara;
import de.iph.foo.MeinFoo;
public class Web {
public String HalloWelt(){
return "Hallo Welt";
}
MeinFoo mf = new MeinFoo();
int n = mf.getNumber();
}
How can I solve the Problem with the constructor in php-java-bridge? (can
not be called)
<?php
require_once("http://localhost:808o/World/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java("com.fara.Web");
echo $myObj->HalloWelt();
//echo $myObj->getNumber(); ???
?>
Thanks i n 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-30 07:53:34
|
Good morning,
I have 2 Classes for example:
1.
package de.iph.foo;
public class MeinFoo {
public static int getNumber(){
return 42;
}
}
2.
package com.fara;
import de.iph.foo.MeinFoo;
public class Web {
public String HalloWelt(){
return "Hallo Welt";
}
MeinFoo mf = new MeinFoo();
int n = mf.getNumber();
}
How can I solve the Problem with the constructor in php-java-bridge? (can not be called)
<?php
require_once("http://localhost:808o/World/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java("com.fara.Web");
echo $myObj->HalloWelt();
//echo $myObj->getNumber(); ???
?>
Thanks i n advance!!!
|