Re: [Asterisk-java-users] To run a standalone java program in a browser
Brought to you by:
srt
From: Allan K. <kam...@ya...> - 2008-03-27 13:06:39
|
Then maybe $CATALINA_HOME/commons/lib You may try removing the web application then redeploying it - am not sure if it's possible to add jar files to an already deployed webapp ( my memory is rusty). You may need to look at the tomcat docs on deploying web applications and their associated jar files. Allan. ----- Original Message ---- From: preetha Ayyappan <pre...@gm...> To: ast...@li... Sent: Thursday, March 27, 2008 2:39:52 PM Subject: Re: [Asterisk-java-users] To run a standalone java program in a browser I have tried both the options.still i am getting the same error. On 3/27/08, Allan Kamau <kam...@ya...> wrote:Youmay need to place the jar file in the WEB-INF/lib directory of theservlet application you are deploying. If all fails, one of the lastoptions would be to place it (the jar file) in tomcat's installationwide directory (I think it is) $CATALINA_HOME/lib Allan. ----- Original Message ---- From: preetha Ayyappan <pre...@gm...> To: ast...@li... Sent: Thursday, March 27, 2008 12:52:37 PM Subject: Re: [Asterisk-java-users] To run a standalone java program in a browser Hi, As you suggested,I have placed the asteriskjava.jar file intowebapps/root/web-inf/lib.when i try to compile the servlet program i amgetting the following error: java.lang.NoClassDefFoundError: org/asteriskjava/manager/ManagerConnectionFactory since i am having the ManagerConnectionFactory.class as imported. Please assist me On 2/28/08, Patrick Breucking <bre...@go...> wrote:Hi Preetha, so you can use the package manager from your linux distribution to install a tomcat on your machine. If you are using e.g. debian, use: $> apt-get install tomcat I don't now if there is a way to run asp.net in a tomcat container, but you can use tomcat only for originate. So create a Webapp in your preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir for tomcat webapps. Create a Servlet with a .doGet() Method, so you can extract the extension parameter from URL with ... request.getAttribute("extension"); ... and you can use your Asterisk-Java code. The URL is http://localhost:8080/Servlet?extension=183 Hope this helps, let me know if you have problems or other questions. Regards, Patrick preetha Ayyappan schrieb: > Hi, > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > originate a call to an extension.But as it is a stanalone > application,I can able to run the program in console only.Then the > call gets originated to the extension i have specified.But my > requirement is ,If i click a number in a web based application which > is developed in asp.net <http://asp.net>,that number should be passed > to the HelloManager.java program and that number should be > originated.I cannot do this since HelloManager.java is standalone.How > could i run the java program in a browser? please let me know in > brief where should i download tomcat in my linux and how to run this? > > Thanks. > Preetha.A > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Preetha.A -----Inline Attachment Follows----- ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Preetha.A ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |