Hi ! I have been trying to enable mod_java with FS but am having problems. I was able to compile mod_java fine. However FS is having trouble loading the module. It errors out with the following error message: 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, I believe I have the CLASSPATH/PATH variables set up correctly in my configuration files. In fact I put in some debug statements in modjava.c. Below is the debug output showing the various variables: 2012-06-07 20:51:24.058126 [NOTICE] modjava.c:349 Java Framework Loading... 2012-06-07 20:51:24.058126 [ERR] modjava.c:299 VENKY optionCount: 7 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.class.path=/usr/local/freeswitch/scripts 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/java/jdk1.6.0_32/jre/lib:/usr/java/jdk1.6.0_32/lib 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -verbose:jni 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xms=64 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xmx=256 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:8000 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/local/freeswitch/mod 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, error: -1 2012-06-07 20:51:24.058126 [INFO] switch_time.c:1123 Timezone reloaded 530 definitions 2012-06-07 20:51:24.058126 [CRIT] switch_loadable_module.c:1300 Error Loading module /usr/local/freeswitch/mod/mod_java.so **Module load routine returned an error** Would really appreciate any ideas from others that may have tried enabling the same? Venkatesh
Venkatesh, I can tell you from personal experience that mod_java does have issues. Unless you really need Java I would recommend that you take a look at Lua. If you really need or want to use Java, then I would recommend investigating the event socket and XML-RPC interface. Jonathan On Thu, Jun 7, 2012 at 5:57 PM, Venkatesh <vvenkatar@gmail.com> wrote:
Hi !
I have been trying to enable mod_java with FS but am having problems. I was able to compile mod_java fine. However FS is having trouble loading the module. It errors out with the following error message:
2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!,
I believe I have the CLASSPATH/PATH variables set up correctly in my configuration files. In fact I put in some debug statements in modjava.c. Below is the debug output showing the various variables:
2012-06-07 20:51:24.058126 [NOTICE] modjava.c:349 Java Framework Loading... 2012-06-07 20:51:24.058126 [ERR] modjava.c:299 VENKY optionCount: 7 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.class.path=/usr/local/freeswitch/scripts 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/java/jdk1.6.0_32/jre/lib:/usr/java/jdk1.6.0_32/lib 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -verbose:jni 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xms=64 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xmx=256 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address= 127.0.0.1:8000 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/local/freeswitch/mod 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, error: -1 2012-06-07 20:51:24.058126 [INFO] switch_time.c:1123 Timezone reloaded 530 definitions 2012-06-07 20:51:24.058126 [CRIT] switch_loadable_module.c:1300 Error Loading module /usr/local/freeswitch/mod/mod_java.so **Module load routine returned an error**
Would really appreciate any ideas from others that may have tried enabling the same?
Venkatesh
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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-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
or the libesl java bits in libs/esl Sent from my iPad On Jun 7, 2012, at 8:39 PM, jonathan augenstine <jaugenstine@gmail.com> wrote:
Venkatesh,
I can tell you from personal experience that mod_java does have issues. Unless you really need Java I would recommend that you take a look at Lua. If you really need or want to use Java, then I would recommend investigating the event socket and XML-RPC interface.
Jonathan
Are you on the latest git? From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Venkatesh Sent: Thursday, June 07, 2012 8:58 PM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Unable to use mod_java. Hi ! I have been trying to enable mod_java with FS but am having problems. I was able to compile mod_java fine. However FS is having trouble loading the module. It errors out with the following error message: 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, I believe I have the CLASSPATH/PATH variables set up correctly in my configuration files. In fact I put in some debug statements in modjava.c. Below is the debug output showing the various variables: 2012-06-07 20:51:24.058126 [NOTICE] modjava.c:349 Java Framework Loading... 2012-06-07 20:51:24.058126 [ERR] modjava.c:299 VENKY optionCount: 7 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.class.path=/usr/local/freeswitch/scripts 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/java/jdk1.6.0_32/jre/lib:/usr/java/jdk1.6.0_32/lib 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -verbose:jni 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xms=64 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xmx=256 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:8000<http://127.0.0.1:8000> 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/local/freeswitch/mod 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, error: -1 2012-06-07 20:51:24.058126 [INFO] switch_time.c:1123 Timezone reloaded 530 definitions 2012-06-07 20:51:24.058126 [CRIT] switch_loadable_module.c:1300 Error Loading module /usr/local/freeswitch/mod/mod_java.so **Module load routine returned an error** Would really appreciate any ideas from others that may have tried enabling the same? Venkatesh
I believe I am on the latest version. Venkatesh On Fri, Jun 8, 2012 at 8:43 AM, Hector Geraldino < Hector.Geraldino@ipsoft.com> wrote:
Are you on the latest git?****
** **
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Venkatesh *Sent:* Thursday, June 07, 2012 8:58 PM *To:* FreeSWITCH Users Help *Subject:* [Freeswitch-users] Unable to use mod_java.****
** **
Hi !****
** **
I have been trying to enable mod_java with FS but am having problems. I was able to compile mod_java fine. However FS is having trouble loading the module. It errors out with the following error message:****
** **
2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!,*** *
** **
I believe I have the CLASSPATH/PATH variables set up correctly in my configuration files. In fact I put in some debug statements in modjava.c. Below is the debug output showing the various variables:****
** **
2012-06-07 20:51:24.058126 [NOTICE] modjava.c:349 Java Framework Loading... ****
2012-06-07 20:51:24.058126 [ERR] modjava.c:299 VENKY optionCount: 7****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.class.path=/usr/local/freeswitch/scripts****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/java/jdk1.6.0_32/jre/lib:/usr/java/jdk1.6.0_32/lib ****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -verbose:jni* ***
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xms=64****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xmx=256****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address= 127.0.0.1:8000****
2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/local/freeswitch/mod****
2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, error: -1****
2012-06-07 20:51:24.058126 [INFO] switch_time.c:1123 Timezone reloaded 530 definitions****
2012-06-07 20:51:24.058126 [CRIT] switch_loadable_module.c:1300 Error Loading module /usr/local/freeswitch/mod/mod_java.so****
**Module load routine returned an error******
** **
** **
Would really appreciate any ideas from others that may have tried enabling the same? ****
** **
Venkatesh****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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-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
Check the settings in the java.conf.xml file (conf/autoload_config). Make sure it's referencing a valid libjvm.so file/path. Also, be sure to have the freeswitch.jar jar file in the freeswitch/scripts folder. Check also the port you're using for debugging (8000): is this port being used by another app? Good luck! From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Venkatesh Sent: Thursday, June 07, 2012 8:58 PM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Unable to use mod_java. Hi ! I have been trying to enable mod_java with FS but am having problems. I was able to compile mod_java fine. However FS is having trouble loading the module. It errors out with the following error message: 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, I believe I have the CLASSPATH/PATH variables set up correctly in my configuration files. In fact I put in some debug statements in modjava.c. Below is the debug output showing the various variables: 2012-06-07 20:51:24.058126 [NOTICE] modjava.c:349 Java Framework Loading... 2012-06-07 20:51:24.058126 [ERR] modjava.c:299 VENKY optionCount: 7 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.class.path=/usr/local/freeswitch/scripts 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/java/jdk1.6.0_32/jre/lib:/usr/java/jdk1.6.0_32/lib 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -verbose:jni 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xms=64 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Xmx=256 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:8000<http://127.0.0.1:8000> 2012-06-07 20:51:24.058126 [ERR] modjava.c:302 VENKY option: -Djava.library.path=/usr/local/freeswitch/mod 2012-06-07 20:51:24.058126 [ERR] modjava.c:326 Error creating Java VM!, error: -1 2012-06-07 20:51:24.058126 [INFO] switch_time.c:1123 Timezone reloaded 530 definitions 2012-06-07 20:51:24.058126 [CRIT] switch_loadable_module.c:1300 Error Loading module /usr/local/freeswitch/mod/mod_java.so **Module load routine returned an error** Would really appreciate any ideas from others that may have tried enabling the same? Venkatesh
participants (4)
-
Brian West
-
Hector Geraldino
-
jonathan augenstine
-
Venkatesh