Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can't add a new Tomcat 7 Server(After deleting a previous version and installing a new version...)
icon1.gif  Can't add a new Tomcat 7 Server [message #1067138] Sat, 06 July 2013 09:09 Go to next message
Omar Pérez is currently offline Omar PérezFriend
Messages: 1
Registered: July 2013
Junior Member
Technical Information

IDE: Eclipse Kepler
Server: Tomcat 7.0.42 | Previous version: 1.0;
Issue, can't properly add a new version of Tomcat Server V7.0

Greetings,

For some unknown reason, after deleting the tomcat server from both the server fast tab and the window > Preference > Servers, and then adding it back to from the windows menu, whenever I start a new Dynamic web project and try to pick a Tomcat Server V7.0, I can't; neither is possible from the link in the fast tab menu.

I attached a screenshot of how it looks to me.

Hoping anyone could give me a hand with this issue,

Thanks for reading.
  • Attachment: Capture.JPG
    (Size: 48.61KB, Downloaded 6377 times)
Re: Can't add a new Tomcat 7 Server [message #1067168 is a reply to message #1067138] Sun, 07 July 2013 03:55 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/06/2013 11:07 AM, Omar Pérez wrote:
> Technical Information
>
> IDE: Eclipse Kepler
> Server: Tomcat 7.0.42 | Previous version: 1.0;
> Issue, can't properly add a new version of Tomcat Server V7.0
>
> Greetings,
>
> For some unknown reason, after deleting the tomcat server from both the server fast tab and the window > Preference > Servers, and then adding it back to from the windows menu, whenever I start a new Dynamic web project and try to pick a Tomcat Server V7.0, I can't; neither is possible from the link in the fast tab menu.
>
> I attached a screenshot of how it looks to me.
>
> Hoping anyone could give me a hand with this issue,
>
> Thanks for reading.

I don't follow: what happens when you click on Tomcat v7.0 in the list?
Re: Can't add a new Tomcat 7 Server [message #1067611 is a reply to message #1067168] Tue, 09 July 2013 14:52 Go to previous messageGo to next message
Kevin Schulke is currently offline Kevin SchulkeFriend
Messages: 4
Registered: July 2013
Junior Member
I have also experienced this problem with Eclipse Kepler running on Fedora 18. I executed these steps to create new Server in Eclipse:

1. Click Server tab
2. Click link to create new server
3. Highlight Tomcat v7.0 Server

Server host name is set to localhost
Server name is blank

Next> button is not active. Only Cancel button is available.

If I selected Tomcat v6.0 Server, the server host name is localhost and server name is populated. Next> button is active.

I have attempted to remove the runtime and add it again with no success. I found a Juno fix by removing some config files, but it did not work either. Is there another fix for Kepler?

Kevin Schulke
Re: Can't add a new Tomcat 7 Server [message #1067627 is a reply to message #1067611] Tue, 09 July 2013 16:38 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 7/9/2013 9:05 AM, Kevin Schulke wrote:
> I have also experienced this problem with Eclipse Kepler running on
> Fedora 18. I executed these steps to create new Server in Eclipse:
>
> 1. Click Server tab
> 2. Click link to create new server
> 3. Highlight Tomcat v7.0 Server
>
> Server host name is set to localhost
> Server name is blank
>
> Next> button is not active. Only Cancel button is available.
>
> If I selected Tomcat v6.0 Server, the server host name is localhost and
> server name is populated. Next> button is active.
>
> I have attempted to remove the runtime and add it again with no
> success. I found a Juno fix by removing some config files, but it did
> not work either. Is there another fix for Kepler?
>
> Kevin Schulke

