Damjan,<br><br>Thanks for the reply. I had already worked through the issues of the -D option not allowed twice and CLASSPATH being ignored. I am successfully launching the fs_ivr class (yes, I do intend to use a jar file) but I have hit another snag (see trace below). It appears the app is not finding the native interface library. Where do I declare that path?
<br><br>Jonathan<br><br>2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)<br>Exception in thread "Thread-0" java.lang.reflect.InvocationTargetException
<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)<br> at java.lang.reflect.Method.invoke(Method.java:585)<br> at org.freeswitch.Launcher.launch(Launcher.java:80)<br>Caused by: java.lang.UnsatisfiedLinkError: console_log<br> at org.freeswitch.swig.freeswitchJNI.console_log
(Native Method)<br> at org.freeswitch.swig.freeswitch.console_log(freeswitch.java:13)<br> at fs_ivr.run(fs_ivr.java:27)<br> ... 5 more<br>2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:184 switch_core_standard_on_execute() Hangup PortAudio/1234 [CS_EXE
<br><br><br><br><div class="gmail_quote">On Nov 25, 2007 10:35 PM, Damjan Jovanovic <<a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms<br>X-ECN Telecoms-MailScanner: Found to be clean<br>X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br> score=-97.488, required 6, AWL -
0.22, FH_HOST_ALMOST_IP 1.75,<br> RCVD_IN_SORBS_DUL 0.88, RDNS_DYNAMIC 0.10,<br> USER_IN_WHITELIST -100.00)<br>X-ECN Telecoms-MailScanner-From: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a>
<br>X-Spam-Status: No<br><div class="Ih2E3d"><br>On Sat, 2007-11-24 at 19:46 -0800, jonathan augenstine wrote:<br>> I am encountering the following error when I try to use the mod_java<br>> interface:<br>><br>> 2007-11-24 18:38:07 [NOTICE] switch_core_state_machine.c:134
<br>> switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)<br>> Exception in thread "Thread-0" java.lang.NoClassDefFoundError:<br>> org/freeswitch/Launcher<br>><br>> My dialplan has the following entry:
<br>><br>> <extension name="Validation_Demo"><br>> <condition field="destination_number" expression="1234"><br>> <action application="java" data="fs_ivr arg1 arg2 arg3"/>
<br>> </condition><br>> </extension><br><br></div>I'm assuming fs_ivr is a class without a package and outside any jar.<br><div class="Ih2E3d"><br>> java.conf.xml has the following entry:<br>
><br>> <options><br>> <!-- Your class path (make sure freeswitch.jar is on it) --><br>> <option<br>> value="-Djava.class.path=/usr/local/freeswitch/scripts/freeswitch.jar"/>
<br><br></div>Make sure you have a /usr/local/freeswitch/scripts/freeswitch.jar<br><div class="Ih2E3d"><br>> <option<br>> value="-Djava.class.path=/usr/local/freeswitch/scripts/fs_ivr"/><br><br></div>
This means you have a directory /usr/local/freeswitch/scripts/fs_ivr<br>containing fs_ivr.class. Also I'm not sure if you can have multiple<br>-Djava.class.paths like this (that could be why it isn't finding<br>org/freeswitch/Launcher), you might have to have one colon (:) separated
<br>list of paths. This is also why I prefer having JARs by the way, you<br>don't have to set the classpath before running freeswitch and reload<br>mod_java if it changes, and if you overwrite the JAR with a newer<br>
version it starts using the newer version for calls made from then on<br>(no dialplan editing required :-).<br><br>> <!-- Enable remote debugging --><br>> <option<br>> value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=MailScanner warning: numerical links are often malicious:
<a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>"/><br><div class="Ih2E3d">> </options><br>><br>> I have also tried setting the class path to freeswitch.jar in the<br>> CLASSPATH environment variable.
<br>><br>> export CLASSPATH=/usr/local/freeswitch/scripts/freeswitch.jar.<br><br></div>The CLASSPATH environment variable is ignored.<br><div class="Ih2E3d"><br>> None of the permutations have met with success. Can anyone spot the
<br>> error I am making? Any ideas on what to try?<br><br></div>Sorry it's so confusing, I'll document it better when you get it<br>working.<br><br>> Jonathan<br>><br><br>Damjan<br><br><br><br>_______________________________________________
<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users
</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br>