473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

HTTP Status 500 in php java bridge!!

I am using php-java bridge to access the methods of a java file from the comand prompt every thing works fine but when i try to run this script in an yweb browser I get
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet PhpJavaServ in /java/Java.inc on line 520



The code---->


Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. $amount=10;
  4. $trackid='111111111';
  5. require_once("/java/Java.inc");
  6. java_require('/home/zyx/public_html/Test/');
  7. $pipe = new Java("Payment");
  8. //$amount = 100;
  9. $pipe->setCurrency("37756");
  10. $pipe->setLanguage("USA");
  11. $pipe->setAction("1");
  12. $pipe->setResponseURL("https://www.xyz.in/intermediate.php");
  13. $pipe->setErrorURL("https://www.xyz.in/failure.php");
  14. $pipe->setResourcePath('/home/zyx/public_html/Test/');
  15. $pipe->setAlias("26788");
  16. $pipe->setAmt($amount);
  17. $pipe->setTrackId($trackid); 
  18. echo $status = $pipe->performPaymentInitialization();
  19.  
  20.  
  21. $payID = $pipe->getPaymentId();
  22. $payURL = $pipe->getPaymentPage();
  23. $urlToRedirect = $payURL . '?PaymentID=' . $payID;
  24. echo $urlToRedirect;
  25. //header('Location: '. $urlToRedirect);
  26. $urlToRedirect="http://www.google.com/";
  27. header('Location: '. $urlToRedirect);
  28. ?>

I dont know why I am getting this error plz help
Jul 19 '10 #1
0 1141

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Steven M. Scotten | last post by:
Hi-- I seem to have the PHP Java Bridge (2.0.5 built from tarball) working with PHP 5.0.3 (also built from tarball) on my Fedora Core 1 server with Apache 2.0.50 and I'm pretty excited about it...
0
by: jdz99 | last post by:
I have this bridge up and running, http://php-java-bridge.sourceforge.net/ My problem is I can only have it serve up PHP pages from one directory under TOMCAT(myPHPapp). I want to be able to...
3
by: anagai | last post by:
hi I am trying to install the java bridge library for php 5.1.2. I have installed the j2see 1.4 and jdk. I have setup the section in php.ini as follows: java.classpath =...
2
by: zhong.zx | last post by:
When I struggling to compile the php-java bridge on the following step on FreeBSD 4.11, I met error and cannot go through it: CMD: phpize && ./configure --with-java=/usr/java/jdk1.5.0 && make...
0
by: cricsanju | last post by:
Hi all, I am very new person in PHP. I am using PHP-Java-Bridge and I am facing a problem, when I deploy php-java-bridge in deploy(JBoss_home/sever/default/deploy) folder of JBoss app server with...
4
pbmods
by: pbmods | last post by:
Heya. I just installed PHP-Java-Bridge on my system, but I'm having a hard time getting it to stop crashing Apache. When I activate the 'Java.so' module in php.ini, I get the following error in...
1
pbmods
by: pbmods | last post by:
Heya. I just installed PHP-Java-Bridge on my system, but I'm having a hard time getting it to stop crashing Apache. When I activate the 'Java.so' module in php.ini, I get the following error in...
2
IT Master2
by: IT Master2 | last post by:
hi every 1: i found in the net something called php/java bridge which allow you to use java classes in php. now what i need: 1- a link to download php/java bridge 2- how to deal with it.
0
by: cosmicxdust | last post by:
I am using Wamp5 v1.7.3 (PHP 5.2.4, Apache/2.2.4). When installing php-java-bridge-3.2.1_j2ee, I copy php_java.dll from PHP/Java Bridge to D:\php\ext. When I start all services, I got this Apache...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.