- This topic has 5 replies, 3 voices, and was last updated 18 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
pulakchyMemberI 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.June 6, 2007 at 4:54 pm #271210
Riyad KallaMemberpulakchy,
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 deploymentDid that do the trick?
June 7, 2007 at 1:37 pm #271247
talentgrabberMemberRiyad,
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
June 7, 2007 at 3:41 pm #271249
pulakchyMemberI 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.June 7, 2007 at 3:48 pm #271250
talentgrabberMemberHmm… 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
June 7, 2007 at 10:38 pm #271262
Riyad KallaMemberGuys,
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.
-
AuthorPosts