facebook

Deploying Web project in MyEclipse

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

    pulakchy
    Member

    I created an web project in myeclipse using JDK 1.6 and Tomcat 5.x I am having problem deploying the webproject in Tomcat Server. When i deploy the project, It creates a folder under Tomcat webapps folder with the project name and only copies the META-INF and WEB-INF folder and nothing else. It does not copy over the project source files (JSP, JS, ETC). Even it does not copy over all the contents under WEB-INF folder. Please note that when deploying the project under Tomcat 5, i used ‘Exploded Archive (development mode)’. Would any one please advise me what i am doing wrong here? Is there any project property settings that i am setting wrong ?
    thanking in advance for your answer.

    #271210

    Riyad Kalla
    Member

    pulakchy,
    We’ve seen this behavior from time-to-time when the deployed projects are out of sync with the file system, or there is something wrong with them.

    Try the following:

    1) Stop Tomcat
    2) Remove your deployment
    3) Right click on the root of your project and go to Refresh
    4) Now go to Project > Clean and rebuild your project.
    5) Now re-create the exploded deployment

    Did that do the trick?

    #271247

    Riyad,

    I’m having a similar problem and I used your steps with no luck.

    The strange thing is, if I compare the exploded deployment files (in the tomcat/webapps folder) to my development copy, then the deployment matches exactly the development. In other words, running deployment works correctly as far as I can tell, but I still get a MyEclipse error telling me that it could not copy all of the resources.

    Any suggestions?

    –David

    #271249

    pulakchy
    Member

    I actually had an Ant build script that i was running copy some class files from other project into my web project folder. It seems like if i do not run that ant script then the deployment works fine but after running the ant script it just does not copy any content.
    I had to create the ant script as even my web project references another java project but for some reason it does not copy classes from java project.

    #271250

    Hmm… I wonder if my problem is related, because I have a custom ant script running at the end of my build process too. (My ant script runs another compiler, which places compiled files into one of the source folders of my eclipse project).

    Still, for me it’s really just an annoyance–it’s disconcerting to see the “could not deploy” message–because everything actually deploys just fine.

    –David

    #271262

    Riyad Kalla
    Member

    Guys,
    Thanks for the heads up, it’s true the deployer gets mad at file-inconsistencies which out-of-process-scripts will create (like Ant, XDoclet, Maven, etc.). One way around this is to go to Window > Prefs > General > Workspace, and turn on automatic refreshing. Or you can right-click on the root of your project and make sure to keep it refreshed.

    What versions of MyEclipse are you guys using? We did implement more “passive” logic to failures in 5.1 that should skip over locks, but I believe it will still notify you of “failures” like you are seeing… more specifically it’s the deployer having an annurism because files it’s deploying may not match the file system.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Deploying Web project in MyEclipse

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