You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jeff Emminger <je...@jeffemminger.com> on 2003/11/19 17:41:31 UTC

problems deploying from eclipse

hi all,

i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it 
seems that Eclipse wants to deploy ALL projects in my workspace when I 
just select to deploy one specific project.  each project has its own 
deploy.xml.

for example, i'll choose to deploy my "form" project, whose deploy.xml 
looks like so (below), and i'll get errors such as:
Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already 
in progress
Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml already 
in progress

nowhere in the build file does it state to build these...what am i doing 
wrong?


<?xml version="1.0"?>
<project name="ServletDeploy" default="Build_All">
    <property name="application" value="form" />
    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
    <property name="workspaceHome" value="c:/program 
files/eclipse/workspace" />
    <property name="mgrUsername" value="xxxx" />
    <property name="mgrPassword" value="xxxx" />

    <property name="webappsHome" value="${tomcatHome}/webapps" />
    <property name="appHome" value="${webappsHome}/${application}" />
    <property name="contextHome" 
value="${workspaceHome}/${application}/context" />
    <property name="deployWarsDir" 
value="${workspaceHome}/${application}/DeployWars" />
    <property name="mgrUrl" value="http://localhost:8080/manager" />
    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
    <property name="mgrDeployUrl" value="${mgrUrl}/install" />

    <target name="Deploy_to_LocalDev">
       <!-- LocalDev deploys right into the local tomcat -->
       <mkdir dir="${deployWarsDir}/local-dev" />
       <delete file="${deployWarsDir}/local-dev/${application}.war" />
       <war
         duplicate="preserve"
       	destfile="${deployWarsDir}/local-dev/${application}.war"
       	webxml="${contextHome}/WEB-INF/web.xml">
       	<classes dir="${contextHome}/WEB-INF/classes" />
       	<fileset dir="${contextHome}">
       	   <include name="*" />
       	   <include name="images/*" />
       	   <include name="WEB-INF/*.page" />
       	   <include name="WEB-INF/*.application" />
       	   <include name="WEB-INF/*.jwc" />
       	   <include name="WEB-INF/*.html" />
       	</fileset>
       </war>

       <!-- Deploy to Tomcat 4.1 -->
       <!-- NOTE: The remaineder of this installation requires the 
Tomcat 4.0+
            manager be running and the build will fail if it is not. -->
       <!-- Remove the application -->
       <delete file="deploy-local-remove.txt" />
       <get
          src="${mgrRemoveUrl}?path=/${application}"
          dest="deploy-local-remove.txt"
          username="${mgrUsername}"
          password="${mgrPassword}" />
       <loadfile property="deploy.local.remove.result"
          srcFile="deploy-local-remove.txt" />
       <echo>${deploy.local.remove.result}</echo>
       <delete file="deploy-local-remove.txt" />

       <!-- Remove the directory containing the old version of the 
application -->
       <!--
       <delete dir="${webappsHome}/${application}" />
       -->
       <unzip
          src="${deployWarsDir}/local-dev/${application}.war"
          dest="${webappsHome}/${application}" />

       <!-- Install the application -->
       <delete file="deploy-local-remove.txt" />
       <property name="mgrDeployParams"
 
value="path=/${application}&amp;war=file://${webappsHome}/${application}/" 
/>
       <get
          src="${mgrDeployUrl}?${mgrDeployParams}"
          dest="deploy-local-remove.txt"
          username="${mgrUsername}"
          password="${mgrPassword}" />
       <loadfile property="deploy.local.remove.resultb"
          srcFile="deploy-local-remove.txt" />
       <echo>${deploy.local.remove.resultb}</echo>
       <delete file="deploy-local-remove.txt" />
    </target>

    <target name="Build_All" depends="Deploy_to_LocalDev" />
</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by Jeff Emminger <je...@jeffemminger.com>.
hi Geoff,

actually i'm using 2.1.2 this time.  (i've got 2.1.2 here at work, and 
both at home)

i'm using spindle 3.0.26 i think.  i'll try turning that setting off, 
thanks.



Geoff Longman wrote:

> I take it you are using Spindle in Eclipse 3.
> 
> There seems to be a problem with that label decorator in Eclipse 3 (not
> built yet)
> 
> You can turn it off in the Workbench preferences: its called "Extra
> information for Tapesty Projects"
> 
> Although, I thought I had fixed that a build or two ago.
> 
> Geoff
> ----- Original Message -----
> From: "Jeff Emminger" <je...@jeffemminger.com>
> To: <ta...@jakarta.apache.org>
> Sent: Wednesday, November 19, 2003 12:08 PM
> Subject: Re: problems deploying from eclipse
> 
> 
> 
>>I think I did a rebuild all previously...every project has something
>>like "not built" next to it, which I don't remember ever seeing before.
>>  I'll try again with just a rebuild project.
>>
>>
>>Kevin C. Dorff wrote:
>>
>>>This is probably a silly question, but are you sure you are executing
>>>just this deploy (such as with Project | Rebuild Project) or maybe doing
>>>a Rebuild All ?
>>>
>>>Kevin
>>>
>>>Jeff Emminger wrote:
>>>
>>>
>>>>hi all,
>>>>
>>>>i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it
>>>>seems that Eclipse wants to deploy ALL projects in my workspace when I
>>>>just select to deploy one specific project.  each project has its own
>>>>deploy.xml.
>>>>
>>>>for example, i'll choose to deploy my "form" project, whose deploy.xml
>>>>looks like so (below), and i'll get errors such as:
>>>>Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already
>>>>in progress
>>>>Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml
>>>>already in progress
>>>>
>>>>nowhere in the build file does it state to build these...what am i
>>>>doing wrong?
>>>>
>>>>
>>>><?xml version="1.0"?>
>>>><project name="ServletDeploy" default="Build_All">
>>>>   <property name="application" value="form" />
>>>>   <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
>>>>   <property name="workspaceHome" value="c:/program
>>>>files/eclipse/workspace" />
>>>>   <property name="mgrUsername" value="xxxx" />
>>>>   <property name="mgrPassword" value="xxxx" />
>>>>
>>>>   <property name="webappsHome" value="${tomcatHome}/webapps" />
>>>>   <property name="appHome" value="${webappsHome}/${application}" />
>>>>   <property name="contextHome"
>>>>value="${workspaceHome}/${application}/context" />
>>>>   <property name="deployWarsDir"
>>>>value="${workspaceHome}/${application}/DeployWars" />
>>>>   <property name="mgrUrl" value="http://localhost:8080/manager" />
>>>>   <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
>>>>   <property name="mgrDeployUrl" value="${mgrUrl}/install" />
>>>>
>>>>   <target name="Deploy_to_LocalDev">
>>>>      <!-- LocalDev deploys right into the local tomcat -->
>>>>      <mkdir dir="${deployWarsDir}/local-dev" />
>>>>      <delete file="${deployWarsDir}/local-dev/${application}.war" />
>>>>      <war
>>>>        duplicate="preserve"
>>>>          destfile="${deployWarsDir}/local-dev/${application}.war"
>>>>          webxml="${contextHome}/WEB-INF/web.xml">
>>>>          <classes dir="${contextHome}/WEB-INF/classes" />
>>>>          <fileset dir="${contextHome}">
>>>>             <include name="*" />
>>>>             <include name="images/*" />
>>>>             <include name="WEB-INF/*.page" />
>>>>             <include name="WEB-INF/*.application" />
>>>>             <include name="WEB-INF/*.jwc" />
>>>>             <include name="WEB-INF/*.html" />
>>>>          </fileset>
>>>>      </war>
>>>>
>>>>      <!-- Deploy to Tomcat 4.1 -->
>>>>      <!-- NOTE: The remaineder of this installation requires the
>>>>Tomcat 4.0+
>>>>           manager be running and the build will fail if it is not. -->
>>>>      <!-- Remove the application -->
>>>>      <delete file="deploy-local-remove.txt" />
>>>>      <get
>>>>         src="${mgrRemoveUrl}?path=/${application}"
>>>>         dest="deploy-local-remove.txt"
>>>>         username="${mgrUsername}"
>>>>         password="${mgrPassword}" />
>>>>      <loadfile property="deploy.local.remove.result"
>>>>         srcFile="deploy-local-remove.txt" />
>>>>      <echo>${deploy.local.remove.result}</echo>
>>>>      <delete file="deploy-local-remove.txt" />
>>>>
>>>>      <!-- Remove the directory containing the old version of the
>>>>application -->
>>>>      <!--
>>>>      <delete dir="${webappsHome}/${application}" />
>>>>      -->
>>>>      <unzip
>>>>         src="${deployWarsDir}/local-dev/${application}.war"
>>>>         dest="${webappsHome}/${application}" />
>>>>
>>>>      <!-- Install the application -->
>>>>      <delete file="deploy-local-remove.txt" />
>>>>      <property name="mgrDeployParams"
>>>>
>>>>
> 
> value="path=/${application}&amp;war=file://${webappsHome}/${application}/"
> 
>>>>/>
>>>>      <get
>>>>         src="${mgrDeployUrl}?${mgrDeployParams}"
>>>>         dest="deploy-local-remove.txt"
>>>>         username="${mgrUsername}"
>>>>         password="${mgrPassword}" />
>>>>      <loadfile property="deploy.local.remove.resultb"
>>>>         srcFile="deploy-local-remove.txt" />
>>>>      <echo>${deploy.local.remove.resultb}</echo>
>>>>      <delete file="deploy-local-remove.txt" />
>>>>   </target>
>>>>
>>>>   <target name="Build_All" depends="Deploy_to_LocalDev" />
>>>></project>
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by Geoff Longman <gl...@intelligentworks.com>.
I take it you are using Spindle in Eclipse 3.

