Bug 89683 - Unable to retrieve Client archive and generated static rmi stubs at deployment
Unable to retrieve Client archive and generated static rmi stubs at deployment
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Infrastructure
5.x
All All
: P3 (vote)
: TBD
Assigned To: Petr Hejl
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-20 15:42 UTC by vp17559
Modified: 2007-08-30 17:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vp17559 2006-11-20 15:42:13 UTC
There is in Netbeans menus no options, at deployment/run project to:
 -1- retrieve the Client.jar archive
 -2- retrieve the Client.jar that contains the static RMI stubs.

The only "workaround" found was to customize the ant-deploy.xml and change the
appropriated target as follow:

    <target name="-deploy-ant" depends="-parse-sun-web,-add-resources"
if="deploy.ant.enabled">
        <echo message="Deploying ${deploy.ant.archive}"/>
        <taskdef name="sun-appserv-deploy"
classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask"
                 classpath="${sjsas.root}/lib/sun-appserv-ant.jar" />
        <sun-appserv-deploy user="${sjsas.username}"
                passwordfile="${sjsas.password.file}"
                host="${sjsas.host}" port="${sjsas.port}"
                file="${deploy.ant.archive}" asinstalldir="${sjsas.root}"
                retrievestubs="${dist.dir}"
                generatermistubs="true"
                />
        <delete file="${sjsas.password.file}"/>
    </target>

But it is executed only by calling "ant run" from a shell.

The Netbeans item "run project" call the "nbdeploy" target that is very opaque.

Add "deploy/retrieve client archive" item in the menu.
or
add "deployement properties" in the project properties area.
Comment 1 Sherold Dev 2006-12-01 10:24:34 UTC
the best workaround would probably be to customize the build.xml file and thus
replace the standard deploy target with your own, where you can do whatever you want


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo