Bug 113254 - end-to-end appserver ant task usage fails...
end-to-end appserver ant task usage fails...
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9
5.x
Sun Solaris
: P4 (vote)
: 6.x
Assigned To: Vince Kraemer
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-20 20:44 UTC by Vince Kraemer
Modified: 2010-03-08 09:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2007-08-20 20:44:21 UTC
Start NB
register an domain
create a web app that targets that domain
add a target to the projects build.xml that uses sun-appserv-* ant tasks
run the ant task from inside NetBeans

  build.xml content

    <target name="test-as-deploy" depends="dist">

        <sun-appserv-deploy file="dist/AsantTestWebProject551.war"
            passwordfile="/export/home/vbk/aspasswd"
            asinstalldir="/export/home/vbk/v2/pe/5/glassfish"
            />

running test-as-deploy produces:

test-as-deploy:
Executing: deploy --user admin --passwordfile "/export/home/vbk/aspasswd"  --force=true --enabled=true --name
AsantTestWebProject551 --verify=false --precompilejsp=false --upload=true
"/export/home/vkraemer/NetBeansProjects/AsantTestWebProject551/dist/AsantTestWebProject551.war"
/export/home/vkraemer/NetBeansProjects/AsantTestWebProject551/build.xml:73: A Sun Java System Application Server 8 admin
CLI class could not be found (com.sun.enterprise.cli.framework.InputsAndOutputs).  Use the asinstalldir attribute, set
the asinstall.dir property, or add the appropriate JARs to the classpath.
        at org.apache.tools.ant.taskdefs.optional.sun.appserv.AppServerAdmin.execAdminCommand(AppServerAdmin.java:514)
        at org.apache.tools.ant.taskdefs.optional.sun.appserv.ComponentAdmin.execute(ComponentAdmin.java:250)
        at org.apache.tools.ant.taskdefs.optional.sun.appserv.AppServerAdmin.execute(AppServerAdmin.java:404)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
Comment 1 Vince Kraemer 2007-08-20 20:45:12 UTC
similar issue with NB 6.0
Comment 2 Vince Kraemer 2007-08-20 20:46:18 UTC
setting asinstall.dir property doesn't seem to help either
Comment 3 Vince Kraemer 2007-08-20 21:08:56 UTC
adding admin-cli.jar, appserv-rt.jar, appserv-admin.jar and javaee.jar to the Classpath "field" on the Ant Options page
seems to resolve this issue...


Comment 4 _ ludo 2007-08-20 21:51:53 UTC
P4 I would say, as there is little demand for that anyway. It has been broken for so long that it is a proof anasnt in
NB is not a neede feature. Alos asant is not the way ANT should be extended imo.
Comment 5 Vince Kraemer 2007-08-20 22:00:11 UTC
lower per Ludo recommendation...
Comment 6 Vince Kraemer 2008-10-18 03:37:50 UTC
if v3 has ant tasks, change the subcomponent and raise the priority of this...
Comment 7 Vince Kraemer 2008-12-24 21:58:28 UTC
examine after 7.0
Comment 8 Vince Kraemer 2010-03-08 09:34:52 UTC
i am not active on this issue right now.


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