There seems to be a problem with that label decorator in Eclipse 3 (not
built yet)

You can turn it off in the Workbench preferences: its called "Extra
information for Tapesty Projects"

Although, I thought I had fixed that a build or two ago.

Geoff
----- Original Message -----
From: "Jeff Emminger" <je...@jeffemminger.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, November 19, 2003 12:08 PM
Subject: Re: problems deploying from eclipse


> I think I did a rebuild all previously...every project has something
> like "not built" next to it, which I don't remember ever seeing before.
>   I'll try again with just a rebuild project.
>
>
> Kevin C. Dorff wrote:
> > This is probably a silly question, but are you sure you are executing
> > just this deploy (such as with Project | Rebuild Project) or maybe doing
> > a Rebuild All ?
> >
> > Kevin
> >
> > Jeff Emminger wrote:
> >
> >> hi all,
> >>
> >> i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it
> >> seems that Eclipse wants to deploy ALL projects in my workspace when I
> >> just select to deploy one specific project.  each project has its own
> >> deploy.xml.
> >>
> >> for example, i'll choose to deploy my "form" project, whose deploy.xml
> >> looks like so (below), and i'll get errors such as:
> >> Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already
> >> in progress
> >> Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml
> >> already in progress
> >>
> >> nowhere in the build file does it state to build these...what am i
> >> doing wrong?
> >>
> >>
> >> <?xml version="1.0"?>
> >> <project name="ServletDeploy" default="Build_All">
> >>    <property name="application" value="form" />
> >>    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
> >>    <property name="workspaceHome" value="c:/program
> >> files/eclipse/workspace" />
> >>    <property name="mgrUsername" value="xxxx" />
> >>    <property name="mgrPassword" value="xxxx" />
> >>
> >>    <property name="webappsHome" value="${tomcatHome}/webapps" />
> >>    <property name="appHome" value="${webappsHome}/${application}" />
> >>    <property name="contextHome"
> >> value="${workspaceHome}/${application}/context" />
> >>    <property name="deployWarsDir"
> >> value="${workspaceHome}/${application}/DeployWars" />
> >>    <property name="mgrUrl" value="http://localhost:8080/manager" />
> >>    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
> >>    <property name="mgrDeployUrl" value="${mgrUrl}/install" />
> >>
> >>    <target name="Deploy_to_LocalDev">
> >>       <!-- LocalDev deploys right into the local tomcat -->
> >>       <mkdir dir="${deployWarsDir}/local-dev" />
> >>       <delete file="${deployWarsDir}/local-dev/${application}.war" />
> >>       <war
> >>         duplicate="preserve"
> >>           destfile="${deployWarsDir}/local-dev/${application}.war"
> >>           webxml="${contextHome}/WEB-INF/web.xml">
> >>           <classes dir="${contextHome}/WEB-INF/classes" />
> >>           <fileset dir="${contextHome}">
> >>              <include name="*" />
> >>              <include name="images/*" />
> >>              <include name="WEB-INF/*.page" />
> >>              <include name="WEB-INF/*.application" />
> >>              <include name="WEB-INF/*.jwc" />
> >>              <include name="WEB-INF/*.html" />
> >>           </fileset>
> >>       </war>
> >>
> >>       <!-- Deploy to Tomcat 4.1 -->
> >>       <!-- NOTE: The remaineder of this installation requires the
> >> Tomcat 4.0+
> >>            manager be running and the build will fail if it is not. -->
> >>       <!-- Remove the application -->
> >>       <delete file="deploy-local-remove.txt" />
> >>       <get
> >>          src="${mgrRemoveUrl}?path=/${application}"
> >>          dest="deploy-local-remove.txt"
> >>          username="${mgrUsername}"
> >>          password="${mgrPassword}" />
> >>       <loadfile property="deploy.local.remove.result"
> >>          srcFile="deploy-local-remove.txt" />
> >>       <echo>${deploy.local.remove.result}</echo>
> >>       <delete file="deploy-local-remove.txt" />
> >>
> >>       <!-- Remove the directory containing the old version of the
> >> application -->
> >>       <!--
> >>       <delete dir="${webappsHome}/${application}" />
> >>       -->
> >>       <unzip
> >>          src="${deployWarsDir}/local-dev/${application}.war"
> >>          dest="${webappsHome}/${application}" />
> >>
> >>       <!-- Install the application -->
> >>       <delete file="deploy-local-remove.txt" />
> >>       <property name="mgrDeployParams"
> >>
> >>
value="path=/${application}&amp;war=file://${webappsHome}/${application}/"
> >> />
> >>       <get
> >>          src="${mgrDeployUrl}?${mgrDeployParams}"
> >>          dest="deploy-local-remove.txt"
> >>          username="${mgrUsername}"
> >>          password="${mgrPassword}" />
> >>       <loadfile property="deploy.local.remove.resultb"
> >>          srcFile="deploy-local-remove.txt" />
> >>       <echo>${deploy.local.remove.resultb}</echo>
> >>       <delete file="deploy-local-remove.txt" />
> >>    </target>
> >>
> >>    <target name="Build_All" depends="Deploy_to_LocalDev" />
> >> </project>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by Jeff Emminger <je...@jeffemminger.com>.
I think I did a rebuild all previously...every project has something 
like "not built" next to it, which I don't remember ever seeing before. 
  I'll try again with just a rebuild project.


