From: <php...@li...> - 2010-11-11 09:57:55
|
Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-11 17:17:17
|
Hi, your servlet should have been configured to respond to the request url. Please check your web.xml. Regards, Jost Bökemeier Am 11.11.2010 10:58 schrieb <php...@li...>: Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-11-12 06:40:59
|
Hi It is configured to handle the request - As I stated in my post, the servlet responds to the php script when the php script is run from the command line: "php test.php". It is when i access the script from the browser (http://localhost:8080/MyWebApp/test.php) that I get the NoSuchMethodException. Regards Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, November 11, 2010 6:17 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Custom servlet sample works from command line but not from inside container Hi, your servlet should have been configured to respond to the request url. Please check your web.xml. Regards, Jost Bökemeier Am 11.11.2010 10:58 schrieb <php...@li...>: Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-12 07:12:03
|
Well, if you bind your servlet to *.php, it will respond. But I guess all you want to do is to run php scripts from your servlet. Use RequestDispatcher or JSR223 API. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-11-12 08:19:38
|
Hi My case was to have a php script that calls a servlet. The servlet is an existing one that emits html, and the purpose of the php is to emit ttat html. I am converting an exisiting Java/servlet/jsp based web to Joomla, and at the moment I just want to reuse existing logic from the servlets. I will port the gui logic to php in turn. I now have Joomla running in the same context as the old app. Regards Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |