Re: [Asterisk-java-users] classpath not found error
Brought to you by:
srt
From: <dwi...@aa...> - 2008-01-23 13:38:55
|
<html><body>Hello Gopal.<br><br>I just run my HelloAgiScript in the directory with the asterisk-java-0.3.1.jar<br><br>/usr/bin/java -cp asterisk-java-0.3.1.jar:. org.asteriskjava.fastagi.DefaultAgiServer<br><br>And make sure you have the fastagi-mapping.properties file in the same directory as well,<br>And it should look like this.<br><br>hello.agi = HelloAgiScript<br><br>Hope this helps.<br><br>Best Regards,<br>Danny Williams JR<br>Act As One Technologies<br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: [Asterisk-java-users] classpath not found error<br> From: "Gopal krishnan" <gop...@pe...><br> Date: Wed, January 23, 2008 5:40 am<br> To: ast...@li...<br> <br> Hi,<br><br> I am using asteriskjava 0.3.1, when I tried the HelloAgi example in the url <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> 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, <br><br>Error:<br>SEVERE: Unable to create AgiScript instance of type HelloManager: Class<br>does not implement the AgiScript interface<br>Jan 23, 2008 4:13:24 PM org.asteriskjava.fastagi.AbstractMappingStrategy<br>createA giScriptInstance <br>SEVERE: Unable to create AgiScript instance of type hello.agi: Class not<br>found, make sure the class exists and is available on the CLASSPATH<br>Jan 23, 2008 4:13:24 PM<br>org.asteriskjava.fastagi.internal.AgiConnectionHandler r un<br>SEVERE: No script configured for URL 'agi://localhost/hello.agi?user=5101'<br>(scri pt 'hello.agi')<br><br>Can you please help me on this.<br clear="all"><br>-- <br>Thank you with regards,<br>Gopal, <br>PeopleTech Systems Private Limited<br><a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in </a> <hr>-------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><hr>_______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </blockquote></body></html> |