Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't add server to a moved workspace

People also ask

How do I add a server to my workspace?

1. Click Start in the windows toolbar and navigate as follows: All Programs > NetBrain > NetBrain Enterprise Server > Add Shared Workspace on the machine which the Workspace Server is installed. 2. Click Add in the Create Shared Workspace window.

How do I add a server to an existing project in Eclipse?

Select File > New > Other…, then open the 'Server' folder and select 'Server' (Figure 4). Click 'Next'. In the next dialogue box (Figure 6) you are required to specify the path to the installed server and to select a Java Runtime Environment (JRE).


I had a similar problem, but my solution is a little simpler. The problem was causesd by renaming the original folder that was referenced by the server definition.

Go to Window/Preferences/Server/Runtime Environments, remove the broken reference. Then, click 'Add' to create a new reference, select the appropriate tomcat version, click next and you'll see the incorrect path reference. Fix it. Move on.


I had this same problem on Ubuntu 8.10 with Ganymede and Tomcat6. This appears to be some sort of bug with Eclipse. If you try and create a server, and it barfs, you can't create another tomcat6 server. To correct this problem, do the following:

  • close eclipse
  • go to the {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings directory and remove a file called org.eclipse.wst.server.core.prefs.
  • start eclipse
  • add your tomcat6 server in the server tab

kotfu


@id thanks for the solution but something is also hidden in org.eclipse.jst.server.tomcat.core.prefs

So in order to solve the problem

  • close eclipse
  • go to {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
  • remove the files org.eclipse.wst.server.core.prefs and org.eclipse.jst.server.tomcat.core.prefs

Tomcat 5.5

I order to be able to use the tomcat5.5 server you need to have a writeable catalina.policy file as mentioned in

  • http://dev.eclipse.org/newslists/news.eclipse.webtools/msg16795.html (= add a READ and WRITE permissions to the files in directory "{$tomcat.home}/conf" (chmod -vR a+rw {$tomcat.home}/conf/*). To be more specific, on the file "catalina.policy". After that, the Tomcat server can be added in the Eclipse servers)
  • (dead link) http://webui.sourcelabs.com/eclipse/issues/239179 and to have the tomcat5.5 stopped before entering eclipse and started afterwards.

Tomcat 6

In order to be able to use the tomcat6 server the proper solution is to have a user instance of the tomcat6 server as described in

  • /usr/share/doc/tomcat6-common/RUNNING.txt.gz
  • RUNNING.txt (on the WEB)

My configuration is Debian/Sid, Eclipse 3.4.1. Ganymede


The error view really is key. There is a lot of detail in there -- if necessary, right-click on the entries and copy their contents into your favorite text editor. One problem that can come up, for instance, is that if you have a server configuration already in place, and one of the configuration XML files is unparseable, the server can't be added. This happened to me this evening -- my <Context> element had a linebreak in it, so it was <C(linebreak)ontext>. This prevented Eclipse from recreating the server configuration.


i finally got mine to work with the default Ubuntu 8.10 tomcat. (the debug command-line on eclipse is a wonderful thing) First i had to make a couple of symbolic links and then change the permissions to a file. (you might want to think twice about changing the permissions depending on your configuration, but if eclipse can't read the file it throws and exception and the gui won't let you continue)

sudo ln -s /etc/tomcat6 /usr/share/tomcat6/conf
sudo ln -s  /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo chmod a+r /usr/share/tomcat6/conf/tomcat-users.xml