This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes IDEs, Version Control and other tools and the fly likes Unable to locate .metadata folder in Eclipse to install Tomcat 7 in Eclipse Indigo. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Unable to locate .metadata folder in Eclipse to install Tomcat 7 in Eclipse Indigo." Watch "Unable to locate .metadata folder in Eclipse to install Tomcat 7 in Eclipse Indigo." New topic
Author

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

Robinson Francis
Greenhorn

Joined: Aug 16, 2010
Posts: 22
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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to locate .metadata folder in Eclipse to install Tomcat 7 in Eclipse Indigo.