For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 11 replies, 3 voices, and was last updated 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
micheleforteMemberI am testing :
MyEclipse 5.0.1 GA (trial version)
Tomcat 5.0.37When I deploy my web application (it was taken from WSAD and it is working on WAS5), It does it in a location called INVALID (strange name 😕 ) but when I start Tomcat there is no trace of my web application 🙁
Is there something I am missing ?
Best Regards
Michele
November 1, 2006 at 11:01 am #261206
Riyad KallaMemberMichele,
If you open your project properties, and go to MyEclipse > Web, what values are in the two text boxes?Also when you setup the deployment for your project, the location box will show you where the project is getting deployed to, it should be under Tomcat/webapps somewhere.
Are you using MyEclipse to handle the deployment or is it possible you installed another product like Sysdeo’s Tomcat plugin or even WTP and are confusing them with MyEclipse?
November 14, 2006 at 7:25 pm #261843
ccraneMemberI have the same problem — the deployment location is “INVALID”.
That is, if I go to Project –> Properties –> MyEclipse, the Deployment Overview table reads:
Server: Tomcat 5
Type: Exploded
Location: INVALIDI have MyEclipse 5 on Eclipse 3.2.1
Thanks, -C
November 15, 2006 at 9:32 am #261877
Riyad KallaMemberC,
Open your project properties, go to MyEclipse then Web. It’s possible that one of these two fields accidentally had their values cleared (most likely the second one). Be sure to type back in the context root you want, hit OK, then remove and recreate your deployment.November 15, 2006 at 1:27 pm #261936
ccraneMemberHi Riyad,
Thanks for your response.
I opened project properties, and went to MyEclipse then Web. The “Web-root folder” field is blank but greyed-out and not editable. The “Web Context-root” field has the value “/target/myproject”, which is correct.
Do you have further advice?
Thanks,
-CailieNovember 15, 2006 at 2:03 pm #261943
Riyad KallaMemberCailie,
Having a blank web root can sometimes indicate that the project root is also the web root and not a directory inside of the project as normally expected. Is this the case? If this is not the case, then it looks like things might have gotten borked a little. Try opening your .mymetadata file in the navigator view and changing the Web Root to the correct value if that is the case.November 15, 2006 at 2:26 pm #261953
ccraneMemberRiyad,
In the .mymetadata file, the webrootdir attribute is:
<attribute name=”webrootdir” value=”<prjroot>” />
I guess that means it is set to the project root…
November 15, 2006 at 2:34 pm #261956
Riyad KallaMemberYes you are right, that is what it looks like. Is this correct though, that you have no WebRoot directory and your project root is infact your webroot? (meaning you have a WEB-INF directory right off the root?)
November 15, 2006 at 3:51 pm #261962
ccraneMemberHmm… I think I confused myself. Now I have edited the .mymetadata file and set the context-root to /myproject, and the webrootdir to “<prjroot>/target/myproject”. That worked in that the deployment location is now C:\apache-tomcat-5.5.20\webapps\myproject.
Still, the project was not being recognized by Tomcat. At that point I noticed that the context configuration file was not created by MyEclipse (I was expecting a configuration file to be created in C:\apache-tomcat-5.5.20\conf\Catalina\localhost\myproject.xml). Shouldn’t MyEclipse create this file? Anyways, I created the myproject.xml file and now Tomcat is finding the project.
November 15, 2006 at 4:08 pm #261965
Riyad KallaMemberActually Tomcat creates that file on the fly when it’s setup to autodeploy new applications.
Also, your context root is the dir “under webapps that your project will live in”, so you have that set correctly.
Your WebRoot is the directory, under your project, that represents the root of your application *when* deployed. To get an idea of what I mean, create a new web project. Notice how you have a project root, then in that you have a WebRoot dir, with a WEB-INF dir and so on? This represents the project after it’s deployed.
November 15, 2006 at 4:38 pm #261976
ccraneMemberOk, I think we’ve got it all straightened out. Looks like the webroot and context root are correct now (they are different from the MyEclipse Web project structure because I used a Maven archetype to create the project).
If you did not expect MyEclipse to create the Tomcat context configuration file, that’s fine.
Thank you for your excellent help today.
Cheers,
-CailieNovember 15, 2006 at 4:43 pm #261978
Riyad KallaMemberCailie,
I’m glad you are up and running now. -
AuthorPosts