This may be a bug. I don't use 7 (just saying, not making a point of
it), but I had no trouble creating a Tomcat 6 server in Kepler. Perhaps
you should go to the trouble of submitting a bug report. If you bring
this issue up in the Eclipse web tools forum, which is really where this
should have been asked in the first place, someone there might want to
do it for you since it's pretty important. (I'm not a moderator and
can't move this thread.)
Re: Can't add a new Tomcat 7 Server [message #1067670 is a reply to message #1067627] Wed, 10 July 2013 00:07 Go to previous messageGo to next message
Rodrigo Faria is currently offline Rodrigo FariaFriend
Messages: 2
Registered: July 2013
Junior Member
hi guys,

Just to let you know, I've just got the same issue here with Kepler EE (Build id: 20130614-0229).

After deleting a Tomcat server, I can't create another instance for 7.0 version.

Regards,
falico
Re: Can't add a new Tomcat 7 Server [message #1067671 is a reply to message #1067627] Wed, 10 July 2013 00:11 Go to previous messageGo to next message
Rodrigo Faria is currently offline Rodrigo FariaFriend
Messages: 2
Registered: July 2013
Junior Member
I've just posted and found the solution in stackoverflow (stackoverflow.com/questions/14791843/eclipse-add-tomcat-7-blank-server-name):

Quote:
1. Close Eclipse
2. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
3. Restart Eclipse


regards
falico
Re: Can't add a new Tomcat 7 Server [message #1180220 is a reply to message #1067671] Sun, 10 November 2013 21:31 Go to previous messageGo to next message
balta Mising name is currently offline balta Mising nameFriend
Messages: 3
Registered: September 2010
Junior Member
Thanks!
Worked for me (Juno under ubuntu 12.04) Smile
Re: Can't add a new Tomcat 7 Server [message #1181206 is a reply to message #1180220] Mon, 11 November 2013 12:51 Go to previous messageGo to next message
Heiko Schmittwer is currently offline Heiko SchmittwerFriend
Messages: 2
Registered: November 2013
Junior Member
Hello!

Ive had the same problem with Kepler and Tomcat7. I searched google and found that it's simply a bug.
Re: Can't add a new Tomcat 7 Server [message #1221078 is a reply to message #1067138] Mon, 16 December 2013 21:00 Go to previous messageGo to next message
richar M is currently offline richar MFriend
Messages: 1
Registered: December 2013
Junior Member
Hi! I know that somebody fix the problem deleting this two links

org.eclipse.jst.server.tomcat.core.prefs
org.eclipse.wst.server.core.prefs

But for me is impossible, I have Ubuntu 12.04, Tomcat7 and Eclipse Indigo.
If delete this 2 links when add the server again, the links pop-up again and I'm in the same situation.

Could someone help me? I'm very frustated...

Thanks in advance.
Re: Can't add a new Tomcat 7 Server [message #1221117 is a reply to message #1221078] Mon, 16 December 2013 23:31 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12/16/2013 03:59 PM, richar M wrote:
> Hi! I know that somebody fix the problem deleting this two links
>
> org.eclipse.jst.server.tomcat.core.prefs
> org.eclipse.wst.server.core.prefs
>
> But for me is impossible, I have Ubuntu 12.04, Tomcat7 and Eclipse Indigo.
> If delete this 2 links when add the server again, the links pop-up again
> and I'm in the same situation.
>
> Could someone help me? I'm very frustated...
>
> Thanks in advance.

Just what is the "same situation"?

I just downloaded Tomcat 7 and add it to my workbench. I'm running Mint
13 (Ubuntu 12.04) and Indigo.
icon12.gif  Re: Can't add a new Tomcat 7 Server [message #1233018 is a reply to message #1067138] Sat, 18 January 2014 10:52 Go to previous messageGo to next message
Chintan Popat is currently offline Chintan PopatFriend
Messages: 2
Registered: January 2014
Junior Member
hi i have same problem
but i get solution

just follow the following steps

step 1: go to Help Menu

step 2: select Install New Software

step 3: in the opeing window there is 1 drop down "work with" select your eclipse verstion like "kepler"

