Re: [Asterisk-java-users] classpath not found error
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-01-23 16:19:36
|
Does your Hello class extend the Base class or implement the correct interface? =20 The example has: "public class HelloAgiScript extends BaseAgiScript" =20 Does yours? If yes, can we see it? Also, how do you run the Manager script? Your error: "Error: SEVERE: Unable to create AgiScript instance of type HelloManager: Class does not implement the AgiScript interface" Like the tutorial says, you should be using a command line for the Agi script like: $ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer AND for the Manager one, with a main method of your own design. Please give us more information. =20 Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Gopal krishnan Sent: Wednesday, January 23, 2008 7:41 AM To: ast...@li... Subject: [Asterisk-java-users] classpath not found error =09 =09 Hi, =09 I am using asteriskjava 0.3.1, when I tried the HelloAgi example in the url http://asterisk-java.org/development/tutorial.html it was working fine, in the same page Manager API programs are there, HelloManager, HelloEvents, I tried both of them, but i am getting the following error in fastagi console,=20 =09 Error: SEVERE: Unable to create AgiScript instance of type HelloManager: Class does not implement the AgiScript interface Jan 23, 2008 4:13:24 PM org.asteriskjava.fastagi.AbstractMappingStrategy createA giScriptInstance=20 SEVERE: Unable to create AgiScript instance of type hello.agi: Class not found, make sure the class exists and is available on the CLASSPATH Jan 23, 2008 4:13:24 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler r un SEVERE: No script configured for URL 'agi://localhost/hello.agi?user=3D5101' (scri pt 'hello.agi') =09 Can you please help me on this. =09 --=20 Thank you with regards, Gopal,=20 PeopleTech Systems Private Limited www.peopletech.co.in=20 |