Kevin C. Dorff wrote:
> This is probably a silly question, but are you sure you are executing 
> just this deploy (such as with Project | Rebuild Project) or maybe doing 
> a Rebuild All ?
> 
> Kevin
> 
> Jeff Emminger wrote:
> 
>> hi all,
>>
>> i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it 
>> seems that Eclipse wants to deploy ALL projects in my workspace when I 
>> just select to deploy one specific project.  each project has its own 
>> deploy.xml.
>>
>> for example, i'll choose to deploy my "form" project, whose deploy.xml 
>> looks like so (below), and i'll get errors such as:
>> Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already 
>> in progress
>> Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml 
>> already in progress
>>
>> nowhere in the build file does it state to build these...what am i 
>> doing wrong?
>>
>>
>> <?xml version="1.0"?>
>> <project name="ServletDeploy" default="Build_All">
>>    <property name="application" value="form" />
>>    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
>>    <property name="workspaceHome" value="c:/program 
>> files/eclipse/workspace" />
>>    <property name="mgrUsername" value="xxxx" />
>>    <property name="mgrPassword" value="xxxx" />
>>
>>    <property name="webappsHome" value="${tomcatHome}/webapps" />
>>    <property name="appHome" value="${webappsHome}/${application}" />
>>    <property name="contextHome" 
>> value="${workspaceHome}/${application}/context" />
>>    <property name="deployWarsDir" 
>> value="${workspaceHome}/${application}/DeployWars" />
>>    <property name="mgrUrl" value="http://localhost:8080/manager" />
>>    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
>>    <property name="mgrDeployUrl" value="${mgrUrl}/install" />
>>
>>    <target name="Deploy_to_LocalDev">
>>       <!-- LocalDev deploys right into the local tomcat -->
>>       <mkdir dir="${deployWarsDir}/local-dev" />
>>       <delete file="${deployWarsDir}/local-dev/${application}.war" />
>>       <war
>>         duplicate="preserve"
>>           destfile="${deployWarsDir}/local-dev/${application}.war"
>>           webxml="${contextHome}/WEB-INF/web.xml">
>>           <classes dir="${contextHome}/WEB-INF/classes" />
>>           <fileset dir="${contextHome}">
>>              <include name="*" />
>>              <include name="images/*" />
>>              <include name="WEB-INF/*.page" />
>>              <include name="WEB-INF/*.application" />
>>              <include name="WEB-INF/*.jwc" />
>>              <include name="WEB-INF/*.html" />
>>           </fileset>
>>       </war>
>>
>>       <!-- Deploy to Tomcat 4.1 -->
>>       <!-- NOTE: The remaineder of this installation requires the 
>> Tomcat 4.0+
>>            manager be running and the build will fail if it is not. -->
>>       <!-- Remove the application -->
>>       <delete file="deploy-local-remove.txt" />
>>       <get
>>          src="${mgrRemoveUrl}?path=/${application}"
>>          dest="deploy-local-remove.txt"
>>          username="${mgrUsername}"
>>          password="${mgrPassword}" />
>>       <loadfile property="deploy.local.remove.result"
>>          srcFile="deploy-local-remove.txt" />
>>       <echo>${deploy.local.remove.result}</echo>
>>       <delete file="deploy-local-remove.txt" />
>>
>>       <!-- Remove the directory containing the old version of the 
>> application -->
>>       <!--
>>       <delete dir="${webappsHome}/${application}" />
>>       -->
>>       <unzip
>>          src="${deployWarsDir}/local-dev/${application}.war"
>>          dest="${webappsHome}/${application}" />
>>
>>       <!-- Install the application -->
>>       <delete file="deploy-local-remove.txt" />
>>       <property name="mgrDeployParams"
>>
>> value="path=/${application}&amp;war=file://${webappsHome}/${application}/" 
>> />
>>       <get
>>          src="${mgrDeployUrl}?${mgrDeployParams}"
>>          dest="deploy-local-remove.txt"
>>          username="${mgrUsername}"
>>          password="${mgrPassword}" />
>>       <loadfile property="deploy.local.remove.resultb"
>>          srcFile="deploy-local-remove.txt" />
>>       <echo>${deploy.local.remove.resultb}</echo>
>>       <delete file="deploy-local-remove.txt" />
>>    </target>
>>
>>    <target name="Build_All" depends="Deploy_to_LocalDev" />
>> </project>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by Jeff Emminger <je...@jeffemminger.com>.
out of frustration, i clicked "run: form deploy.xml" three times in a 
row, got two or three of the errors again, and the last one worked :-/ 
guess i won't look a gift horse in the mouth!

