Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19543
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Eclipse - cannot create tomcat server |
| References | <k6gv95$2sc$1@news.m-online.net> |
| Message-ID | <u5Yis.1267$sz4.486@newsfe11.iad> (permalink) |
| Organization | Public Usenet Newsgroup Access |
| Date | 2012-10-27 18:10 -0300 |
On 10/27/2012 12:39 PM, Laura Schmidt wrote: > Hello, > > I had a working configuration with eclipse (Juno) and tomcat 6. Then, I > wanted to switch to tomcat 7 and modified my configuration. Now, I have > no working tomcat server within eclipse. > > There are two tomcat installations under /opt: > > drwxr-xr-x 9 root root 4096 Oct 2 05:45 apache-tomcat-6.0.29 > drwxr-xr-x 9 root root 4096 Oct 2 05:43 apache-tomcat-7.0.30 > > I always used the tomcat 6 installation without problems. > > Within eclipse, I am able to define a runtime configuration for both > tomcat installations: > > Window -> Preferences -> Server -> Runtime Configurations > > For example, I can define a new runtime configuration like this: > > Name: "Apache Tomcat v6.0" > Directory: /opt/apache-tomcat-6.0.29 > > (Same vor tomcat 7). > > So far, so good. But when I try to define a server, I run into problems: > > File -> New -> Other -> Server -> Server > > I can choose the server type, e. g.: > > Tomcat v6.0 Server or > Tomcat v7.0 Server > > The server's host name is preset to "localhost". > The server's name is empty and I cannot edit it (disabled). > > The "Next" and "Finish" buttons are disabled. > > So I cannot define a new tomcat server. > > Remember: I had a working configuration, where I could run my dynamic > web projects with "Run -> Run on Server", and the only thing I did was > to remove the tomcat 6 server. > > What is the problem here? > > I would be glad if some experts could help me. > > Thank you a lot! > Laura I don't know exactly what the problem is, but Eclipse (any version) is buggy just like any other piece of software. Anyone who has done dozens or hundreds of server definitions in Eclipse has eventually seen all sorts of problems. Yet, with the exception of completely unsupported servers/versions, if it's on the list of server adapters you can make it work - ultimately. And any combinations thereof. I had a pristine Eclipse Juno on my new OpenSUSE setup so I just now installed Tomcat 7 on JDK 7, and then Tomcat 6 on JDK 6. I did everything from the Windows->Preferences->Server->Runtime Environments menu, including checking "Create a new local server" so that I didn't have to do it under the Servers tab later. This was just to remind myself of the steps in a successful configuration of 2 versions of Tomcat. My feeling is that you may have to take things back to a clean slate. Download and unzip a new Eclipse Juno if you have to, it's not painful these days. One related note on Eclipse server configurations: I've never had a good time with the default Server overview setting of "Use workspace metadata" for Server Locations. A note regarding deployment options: don't forget that you always have IDE options to export work as WAR's, JAR's or EAR's. I often do Tomcat or other Java app server app deployments through their management consoles, using a WAR or EAR. Sometimes this is the only way I can do it, actually. But it's never a bad way to do it, because in production that's how operations staff will often deploy new builds. AHS
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-10-27 17:39 +0200
Re: Eclipse - cannot create tomcat server Arne Vajhøj <arne@vajhoej.dk> - 2012-10-27 11:49 -0400
Re: Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-10-27 19:20 +0200
Re: Eclipse - cannot create tomcat server Arne Vajhøj <arne@vajhoej.dk> - 2012-10-27 14:07 -0400
Re: Eclipse - cannot create tomcat server Arved Sandstrom <asandstrom2@eastlink.ca> - 2012-10-27 18:10 -0300
Re: Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-10-28 00:20 +0200
Re: Eclipse - cannot create tomcat server Arved Sandstrom <asandstrom2@eastlink.ca> - 2012-10-28 10:27 -0300
SOLVED: Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-10-31 19:00 +0100
Re: SOLVED: Eclipse - cannot create tomcat server markspace <-@.> - 2012-10-31 11:18 -0700
Re: SOLVED: Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-11-05 07:04 +0100
Re: SOLVED: Eclipse - cannot create tomcat server jebblue <n@n.nnn> - 2012-11-03 11:20 -0500
Re: SOLVED: Eclipse - cannot create tomcat server Laura Schmidt <ls@mailinator.com> - 2012-11-05 07:12 +0100
Re: SOLVED: Eclipse - cannot create tomcat server jebblue <n@n.nnn> - 2012-11-07 00:21 -0600
csiph-web