Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to locate .metadata folder in Eclipse to install Tomcat 7 in Eclipse Indigo.

 
Robinson Francis
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I have been trying out the tutorial found in Tutorial: Installing Tomcat 7 and Using it with Eclipse. I have problem in following the following step outlined in the Section : Copy the ROOT (Default) Web App into Eclipse. The step requires me to the Go to the wtpwebapps folder, R-click, and paste ROOT (say "yes" if asked if you want to merge/replace folders/files). This is need in order for me to see the Tomcat welcome page after I start it up. However when I go to the workspace of Eclipse I do not find such folders.

My eclipse is installed in
C:\Documents and Settings\TM31031\My Documents\HOME\ECLIPSE\eclipse

The version of eclipse : eclipse-jee-indigo-SR2-win32

The installation directory of Tomcat :

C:\apache-tomcat-7.0.27



The explanation of the Tutorial.
Copy the ROOT (Default) Web App into Eclipse.

Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.8\webapps, R-click on the ROOT folder and copy it. Then go to your Eclipse workspace, go to the .metadata folder, and search for "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or .../tmp1/wtpwebapps if you already had another server registered in Eclipse). Go to the wtpwebapps folder, R-click, and paste ROOT (say "yes" if asked if you want to merge/replace folders/files). Then reload http://localhost/ to see the Tomcat welcome page.


Thank you.

ROBINSON
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse WTP is an abomination and I don't use it. I prefer using the add-on sysdeo Tomcat plugin over what comes built-in, precisely because of the unnatural contortions that WTP imposes on you.

I'm afraid that the Tomcat forum was not the best place to ask about this, since it's completely and solely a problem having to do with the Eclipse IDE and the WTP plugin. I'm going to move this thread over to the IDEs forum.

I cannot answer authoritatively about the rather arcane instructions that you were given, but I will observe that just plopping a directory into an Eclipse workspace directory won't make it an Eclipse project. To be an Eclipse project, the stuff you're installing would have to have the 2 project-related Eclipse metadata files (.project and .classpath), and they would have to be registered with the workspace. Why they make you dump in the project directory by brute force and muck around in the workspace .metadata directory is unclear to me, as it would be easier to just use the Eclipse "import" menu command. Perhaps WTP doesn't play well with it.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide a link to the tutorial. What you have written doesn't seem to have any resemblance to how I work with web apps and get them to run in Tomcat (the rare times when I attempt such nonsense in Eclipse). Perhaps I just need to see these instructions in context.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic