- This topic has 3 replies, 3 voices, and was last updated 19 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
writetosumanMemberHi,
I’m using MyEclipse4.1GA on Eclipse 3.1.2. I configured Tomcat5.5.12 inside MyEclipse to start from inside ME. I have the deploy/redeploy feature in ME on other normal Web project which works fine. But when I tried to redeploy the Tapestry project the deployment fails. Even the older deployment becomes unavailable.
The console shows:
Feb 12, 2006 5:03:45 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TestProject.war
Feb 12, 2006 5:04:27 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/TestProject]
Feb 12, 2006 5:04:28 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TestProject.war
Feb 12, 2006 5:04:29 PM org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TestProject]Thank you,
SumanFebruary 12, 2006 at 10:44 am #246618
Riyad KallaMemberSuman
1) It looks like you named your Tapestry project the same as your other project. So when you say “Even the older deployment becomes unavailable” it’s because you are overwriting it.
2) The error says you are missing a web.xml file. Is this Tapestry project a Web Project? If so, open up the properties and got MyEclipse-Web, what 2 values do you have for the text boxes there?
3) Don’t deploy to a running application server. What can happen is the app server can attempt to deploy the web application from the WAR before MyEclipse is done creating the WAR file, which will cause it to die because it’s an invalid ZIP file.
February 16, 2006 at 10:07 am #246885
DisgruntledMemberI was getting this same error message. It seems that MyEclipse was having trouble re-deploying to Tomcat because one of the JAR files deployed to the server was in use. In my case, it was ehcache-1.1.jar that was in use. I poked around in some forums and found some advice that suggested creating the file /META-INF/context.xml with the following in it:
<Context reloadable=”true” antiJARLocking=”true” antiResourceLocking=”true”>
</Context>These context attributes prevent Tomcat from locking JAR files etc. I have not had the missing web.xml error message since making this change. **** You should consider turning off these flags when deploying to a production server as they result in a performance impact. See this page from the Tomcat documentation for more information:
February 16, 2006 at 10:13 am #246886
Riyad KallaMemberThis is a very helpful followup, thank you Disgruntled.
-
AuthorPosts