facebook

Cancel Deployment Midway

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #234312 Reply

    I do not know whether this is a bug but when one starts the deployment of a project … the same cannot be cancelled midway .. now the files required to be deployed for the project are around 1 GB in size … onec the deplyment starts it takes around 7-8 minutes for it to be completed. Can we not cancel the deployment midway ?

    Also is there a way through which the whole project directory is not actually copied into the tomcat/webapps folder ?

    #234325 Reply

    Riyad Kalla
    Member

    now the files required to be deployed for the project are around 1 GB in size … onec the deplyment starts it takes around 7-8 minutes for it to be completed. Can we not cancel the deployment midway ?

    Good lord, that is a big application. And no I don’t think we’ve ever had anyone ask for cancelling mid deployment. Are you deploying media files that could be made external to this app?

    lso is there a way through which the whole project directory is not actually copied into the tomcat/webapps folder ?

    Do you meant to a custom location, or just partially deployed? The answer to #1 is yes, to #2 no.

    #234352 Reply

    I have got all the files in the following path :

    G:/webappXYZ/defaultroot : This is where all the JSPs are as well as where the WEB-INF folder is
    and all the source files are here : G:/webappXYZ/src

    Now the size of the G:/webappXYZ/defaultroot is ever increasing since new files are created quite a lot. Basically this is a sitebuilder webapp which can have many users. So as the number of users increase so does the size of this folder. That’s how its is now at a whopping 1 GB.

    What i would love is that all the files remain in this folder and are just referred to. Sort of a custom location. So how should i go about this. While deploying this project should I select ‘Custom Location’ and specify G:/webappXYZ/defaultroot as the location of deployment? Would this not cause a problem?

    THis is the entry in the server.xml for this webapp context:

    
    <Context path="/webappXYZ" reloadable="true" docBase="G:\webappXYZ\defaultroot" workDir="G:\webappXYZ\work\org\apache\jsp" >
        <Logger className="org.apache.catalina.logger.SystemOutLogger" verbosity="4" timestamp="true"/>
        <Loader className="org.apache.catalina.loader.DevLoader" reloadable="true" debug="1"/> 
        <ResourceParams name="jdbc/postgres">
                                  <parameter>
                                    <name>factory</name>
                                    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                                  </parameter>
                                  <parameter>
                                    <name>driverClassName</name>
                                    <value>org.postgresql.Driver</value>
                                  </parameter>
                                  <parameter>
                                    <name>url</name>
                                    <value>jdbc:postgresql://192.168.23.67:5432/webappXYZ_3_2</value>
                                  </parameter>
                                  <parameter>
                                    <name>username</name>
                                    <value>XXXXXXXXX</value>
                                  </parameter>
                                  <parameter>
                                    <name>password</name>
                                    <value>XXXXXXXXX</value>
                                  </parameter>
                                  <parameter>
                                    <name>maxActive</name>
                                    <value>4</value>
                                  </parameter>
                                  <parameter>
                                    <name>maxIdle</name>
                                    <value>1</value>
                                  </parameter>
                                  <parameter>
                                    <name>maxWait</name>
                                    <value>-1</value>
                                  </parameter>
                                  <parameter>
                                    <name>removeAbandonedTimeout</name>
                                    <value>2</value>
                                  </parameter>
                        </ResourceParams>
        
    </Context> 
    

    What i do not understand is why are the files copied if the docbase is set the the webapp in G:\webappXYZ\defaulroot?

    #234353 Reply

    Riyad Kalla
    Member

    morpheus,
    Reading your context it looks like you pointed Tomcat straight at your Workspace dir (G:\webappXYZ\defaultroot), is this correct? If it is, then there is no need to create a deployment, there IS no deployment to create.

    And yes, if you tried to deploy the project ontop of itself, bad things will happen, mostly because when you go to remove that deployment you will toast your project.

    So do one of the following:

    1) Keep working how you are working and forget about a deployment.

    OR

    2) Change the docBase back to the tomcat/webapps/webappXYZ dir, and setup an exploded deployment in MYEclipse, it will get copied out once and then from that point on, any time you make a change in the project, it will be synced with the server real-time, no need to recreate the deplioyment.

    #234360 Reply

    THANKS RIYAD!

    Thanks a zillion for making this clear. I thought that a deployment was always required. I removed the deployment in the tomcat/webapps dir as well as from ‘Add and Remove Project Deployments’. And things are working fine now 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Cancel Deployment Midway

You must be logged in to post in the forum log in