Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25111

Re: Eclipse local tomcat server classes not getting synchronized

Newsgroups comp.lang.java.programmer
Date 2013-08-22 12:46 -0700
References <b45b352a-b9af-41e3-96f0-a84fa56bb157@googlegroups.com>
Message-ID <902bb78a-3c64-4c9c-a356-4eee81db6e1f@googlegroups.com> (permalink)
Subject Re: Eclipse local tomcat server classes not getting synchronized
From Lew <lewbloch@gmail.com>

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web