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.
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)
similar issue with NB 6.0
setting asinstall.dir property doesn't seem to help either
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...
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.
lower per Ludo recommendation...
if v3 has ant tasks, change the subcomponent and raise the priority of this...
examine after 7.0
i am not active on this issue right now.