tags:

views:

562

answers:

3

Where is sun-appserv-ant.jar in Glassfish v3

I have created a small sample EJB project and I want to use ant to deploy the application to Glassfish v3.

Ive spent a lot of time on google trying to achieve this and all ant samples seem to refer to a jar file called "sun-appserv-ant.jar" which is supposed to be located in the modules directory of the application server install, however, I cannot find it anywhere, nor can I seem to find the reason why, or if there is even an ant based alternative.

Thanks

+1  A: 

You should add the Ant module through the GlassFish Update Tool

Michael Bavin
Thanks for the reply. I have done that. However sun-appserv-ant.jar was not added to the modules directory under <install path of App Server>/glassfish/modulesAm I missing something
Kirk
Its a diffrent jar now ant-tasks.jar, and the interface has changed a little too.<taskdef name="sun-appserv-deploy" classname="org.glassfish.ant.tasks.DeployTask" classpath="${glassfish.dir}/lib/ant/ant-tasks.jar"/>
Luzifer42
+1  A: 

The sun-appserv-ant.xml file was not brought forward with v3.

You are not completely stuck though.

You can read about ant's exec task, which you can use to trigger asadmin commands.

If you are very adventurous, you may want to investigate the bp-project framework that is used by the sample projects that ship with the Java EE 6 SDK.

You can get a peek at the bp-project framework by looking at the code in the glassfish-samples repository.

vkraemer
A: 

ye, ye, they built and they don't know what they built.

Alex Martin

related questions