Damjan,<br><br>I did as you suggested and used the remote debugging to walk through the static constructor in Launcher. What I discovered was that the constructor was not finding the mod_java.so file. I tried setting java.library.path
explicity in java.conf.xml and also by rebuilding with -prefix=/usr/local/java. Neither of these solutions were successful. I was able to verify that this was the issue by explicitly entering the library path into the code for the Launcher constructor and running the app. This was successful. I just need to resolve why the
System.getProperty("java.library.path") is failing to retrieve the library path.<br><br>Jonathan<br><br><div class="gmail_quote">On Nov 25, 2007 11:55 PM, Damjan Jovanovic <<a href="mailto:damjan@ecntelecoms.com">
damjan@ecntelecoms.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms
<br>X-ECN Telecoms-MailScanner: Found to be clean<br>X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br></div> score=-98.357, required 6, AWL 0.61, BAYES_00 -2.60,<br> FH_HOST_ALMOST_IP
1.75, RCVD_IN_PBL 0.91, RCVD_IN_SORBS_DUL 0.88,<br><div class="Ih2E3d"> RDNS_DYNAMIC 0.10, USER_IN_WHITELIST -100.00)<br>X-ECN Telecoms-MailScanner-From: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com
</a><br>X-Spam-Status: No<br><br></div><div class="Ih2E3d">On Sun, 2007-11-25 at 23:30 -0800, jonathan augenstine wrote:<br>> Damjan,<br>><br>> Thanks for the reply. I had already worked through the issues of the
<br>> -D option not allowed twice and CLASSPATH being ignored. I am<br>> successfully launching the fs_ivr class (yes, I do intend to use a jar<br>> file) but I have hit another snag (see trace below). It appears the
<br>> app is not finding the native interface library. Where do I declare<br>> that path?<br><br></div>It's hardcoded as "-Djava.library.path=" SWITCH_PREFIX_DIR<br>SWITCH_PATH_SEPARATOR "mod". So if you did a ./configure
<br>--prefix=/usr/local/freeswitch, it would look for mod_java.so or<br>mod_java.dll in /usr/local/freeswitch/mod.<br><br>You could try remote debugging at this stage (Netbeans, Run -> Attach<br>debugger) and trace through every method (especially the static
<br>constructor) in org.freeswitch.Launcher to see where and how it looks<br>for mod_java and whether it gets loaded.<br><div class="Ih2E3d"><br>> Jonathan<br>><br>> 2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:134
<br>> switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)<br>> Exception in thread "Thread-0"<br>> java.lang.reflect.InvocationTargetException<br>> at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)<br>> at<br>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>> at<br>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)<br>> at java.lang.reflect.Method.invoke(Method.java:585)<br>> at org.freeswitch.Launcher.launch(Launcher.java:80)<br>> Caused by: java.lang.UnsatisfiedLinkError: console_log<br>> at org.freeswitch.swig.freeswitchJNI.console_log
(Native Method)<br>> at org.freeswitch.swig.freeswitch.console_log(freeswitch.java:13)<br>> at fs_ivr.run(fs_ivr.java:27)<br>> ... 5 more<br>> 2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:184
<br>> switch_core_standard_on_execute() Hangup PortAudio/1234 [CS_EXE<br>><br>><br><br></div><div><div></div><div class="Wj3C7c">Damjan<br><br><br><br>_______________________________________________<br>Freeswitch-users mailing list
<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">
http://www.freeswitch.org</a><br></div></div></blockquote></div><br>