[Freeswitch-users] mod_java - java.lang.NoClassDefFoundError

jonathan augenstine jaugenstine at gmail.com
Sat Nov 24 19:46:09 PST 2007


I am encountering the following error when I try to use the mod_java
interface:

2007-11-24 18:38:07 [NOTICE] switch_core_state_machine.c:134
switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)
Exception in thread "Thread-0" java.lang.NoClassDefFoundError:
org/freeswitch/Launcher

My dialplan has the following entry:

 <extension name="Validation_Demo">
    <condition field="destination_number" expression="1234">
      <action application="java" data="fs_ivr arg1 arg2 arg3"/>
    </condition>
  </extension>

java.conf.xml has the following entry:

 <options>
    <!-- Your class path (make sure freeswitch.jar is on it) -->
    <option value="-
Djava.class.path=/usr/local/freeswitch/scripts/freeswitch.jar"/>
    <option value="-Djava.class.path=/usr/local/freeswitch/scripts/fs_ivr"/>
    <!-- Enable remote debugging -->
    <option
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=
127.0.0.1:8000"/>
  </options>

I have also tried setting the class path to freeswitch.jar in the CLASSPATH
environment variable.

export CLASSPATH=/usr/local/freeswitch/scripts/freeswitch.jar.

None of the permutations have met with success.  Can anyone spot the error I
am making?  Any ideas on what to try?

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20071124/0508f9e0/attachment-0002.html 


More information about the FreeSWITCH-users mailing list