i'm off to read the developer's guide to try and get a better handle on 
the flow through tapestry in the whole request/response cycle...the 
little that i understand of tapestry is great so far.  can't wait for 
the book!  also not helping is my new-ness to all of these technologies 
(servlets, ant, ognl, jndi, jdbc etc...)

i appreciate everyone's help and patience on this list immensely!  once 
i figure out hibernate with tapestry i'll probably make a tutorial of it 
for the wiki.


Jeff Emminger wrote:

> well,  I've rebuilt just the "form" project, but Eclipse still deploys 
> the previous project "border", and displays
> 
> <terminated> c:\program files\eclipse\workspace\form\deploy.xml
> 
> in the console.
> 
> i've tried closing/reopening eclipse, and restarting tomcat...it's got 
> to be something stupid i'm doing, but i can't deploy my project now via 
> eclipse.
> 
> 
> 
> Kevin C. Dorff wrote:
> 
>> This is probably a silly question, but are you sure you are executing 
>> just this deploy (such as with Project | Rebuild Project) or maybe 
>> doing a Rebuild All ?
>>
>> Kevin
>>
>> Jeff Emminger wrote:
>>
>>> hi all,
>>>
>>> i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and 
>>> it seems that Eclipse wants to deploy ALL projects in my workspace 
>>> when I just select to deploy one specific project.  each project has 
>>> its own deploy.xml.
>>>
>>> for example, i'll choose to deploy my "form" project, whose 
>>> deploy.xml looks like so (below), and i'll get errors such as:
>>> Ant build C:\Program Files\eclipse\workspace\border\deploy.xml 
>>> already in progress
>>> Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml 
>>> already in progress
>>>
>>> nowhere in the build file does it state to build these...what am i 
>>> doing wrong?
>>>
>>>
>>> <?xml version="1.0"?>
>>> <project name="ServletDeploy" default="Build_All">
>>>    <property name="application" value="form" />
>>>    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
>>>    <property name="workspaceHome" value="c:/program 
>>> files/eclipse/workspace" />
>>>    <property name="mgrUsername" value="xxxx" />
>>>    <property name="mgrPassword" value="xxxx" />
>>>
>>>    <property name="webappsHome" value="${tomcatHome}/webapps" />
>>>    <property name="appHome" value="${webappsHome}/${application}" />
>>>    <property name="contextHome" 
>>> value="${workspaceHome}/${application}/context" />
>>>    <property name="deployWarsDir" 
>>> value="${workspaceHome}/${application}/DeployWars" />
>>>    <property name="mgrUrl" value="http://localhost:8080/manager" />
>>>    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
>>>    <property name="mgrDeployUrl" value="${mgrUrl}/install" />
>>>
>>>    <target name="Deploy_to_LocalDev">
>>>       <!-- LocalDev deploys right into the local tomcat -->
>>>       <mkdir dir="${deployWarsDir}/local-dev" />
>>>       <delete file="${deployWarsDir}/local-dev/${application}.war" />
>>>       <war
>>>         duplicate="preserve"
>>>           destfile="${deployWarsDir}/local-dev/${application}.war"
>>>           webxml="${contextHome}/WEB-INF/web.xml">
>>>           <classes dir="${contextHome}/WEB-INF/classes" />
>>>           <fileset dir="${contextHome}">
>>>              <include name="*" />
>>>              <include name="images/*" />
>>>              <include name="WEB-INF/*.page" />
>>>              <include name="WEB-INF/*.application" />
>>>              <include name="WEB-INF/*.jwc" />
>>>              <include name="WEB-INF/*.html" />
>>>           </fileset>
>>>       </war>
>>>
>>>       <!-- Deploy to Tomcat 4.1 -->
>>>       <!-- NOTE: The remaineder of this installation requires the 
>>> Tomcat 4.0+
>>>            manager be running and the build will fail if it is not. -->
>>>       <!-- Remove the application -->
>>>       <delete file="deploy-local-remove.txt" />
>>>       <get
>>>          src="${mgrRemoveUrl}?path=/${application}"
>>>          dest="deploy-local-remove.txt"
>>>          username="${mgrUsername}"
>>>          password="${mgrPassword}" />
>>>       <loadfile property="deploy.local.remove.result"
>>>          srcFile="deploy-local-remove.txt" />
>>>       <echo>${deploy.local.remove.result}</echo>
>>>       <delete file="deploy-local-remove.txt" />
>>>
>>>       <!-- Remove the directory containing the old version of the 
>>> application -->
>>>       <!--
>>>       <delete dir="${webappsHome}/${application}" />
>>>       -->
>>>       <unzip
>>>          src="${deployWarsDir}/local-dev/${application}.war"
>>>          dest="${webappsHome}/${application}" />
>>>
>>>       <!-- Install the application -->
>>>       <delete file="deploy-local-remove.txt" />
>>>       <property name="mgrDeployParams"
>>>
>>> value="path=/${application}&amp;war=file://${webappsHome}/${application}/" 
>>> />
>>>       <get
>>>          src="${mgrDeployUrl}?${mgrDeployParams}"
>>>          dest="deploy-local-remove.txt"
>>>          username="${mgrUsername}"
>>>          password="${mgrPassword}" />
>>>       <loadfile property="deploy.local.remove.resultb"
>>>          srcFile="deploy-local-remove.txt" />
>>>       <echo>${deploy.local.remove.resultb}</echo>
>>>       <delete file="deploy-local-remove.txt" />
>>>    </target>
>>>
>>>    <target name="Build_All" depends="Deploy_to_LocalDev" />
>>> </project>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by Jeff Emminger <je...@jeffemminger.com>.
well,  I've rebuilt just the "form" project, but Eclipse still deploys 
the previous project "border", and displays

