- This topic has 11 replies, 3 voices, and was last updated 19 years, 1 month ago by bookofjames.
-
AuthorPosts
-
ttoommMemberI 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.
Riyad KallaMember1) 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?
ttoommMemberhi, 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
Riyad KallaMemberChange 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…
ttoommMemberand 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
Riyad KallaMemberand 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.82And what happened when you tried this?
ttoommMemberI also checked the direcroty under the tomcat\webapps\lms
there is no WebRoot directory
ttoommMemberit didn’t work
Riyad KallaMemberI also checked the direcroty under the tomcat\webapps\lms
there is no WebRoot directoryThere is not suppose to be, the WebRoot directory *becomes* the root of your web project, in this case “lms”.
bookofjamesMembersorry 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
Riyad KallaMemberQuestion 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.
bookofjamesMemberok. pls make it editable soon. anyways i recreated the project and reimported my stuff.
-
AuthorPosts