step 4: then are displayed many groups in down box expand "Web, XML, Java EE and OSGi Enterprise Development" this group

step 5: then select "JST Server Adapters Extensions"

step 6: next

step 7: next

setp 8: select accept

step 9: install

step 10: restart eclipse

step 11: go to File -> New -> Other -> Server -> Server -> there are tomcat 7 is available and select

step 12: Enjoy Smile

icon14.gif  Re: Can't add a new Tomcat 7 Server [message #1288159 is a reply to message #1067671] Tue, 08 April 2014 10:27 Go to previous messageGo to next message
Mir Ali is currently offline Mir AliFriend
Messages: 1
Registered: April 2014
Junior Member
Mir:

Nothing happened when I tried to do what Chintan Popat had suggested below i.e. to uninstall "JST Server Adapters Extensions".

However, what Rodrigo Faria posted below worked for me.

>>Rodrigo Faria:

>>I've just posted and found the solution in stackoverflow (stackoverflow.com/questions/14791843/eclipse-add-tomcat-7-blank-server-name):

>>Quote:
>>1. Close Eclipse
>>2. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
>>org.eclipse.wst.server.core.prefs
>>org.eclipse.jst.server.tomcat.core.prefs
>>3. Restart Eclipse

>>regards
>>falico


Regards,
Mir
Re: Can't add a new Tomcat 7 Server [message #1312649 is a reply to message #1067611] Thu, 24 April 2014 12:20 Go to previous messageGo to next message
suresh kumar is currently offline suresh kumarFriend
Messages: 1
Registered: April 2014
Junior Member
problem is go to preferences--->server runtime env-->add server-> select tomcat7 folder
then ur problem is solved.
Re: Can't add a new Tomcat 7 Server [message #1315249 is a reply to message #1067671] Fri, 25 April 2014 22:03 Go to previous messageGo to next message
Sneha Bawachkar is currently offline Sneha BawachkarFriend
Messages: 1
Registered: April 2014
Junior Member
worked perfectly for me. thanks....
Re: Can't add a new Tomcat 7 Server [message #1361348 is a reply to message #1233018] Sat, 17 May 2014 05:52 Go to previous messageGo to next message
Praveen Sridharan is currently offline Praveen SridharanFriend
Messages: 1
Registered: May 2014
Junior Member
This solved my problem. Thanks a lot. Smile
Re: Can't add a new Tomcat 7 Server [message #1384946 is a reply to message #1361348] Tue, 03 June 2014 09:10 Go to previous messageGo to next message
kumral demircan is currently offline kumral demircanFriend
Messages: 1
Registered: June 2014
Junior Member
hi
im deleting a Tomcat server but i dont create again
i read all response and i did them but dont fix it
thanks...
Re: Can't add a new Tomcat 7 Server [message #1385202 is a reply to message #1384946] Thu, 05 June 2014 00:26 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/03/2014 08:21 AM, kumral demircan wrote:
> hi
> im deleting a Tomcat server but i dont create again
> i read all response and i did them but dont fix it
> thanks...
Your question is difficult to understand. I would suggest that you
consider couching it more carefully and in the Eclipse WTP forum.

Cheers
Re: Can't add a new Tomcat 7 Server [message #1404545 is a reply to message #1385202] Mon, 04 August 2014 03:59 Go to previous messageGo to next message
nugai nugai is currently offline nugai nugaiFriend
Messages: 2
Registered: July 2013
Junior Member
I just solved a similar problem (no existing Tomcat server despite having it defined, "Run as.." points to manual definition on localhost but does not allow to define a new server) on a clean install of Eclipse Luna on Centos 7 with Tomcat 7 and JDK 1.7. I also wrote about it on Stackoverflow (in reply to "Unable to run a jsp project in eclipse" -- unfortunately, I cannot yet post URIs in the Eclipse forum due to low post count) but since I used this thread during my troubleshooting, I thought I post some information here as well:

