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. 2010-12-13 16:43:56.988097 [NOTICE] modjava.c:342 Java Framework Loading... 2010-12-13 16:43:57.042698 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/local/freeswitch/mod/mod_java.so **Module load routine returned an error** 2010-12-13 16:43:57.043603 [CONSOLE] switch_loadable_module.c:946 Successfully Loaded [mod_lua] 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
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
How are you configuring/managing your classpath ? davidv On 13 December 2010 22:39, srinivasula reddy <srinivas.ksvreddy@gmail.com> wrote:
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
-- david varnes
I am trying to load the mod_java, I get the following error: [ERR] modjava.c:124 Error loading /usr/java/jdk1.6.0_23/jre/lib/i386/client/libjvm.so 2011-02-08 10:52:37.540045 [CRIT] switch_loadable_module.c:882 Error Loading module /usr/local/freeswitch/mod/mod_java.so I have verified that the libjvm.so does exist and is in that location, I have tried everything I can to force this load, please help! Thanks -Derrick
The error ("Module load routine returned an error") means the module itself has an error during its startup there are 4 places in the module loading that it would error out: switch_core_new_memory_pool load_config create_java_vm exec_user_method Most likely obviously one of the last 3, load_config will always log something before returning an error status same for create_java_vm, add some additional output to modjava.c should be able to help you track it down. Additionally turn your console log level to debug, and try reloading mod_java to make sure you are not missing any error messages. ~Mitch On Tue, Feb 8, 2011 at 9:00 AM, Derrick Albers <derrick.albers@gmail.com>wrote:
I am trying to load the mod_java, I get the following error: [ERR] modjava.c:124 Error loading /usr/java/jdk1.6.0_23/jre/lib/i386/client/libjvm.so 2011-02-08 10:52:37.540045 [CRIT] switch_loadable_module.c:882 Error Loading module /usr/local/freeswitch/mod/mod_java.so
I have verified that the libjvm.so does exist and is in that location, I have tried everything I can to force this load, please help!
Thanks -Derrick
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
david varnes
-
Derrick Albers
-
Mitch Capper
-
srinivasula reddy