Re: [Asterisk-java-users] fail to run the example
Brought to you by:
srt
From: Tony M. <to...@am...> - 2006-07-12 16:04:46
|
Stefan, Is it possible that the class CompositeMappingStrategy has a code change to it that has created a bug? It looks like the ClassNameMappingStrategy is the last strategy in the array of strategies and it causes the ResourceBundleMappingStrategy to be ignored. See class CompositeMappingStrategy public AgiScript determineScript(AgiRequest request) { AgiScript script = null; if (strategies == null) { return null; } for (MappingStrategy strategy : strategies) { script = strategy.determineScript(request); } return script; } This would be causing the problems that 'unplug' is seeing. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Friday, July 07, 2006 9:49 AM To: ast...@li... Subject: Re: [Asterisk-java-users] fail to run the example Then its not on the classpath. Try including . in your CLASSPATH environment variable. Which JDK are you using? on which platform? =Stefan unplug wrote: > Hi, > I follow the website tutorial to run HelloAGIScript. > http://www.asteriskjava.org/latest/tutorial.html > In my directory, I have the following files. > fastagi-mapping.properties > HelloAGIScript.java > HelloAGIScript.class > I have already located asterisk-java.jar in a classpath and I run the > AGIServer as following. > java -cp . net.sf.asterisk.fastagi.DefaultAGIServer > server started > > Then I make a call to 1300 (which I have followed the example to > configure the exten). > > But there is an error in the console. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Received connection. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: Resource bundle 'fastagi-mapping' is missing. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: No script configured for URL 'agi://localhost/HelloAGIScript' > (script 'HelloAGIScript') > > Anyone can tell me why AGIServer can't find fastagi-mapping.properties > as it is located in the current directory which is also a classpath? > What's wrong in the above setting? > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |