Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Question about usage of mod_java


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
i.mkmo at hotmail.com
Guest





PostPosted: Sun Nov 09, 2008 11:39 am    Post subject: [Freeswitch-users] Question about usage of mod_java Reply with quote

Quote:
Hi,I've been testing the usage of mod_java and reading Freeswitch documentation but been having some problems which I think might even be something very simple which I've missed. Hope some could give a hint..mod_java installation has gone through successfully and mod_java.so is compiled and installed. Configuration files java.conf.xml and dialplan are configured as instructed in http://wiki.freeswitch.org/wiki/JavaCompilation of the Java example in the same page is successful (CLASSPATH included freeswtich.jar of course). Problem comes when I try to initiate the script via dialplan - that is I'm trying to make a call to an extension which then calls this example script (dialplan says: <action application="java" data="PhoneTest arg1 arg2 arg3"/>).I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
0
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
1
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
2
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
3
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
4
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
5
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
6
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
7
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
8
Quote:
I've been testing the usage of mod_java and reading Freeswitch documentation but been having some
9
Chat online and in real-time with friends and family! Windows Live MessengerAlways-on security tools provide safer ways to connect and share anywhere. Find out more. Windows Live
Back to top
damjan at ecntelecoms.com
Guest





PostPosted: Mon Nov 10, 2008 2:04 am    Post subject: [Freeswitch-users] Question about usage of mod_java Reply with quote

Quote:

Hi,I've been testing the usage of mod_java and reading Freeswitch
documentation but been having some problems which I think might even be
something very simple which I've missed. Hope some could give a
hint..mod_java installation has gone through successfully and mod_java.so
is compiled and installed. Configuration files java.conf.xml and dialplan
are configured as instructed in
http://wiki.freeswitch.org/wiki/JavaCompilation of the Java example in
the same page is successful (CLASSPATH included freeswtich.jar of
course). Problem comes when I try to initiate the script via dialplan -
that is I'm trying to make a call to an extension which then calls this
example script (dialplan says: <action application="java" data="PhoneTest
arg1 arg2 arg3"/>).

Either use:

<action application="java" data="package.PhoneTest arg1 arg2"/>

where package.PhoneTest is in the classpath in java.conf.xml, or else use:

<action application="java" data="/path/to/file.jar
fully.qualified.class.name arg1 arg2"/>

which will look in a specific jar file instead of the classpath.

Quote:
Error message gives me:Exception in thread "Thread-1"
java.lang.ClassNotFoundException: /usr/local/freeswitch/scripts/PhoneTest
at java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:242) at
org.freeswitch.Launcher.launch(Launcher.java:65)I presume this means that
the script is called invalid manner? I've been trying to call the
PhoneTest with full path, locating it together with freeswitch.jar,
creating a directory PhoneTest just name it.Documentation does not say if
the Java binary needs to be in certain location or not - is there
amandatory location for it? What else am I doing wrong? Nic <br />

Chat online and in real-time with friends and family! Windows Live
Messenger
_________________________________________________________________
Easily publish your photos to your Spaces with Photo Gallery.
http://get.live.com/photogallery/overview_______________________________________________
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



Bye
Damjan



_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services