In my case, deleting the above mentioned files did not help. In the end (and after several re-installations of Eclipse and Tomcat), I stumbled across a permission problem that was only visible if I tried to define a new server when trying "Run as..." without first having a Tomcat server or runtime defined.

The underlying issue was that Tomcat was installed in /opt/some-tomcat and required root privileges to start but Eclipse ran with my user privileges -- which were not sufficient to start Tomcat. To circumvent the problem, I copied the Tomcat installation into my workspace directory and changed ownership to my user account:

cp -R /opt/whatever-your-Tomcat-version-is ~/workspace/ 
chown -R your-username:your-username ~/workspace/whatever-your-Tomcat-version-is

...and then used this Tomcat instance from within Eclipse -- which worked immediately.

However, it was also necessary to make sure that no other Tomcat was running on the system (else Tomcat does not start because of a port conflict).


[Updated on: Mon, 04 August 2014 04:10]

Report message to a moderator

Re: Can't add a new Tomcat 7 Server [message #1433962 is a reply to message #1404545] Mon, 29 September 2014 13:24 Go to previous messageGo to next message
Vinicius Romero is currently offline Vinicius RomeroFriend
Messages: 1
Registered: September 2014
Location: São Paulo, SP, Brazil
Junior Member

Hi all, i'm new in the forum.

I'll post what work for me.

I know that is not the best practice, but for me, was the only way.

Ubuntu 14.04 - Tomcat7 - Eclipse Luna

I just switch the workspace for a new and after create the Tomcat7 server, i copied my projects.

[Updated on: Mon, 29 September 2014 13:41]

Report message to a moderator

Re: Can't add a new Tomcat 7 Server [message #1605490 is a reply to message #1067671] Sat, 07 February 2015 14:59 Go to previous messageGo to next message
Misel Kuser is currently offline Misel KuserFriend
Messages: 1
Registered: February 2015
Junior Member
[quote title=Rodrigo Faria wrote on Wed, 10 July 2013 00:11]I've just posted and found the solution in stackoverflow (stackoverflow.com/questions/14791843/eclipse-add-tomcat-7-blank-server-name):

Quote:
1. Close Eclipse
2. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
3. Restart Eclipse


Thanks

Worked for me to.
Luna, Tomcat 8.
Re: Can't add a new Tomcat 7 Server [message #1706731 is a reply to message #1067611] Sat, 29 August 2015 10:45 Go to previous messageGo to next message
Ragav GopalRao is currently offline Ragav GopalRaoFriend
Messages: 1
Registered: August 2015
Junior Member
I was getting same issue tomcat 8/jre 1.8/luna. As localhost is visible and Next button was not working except cancel.

Following steps worked for me

Delete those 2 files as explained above
Step 1
==================================================
In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
3. Restart Eclipse

Step2
==================================================
Delete the tomcat:
Server > right click delete.

New server installation:
Server > right click > tom 8.0 > next > finish.
Start the server.

It will work!


icon14.gif  Re: Can't add a new Tomcat 7 Server [message #1728113 is a reply to message #1067671] Thu, 31 March 2016 08:09 Go to previous messageGo to next message
Piyush Agarwal is currently offline Piyush AgarwalFriend
Messages: 1
Registered: March 2016
Junior Member
Works like a charm on Eclipse Mars 4.2.
Thanks was really frustrated.
Re: Can't add a new Tomcat 7 Server [message #1818219 is a reply to message #1233018] Tue, 10 December 2019 11:44 Go to previous message
sanjoy sa is currently offline sanjoy saFriend
Messages: 1
Registered: December 2019
Junior Member
Thanks it works
Previous Topic:JPA Project
Next Topic:Exporting project to runnable JAR
Goto Forum:
  


Current Time: Fri Mar 29 13:21:43 GMT 2024

Powered by FUDForum. Page generated in 0.04361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top