Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to deploy directory which is extraction of .war file using ANT in Tomcat6.

I have build.xml like

    <property name="WAR_PATH" value="E:/18-06-2013/TEST"/>  
    <property name="mgr.context.path"       value="/FOUR"/>
    <property name="url"      value="http://localhost:8080/manager"/>
    <property name="username" value="tomcat"/>
    <property name="password" value="password"/>

   <target name="deploy" description="Install web application" >
  <deploy url="${url}" username="${username}"  password="${password}"                        

path="${mgr.context.path}" war="file:${WAR_PATH}"/>

But when i run the ANT(build.xml) script i get error something like

    java.io.IOException: too many bytes written
     at   sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:2632)
     at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65>

Same script work properly when i try to deploy .war file But ANT(build.xml) script not work properly in case directory. I have also try to deploy directory using HTTP command it work properly.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.