• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 28316
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic