[Freeswitch-users] Fwd: Error Loading mod_java.so

srinivasula reddy srinivas.ksvreddy at gmail.com
Mon Dec 13 14:39:35 MSK 2010


Hi All,

Currently i am using JDK1.06.0_23 and jre also same version for using
mod_java module in freeswith,

i can able to generate mod_java.so and freeswitch.jar. and building and
installation had succussful without any proble.

when i am trying to run the freeswitch, i am gettig the following error.


Exception in thread "Thread-0" java.lang.NoClassDefFoundError:
net/cog/fs/system/Control
Caused by: java.lang.ClassNotFoundException: net.cog.fs.system.Control
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
2010-12-13 17:07:58.193373 [CRIT] switch_loadable_module.c:928 Error Loading
module /usr/local/freeswitch/mod/mod_java.so
**Module load routine returned an error**



and please find the following java.conf.xml file.

<configuration name="java.conf" description="Java Plug-Ins">
  <!-- Path to the Java 1.6 virtual machine to use -->
 <!--  <javavm
path="/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/x86_64/client/libjvm.so"/>
-->
  <javavm
path="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so"/>
  <!-- Options to pass to Java -->
  <options>
    <!-- Your class path (make sure freeswitch.jar is on it) -->
    <option
value="-Djava.class.path=/usr/local/freeswitch/scripts/freeswitch.jar
"/>
    <!-- Enable remote debugging -->
    <!-- <option
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=
127.0.0.1:8001"/> -->
  </options>
  <startup class="net/cog/fs/system/Control" method="startup" arg="start up
arg"/>
  <shutdown class="net/cog/fs/system/Control" method="shutdown"
arg="shutdown arg"/>
</configuration>


Any Idea why i am getting the error?

Thanks
Srinivasula Reddy K



-- 
Srinivasula Reddy K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101213/0d9fe126/attachment.html 


More information about the FreeSWITCH-users mailing list