Thread: [Asterisk-java-users] fail to run the example
Brought to you by:
srt
From: unplug <mai...@gm...> - 2006-07-06 08:45:32
|
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? |
From: Stefan R. <sr...@re...> - 2006-07-07 07:49:14
Attachments:
signature.asc
|
Then its not on the classpath. Try including . in your CLASSPATH environment variable. Which JDK are you using? on which platform? =3DStefan 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 >=20 > Then I make a call to 1300 (which I have followed the example to > configure the exten). >=20 > 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') >=20 > 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? >=20 > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: unplug <mai...@gm...> - 2006-07-07 07:54:52
|
I already set the current directory in the classpath as follow. echo $CLASSPATH .: I have also tried to set the absolute path in the classpath. I also tried to put the properties files in the $JAVA_HOME/jre/lib/ext which is the classpath of the JDK. But all case is failed and itl showed the error as before. > > 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') OS platform: fedora core 4 JDK: java version "1.5.0_06" On 7/7/06, Stefan Reuter <sr...@re...> wrote: > 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... > > > > 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 > > > > |
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... |
From: Stefan R. <sr...@re...> - 2006-07-12 20:56:53
Attachments:
signature.asc
|
Tony Mowers wrote: > Is it possible that the class CompositeMappingStrategy has a code chang= e to > it that has created a bug? [...] > This would be causing the problems that 'unplug' is seeing. yes, there was indeed a bug. It has been fixed in svn trunk and in the latest snapshot available from http://maven.reucon.com/maven2/org/asteriskjava/asterisk-java/0.3-SNAPSHO= T/asterisk-java-0.3-20060712.204750-70.jar Note: This bug was only present in the snapshot and trunk, not in the stable release 0.2 (which does not include the CompositeMappingStrategy) Thanks for reporting (and insisting :), Tony. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-07-07 08:02:22
Attachments:
signature.asc
|
unplug wrote: > I already set the current directory in the classpath as follow. > echo $CLASSPATH > .: If your classpath is really ".:" how does it find the asterisk-java.jar file then?? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: unplug <mai...@gm...> - 2006-07-07 08:56:43
|
I have no idea. I feel very strange about it. Actually, I put the asterisk-java.jar in $JAVA_HOME/jre/lib/ext. I have already put the properties in the same directory but same error still found. On 7/7/06, Stefan Reuter <sr...@re...> wrote: > unplug wrote: > > I already set the current directory in the classpath as follow. > > echo $CLASSPATH > > .: > If your classpath is really ".:" how does it find the asterisk-java.jar > file then?? > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: sr...@re... > > > > 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 > > > > |
From: Tony M. <to...@am...> - 2006-07-12 16:17:31
|
Unplug ... If you are working directly from the source tree and not a release then you might want to try something like the following in your dialplan: exten => 123,1,AGI(agi://your.server.com/com.example.agi.MyScript) Where 'com.example.agi.MyScript' is your java class. I don't know if this change is due to a bug or a new feature that I don't know how to configure. Stefan should be able to answer that. Tony Mowers http://www.amowers.com -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of unplug Sent: Friday, July 07, 2006 10:57 AM To: ast...@li... Subject: Re: [Asterisk-java-users] fail to run the example I have no idea. I feel very strange about it. Actually, I put the asterisk-java.jar in $JAVA_HOME/jre/lib/ext. I have already put the properties in the same directory but same error still found. On 7/7/06, Stefan Reuter <sr...@re...> wrote: > unplug wrote: > > I already set the current directory in the classpath as follow. > > echo $CLASSPATH > > .: > If your classpath is really ".:" how does it find the asterisk-java.jar > file then?? > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: sr...@re... > > > > 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 > > > > 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 |