facebook

[Closed] Problem deploying to Tomcat 5.0

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #261174 Reply

    micheleforte
    Member

    I am testing :

    MyEclipse 5.0.1 GA (trial version)
    Tomcat 5.0.37

    When 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

    #261206

    Riyad Kalla
    Member

    Michele,
    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?

    #261843

    ccrane
    Member

    I 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: INVALID

    I have MyEclipse 5 on Eclipse 3.2.1

    Thanks, -C

    #261877

    Riyad Kalla
    Member

    C,
    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.

    #261936

    ccrane
    Member

    Hi 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,
    -Cailie

    #261943

    Riyad Kalla
    Member

    Cailie,
    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.

    #261953

    ccrane
    Member

    Riyad,

    In the .mymetadata file, the webrootdir attribute is:

    <attribute name=”webrootdir” value=”<prjroot>” />

    I guess that means it is set to the project root…

    #261956

    Riyad Kalla
    Member

    Yes 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?)

    #261962

    ccrane
    Member

    Hmm… 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.

    #261965

    Riyad Kalla
    Member

    Actually 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.

    #261976

    ccrane
    Member

    Ok, 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,
    -Cailie

    #261978

    Riyad Kalla
    Member

    Cailie,
    I’m glad you are up and running now.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: [Closed] Problem deploying to Tomcat 5.0

You must be logged in to post in the forum log in