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...> - 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 15:21:33
|
Hi, > I think it should be easier to add PHP extensions to the PHP. > > In PHP/Java Bridge 5.1.2 you can add your libraries to > > WEB-INF/cgi/<os>-<architecture>/ext > > and your custom .ini files to > > WEB-INF/cgi/<os>-<architecture>/conf.d > > PHP libraries go to > > WEB-INF/pear this has been implemented in PHP/Java Bridge version 6.1.2. Please check the output from phpinfo() for details. >From the NEWS file: Version 6.1.2 * The "servlet engine" built into JavaBridge.jar now handles PHP/Java Bridge protocol requests as efficient as a real servlet engine back end; java -jar JavaBridge.jar SERVLET_LOCAL:8080 now uses HTTP/1.1 Transfer-Encoding: chunked. Example: telnet localhost 8080 PUT /JavaBridge/servlet.phpjavabridge HTTP/1.1 Host: localhost:8080 Transfer-Encoding: chunked 22 <H p="1" v="java.lang.String"></H> b <F p="E" /> 0 * It is now easy to use the bridge back-end in an existing servlet. Example code: public class MyServlet extends HttpServlet { ... public String hello() { return "hello from MyServlet"; } ... protected void doPut (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { IContextFactory ctx = new RemoteHttpServletContextFactory(this, getServletContext(), req, req, res); res.setHeader("X_JAVABRIDGE_CONTEXT", ctx.getId()); res.setHeader("Pragma", "no-cache"); res.setHeader("Cache-Control", "no-cache"); try { ctx.getBridge().handleRequests(req.getInputStream(), res.getOutputStream()); } finally { ctx.destroy(); } } } If MyServlet listens on localhost:8080/MyWebApp/MyServlet, PHP scripts can call it: <?php define("JAVA_HOSTS", "localhost:8080"); define("JAVA_SERVLET", "/MyWebApp/MyServlet"); require_once("java/Java.inc"); echo java_context()->getServlet()->hello(); ?> => http://downloads.sourceforge.net/project/php-java-bridge/Binary%20package/php-java-bridge_6.1.2-testing/php-java-bridge_6.1.2_documentation.zip?use_mirror=freefr Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-12 15:12:39
|
Hi, you can use the JSR 223 API to invoke the PHP web container methods from Java. >From a Java desktop application (JavaBridge.jar and php-script.jar in the classpath) you can use: ScriptEngineManager m = new ScriptEngineManager(); ScriptEngine e = m.getEngineByName("php-invocable"); e.eval(new URLReader(new URL("http://localhost:80/JavaProxy.php")); System.out.println(((Invocable)e).invoke("java_get_server_name", new Object[]{})); ... ((Closeable)e).close(); >From a Java web application (JavaBridge.jar and php-script.jar in the WEB-INF/lib, ContextLoaderListener declaration in the WEB-INF/web.xml) you can use: ScriptEngine e = EngineFactory.getInvocablePhpScriptEngine(this, application, request, response, new URI("http://127.0.0.1:80/JavaBridge/java/JavaProxy.php")); ((Invocable)e).invokeFunction("phpinfo", new Object[]{}); ... ((Closeable)e).close(); Please see the Java API documentation at http://php-java-bridge.sourceforge.net/pjb/server/documentation/API/index.html and the PHP method java_call_with_current_continuation () for details: http://php-java-bridge.sourceforge.net/pjb/docs/php-api/index.html Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-12 14:51:20
|
Hello everyone, I would like to help with a project I'm implementing at the college where I need to integrate java and php. The system consists of a form that is the php backend and java would be the frontend. Is it possible? Well after spending hours reading and rereading the information the site could not positively identified a clear way to do it. Ps.: Excuse the bad language translated. Thankfully, Olga _________________________________________________________________ O Internet Explorer 8 te dá dicas de como navegar mais seguro. Clique para ler todas. http://www.microsoft.com/brasil/windows/internet-explorer/?WT.mc_id=1500 |
From: <php...@li...> - 2010-04-10 07:08:59
|
Hi, I see that you use an old tomcat version. There's nothing wrong with it, the bridge works with all tomcat versions >= 5.0. But it may mean that you are not using the original tomcat from apache.org. In this case please contact your tomcat application vendor for support. On Sat, 2010-04-10 at 00:00 +0500, php...@li... wrote: > i cannot see http://localhost:8080/JavaBridge please check the tomcat logs/ directory for error messages. It should contain: INFO: Deploying web application archive JavaBridge.war org.apache.catalina.core.ApplicationContext log INFO: PhpJavaServlet: PHP/Java Bridge servlet /home/jostb/apache-tomcat-6.0.14/webapps/JavaBridge ready If it contains exceptions, please check if your tomcat installation can start any java web application. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-09 19:03:48
|
Dear Jost,,,,,,,,,,,,,,,,Hello,,,,,,,,,,,,,,i read out the manual and go through with initial steps of installing javabridge. here is list what i already have and what i have done so far. i have installed php 5 tomcat 5.5 apache 2.0 jdk 1.6 now i have test java -classpath JavaBridge.war TestInstallation Starting a simple servlet engine: [/usr/local/jdk1.6.0_17/jre/bin/java, -jar, /h ome/cpeasyapache/src/apache-tomcat-5.5.28/webapps/ext/JavaBridge.jar, SERVLET_LOCAL:8087] Apr 09 23:50:01 VMBridge INFO : VM : 1.6.0_17@http://java.sun.c om/ Apr 09 23:50:01 VMBridge INFO : VMBridge version : 5.4.3.1 Apr 09 23:50:01 VMBridge INFO : logFile : Apr 09 23:50:01 VMBridge INFO : default logLevel : 3 Apr 09 23:50:01 VMBridge INFO : socket : SERVLET_LOCAL:8087 Apr 09 23:50:01 VMBridge INFO : java.ext.dirs : /usr/local/jdk1.6.0_17/jre /lib/ext:/usr/java/packages/lib/ext Apr 09 23:50:01 VMBridge INFO : php.java.bridge.base: /root Apr 09 23:50:01 VMBridge INFO : thread pool size : 20 Apr 09 23:50:01 VMBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8087 Invoking php: [/usr/bin/php-cgi, -n, -d, allow_url_include=On, /home/cpeasyapach e/src/apache-tomcat-5.5.28/webapps/test.php] Now check the /home/cpeasyapache/src/apache-tomcat-5.5.28/webapps/RESULT.html. Read the INSTALL.J2EE and/or INSTALL.J2SE documents. this look fine and browsing on port 8080 http://domainname.com:8080 i can see tomcat welcome page. i copied JavaBridge.wat into tomcat auto deployed folder which i know is tomcat/webapps i cannot see http://localhost:8080/JavaBridge is working i cant browse it i m not sure why. what is missing regards Mirza Wasim Baig > To: php...@li... > Date: Sun, 4 Apr 2010 11:37:51 +0300 > From: php...@li... > Subject: Re: [Php-java-bridge-users] java bridge > > Hi, > > > i want to install java bridge what do i need now complete list please step by step > > you cannot install the PHP/Java Bridge. A "step-by-step" tutorial how to > install tomcat is here: > http://php-java-bridge.sourceforge.net/pjb/webapp.php > > > > also can u explain what are the last steps in instalaltion video file how to run m-x shell command in emacs > > The video has been contributed by a user. > > I think the "Meta-x shell" command isn't relevant. You can open a > windows shell with "cmd" or "command". On Linux/Solaris you click on > Applications->System Tools->Terminal. -- I am sure the emacs "operating > system" ..err.. "editor" has its own method to open a shell ("Meta" > is/was a key on a Digital PDP-11 keyboard, I don't know). > > > Regards, > Jost Bökemeier > > > > ------------------------------------------------------------------------------ > 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 _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 |
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-09 15:58:15
|
I think it should be easier to add PHP extensions to the PHP. In PHP/Java Bridge 5.1.2 you can add your libraries to WEB-INF/cgi/<os>-<architecture>/ext and your custom .ini files to WEB-INF/cgi/<os>-<architecture>/conf.d PHP libraries go to WEB-INF/pear Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-07 17:01:03
|
Hi, > i have successfully installed javaBridge, test.php is returning correctly, > > however when i modify cgi/php.ini, and add > > extension=php_mysql.dll > > i get > php.java.servlet.fastcgi.ConnectionException the ConnectionException means that your extension version has crashed the PHP. Unlike the Unix/Linux ELF format, Windows DLL's don't have a binary signature, so that a windows DLL which has been compiled against a different ABI version may crash an executable. You need to copy the correct DLL version to the PHP extension dir. > is there any documentation on how to add extensions? Please take a look at the phpinfo() output, see http://localhost:8080/JavaBridge/test.php PHP Version 5.3.1 Configure Command [...] Compiler MSVC6 (Visual C++ 6.0) Architecture x86 Server API CGI/FastCGI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\glassfishv3\glassfish\domains\domain1\applications\JavaBridge\WEB-INF\cgi\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed (none) PHP API 20090626 PHP Extension 20090626 Zend Extension 220090626 Zend Extension Build API220090626,TS,VC6 PHP Extension Build API20090626,TS,VC6 Debug Build no Thread Safety enabled extension_dir C:\glassfishv3\glassfish\domains\domain1\applications \JavaBridge\WEB-INF\cgi The important variables are the "PHP version", the "compiler", the "architecture", and whether or not "Thread Safety" is enabled. For example my JEE server is running PHP 5.3.1 for x86, compiled with VC6, TS enabled. So I have downloaded the PHP 5.3.1/VC 6/TS zip file and copied the php_mysql.dll and a php.ini to the WEB-INF/cgi directory from my JavaBridge.war, and re-deployed it. After that I could see the php_mysql.dll in the phpinfo() page and I was able to connect to a mysql database server. Please see the PHP documentation at php.net for details. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-07 00:30:50
|
i have successfully installed javaBridge, test.php is returning correctly, however when i modify cgi/php.ini, and add extension=php_mysql.dll i get php.java.servlet.fastcgi.ConnectionException is there any documentation on how to add extensions? mike |
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-05 05:26:31
|
Hi, > [...} so i had to stopped tomcat and uninstalled it if you cannot run Apache and Tomcat at the same time, please report this bug to your OS vendor or your service provider. If everything else fails, you may start a standalone listener with the command: java -jar JavaBridge.jar SERVLET_LOCAL:9080 3 jb.log & PHP example: <?php define ("JAVA_HOSTS", "127.0.0.1:9080"); require_once("java/Java.inc"); [...] ?> Please see our FAQ for details. But note that the standalone listener isn't very efficient. > easyapache ,i have cpanel Isn't it possible to install a standard tomcat and a standard apache download instead, so that these components do not conflict with each other? Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-05 00:17:17
|
@Jost: If I where you, I would start charging support hours for all those people that don't have a clue about servlets & java in general, don't take the time to read the available documentation and are always asking for "step-by-step" guides. I'm actually impressed, how you manage to stay calm with those people instead of just writing RTFM. @Mirza: Have you read through the documentation & tutorials provided? Have you read your email before sending it? Have you tried to make your email(s) understandable by writing short and precise sentences? In my opinion, it's actually quite impolite how you are asking for help and don't even take the time to format your mails, so that they are easier to understand. regards, dominik |
From: <php...@li...> - 2010-04-04 19:37:26
|
Hi Jost, Thanks for replying...........i somehow figured how to run sub shell in emacs editor i have another problem i followed that video sucessfully now, i followed every step seems very easy in video but when i implemented it in my centos server i got my webservices stopped fetching data from one site to another site in server soap extensions were fine so other extensions it just made problem in showing listings in hotels field in my websites so i had to stopped tomcat and uninstalled it and recompile php and apache with easyapache ,i have cpanel too,,,,,now everything is back to normal but i dont have tomcat running,,kindly give me step by step to run php java bridge with tomcat in centos server and how it would integrate after installation with apache server so i can access it.......any help regards Mirza Wasim Baig > To: php...@li... > Date: Sun, 4 Apr 2010 11:37:51 +0300 > From: php...@li... > Subject: Re: [Php-java-bridge-users] java bridge > > Hi, > > > i want to install java bridge what do i need now complete list please step by step > > you cannot install the PHP/Java Bridge. A "step-by-step" tutorial how to > install tomcat is here: > http://php-java-bridge.sourceforge.net/pjb/webapp.php > > > > also can u explain what are the last steps in instalaltion video file how to run m-x shell command in emacs > > The video has been contributed by a user. > > I think the "Meta-x shell" command isn't relevant. You can open a > windows shell with "cmd" or "command". On Linux/Solaris you click on > Applications->System Tools->Terminal. -- I am sure the emacs "operating > system" ..err.. "editor" has its own method to open a shell ("Meta" > is/was a key on a Digital PDP-11 keyboard, I don't know). > > > Regards, > Jost Bökemeier > > > > ------------------------------------------------------------------------------ > 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 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 |
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-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 08:43:19
|
Hi, > i want to install java bridge what do i need now complete list please step by step you cannot install the PHP/Java Bridge. A "step-by-step" tutorial how to install tomcat is here: http://php-java-bridge.sourceforge.net/pjb/webapp.php > also can u explain what are the last steps in instalaltion video file how to run m-x shell command in emacs The video has been contributed by a user. I think the "Meta-x shell" command isn't relevant. You can open a windows shell with "cmd" or "command". On Linux/Solaris you click on Applications->System Tools->Terminal. -- I am sure the emacs "operating system" ..err.. "editor" has its own method to open a shell ("Meta" is/was a key on a Digital PDP-11 keyboard, I don't know). 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-01 15:51:40
|
English version of the article: http://www.h-online.com/open/news/item/Spat-over-PHP-Suhosin-patch-943194.html http://www.h-online.com/newsticker/news/item/Fallout-from-the-OpenSSL-debacle-736175.html On 4/1/10, Jost Boekemeier <jos...@go...> wrote: > Hi Hameed, > >> I have just installed Ubuntu Linux and then php/java bridge in our new >> development server. > > please follow the install instructions at: > http://php-java-bridge.sourceforge.net/pjb/installation.php > > >> "FATAL: Undeclared >> java.lang.RuntimeException detected. java.lang.Exception: Invoke >> failed: [[c:System]]->getProperties. Cause: >> java.security.AccessControlException: access denied >> (java.util.PropertyPermission * read,write) VM: >> 1.6.0_0@http://java.sun.com/" at: > > This error message means that the Debian/Ubuntu devs have denied > access to System.getProperties(). > > Please see our FAQ entry "I want to use Tomcat's security manager, how > do I install the bridge?" at > http://php-java-bridge.sourceforge.net/pjb/FAQ.html > > >> Our previous development server was Windows 2003 where I did not get >> these >> errors. Also my experience with Linux us very less. > > You have probably picked the wrong Linux distribution. You won't get > such error messages in Red Hat Enterprise- or Fedora Linux. > > It is a good idea to avoid debian packages. Debian maintainers apply > patches without knowing what they do. The debian-patched tomcat runs > as user root, with dropped privileges, so that user.home is not > accessible. Other such examples are the debian PHP suoshin "patch" and > the debian OpenSSL "patch", see > http://www.heise.de/security/meldung/Querelen-um-PHP-Suhosin-Patch-942667.html > > > > Regards, > Jost Bökemeier > |
From: <php...@li...> - 2010-04-01 15:47:35
|
Hi Hameed, > I have just installed Ubuntu Linux and then php/java bridge in our new > development server. please follow the install instructions at: http://php-java-bridge.sourceforge.net/pjb/installation.php > "FATAL: Undeclared > java.lang.RuntimeException detected. java.lang.Exception: Invoke > failed: [[c:System]]->getProperties. Cause: > java.security.AccessControlException: access denied > (java.util.PropertyPermission * read,write) VM: > 1.6.0_0@http://java.sun.com/" at: This error message means that the Debian/Ubuntu devs have denied access to System.getProperties(). Please see our FAQ entry "I want to use Tomcat's security manager, how do I install the bridge?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html > Our previous development server was Windows 2003 where I did not get these > errors. Also my experience with Linux us very less. You have probably picked the wrong Linux distribution. You won't get such error messages in Red Hat Enterprise- or Fedora Linux. It is a good idea to avoid debian packages. Debian maintainers apply patches without knowing what they do. The debian-patched tomcat runs as user root, with dropped privileges, so that user.home is not accessible. Other such examples are the debian PHP suoshin "patch" and the debian OpenSSL "patch", see http://www.heise.de/security/meldung/Querelen-um-PHP-Suhosin-Patch-942667.html Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-01 06:40:04
|
Hi there, I have just installed Ubuntu Linux and then php/java bridge in our new development server. Here is a simple code. ========================================================== require_once("http://192.168.1.101:8080/JavaBridge/java/Java.inc"); $str = new java("java.lang.String", "hello world"); echo $str; echo java("java.lang.System")->getProperties(); ========================================================== The first echo line is working fine but the next one pop out AccessControlException error. Please see the output. ======================================================================================================================== hello world<br /> <b>Warning</b>: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: [[c:System]]->getProperties. Cause: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write) VM: 1.6.0_0@http://java.sun.com/" at: #-40 java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) #-39 java.security.AccessController.checkPermission(AccessController.java:553) #-[...] http://192.168.1.101:8080/JavaBridge/java/Java.inc(1063): java_Client->invokeMethod(2, 'getProperties', Array) #5 http://192.168.1.101:8080/JavaBridge/java/Java.inc(1108): java_JavaProxy->__call('getProperties', Array) #6 http://192.168.1.101:8080/JavaBridge/java/Java.inc(1199): java_AbstractJava->__call('getProperties', Array) #7 [internal function]: Java->__call('getProperties', Array) #8 /var/www/vhosts/solo/httpdocs/test.php(9): JavaClass->getProperties() #9 {main}] in <b>http://192.168.1.101:8080/JavaBridge/java/Java.inc</b> on line <b>121</b><br /> [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: [[c:System]]->getProperties. Cause: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write) VM: 1.6.0_0@http://java.sun.com/" at: #-40 java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) #-39 java.security.AccessController.checkPermission(AccessController.java:553) #-38 java.lang.SecurityManager.checkPermission(SecurityManager.java:549) #-37 java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1269) #-36 java.lang.System.getProperties(System.java:599) #-35 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-34 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) #-33 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) #-32 java.lang.reflect.Method.invoke(Method.java:616) #-31 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1049) #-30 php.java.bridge.Request.handleRequest(Request.java:415) #-29 php.java.bridge.Request.handleRequests(Request.java:491) #-28 php.java.servlet.PhpJavaServlet.handleHttpConnection(PhpJavaServlet.java:318) #-27 php.java.servlet.PhpJavaServlet.handlePut(PhpJavaServlet.java:340) #-26 php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:349) #-25 javax.servlet.http.HttpServlet.service(HttpServlet.java:640) #-24 javax.servlet.http.HttpServlet.service(HttpServlet.java:717) #-23 sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) #-22 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) #-21 java.lang.reflect.Method.invoke(Method.java:616) #-20 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) #-19 java.security.AccessController.doPrivileged(Native Method) #-18 javax.security.auth.Subject.doAsPrivileged(Subject.java:537) #-17 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) #-16 org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) #-15 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283) #-14 org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56) #-13 org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189) #-12 java.security.AccessController.doPrivileged(Native Method) #-11 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185) #-10 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) #-9 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) #-8 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) #-7 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) #-6 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) #-5 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) #-4 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) #-3 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) #-2 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) #-1 java.lang.Thread.run(Thread.java:636) #0 http://192.168.1.101:8080/JavaBridge/java/Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(3, 'java.lang.Syste...', 'F', true) #1 http://192.168.1.101:8080/JavaBridge/java/Java.inc(219): java_Arg->getResult(true) #2 http://192.168.1.101:8080/JavaBridge/java/Java.inc(221): java_Client->getWrappedResult(true) #3 http://192.168.1.101:8080/JavaBridge/java/Java.inc(337): java_Client->getResult() #4 http://192.168.1.101:8080/JavaBridge/java/Java.inc(1063): java_Client->invokeMethod(2, 'getProperties', Array) #5 http://192.168.1.101:8080/JavaBridge/java/Java.inc(1108): java_JavaProxy->__call('getProperties', Array) #6 http://192.168.1.101:8080/JavaBridge/java/Java.inc(1199): java_AbstractJava->__call('getProperties', Array) #7 [internal function]: Java->__call('getProperties', Array) #8 /var/www/vhosts/solo/httpdocs/test.php(9): JavaClass->getProperties() #9 {main}]<br /> <b>Fatal error</b>: An unchecked exception occured during script execution. Please check the server log files for details. in <b>http://192.168.1.101:8080/JavaBridge/java/Java.inc</b> on line <b>461</b><br /> ======================================================================================================================== Our previous development server was Windows 2003 where I did not get these errors. Also my experience with Linux us very less. Thanks a lot, Hameed |
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-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 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 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 |