facebook

[Closed] WebRoot Problem

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #225296 Reply

    ttoomm
    Member

    I am new to MyEclipse, after I deployed the application to tomcat,
    I tried http://localhost/test/test.jsp, it said the request resource is not
    available, then I tried http://localhost/WebRoot/test/test.jsp, it works,
    how could I get rid of WebRoot. Thanks.

    #225300 Reply

    Riyad Kalla
    Member

    1) Under project properties > MyEclipse-Web, what do you have your Web root dir and Context root set to? (both the boxes, what are their settings?)
    2) Was this a packaged or exploded deployment?
    3) When you setup the deployment, what was the path that displayed in the deployment dialog where MyEclipse was going to put the file?
    4) What version of Eclipse/MyEclipse are you using?

    #225309 Reply

    ttoomm
    Member

    hi, thanks for reply
    (1)web-root folder is /WebRoot, Web Context-root is /
    (2)exploded depolyment
    (3)c:\tomcat5\webapps\root\
    (4)eclipse 3.0 myeclipse8.82

    #225310 Reply

    Riyad Kalla
    Member

    Change your Web Context-root to “/test” so it doesn’t deploy to the root, I don’t know why your WebRoot dir deployed, it shouldn’t…

    #225311 Reply

    ttoomm
    Member

    and I also tried other options
    1)web-root folder is /WebRoot, Web Context-root is /lms
    (2)exploded depolyment
    (3)c:\tomcat5\webapps\lms\
    (4)eclipse 3.0 myeclipse8.82

    #225312 Reply

    Riyad Kalla
    Member

    and I also tried other options
    1)web-root folder is /WebRoot, Web Context-root is /lms
    (2)exploded depolyment
    (3)c:\tomcat5\webapps\lms\
    (4)eclipse 3.0 myeclipse8.82

    And what happened when you tried this?

    #225313 Reply

    ttoomm
    Member

    I also checked the direcroty under the tomcat\webapps\lms
    there is no WebRoot directory

    #225314 Reply

    ttoomm
    Member

    it didn’t work

    #225316 Reply

    Riyad Kalla
    Member

    I also checked the direcroty under the tomcat\webapps\lms
    there is no WebRoot directory

    There is not suppose to be, the WebRoot directory *becomes* the root of your web project, in this case “lms”.

    #242211 Reply

    bookofjames
    Member

    sorry to piggy-back on this thread, but I couldn’t find the problem I was looking for through search.

    Question is: is there a way I can change the web-root folder of a project AFTER I created it?
    I’ve been searching for quite a while and still couldn’t find any other way than to re-create a new project.

    It seems as if you are only given this one chance to enter your web-root folder correctly, which seems a bit harsh.

    I created a blank Web Project from scratch using the default settings, then imported my source files from a different location. I was able to change the output path of my java builds, but I can’t change my web-root path so it points to the correct one for deployment.

    Any advice on this?

    P.S. using eclipse 3.1.1 with myEclipse 4.1M1

    cheers,
    James

    #242236 Reply

    Riyad Kalla
    Member

    Question is: is there a way I can change the web-root folder of a project AFTER I created it?

    Yes, edit your .mymetadata file and change it there, we will make the field editable in a later release, we were concerned about breaking projects which is why we made it read only for a while.

    #242289 Reply

    bookofjames
    Member

    ok. pls make it editable soon. anyways i recreated the project and reimported my stuff.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: [Closed] WebRoot Problem

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