Help needed with Asterisk-Java

Joined: Fri 16 of Jul, 2010

Re: Help needed with Asterisk-Java

Posted:Fri 16 of Jul, 2010 (10:36 UTC)
Just to mention that i am using ubuntu 9.1 ,Asterisk 1.6 and asterisk-java 1.0
Joined: Fri 16 of Jul, 2010

Help needed with Asterisk-Java

Posted:Fri 16 of Jul, 2010 (09:48 UTC)
Does any one have any idea about this error i am recievin in my asterisk-java terminal:

I have done this in my extensions.conf ...
exten => 1300,1,Agi(agi://myIpAddresst/hello.agi)

There are theese 4 files in my project folder:

When i run asterisk-java server it says :
16-Jul-10 2:33:52 PM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Listening on *:4573.

My is this...
import org.asteriskjava.fastagi.AgiChannel;
import org.asteriskjava.fastagi.AgiException;
import org.asteriskjava.fastagi.AgiRequest;
import org.asteriskjava.fastagi.BaseAgiScript;

public class HelloAgiScript extends BaseAgiScript
public void service(AgiRequest request, AgiChannel channel)
throws AgiException
// Answer the channel...

// ...say hello...

// ...and hangup.
When i call on extension 1300 the asterisk-java automatically stops and says:

Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner
at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.initialize(
at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.<init>(
at org.asteriskjava.util.internal.ServerSocketFacadeImpl.accept(
at org.asteriskjava.fastagi.DefaultAgiServer.startup(
at org.asteriskjava.Cli.startAgiServer(
at org.asteriskjava.Cli.startAgiServer(
at org.asteriskjava.Cli.parseOptions(
at org.asteriskjava.Cli.main(