Re: How to start a continuous java application in tomcat
On 14 May 2012, at 20:02, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, May 14, 2012 at 11:48 AM, Pid p...@pidster.com wrote: .oO( another chance to post the smart questions link ) Now that mail clients are smart enough e.g. to prompt the user if the message contains the word attachment but nothing is attached, maybe we should lobby for a check against (variants of) the phrase does not work that raises a Have you read this? prompt with the http://www.catb.org/~esr/faqs/smart-questions.html link... :-) .oO( a Thunderbird plugin, perhaps... ) p -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to start a continuous java application in tomcat
Hi, The scenario is: I have a java application which collects some data from sensors and stores in the database. This java application has to run continuously. On the other hand I have a web application which I am running on tomcat which collects the data from database and display it on the web. Database is same for both applications. I don't mind whether the application runs inside tomcat or outside tomcat. I've tried to make a jar file of the java application and created a simple web application which uses some classes of the jar file. But it is not working. Can anyone please tell me how do I do this. I am sure there should be an easy way to do that. Thank you. Regards.
Re: How to start a continuous java application in tomcat
On Mon, May 14, 2012 at 6:46 AM, Rishad Ali rishad@turnkey-instruments.com wrote: I have a java application which collects some data from sensors and stores in the database. This java application has to run continuously. On the other hand I have a web application which I am running on tomcat which collects the data from database and display it on the web. They sound like 2 independent applications then, which should *run* independently. The fact that they're using the same DB, or sharing some classes, is not really a good enough reason to mash them together, IMO. -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to start a continuous java application in tomcat
Hi Hassan, I don't want to run mash them. I just want to run the java application. On the local server it is working fine but when I try it in the dedicated linux server it does not work. Thank you -Original Message- From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Sent: 14 May 2012 15:30 To: Tomcat Users List Subject: Re: How to start a continuous java application in tomcat On Mon, May 14, 2012 at 6:46 AM, Rishad Ali rishad@turnkey-instruments.com wrote: I have a java application which collects some data from sensors and stores in the database. This java application has to run continuously. On the other hand I have a web application which I am running on tomcat which collects the data from database and display it on the web. They sound like 2 independent applications then, which should *run* independently. The fact that they're using the same DB, or sharing some classes, is not really a good enough reason to mash them together, IMO. -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to start a continuous java application in tomcat
On Mon, May 14, 2012 at 7:33 AM, Rishad Ali rishad@turnkey-instruments.com wrote: I don't want to run mash them. I just want to run the java application. On the local server it is working fine but when I try it in the dedicated linux server it does not work. WTF does not work mean? This apparently has nothing to do with Tomcat, so you should look for a more appropriate forum for your question, but asking for help while providing zero actual information, e.g. it does not work, will assuredly not get you far. Good luck, -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to start a continuous java application in tomcat
On 14/05/2012 15:41, Hassan Schroeder wrote: On Mon, May 14, 2012 at 7:33 AM, Rishad Ali rishad@turnkey-instruments.com wrote: I don't want to run mash them. I just want to run the java application. On the local server it is working fine but when I try it in the dedicated linux server it does not work. WTF does not work mean? This apparently has nothing to do with Tomcat, so you should look for a more appropriate forum for your question, but asking for help while providing zero actual information, e.g. it does not work, will assuredly not get you far. .oO( another chance to post the smart questions link ) p -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: How to start a continuous java application in tomcat
On Mon, May 14, 2012 at 11:48 AM, Pid p...@pidster.com wrote: .oO( another chance to post the smart questions link ) Now that mail clients are smart enough e.g. to prompt the user if the message contains the word attachment but nothing is attached, maybe we should lobby for a check against (variants of) the phrase does not work that raises a Have you read this? prompt with the http://www.catb.org/~esr/faqs/smart-questions.html link... :-) -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to start a continuous java application in tomcat
Rishad Ali wrote: Hi Hassan, I don't want to run mash them. I just want to run the java application. On the local server it is working fine but when I try it in the dedicated linux server it does not work. Thank you Ali, you have not so far provided much information that would enable anyone to help you. I do not have Pid's crystal ball and he does not grant licenses yet for the usage of InternetTelepathy[TM]. But I am either of a more charitable and forgiving nature than other people on this list, or else just more rabidly curious, so I will try to pry the information out of you. As I understand it so far : - you have created a stand-alone Java program, which works well and uses a database to store some information - you also try to create a (separate) Tomcat webapp which should access the same database information and display it to a user - to make it easier to create that webapp, you have - packed together your stand-alone program's classes, in a jar-file - tried to install that jar-file somewhere along with your webapp, under Tomcat, so that your webapp would have access to those classes - but for some reason, your webapp does not find the classes contained in that jar-file and that is what you mean when you say it does not work. (*) Is that a good summary of your problem ? If yes, then you should : - let us know which version of Tomcat you are using, under which Java JVM version, on which OS platform - find out what is the catalina base of your Tomcat (you can see all that by executing the version.sh or version.bat script that is in tomcat_install_directory/bin/). Copy and paste the output here. - let us know where, relative to that catalina_base, your webapp is installed - let us know where, relative to that cataline_base, you have installed that jar-file - show us what appears in the Tomcat logs, which shows that your webapp is not working (*) (copy the relevant log lines here). (You should provide this information anyway, even if my effort above is not a good description of your problem. And also correct my summary then.) Note # 1 : copy-and-paste the requested information inside your response. Do not send it as attachments, because this list strips most attachments. Note # 2 : for even more sympathy from the list than what you got so far, do not top-post. Write your answers *below* the relevant questions, not all on top of your message. (Just so that questions and answers can be read logically and naturally, without having to scroll up and down to understand what is relevant to what.) (*) no popup dialog there yet. it does not work; my app doesn't work; its not working; Nope, nothing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org