This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89683 - Unable to retrieve Client archive and generated static rmi stubs at deployment
Summary: Unable to retrieve Client archive and generated static rmi stubs at deployment
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-20 15:42 UTC by vp17559
Modified: 2007-08-30 17:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


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