<terminated> c:\program files\eclipse\workspace\form\deploy.xml

in the console.

i've tried closing/reopening eclipse, and restarting tomcat...it's got 
to be something stupid i'm doing, but i can't deploy my project now via 
eclipse.



Kevin C. Dorff wrote:

> This is probably a silly question, but are you sure you are executing 
> just this deploy (such as with Project | Rebuild Project) or maybe doing 
> a Rebuild All ?
> 
> Kevin
> 
> Jeff Emminger wrote:
> 
>> hi all,
>>
>> i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it 
>> seems that Eclipse wants to deploy ALL projects in my workspace when I 
>> just select to deploy one specific project.  each project has its own 
>> deploy.xml.
>>
>> for example, i'll choose to deploy my "form" project, whose deploy.xml 
>> looks like so (below), and i'll get errors such as:
>> Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already 
>> in progress
>> Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml 
>> already in progress
>>
>> nowhere in the build file does it state to build these...what am i 
>> doing wrong?
>>
>>
>> <?xml version="1.0"?>
>> <project name="ServletDeploy" default="Build_All">
>>    <property name="application" value="form" />
>>    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
>>    <property name="workspaceHome" value="c:/program 
>> files/eclipse/workspace" />
>>    <property name="mgrUsername" value="xxxx" />
>>    <property name="mgrPassword" value="xxxx" />
>>
>>    <property name="webappsHome" value="${tomcatHome}/webapps" />
>>    <property name="appHome" value="${webappsHome}/${application}" />
>>    <property name="contextHome" 
>> value="${workspaceHome}/${application}/context" />
>>    <property name="deployWarsDir" 
>> value="${workspaceHome}/${application}/DeployWars" />
>>    <property name="mgrUrl" value="http://localhost:8080/manager" />
>>    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
>>    <property name="mgrDeployUrl" value="${mgrUrl}/install" />
>>
>>    <target name="Deploy_to_LocalDev">
>>       <!-- LocalDev deploys right into the local tomcat -->
>>       <mkdir dir="${deployWarsDir}/local-dev" />
>>       <delete file="${deployWarsDir}/local-dev/${application}.war" />
>>       <war
>>         duplicate="preserve"
>>           destfile="${deployWarsDir}/local-dev/${application}.war"
>>           webxml="${contextHome}/WEB-INF/web.xml">
>>           <classes dir="${contextHome}/WEB-INF/classes" />
>>           <fileset dir="${contextHome}">
>>              <include name="*" />
>>              <include name="images/*" />
>>              <include name="WEB-INF/*.page" />
>>              <include name="WEB-INF/*.application" />
>>              <include name="WEB-INF/*.jwc" />
>>              <include name="WEB-INF/*.html" />
>>           </fileset>
>>       </war>
>>
>>       <!-- Deploy to Tomcat 4.1 -->
>>       <!-- NOTE: The remaineder of this installation requires the 
>> Tomcat 4.0+
>>            manager be running and the build will fail if it is not. -->
>>       <!-- Remove the application -->
>>       <delete file="deploy-local-remove.txt" />
>>       <get
>>          src="${mgrRemoveUrl}?path=/${application}"
>>          dest="deploy-local-remove.txt"
>>          username="${mgrUsername}"
>>          password="${mgrPassword}" />
>>       <loadfile property="deploy.local.remove.result"
>>          srcFile="deploy-local-remove.txt" />
>>       <echo>${deploy.local.remove.result}</echo>
>>       <delete file="deploy-local-remove.txt" />
>>
>>       <!-- Remove the directory containing the old version of the 
>> application -->
>>       <!--
>>       <delete dir="${webappsHome}/${application}" />
>>       -->
>>       <unzip
>>          src="${deployWarsDir}/local-dev/${application}.war"
>>          dest="${webappsHome}/${application}" />
>>
>>       <!-- Install the application -->
>>       <delete file="deploy-local-remove.txt" />
>>       <property name="mgrDeployParams"
>>
>> value="path=/${application}&amp;war=file://${webappsHome}/${application}/" 
>> />
>>       <get
>>          src="${mgrDeployUrl}?${mgrDeployParams}"
>>          dest="deploy-local-remove.txt"
>>          username="${mgrUsername}"
>>          password="${mgrPassword}" />
>>       <loadfile property="deploy.local.remove.resultb"
>>          srcFile="deploy-local-remove.txt" />
>>       <echo>${deploy.local.remove.resultb}</echo>
>>       <delete file="deploy-local-remove.txt" />
>>    </target>
>>
>>    <target name="Build_All" depends="Deploy_to_LocalDev" />
>> </project>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: problems deploying from eclipse

