Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25106 > unrolled thread
| Started by | zigzagdna@yahoo.com |
|---|---|
| First post | 2013-08-22 05:15 -0700 |
| Last post | 2013-09-04 14:30 -0300 |
| Articles | 7 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
Eclipse local tomcat server classes not getting synchronized zigzagdna@yahoo.com - 2013-08-22 05:15 -0700
Re: Eclipse local tomcat server classes not getting synchronized Lew <lewbloch@gmail.com> - 2013-08-22 12:46 -0700
Re: Eclipse local tomcat server classes not getting synchronized zigzagdna@yahoo.com - 2013-08-22 20:41 -0700
Re: Eclipse local tomcat server classes not getting synchronized Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-09-01 16:45 -0300
Re: Eclipse local tomcat server classes not getting synchronized Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 17:46 -0400
Re: Eclipse local tomcat server classes not getting synchronized eric@invalid.com (EricF) - 2013-09-02 03:01 +0000
Re: Eclipse local tomcat server classes not getting synchronized Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-09-04 14:30 -0300
| From | zigzagdna@yahoo.com |
|---|---|
| Date | 2013-08-22 05:15 -0700 |
| Subject | Eclipse local tomcat server classes not getting synchronized |
| Message-ID | <b45b352a-b9af-41e3-96f0-a84fa56bb157@googlegroups.com> |
I am new to Eclipse. I am developing some web services.e.g., MyService, using Dynamic Web project. I setup a local tomcat inside Eclipse at port 8081... I created Web Service and it seemed working. In addition to src and build folders, I do see webcontents folder and several folders under it including services/../MyService which are indication that my web service has been deployed under local tomcat. I made some changes in java code. I do see class file date/time get updated under build/classes, but I do not see updates under webcontents/WEB-INF/services/MyService which has my classes, why? I do have hot update set to true in axis2.xxml file under MyService/.../webcontents/... When I run my web service in Eclipse it does show the changes I have made in java code, so somehow they seem to be published to local tomcat; but I do not class date/time updated. I also added a new java class MyTest under Src. While it shows under build.. It does not show under contents? 1. How can I set automatic refresh of folders under webcontents ... 2. Why when I run my web services under Eclipse it runs just fine and shows the changes I made. Thanks a lot.
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-08-22 12:46 -0700 |
| Message-ID | <902bb78a-3c64-4c9c-a356-4eee81db6e1f@googlegroups.com> |
| In reply to | #25106 |
On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: > I am new to Eclipse. I am developing some web services.e.g., MyService, using Dynamic Web project. I setup a local tomcat [sic] inside Eclipse at port 8081... I created Web Service and it seemed working. In addition to src and build folders, I do see webcontents folder and several folders under it including services/../MyService which are indication that my web service has been deployed under local tomcat. > > I made some changes in java [sic] code. I do see class file date/time get updated under build/classes, but I do not see updates under webcontents/WEB-INF/services/MyService which has my classes, why? I do have hot update set to true in axis2.xxml file under MyService/.../webcontents/... > > When I run my web service in Eclipse it does show the changes I have made in java code, so somehow they seem to be published to local tomcat; but I do not class date/time updated. I also added a new java class MyTest under Src. While it shows under build.. It does not show under contents? > > 1. How can I set automatic refresh of folders under webcontents ... Tomcat admin console. > 2. Why when I run my web services under Eclipse it runs just fine and shows the changes I made. Eclipse handles its own builds. If you have a build.xml for your project, which you should (or the equivalent Maven or Gradle configuration), then you can build from the command line and from Eclipse, plus Eclipse can be configured to drive its build from the build.xml. The normal way (i.e., not through Eclipse) to install an application in Tomcat is via the WAR file that your project builds. Use the Tomcat managment console to deploy the WAR and Tomcat does the rest. You should not deploy raw classes to Tomcat (or other Java EE container). Too many things get omitted that way. Deploy via WAR. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | zigzagdna@yahoo.com |
|---|---|
| Date | 2013-08-22 20:41 -0700 |
| Message-ID | <a97e0f63-19ba-4244-b05a-22c27b8f2d25@googlegroups.com> |
| In reply to | #25111 |
Lew: Thanks. This is some local tomcat which eclipse creates inside its work space. When I make a war using export of project in Eclipise, it is making war from the web contents folder, so war does not help. I have to manually copy classes from build to web contents folder, Then I can make a war and deploy itto tomcat outside Eclipse workspace but not inside eclipse workspace. Right now I am doing everything inside EClipse Workspace. On Thursday, August 22, 2013 3:46:26 PM UTC-4, Lew wrote: > On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: > I am new to Eclipse. I am developing some web services.e.g., MyService, using Dynamic Web project. I setup a local tomcat [sic] inside Eclipse at port 8081... I created Web Service and it seemed working. In addition to src and build folders, I do see webcontents folder and several folders under it including services/../MyService which are indication that my web service has been deployed under local tomcat. > > I made some changes in java [sic] code. I do see class file date/time get updated under build/classes, but I do not see updates under webcontents/WEB-INF/services/MyService which has my classes, why? I do have hot update set to true in axis2.xxml file under MyService/.../webcontents/... > > When I run my web service in Eclipse it does show the changes I have made in java code, so somehow they seem to be published to local tomcat; but I do not class date/time updated. I also added a new java class MyTest under Src. While it shows under build.. It does not show under contents? > > 1. How can I set automatic refresh of folders under webcontents ... Tomcat admin console. > 2. Why when I run my web services under Eclipse it runs just fine and shows the changes I made. Eclipse handles its own builds. If you have a build.xml for your project, which you should (or the equivalent Maven or Gradle configuration), then you can build from the command line and from Eclipse, plus Eclipse can be configured to drive its build from the build.xml. The normal way (i.e., not through Eclipse) to install an application in Tomcat is via the WAR file that your project builds. Use the Tomcat managment console to deploy the WAR and Tomcat does the rest. You should not deploy raw classes to Tomcat (or other Java EE container). Too many things get omitted that way. Deploy via WAR. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Date | 2013-09-01 16:45 -0300 |
| Message-ID | <xPMUt.242923$ZD2.20981@fx19.iad> |
| In reply to | #25111 |
On 08/22/2013 04:46 PM, Lew wrote: > On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: >> I am new to Eclipse. I am developing some web services.e.g., MyService, using Dynamic Web project. I setup a local tomcat [sic] inside Eclipse at port 8081... I created Web Service and it seemed working. In addition to src and build folders, I do see webcontents folder and several folders under it including services/../MyService which are indication that my web service has been deployed under local tomcat. >> >> I made some changes in java [sic] code. I do see class file date/time get updated under build/classes, but I do not see updates under webcontents/WEB-INF/services/MyService which has my classes, why? I do have hot update set to true in axis2.xxml file under MyService/.../webcontents/... >> >> When I run my web service in Eclipse it does show the changes I have made in java code, so somehow they seem to be published to local tomcat; but I do not class date/time updated. I also added a new java class MyTest under Src. While it shows under build.. It does not show under contents? >> >> 1. How can I set automatic refresh of folders under webcontents ... > > Tomcat admin console. > >> 2. Why when I run my web services under Eclipse it runs just fine and shows the changes I made. > > Eclipse handles its own builds. If you have a build.xml for your project, which you should (or the > equivalent Maven or Gradle configuration), then you can build from the command line and from > Eclipse, plus Eclipse can be configured to drive its build from the build.xml. > > The normal way (i.e., not through Eclipse) to install an application in Tomcat is via the WAR file that > your project builds. Use the Tomcat managment console to deploy the WAR and Tomcat does the rest. > > You should not deploy raw classes to Tomcat (or other Java EE container). Too many things get omitted > that way. Deploy via WAR. > I often dispense with Eclipse (or other IDEs for that matter) for deployments, IOW direct interaction with the server. Whatever the server may be. Very few of the guys that I hand the apps off to are programmers, nor will they use IDEs to deploy. It helps me explain to them how they need to do things if I deploy the same way they have to. The admin consoles for modern servers are finally well-designed enough that you can do stuff quite quickly. I'm with Lew too that you shouldn't normally use IDE internal build mechanisms. Use Ant or Maven etc. IDEs are for developers, and few other people understand them. And people other than developers do have to run builds. AHS -- When a true genius appears, you can know him by this sign: that all the dunces are in a confederacy against him. -- Jonathan Swift
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-09-01 17:46 -0400 |
| Message-ID | <5223b5b7$0$304$14726298@news.sunsite.dk> |
| In reply to | #25199 |
On 9/1/2013 3:45 PM, Arved Sandstrom wrote: > On 08/22/2013 04:46 PM, Lew wrote: >> On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: >>> I am new to Eclipse. I am developing some web services.e.g., >>> MyService, using Dynamic Web project. I setup a local tomcat [sic] >>> inside Eclipse at port 8081... I created Web Service and it seemed >>> working. In addition to src and build folders, I do see webcontents >>> folder and several folders under it including services/../MyService >>> which are indication that my web service has been deployed under >>> local tomcat. >>> >>> I made some changes in java [sic] code. I do see class file date/time >>> get updated under build/classes, but I do not see updates under >>> webcontents/WEB-INF/services/MyService which has my classes, why? I >>> do have hot update set to true in axis2.xxml file under >>> MyService/.../webcontents/... >>> >>> When I run my web service in Eclipse it does show the changes I have >>> made in java code, so somehow they seem to be published to local >>> tomcat; but I do not class date/time updated. I also added a new java >>> class MyTest under Src. While it shows under build.. It does not show >>> under contents? >>> >>> 1. How can I set automatic refresh of folders under webcontents ... >> >> Tomcat admin console. >> >>> 2. Why when I run my web services under Eclipse it runs just fine and >>> shows the changes I made. >> >> Eclipse handles its own builds. If you have a build.xml for your >> project, which you should (or the >> equivalent Maven or Gradle configuration), then you can build from the >> command line and from >> Eclipse, plus Eclipse can be configured to drive its build from the >> build.xml. >> >> The normal way (i.e., not through Eclipse) to install an application >> in Tomcat is via the WAR file that >> your project builds. Use the Tomcat managment console to deploy the >> WAR and Tomcat does the rest. >> >> You should not deploy raw classes to Tomcat (or other Java EE >> container). Too many things get omitted >> that way. Deploy via WAR. >> > I often dispense with Eclipse (or other IDEs for that matter) for > deployments, IOW direct interaction with the server. Whatever the server > may be. Very few of the guys that I hand the apps off to are > programmers, nor will they use IDEs to deploy. It helps me explain to > them how they need to do things if I deploy the same way they have to. > The admin consoles for modern servers are finally well-designed enough > that you can do stuff quite quickly. > > I'm with Lew too that you shouldn't normally use IDE internal build > mechanisms. Use Ant or Maven etc. IDEs are for developers, and few other > people understand them. And people other than developers do have to run > builds. I would go a step further and say that the entire concept of integrating servers into IDE is wrong. Arne
[toc] | [prev] | [next] | [standalone]
| From | eric@invalid.com (EricF) |
|---|---|
| Date | 2013-09-02 03:01 +0000 |
| Message-ID | <l00v2r$jsd$2@dont-email.me> |
| In reply to | #25203 |
In article <5223b5b7$0$304$14726298@news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@vajhoej.dk> wrote: >On 9/1/2013 3:45 PM, Arved Sandstrom wrote: >> On 08/22/2013 04:46 PM, Lew wrote: >>> On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: >>>> I am new to Eclipse. I am developing some web services.e.g., >>>> MyService, using Dynamic Web project. I setup a local tomcat [sic] >>>> inside Eclipse at port 8081... I created Web Service and it seemed >>>> working. In addition to src and build folders, I do see webcontents >>>> folder and several folders under it including services/../MyService >>>> which are indication that my web service has been deployed under >>>> local tomcat. >>>> >>>> I made some changes in java [sic] code. I do see class file date/time >>>> get updated under build/classes, but I do not see updates under >>>> webcontents/WEB-INF/services/MyService which has my classes, why? I >>>> do have hot update set to true in axis2.xxml file under >>>> MyService/.../webcontents/... >>>> >>>> When I run my web service in Eclipse it does show the changes I have >>>> made in java code, so somehow they seem to be published to local >>>> tomcat; but I do not class date/time updated. I also added a new java >>>> class MyTest under Src. While it shows under build.. It does not show >>>> under contents? >>>> >>>> 1. How can I set automatic refresh of folders under webcontents ... >>> >>> Tomcat admin console. >>> >>>> 2. Why when I run my web services under Eclipse it runs just fine and >>>> shows the changes I made. >>> >>> Eclipse handles its own builds. If you have a build.xml for your >>> project, which you should (or the >>> equivalent Maven or Gradle configuration), then you can build from the >>> command line and from >>> Eclipse, plus Eclipse can be configured to drive its build from the >>> build.xml. >>> >>> The normal way (i.e., not through Eclipse) to install an application >>> in Tomcat is via the WAR file that >>> your project builds. Use the Tomcat managment console to deploy the >>> WAR and Tomcat does the rest. >>> >>> You should not deploy raw classes to Tomcat (or other Java EE >>> container). Too many things get omitted >>> that way. Deploy via WAR. >>> >> I often dispense with Eclipse (or other IDEs for that matter) for >> deployments, IOW direct interaction with the server. Whatever the server >> may be. Very few of the guys that I hand the apps off to are >> programmers, nor will they use IDEs to deploy. It helps me explain to >> them how they need to do things if I deploy the same way they have to. >> The admin consoles for modern servers are finally well-designed enough >> that you can do stuff quite quickly. >> >> I'm with Lew too that you shouldn't normally use IDE internal build >> mechanisms. Use Ant or Maven etc. IDEs are for developers, and few other >> people understand them. And people other than developers do have to run >> builds. > >I would go a step further and say that the entire concept of integrating >servers into IDE is wrong. > >Arne > > I think IDE server integration is fine for rapid development and debugging with an exploded WAR, Just make sure you test it without the IDE before saying you are done. Eric
[toc] | [prev] | [next] | [standalone]
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Date | 2013-09-04 14:30 -0300 |
| Message-ID | <67KVt.347485$QT4.341794@fx22.iad> |
| In reply to | #25207 |
On 09/02/2013 12:01 AM, EricF wrote: > In article <5223b5b7$0$304$14726298@news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@vajhoej.dk> wrote: >> On 9/1/2013 3:45 PM, Arved Sandstrom wrote: >>> On 08/22/2013 04:46 PM, Lew wrote: >>>> On Thursday, August 22, 2013 5:15:33 AM UTC-7, zigz...@yahoo.com wrote: >>>>> I am new to Eclipse. I am developing some web services.e.g., >>>>> MyService, using Dynamic Web project. I setup a local tomcat [sic] >>>>> inside Eclipse at port 8081... I created Web Service and it seemed >>>>> working. In addition to src and build folders, I do see webcontents >>>>> folder and several folders under it including services/../MyService >>>>> which are indication that my web service has been deployed under >>>>> local tomcat. >>>>> >>>>> I made some changes in java [sic] code. I do see class file date/time >>>>> get updated under build/classes, but I do not see updates under >>>>> webcontents/WEB-INF/services/MyService which has my classes, why? I >>>>> do have hot update set to true in axis2.xxml file under >>>>> MyService/.../webcontents/... >>>>> >>>>> When I run my web service in Eclipse it does show the changes I have >>>>> made in java code, so somehow they seem to be published to local >>>>> tomcat; but I do not class date/time updated. I also added a new java >>>>> class MyTest under Src. While it shows under build.. It does not show >>>>> under contents? >>>>> >>>>> 1. How can I set automatic refresh of folders under webcontents ... >>>> >>>> Tomcat admin console. >>>> >>>>> 2. Why when I run my web services under Eclipse it runs just fine and >>>>> shows the changes I made. >>>> >>>> Eclipse handles its own builds. If you have a build.xml for your >>>> project, which you should (or the >>>> equivalent Maven or Gradle configuration), then you can build from the >>>> command line and from >>>> Eclipse, plus Eclipse can be configured to drive its build from the >>>> build.xml. >>>> >>>> The normal way (i.e., not through Eclipse) to install an application >>>> in Tomcat is via the WAR file that >>>> your project builds. Use the Tomcat managment console to deploy the >>>> WAR and Tomcat does the rest. >>>> >>>> You should not deploy raw classes to Tomcat (or other Java EE >>>> container). Too many things get omitted >>>> that way. Deploy via WAR. >>>> >>> I often dispense with Eclipse (or other IDEs for that matter) for >>> deployments, IOW direct interaction with the server. Whatever the server >>> may be. Very few of the guys that I hand the apps off to are >>> programmers, nor will they use IDEs to deploy. It helps me explain to >>> them how they need to do things if I deploy the same way they have to. >>> The admin consoles for modern servers are finally well-designed enough >>> that you can do stuff quite quickly. >>> >>> I'm with Lew too that you shouldn't normally use IDE internal build >>> mechanisms. Use Ant or Maven etc. IDEs are for developers, and few other >>> people understand them. And people other than developers do have to run >>> builds. >> >> I would go a step further and say that the entire concept of integrating >> servers into IDE is wrong. >> >> Arne >> >> > I think IDE server integration is fine for rapid development and > debugging with an exploded WAR, Just make sure you test it without the IDE > before saying you are done. > > Eric > I honestly don't think "rapid" development (however that is measured) is impeded by separating the coding from building and deployment. I'm increasingly disposed to believe that too much 'I' in IDE actually wastes time. If there is just enough friction in a code-build-deploy-test cycle, it makes everyone (maybe one single person in early development) think about what they are doing. I think most of us have been guilty of being seduced by IDEs and getting into a very rapid "code with little thought"-build-deploy-"see what breaks" cycle...which is harmful. AHS -- When a true genius appears, you can know him by this sign: that all the dunces are in a confederacy against him. -- Jonathan Swift
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web