- This topic has 9 replies, 2 voices, and was last updated 18 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
CodePatriotMemberI end up manually deploying my war file into Tomcat all the time. Sorry if this is a Tomcat question.
Related question; what is the difference between the icons (the Tomcat ones) for start/stop/recycle of the app server, versus the icon of the server which lets you start/stop your app server on a sub-menu?
How am I suppose to be able to get a new war into the app server? I know there is suppose to be something called “hot <something>” which would be wild crazy if I was able to change the code and have it running with a one button click. But I haven’t tried this because I can’t believe that it would ever work.
So I start the app server, go to the admin page, remove than install the war I want. And it sure seems like about half of the time I am not running the new war file. Any suggestions for this? (Or am I just crazy?)
To be sure I am running the war I want I go into the app server directory and manually removed all references. Than copy in the war I want over. That appears to work every time, but is rather time consuming – atleast the way I write code it is.
Another related question; I noticed that Tomcat is able to find my war file even if I delete it from it’s directories. Any ideas where the reference to the war file over in the eclipse folders is?
Riyad KallaMemberRelated question; what is the difference between the icons (the Tomcat ones) for start/stop/recycle of the app server, versus the icon of the server which lets you start/stop your app server on a sub-menu?
Two different plugins/products. The 2nd set (The drop down menu) is MyEclipse, the 1st set is Sysdeo Tomcat plugin.
How am I suppose to be able to get a new war into the app server? I know there is suppose to be something called “hot <something>” which would be wild crazy if I was able to change the code and have it running with a one button click. But I haven’t tried this because I can’t believe that it would ever work.
You are missing out, this is one of the coolest time-saving features, it’s covered in our web docs here: http://www.myeclipseide.com/images/tutorials/quickstarts/appservers/
Another related question; I noticed that Tomcat is able to find my war file even if I delete it from it’s directories. Any ideas where the reference to the war file over in the eclipse folders is?
Don’t forget your <Tomcat dir>\work directory has the “compiled” version of the project.
Also, I think you are confusing yourself by using two plugins/products that accomplish the same task. Either stick to MyEclipse or Sysdeo, otherwise you will go crazy. I suggest MyEclipse 😉
CodePatriotMemberOk now I am even more confused. MyEclipse comes with Tomcat? I don’t understand the difference between the two Tomcat plug ins you are refering to. Looking at my plugin configs I see that it says “Sysdeo” for the Tomcat one. How to I get or use the MyEclipse one? Searching for “tomcat plugin” in Help doesn’t give me any help.
I am running 4.1.1GA if that makes a difference with the answer. I started by installing Eclipse, than Tomcat, than MyEclipse. The three start/stop/recycle Tomcat buttons were inserted as part of the Tomcat install.
And a related issue: I was not working with a MyEclipse “J2EE project”, I just have a war file that I want to run. Do I need to make a “J2EE web project” to do this?
CodePatriotMemberDon’t forget your <Tomcat dir>\work directory has the “compiled” version of the project.
Right. 1] I remove the folder for my project in <Tomcat dir>\work, 2] I remove the folder and war file for my project in <Tomcat dir>\webapps. I start Tomcat up from the command line and WALA! The war file and folders reappear. Same thing happens it I start Tomcat from within MyEclipse.
Riyad KallaMemberOk now I am even more confused. MyEclipse comes with Tomcat?
No
I don’t understand the difference between the two Tomcat plug ins you are refering to. Looking at my plugin configs I see that it says “Sysdeo” for the Tomcat one.
You installed MyEclipse and Sysdeo, two separate plugins. We don’t support Sysdeo, I’m just explaining why you are confused. Like having two butter knifes in one hand and then asking me why it’s so hard to butter your toast 😉
How to I get or use the MyEclipse one? Searching for “tomcat plugin” in Help doesn’t give me any help.
You configure the MyEclipse Tomcat connector under Window > Preferences > MyEclipse > Application Servers > Tomcat 5. Then you launch it using the application server drop down button and select “Start”. Please see our Application Server guide here for a walk through of a typical scenario that I linked above.
And a related issue: I was not working with a MyEclipse “J2EE project”, I just have a war file that I want to run. Do I need to make a “J2EE web project” to do this?
If you just want to run it, no drop it in Tomcat’s /webapps dir and it will explode it for you.
CodePatriotMemberPlease ignore post about the war file reappearing. I can’t reproduce that problem today. A coworker suggested I didn’t have all related processes shutdown. Not sure.
CodePatriotMemberUsing the MyEclipse drop-down button to start Tomcat (v4.something) works, but 1] my war file isn’t run, 2] the “stop” selection is not available. I have to stop Tomcat from the command line.
Using the pretty Sysdeo buttons I can start, the war file runs, and I can stop.
So you see why I have been confused. The buttons for the plugin MyEclipse doesn’t support work better for me.
Riyad KallaMemberUsing the MyEclipse drop-down button to start Tomcat (v4.something) works, but 1] my war file isn’t run, 2] the “stop” selection is not available. I have to stop Tomcat from the command line.
1) You have to deploy your project in order for it to run, I’m going to keep referring to that app server guide I linked above until you read it, and then memorize it 😉
2) This was a bug in older releases when you run the app server in “Run” mode and not “Debug” mode. Go back to your app server connector settings, under Launch, and change it to “Debug”.
Using the pretty Sysdeo buttons I can start, the war file runs, and I can stop.
So you see why I have been confused. The buttons for the plugin MyEclipse doesn’t support work better for me.There is no harm in using the Sysdeo ones if that works better, it just confuses the process and I wanted to clarify what is going on so when you come to the forums and ask for support for MyEclipse, but the issue of Sysdeo, we can’t really help (don’t use the plugin). If I can get you all setup on MyEclipse, we can happily help.
CodePatriotMemberSorry, sorry, sorry. I followed that link and forgot to mention that I am using Tomcat v4, so the pages didn’t apply. I am not able to find the same help pages for v4. Version 4 doesn’t have any “servers” view, right?
Switching to “Debug” for starting up Tomcat got rid of the problem of the “Stop” selection not showing up.
But I still am not seeing my war file get run. I don’t have this problem when I use the Sysdex start button.
So I am going to predict that you will say I need to upgrade to MyEclipse v5.
Believe me I want to use MyEclipse, the rest of my team is using XYZ and I would like to stay away from that for as long as possible.
Riyad KallaMemberSorry, sorry, sorry. I followed that link and forgot to mention that I am using Tomcat v4, so the pages didn’t apply. I am not able to find the same help pages for v4. Version 4 doesn’t have any “servers” view, right?
It’s all the same, the server view is universal across all application servers.
But I still am not seeing my war file get run. I don’t have this problem when I use the Sysdex start button.
Are you deploying the application using the deployment manager as outlined in the guide?
-
AuthorPosts