|
From: <php...@li...> - 2010-03-29 01:06:32
|
Hello.
Recently I installed JAVABRIDGE without many problem. In this moment is 100%
functionally.
I receive a jar file but I can't read it, and it's very important that I
can access it.
If you want that I send you the jar file, please write me and I'll send it
you.
This is a sample to use it?
prepago.Inquire_Provider_Balance();
My PHP code is:
<?php
require_once("Java.inc");
define ("JAVA_DEBUG", true);
java_autoload("INPREPAGO_CLIENT.jar");
$prepago = new java("prepago");
?>
The result is:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance
failed: new prepago.
Thank you for any help that you can give me.
J
|
|
From: <php...@li...> - 2010-03-29 15:56:27
|
Hi Jost.
First, thank you for your answer.
Let me tell you, that I'm a PHP programmer, and then I don't understand
very much the java concepts.
Let me give you more information about my problem:
. I copied the jar file in javabridge WEB-INF/lib folder.
. I have another jar that I can use in the examples: exceltest.jar
. The information that I received from the jar creator is that the
"prepago" is a class, but I don't know how I can use it.
If you need more information or the jar file, please tell me.
Thank you again. J
PD: I'm not receiving the post answer in my email. Is it normal?
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: domingo, 28 de marzo de 2010 19:06
Para: 'php...@li...'
Asunto: RE: USING JAR
Hello.
Recently I installed JAVABRIDGE without many problem. In this moment is 100%
functionally.
I receive a jar file but I can't read it, and it's very important that I
can access it.
If you want that I send you the jar file, please write me and I'll send it
you.
This is a sample to use it?
prepago.Inquire_Provider_Balance();
My PHP code is:
<?php
require_once("Java.inc");
define ("JAVA_DEBUG", true);
java_autoload("INPREPAGO_CLIENT.jar");
$prepago = new java("prepago");
?>
The result is:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance
failed: new prepago.
Thank you for any help that you can give me.
J
|
|
From: <php...@li...> - 2010-03-29 16:06:38
|
Hi, > I copied the jar file in javabridge WEB-INF/lib folder. you need to copy it to your web application WEB-INF/lib directory (your JavaBridge.war zip file). If you copy it into some file-system directory, tomcat doesn't know that your web application has been updated. > The information that I received from the jar creator is that the > "prepago" is a class, but I don't know how I can use it. classes should go to the web application WEB-INF/classes directory. Please see this video for details: http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif Regards, Jost Bökemeier On 3/29/10, php...@li... <php...@li...> wrote: > Hi Jost. > > > > First, thank you for your answer. > > > > Let me tell you, that I'm a PHP programmer, and then I don't understand > very much the java concepts. > > > > Let me give you more information about my problem: > > . I copied the jar file in javabridge WEB-INF/lib folder. > > . I have another jar that I can use in the examples: exceltest.jar > > . The information that I received from the jar creator is that the > "prepago" is a class, but I don't know how I can use it. > > > > If you need more information or the jar file, please tell me. > > > > Thank you again. J > > > > PD: I'm not receiving the post answer in my email. Is it normal? > > > > > > De: Berlington Barnett [mailto:bba...@gm...] > Enviado el: domingo, 28 de marzo de 2010 19:06 > Para: 'php...@li...' > Asunto: RE: USING JAR > > > > Hello. > > > > Recently I installed JAVABRIDGE without many problem. In this moment is 100% > functionally. > > > > I receive a jar file but I can't read it, and it's very important that I > can access it. > > > > If you want that I send you the jar file, please write me and I'll send it > you. > > > > This is a sample to use it? > > prepago.Inquire_Provider_Balance(); > > > > My PHP code is: > > <?php > > require_once("Java.inc"); > > define ("JAVA_DEBUG", true); > > java_autoload("INPREPAGO_CLIENT.jar"); > > $prepago = new java("prepago"); > > ?> > > > > The result is: > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance > failed: new prepago. > > > > Thank you for any help that you can give me. > > > > J > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2010-03-29 18:18:05
|
I saw the video and reconfigured my tomcat.
But the problem continue.
I put the jar file in the WEB-INF/lib folder inside the war file.
This is the code that Im using:
<?php
// Elimina los mensajes de error / Warning
ini_set('display_errors', 1);
require_once("java/Java.inc");
define ("JAVA_DEBUG", true);
try {
//java_require("INPREPAGO_CLIENT.jar");
java_autoload("INPREPAGO_CLIENT.jar");
} catch (JavaException $e) {
java_autoload("INPREPAGO_CLIENT.jar");
}
$prepago = new java("prepago");
echo '<h1>HOLA</h1><br>';
?>
Its is published in : http://186.4.24.228:8080/JavaBridge/ is the last one
PREPAGO
> I copied the jar file in javabridge WEB-INF/lib folder.
you need to copy it to your web application WEB-INF/lib directory
(your JavaBridge.war zip file). If you copy it into some file-system
directory, tomcat doesn't know that your web application has been
updated.
> The information that I received from the jar creator is that the
> "prepago" is a class, but I don't know how I can use it.
classes should go to the web application WEB-INF/classes directory.
Please see this video for details:
http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.g
if
Regards,
Jost Bökemeier
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: lunes, 29 de marzo de 2010 9:56
Para: 'php...@li...'
Asunto: RE: USING JAR
Hi Jost.
First, thank you for your answer.
Let me tell you, that Im a PHP programmer, and then I dont understand
very much the java concepts.
Let me give you more information about my problem:
· I copied the jar file in javabridge WEB-INF/lib folder.
· I have another jar that I can use in the examples: exceltest.jar
· The information that I received from the jar creator is that the
prepago is a class, but I dont know how I can use it.
If you need more information or the jar file, please tell me.
Thank you again. J
PD: Im not receiving the post answer in my email. Is it normal?
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: domingo, 28 de marzo de 2010 19:06
Para: 'php...@li...'
Asunto: RE: USING JAR
Hello.
Recently I installed JAVABRIDGE without many problem. In this moment is 100%
functionally.
I receive a jar file but I cant read it, and its very important that I
can access it.
If you want that I send you the jar file, please write me and Ill send it
you.
This is a sample to use it?
prepago.Inquire_Provider_Balance();
My PHP code is:
<?php
require_once("Java.inc");
define ("JAVA_DEBUG", true);
java_autoload("INPREPAGO_CLIENT.jar");
$prepago = new java("prepago");
?>
The result is:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance
failed: new prepago.
Thank you for any help that you can give me.
J
|
|
From: <php...@li...> - 2010-03-29 20:51:41
|
Hi,
> <?php
>
> try {
> $prepago = new java("prepago");
> } catch (JavaException $e) {
> echo $e;
> }
> ?>
which error message do you see when you run the above code?
Does your class have a public constructor? If you want to access
procedures of constants from your class, use the java function. If you
want to access class features, use the constructor.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-04-03 15:17:43
|
Hi Jost.
which error message do you see when you run the above code?
Using this code I receive the follow message:
<?php
// Elimina los mensajes de error / Warning
ini_set('display_errors', 1);
require_once("java/Java.inc");
define ("JAVA_DEBUG", true);
try {
//java_require("INPREPAGO_CLIENT.jar");
java_autoload("INPREPAGO_CLIENT.jar");
} catch (JavaException $e) {
java_autoload("INPREPAGO_CLIENT.jar");
}
$prepago = new java("prepago");
echo '<h1>HOLA</h1><br>';
?>
Warning: Please use <a
href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee
hot deployment instead in C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc on line 68
Estado HTTP 500 -
_____
type Informe de Excepción
mensaje
descripción El servidor encontró un error interno () que hizo que no pudiera
rellenar este requerimiento.
excepción
javax.servlet.ServletException: java.lang.RuntimeException: PHP Warning:
Please use <a
href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee
hot deployment</a> instead in C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc on line 68
PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception:
CreateInstance failed: new prepago. Cause: java.lang.ClassNotFoundException:
prepago VM: 1.6.0_18@http://java.sun.com/" at:
#-10
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1516)
#-9
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1361)
#-8 java.lang.Class.forName0(Native Method)
#-7 java.lang.Class.forName(Unknown Source)
#-6 php.java.bridge.Util.classForName(Util.java:1536)
#-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:391)
#-4 php.java.bridge.Request.handleRequest(Request.java:453)
#-3 php.java.bridge.Request.handleRequests(Request.java:491)
#-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:140)
#-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
#0 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(223):
java_ThrowExceptionProxyFactory->getProxy(1, NULL, 'T', false)
#1 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java in
C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc on
line 186
php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:971)
php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:993)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
causa raíz
java.lang.RuntimeException: PHP Warning: Please use <a
href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee
hot deployment</a> instead in C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc on line 68
PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception:
CreateInstance failed: new prepago. Cause: java.lang.ClassNotFoundException:
prepago VM: 1.6.0_18@http://java.sun.com/" at:
#-10
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1516)
#-9
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1361)
#-8 java.lang.Class.forName0(Native Method)
#-7 java.lang.Class.forName(Unknown Source)
#-6 php.java.bridge.Util.classForName(Util.java:1536)
#-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:391)
#-4 php.java.bridge.Request.handleRequest(Request.java:453)
#-3 php.java.bridge.Request.handleRequests(Request.java:491)
#-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:140)
#-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
#0 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(223):
java_ThrowExceptionProxyFactory->getProxy(1, NULL, 'T', false)
#1 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java in
C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc on
line 186
php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:869)
php.java.servlet.fastcgi.FastCGIServlet.doExecute(FastCGIServlet.java:884)
php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:900)
php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:946)
php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:993)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
nota La traza completa de la causa de este error se encuentra en los
archivos de diario de Apache Tomcat/6.0.26.
_____
Apache Tomcat/6.0.26
Using this code I receive this message:
Does your class have a public constructor? If you want to access
procedures of constants from your class, use the java function. If you
want to access class features, use the constructor.
The problem with the jar file is that I dont know how to open it, because I
receive as part of integration project.
From: <php-java-bridge-users@li...> - 2010-03-29 20:51
Hi,
> <?php
>
> try {
> $prepago = new java("prepago");
> } catch (JavaException $e) {
> echo $e;
> }
> ?>
which error message do you see when you run the above code?
Does your class have a public constructor? If you want to access
procedures of constants from your class, use the java function. If you
want to access class features, use the constructor.
Regards,
Jost Bökemeier
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: lunes, 29 de marzo de 2010 12:18
Para: 'Berlington Barnett'; 'php...@li...'
Asunto: RE: USING JAR
I saw the video and reconfigured my tomcat.
But the problem continue.
I put the jar file in the WEB-INF/lib folder inside the war file.
This is the code that Im using:
<?php
// Elimina los mensajes de error / Warning
ini_set('display_errors', 1);
require_once("java/Java.inc");
define ("JAVA_DEBUG", true);
try {
//java_require("INPREPAGO_CLIENT.jar");
java_autoload("INPREPAGO_CLIENT.jar");
} catch (JavaException $e) {
java_autoload("INPREPAGO_CLIENT.jar");
}
$prepago = new java("prepago");
echo '<h1>HOLA</h1><br>';
?>
Its is published in : http://186.4.24.228:8080/JavaBridge/ is the last one
PREPAGO
> I copied the jar file in javabridge WEB-INF/lib folder.
you need to copy it to your web application WEB-INF/lib directory
(your JavaBridge.war zip file). If you copy it into some file-system
directory, tomcat doesn't know that your web application has been
updated.
> The information that I received from the jar creator is that the
> "prepago" is a class, but I don't know how I can use it.
classes should go to the web application WEB-INF/classes directory.
Please see this video for details:
http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.g
if
Regards,
Jost Bökemeier
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: lunes, 29 de marzo de 2010 9:56
Para: 'php...@li...'
Asunto: RE: USING JAR
Hi Jost.
First, thank you for your answer.
Let me tell you, that Im a PHP programmer, and then I dont understand
very much the java concepts.
Let me give you more information about my problem:
· I copied the jar file in javabridge WEB-INF/lib folder.
· I have another jar that I can use in the examples: exceltest.jar
· The information that I received from the jar creator is that the
prepago is a class, but I dont know how I can use it.
If you need more information or the jar file, please tell me.
Thank you again. J
PD: Im not receiving the post answer in my email. Is it normal?
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: domingo, 28 de marzo de 2010 19:06
Para: 'php...@li...'
Asunto: RE: USING JAR
Hello.
Recently I installed JAVABRIDGE without many problem. In this moment is 100%
functionally.
I receive a jar file but I cant read it, and its very important that I
can access it.
If you want that I send you the jar file, please write me and Ill send it
you.
This is a sample to use it?
prepago.Inquire_Provider_Balance();
My PHP code is:
<?php
require_once("Java.inc");
define ("JAVA_DEBUG", true);
java_autoload("INPREPAGO_CLIENT.jar");
$prepago = new java("prepago");
?>
The result is:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance
failed: new prepago.
Thank you for any help that you can give me.
J
|
|
From: <php...@li...> - 2010-04-04 08:43:31
|
Hi,
> PHP Fatal error: Uncaught [...]
I was asking for the result of this code:
try {
$prepago = new java("prepago");
} catch (Exception $e) {
echo $e;
}
Anyway, the error message contains enough information this time.
> [[o:Exception]:"java.lang.Exception: CreateInstance failed: new
prepago. Cause: java.lang.ClassNotFoundException: prepago VM:
1.6.0_18@http://java.sun.com/" [...]
Please see our FAQ entry "Why do I get a ClassNotFoundException?".
> The problem with the jar file is that I dont know how to open it,
You can open java archives with "winzip" on Windows. On Linux or Solaris
you can right-click on the jar and select "Open with ArchiveManager ..."
If you mean that you don't know how to use it, well, please see the API
documentation which you should have received with the library.
Assuming your class name is "foo.bar.baz.Prepago" and it contains a
public method called "something", you can call the method with:
$p = new java("foo.bar.baz.Prepago");
$p->something();
But I am sure you already know this, if you have read the PHP/Java Bridge API documentation.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-04-04 15:54:01
|
Hi Jost. Following your instructions this is the result: [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. Cause: java.lang.ClassNotFoundException: prepago VM: 1.6.0_18@http://java.sun.com/" at: #-10 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1516) #-9 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1361) #-8 java.lang.Class.forName0(Native Method) #-7 java.lang.Class.forName(Unknown Source) #-6 php.java.bridge.Util.classForName(Util.java:1536) #-5 php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:391) #-4 php.java.bridge.Request.handleRequest(Request.java:453) #-3 php.java.bridge.Request.handleRequests(Request.java:491) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:140) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(223): java_ThrowExceptionProxyFactory->getProxy(1, NULL, 'T', false) #1 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(349): java_Arg->getResult(false) #2 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(352): java_Client->getWrappedResult(false) #3 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(522): java_Client->getInternalResult() #4 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(1881): java_Client->createObject('prepago', Array) #5 C:\Apache Software Foundation\Tomcat 6.0\webapps\JavaBridge\prepagoice.php(24): Java->Java('prepago') #6 {main}] If you need the jar file, please give an email to send it you. Thank you very much for all you help Regards J Hi, > PHP Fatal error: Uncaught [...] I was asking for the result of this code: try { $prepago = new java("prepago"); } catch (Exception $e) { echo $e; } Anyway, the error message contains enough information this time. > [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. Cause: java.lang.ClassNotFoundException: prepago VM: 1.6.0_18@ href="http://java.sun.com/" target="_new">http://java.sun.com/" [...] Please see our FAQ entry "Why do I get a ClassNotFoundException?". > The problem with the jar file is that I dont know how to open it, You can open java archives with "winzip" on Windows. On Linux or Solaris you can right-click on the jar and select "Open with ArchiveManager ..." If you mean that you don't know how to use it, well, please see the API documentation which you should have received with the library. Assuming your class name is "foo.bar.baz.Prepago" and it contains a public method called "something", you can call the method with: $p = new java("foo.bar.baz.Prepago"); $p->something(); But I am sure you already know this, if you have read the PHP/Java Bridge API documentation. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-04-05 18:33:30
|
Hi Jost.
Following your instructions this is the result of
try {
$prepago = new java("prepago");
} catch (Exception $e) {
echo $e;
}
IS:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------------
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago.
Cause: java.lang.ClassNotFoundException: prepago VM:
1.6.0_18@http://java.sun.com/" at: #-10
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1516) #-9
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1361) #-8 java.lang.Class.forName0(Native Method) #-7
java.lang.Class.forName(Unknown Source) #-6
php.java.bridge.Util.classForName(Util.java:1536) #-5
php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:391) #-4
php.java.bridge.Request.handleRequest(Request.java:453) #-3
php.java.bridge.Request.handleRequests(Request.java:491) #-2
php.java.bridge.http.ContextRunner.run(ContextRunner.java:140) #-1
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 C:\Apache
Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(223):
java_ThrowExceptionProxyFactory->getProxy(1, NULL, 'T', false) #1 C:\Apache
Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(349):
java_Arg->getResult(false) #2 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(352):
java_Client->getWrappedResult(false) #3 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(522): java_Client->getInternalResult()
#4 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(1881):
java_Client->createObject('prepago', Array) #5 C:\Apache Software
Foundation\Tomcat 6.0\webapps\JavaBridge\prepagoice.php(24):
Java->Java('prepago') #6 {main}]
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------------
If you need the jar file, please give an email to send it you.
Thank you very much for all you help
Regards J
Berlington Barnett
Hi,
> PHP Fatal error: Uncaught [...]
I was asking for the result of this code:
try {
$prepago = new java("prepago");
} catch (Exception $e) {
echo $e;
}
Anyway, the error message contains enough information this time.
> [[o:Exception]:"java.lang.Exception: CreateInstance failed: new
prepago. Cause: java.lang.ClassNotFoundException: prepago VM:
1.6.0_18@ href="http://java.sun.com/" target="_new">http://java.sun.com/"
[...]
Please see our FAQ entry "Why do I get a ClassNotFoundException?".
> The problem with the jar file is that I dont know how to open it,
You can open java archives with "winzip" on Windows. On Linux or Solaris
you can right-click on the jar and select "Open with ArchiveManager ..."
If you mean that you don't know how to use it, well, please see the API
documentation which you should have received with the library.
Assuming your class name is "foo.bar.baz.Prepago" and it contains a
public method called "something", you can call the method with:
$p = new java("foo.bar.baz.Prepago");
$p->something();
But I am sure you already know this, if you have read the PHP/Java Bridge
API documentation.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-04-09 16:04:56
|
Hi, > Following your instructions this is the result of > IS: > [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago. > Cause: java.lang.ClassNotFoundException: prepago please see our FAQ entry "Why do I get a ClassNotFoundException?" at: http://php-java-bridge.sourceforge.net/pjb/FAQ.html Documentation about Java jar files can be found at http://en.wikipedia.org/wiki/JAR_%28file_format%29 Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-04-12 15:25:50
|
Hi Jost.
Let me tell you that I resolved the problem creating a WS using directly
JAVA because I don´t know why Javabridge can not read the JAR file.
A JAVA programmer help me with this problem.
Thank very much for all your answers and your time.
Regards.
Date: Fri, 9 Apr 2010 18:04:48 +0200
From: php...@li...
Subject: Re: [Php-java-bridge-users] USING JAR
To: php...@li...
Message-ID:
<s2o...@ma...>
Content-Type: text/plain; charset=UTF-8
Hi,
> Following your instructions this is the result of
> IS:
> [[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago.
> Cause: java.lang.ClassNotFoundException: prepago
please see our FAQ entry "Why do I get a ClassNotFoundException?" at:
<http://php-java-bridge.sourceforge.net/pjb/FAQ.html>
http://php-java-bridge.sourceforge.net/pjb/FAQ.html
Documentation about Java jar files can be found at
<http://en.wikipedia.org/wiki/JAR_%28file_format%29>
http://en.wikipedia.org/wiki/JAR_%28file_format%29
Regards,
Jost B?kemeier
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: domingo, 04 de abril de 2010 9:54
Para: 'php...@li...'
Asunto: RE: USING JAR
Hi Jost.
Following your instructions this is the result:
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new prepago.
Cause: java.lang.ClassNotFoundException: prepago VM:
1.6.0_18@http://java.sun.com/" at: #-10
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1516) #-9
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1361) #-8 java.lang.Class.forName0(Native Method) #-7
java.lang.Class.forName(Unknown Source) #-6
php.java.bridge.Util.classForName(Util.java:1536) #-5
php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:391) #-4
php.java.bridge.Request.handleRequest(Request.java:453) #-3
php.java.bridge.Request.handleRequests(Request.java:491) #-2
php.java.bridge.http.ContextRunner.run(ContextRunner.java:140) #-1
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 C:\Apache
Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(223):
java_ThrowExceptionProxyFactory->getProxy(1, NULL, 'T', false) #1 C:\Apache
Software Foundation\Tomcat 6.0\webapps\JavaBridge\java\Java.inc(349):
java_Arg->getResult(false) #2 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(352):
java_Client->getWrappedResult(false) #3 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(522): java_Client->getInternalResult()
#4 C:\Apache Software Foundation\Tomcat
6.0\webapps\JavaBridge\java\Java.inc(1881):
java_Client->createObject('prepago', Array) #5 C:\Apache Software
Foundation\Tomcat 6.0\webapps\JavaBridge\prepagoice.php(24):
Java->Java('prepago') #6 {main}]
If you need the jar file, please give an email to send it you.
Thank you very much for all you help
Regards J
Hi,
> PHP Fatal error: Uncaught [...]
I was asking for the result of this code:
try {
$prepago = new java("prepago");
} catch (Exception $e) {
echo $e;
}
Anyway, the error message contains enough information this time.
> [[o:Exception]:"java.lang.Exception: CreateInstance failed: new
prepago. Cause: java.lang.ClassNotFoundException: prepago VM:
1.6.0_18@ href="http://java.sun.com/" target="_new">http://java.sun.com/"
[...]
Please see our FAQ entry "Why do I get a ClassNotFoundException?".
> The problem with the jar file is that I dont know how to open it,
You can open java archives with "winzip" on Windows. On Linux or Solaris
you can right-click on the jar and select "Open with ArchiveManager ..."
If you mean that you don't know how to use it, well, please see the API
documentation which you should have received with the library.
Assuming your class name is "foo.bar.baz.Prepago" and it contains a
public method called "something", you can call the method with:
$p = new java("foo.bar.baz.Prepago");
$p->something();
But I am sure you already know this, if you have read the PHP/Java Bridge
API documentation.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-04-12 16:10:24
|
Hi, > Let me tell you that I resolved the problem Great. > using directly > JAVA because I don´t know why Javabridge can not read the JAR file. The JavaBridge doesn't read or load anything. If your jar file can be accessed by Java, it can be accessed by PHP as well. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-03-29 15:29:27
|
Hi,
not sure what you're asking for.
> I receive a jar file but I can't read it, and it's very important that I
> can access it.
jar files are standard zip files. I don't know if it is possible to
repair a broken zip file.
> <?php
>
> require_once("Java.inc");
[...]
> $prepago = new java("prepago");
>
> ?>
The example might work, provided that the jar file is in the
WEB-INF/lib folder or in java.ext.dirs.
Please see our install instructions at
http://php-java-bridge.sourceforge.net/pjb/webapp.php and our FAQ
http://php-java-bridge.sourceforge.net/pjb/FAQ.html section "Class
loading questions".
Regards,
Jost Bökemeier
|