facebook

[Closed] deployment using myeclipse

💡
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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #265949 Reply

    Hi this might be simple problem for folks but i am really facing this problem for some time.I was just creating a demoVelocity project in eclipse and i created a HelloVelocityServlet class and included its servlet mapping in web.xml. Latter i created HelloTemplate.vm and put in the same directory.Now i right click the project in eclipse go to myeclipse–>Add and Remove Project Deployment and deploy in packaged using tomcat 5.0 .When i invoke that servlet with the url then i get the resources not found ie. HelloTemplate.vm. Now i go to tomcat webapp directory and infact i don’t see HelloTemplate.vm.Now i manually coppy that file and put in webapp/demoVelocity directory and it works.Why is this so?any idea.If myeclipse deployment doesn’t put the resources in war file then how do i put it so that i don’t have to do manually and put that in webapp directory.I would appreciate if some of the folks have idea onto it.Thanks..

    #266018

    Scott Anderson
    Participant

    For your project to be packaged properly, the artifacts that need to be deployed need to be in the corresponding location in your web project since the web project layout is like an “exploded war” file. For more information on that, please see our Working with Web Projects tutorial.

    #266027

    thanx scott….i really forget to put the dependent artifact under webroot folder.This way it is pick up in the war file.Myeclipse rocks!!

    #266116

    Scott Anderson
    Participant

    Awesome! Glad to help.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] deployment using myeclipse

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