[Freeswitch-dev] mod_java is'nt loading (Debian x64)

Peter Olsson peter.olsson at visionutveckling.se
Wed Aug 1 09:05:59 MSD 2012


http://jira.freeswitch.org.


/Peter

daemonserj TVC <daemonserj at gmail.com> skrev:
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!

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org

!DSPAM:50189a3b32762193214602!




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list