Posted by "Kevin C. Dorff" <kd...@kcp.com>.
This is probably a silly question, but are you sure you are executing 
just this deploy (such as with Project | Rebuild Project) or maybe doing 
a Rebuild All ?

Kevin

Jeff Emminger wrote:

> hi all,
>
> i'm using the ant build deploy.xml from Kevin Dorff's tutorial, and it 
> seems that Eclipse wants to deploy ALL projects in my workspace when I 
> just select to deploy one specific project.  each project has its own 
> deploy.xml.
>
> for example, i'll choose to deploy my "form" project, whose deploy.xml 
> looks like so (below), and i'll get errors such as:
> Ant build C:\Program Files\eclipse\workspace\border\deploy.xml already 
> in progress
> Ant build C:\Program Files\eclipse\workspace\hangman\deploy.xml 
> already in progress
>
> nowhere in the build file does it state to build these...what am i 
> doing wrong?
>
>
> <?xml version="1.0"?>
> <project name="ServletDeploy" default="Build_All">
>    <property name="application" value="form" />
>    <property name="tomcatHome" value="c:/jakarta-tomcat-4.1.29" />
>    <property name="workspaceHome" value="c:/program 
> files/eclipse/workspace" />
>    <property name="mgrUsername" value="xxxx" />
>    <property name="mgrPassword" value="xxxx" />
>
>    <property name="webappsHome" value="${tomcatHome}/webapps" />
>    <property name="appHome" value="${webappsHome}/${application}" />
>    <property name="contextHome" 
> value="${workspaceHome}/${application}/context" />
>    <property name="deployWarsDir" 
> value="${workspaceHome}/${application}/DeployWars" />
>    <property name="mgrUrl" value="http://localhost:8080/manager" />
>    <property name="mgrRemoveUrl" value="${mgrUrl}/remove" />
>    <property name="mgrDeployUrl" value="${mgrUrl}/install" />
>
>    <target name="Deploy_to_LocalDev">
>       <!-- LocalDev deploys right into the local tomcat -->
>       <mkdir dir="${deployWarsDir}/local-dev" />
>       <delete file="${deployWarsDir}/local-dev/${application}.war" />
>       <war
>         duplicate="preserve"
>           destfile="${deployWarsDir}/local-dev/${application}.war"
>           webxml="${contextHome}/WEB-INF/web.xml">
>           <classes dir="${contextHome}/WEB-INF/classes" />
>           <fileset dir="${contextHome}">
>              <include name="*" />
>              <include name="images/*" />
>              <include name="WEB-INF/*.page" />
>              <include name="WEB-INF/*.application" />
>              <include name="WEB-INF/*.jwc" />
>              <include name="WEB-INF/*.html" />
>           </fileset>
>       </war>
>
>       <!-- Deploy to Tomcat 4.1 -->
>       <!-- NOTE: The remaineder of this installation requires the 
> Tomcat 4.0+
>            manager be running and the build will fail if it is not. -->
>       <!-- Remove the application -->
>       <delete file="deploy-local-remove.txt" />
>       <get
>          src="${mgrRemoveUrl}?path=/${application}"
>          dest="deploy-local-remove.txt"
>          username="${mgrUsername}"
>          password="${mgrPassword}" />
>       <loadfile property="deploy.local.remove.result"
>          srcFile="deploy-local-remove.txt" />
>       <echo>${deploy.local.remove.result}</echo>
>       <delete file="deploy-local-remove.txt" />
>
>       <!-- Remove the directory containing the old version of the 
> application -->
>       <!--
>       <delete dir="${webappsHome}/${application}" />
>       -->
>       <unzip
>          src="${deployWarsDir}/local-dev/${application}.war"
>          dest="${webappsHome}/${application}" />
>
>       <!-- Install the application -->
>       <delete file="deploy-local-remove.txt" />
>       <property name="mgrDeployParams"
>
> value="path=/${application}&amp;war=file://${webappsHome}/${application}/" 
> />
>       <get
>          src="${mgrDeployUrl}?${mgrDeployParams}"
>          dest="deploy-local-remove.txt"
>          username="${mgrUsername}"
>          password="${mgrPassword}" />
>       <loadfile property="deploy.local.remove.resultb"
>          srcFile="deploy-local-remove.txt" />
>       <echo>${deploy.local.remove.resultb}</echo>
>       <delete file="deploy-local-remove.txt" />
>    </target>
>
>    <target name="Build_All" depends="Deploy_to_LocalDev" />
> </project>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org