From: <php...@li...> - 2012-05-17 12:18:30
|
Can someone provide insight into importing a Java jar into a PHP application ? I am trying to instantiate an object I developed called SubscriberTrace which is packed in a Java jar. I have the ST.jar file located in the JavaBridge/java directory. I get the following error: javax.servlet.ServletException: java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new com.ctl.mplslab.iptv.SubscriberTrace. Cause: java.lang.ClassNotFoundException: com.ctl.mplslab.iptv.SubscriberTrace VM: 1.6.0_22@http://java.sun.com/" at: #-10 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) <?php require_once("java/Java.inc"); use java\lang\String as JString; use java\util\ArrayList as JList; class String extends JString { function toString () { return "hello " . parent::toString(); } } $str = new String("Java"); $list = new JList(); $list->add (java_closure($str)); $list->add ("from PHP"); $ar = java_values ($list->toArray()); $channels = new Java("com.ctl.mplslab.iptv.SubscriberTrace"); #echo $channels->getChannels("6126643068"); foreach($ar as $entry) echo "$entry<br>\n" ?> ________________________________ This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. |
From: <php...@li...> - 2012-05-17 12:24:34
|
Put the jar and its dependencies into lib folder (within .war file) and re-deploy war file. |
From: <php...@li...> - 2012-05-17 12:39:31
|
I only have a jar file. What lib directory ? -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, May 17, 2012 7:24 AM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP and Java Put the jar and its dependencies into lib folder (within .war file) and re-deploy war file. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. |
From: <php...@li...> - 2012-05-17 12:43:00
|
Right click on JavaBridge.war -> "open with" WinRar and you'll see it. |
From: <php...@li...> - 2012-05-17 13:46:26
|
Hello php-java-bridge I've tried several times to be removed from your mail list using your procedure but to no avail. Please could you remove me from the list? Many thanks Martin Waterhouse ======================================== Message Received: May 17 2012, 01:39 PM From: php...@li... To: "'php...@li...'" Cc: Subject: Re: [Php-java-bridge-users] PHP and Java I only have a jar file. What lib directory ? -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, May 17, 2012 7:24 AM To: php...@li... Subject: Re: [Php-java-bridge-users] PHP and Java Put the jar and its dependencies into lib folder (within .war file) and re-deploy war file. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2012-05-17 13:57:49
|
Please ask the sourceforge list operator. If the standard procedures described at http://sf.net do not work, simply block messages from the list. |