[Freeswitch-dev] mod_java is'nt loading (Debian x64)
daemonserj TVC
daemonserj at gmail.com
Wed Aug 1 07:04:09 MSD 2012
Hello.
I've compiled & configured freeswitch with option
--with-java=/path/to/jdk/include/ concerning
http://wiki.freeswitch.org/wiki/Mod_java
It successfuly compiled, but at start freeswitch writes to log
"2012-07-31 23:38:14.247729 [CRIT] switch_loadable_module.c:1310 Error
Loading module /usr/local/freeswitch/mod/mod_java.so
**Module load routine returned an error**
My java.conf.xml is :
<configuration name="java.conf" description="Java Plug-Ins">
<!-- Path to the Java 1.6 virtual machine to use -->
<javavm path="/usr/lib/jvm/java/jre/lib/i386/server/libjvm.so"/>
<!-- Options to pass to Java -->
<options>
<!-- Your class path (make sure freeswitch.jar is on it) -->
<option value="-Djava.class.path=$${base_dir}/scripts/freeswitch.jar"/> -->
<!-- Enable remote debugging -->
<option value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:8000"/>
</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>
libjvm.so is from stable debian package sun-java6-jdk (1.6.0_26). It's
successfuly linking.
I checked another JVM from oracle site (jdk-6u33-linux-x64.bin) and got this:
2012-07-31 23:38:14.247690 [ERR] modjava.c:211 Error loading
/usr/local/freeswitch/jdk1.6.0_33/jre/lib/amd64/server/libjvm.so
So I believe that problem is somewhere in mod_java but I have no more
debug messages to find out what is happened.
Please Help!
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev
mailing list