Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Web Application wont deploy(Web application wont deploy after moving from myeclipse to eclipse!!!)
Web Application wont deploy [message #1001430] Wed, 16 January 2013 17:21 Go to next message
Devi Priya is currently offline Devi Priya
Messages: 2
Registered: January 2013
Junior Member
I have been using myeclipse10, tomcat6, jdk1.6 to deploy my web project and it was working like a charm. after myeclipse10 license expired, i had to setup my project on eclipse. I have indigo installed, i opened up the same project workspace that i was working on myeclipse10 in eclipse indigo. I got tons of errors. I played around with removing libraries and adding them again, then all the errors are gone now. When I tried to add my project to tomcat6, i dint see it on the add and remove option of tomcat. Then I changed my java project to dynamic web project and then I could add it to tomcat. Server location i selected Use workspace metadata. Now when i start the tomcat server, my web project is not getting deployed at all. I get a http 404 error. Strange thing is, I delete the web project from tomcat and change the server location to "use tomcat installation", and now when i start the tomcat server, my application is getting deployed. I am totally confused by it. I am not sure what is it that I am doing wrong. Any ideas...please help me. I have been at this issue for more than 3 days now...
Re: Web Application wont deploy [message #1001449 is a reply to message #1001430] Wed, 16 January 2013 18:21 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 1/16/2013 12:21 PM, Devi Priya wrote:
> I have been using myeclipse10, tomcat6, jdk1.6 to deploy my web project
> and it was working like a charm. after myeclipse10 license expired, i
> had to setup my project on eclipse. I have indigo installed, i opened up
> the same project workspace that i was working on myeclipse10 in eclipse
> indigo. I got tons of errors. I played around with removing libraries
> and adding them again, then all the errors are gone now. When I tried to
> add my project to tomcat6, i dint see it on the add and remove option of
> tomcat. Then I changed my java project to dynamic web project and then I
> could add it to tomcat. Server location i selected Use workspace
> metadata. Now when i start the tomcat server, my web project is not
> getting deployed at all. I get a http 404 error. Strange thing is, I
> delete the web project from tomcat and change the server location to
> "use tomcat installation", and now when i start the tomcat server, my
> application is getting deployed. I am totally confused by it. I am not
> sure what is it that I am doing wrong. Any ideas...please help me. I
> have been at this issue for more than 3 days now...

For information about the Tomcat support in Web Tools, see the WTP
Tomcat FAQ[1]. It may provide enough information to help you figure out
what's happening. Also, it would seem possible that what is "working"
when you select "Use Tomcat installation" is that Tomcat is serving a
leftover copy of your project from myeclipse10. You could remove all
applications from the Tomcat server within Eclipse and then remove any
copy of your webapp that you find still in the Tomcat installation.

You may want to create a new Dynamic Web Project and drop in some test
content and see if that will deploy successfully. If it does, it would
suggest that your converted project isn't configured properly.

I'm not sure that converting a myeclipse10 "webapp" project (which is
masquerading as an plain Eclipse Java project) to a Dynamic Web Project
will correctly set up the project to serve the pre-existing webapp
content. The existing Java classes maybe, but probably not the JSPs and
other static content. To configure where such content comes from in
your Dynamic Web Project, see the Deployment Assembly page in the
project's Properties dialog.

If you still have questions after reviewing the FAQ, post back.

Cheers,
Larry

[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
Previous Topic:XML: Outline view does not show namespace when add
Next Topic:JSP include from other project - false error
Goto Forum:
  


Current Time: Sun Sep 21 20:16:35 GMT 2014

Powered by FUDForum. Page generated in 0.02077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software