Re: [Soaplab-users] ant error?
Brought to you by:
marsenger
From: Mahmut U. <ul...@eb...> - 2009-02-24 15:18:19
|
Hi Sirisha, > I have been using Soaplab2 successfully and have been able to deploy and > run services with no issue - however I always get the same error message > when I execute "ant jaxdeploy" (this appears right at the end after a > bunch of other tasks are successfully completed): > > BUILD FAILED > /home/sirisha/soaplab2/xmls/jaxws.xml:155: The following error occurred > while executing this line: > /home/sirisha/soaplab2/xmls/deployment.xml:151: The following error > occurred while executing this line: > /home/sirisha/soaplab2/xmls/tomcat.xml:78: Unable to delete file > /var/lib/tomcat5/webapps/soaplab2/status.jsp There is an explanation for this error on Soaplab frequently asked questions page. http://soaplab.sourceforge.net/soaplab2/FAQ.html#004 One additional point i have noticed this morning, Soaplab deletes any previous web application folders (of the soaplab web application deployed) after copying the web archive file to tomcat's webapps directory. It is possible that before Soaplab attempting to delete the web application folder tomcat notices the new web archive file and starts extracting it; in your case while tomcat was trying to write the above file Soaplab ant task possible was trying to delete it? I remember getting similar errors in early stages of soaplab2 project but i'm not able to reproduce it any more when i now try it using tomcat versions 5.5.20 and 6.0.18. Is it possible that you are using an outdated version of tomcat which is more prone to this error? One way to avoid this error message, you can shutdown your tomcat server before calling the "ant jaxdeploy" task and restart it after the ant task completed. If you don't want to shutdown your server you can use the "ant jaxwar" target to let Soaplab produce the web archive file (normally soaplab2.war when using jaxws) then you can deploy the web archive file by simply copying it to your ${CATALINA_BASE}/webapps directory or using tomcat manager web interface. After first time deploying a web archive file you should normally copy your new web archive file over the existing one (under ${CATALINA_BASE}/webapps directory), and tomcat should automatically reload your soaplab web application. Regards, Mahmut |