*
The moose likes Ant, Maven and Other Build Tools and the fly likes Auto deployment on Sun one webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Auto deployment on Sun one webserver" Watch "Auto deployment on Sun one webserver" New topic
Author

Auto deployment on Sun one webserver

Nipun Bahr
Ranch Hand

Joined: Jul 09, 2008
Posts: 55


Hi,

As part of implementing auto deployment for Sun one web server, I am copying WAR file generated to auto-deploy folder of Sun directory through ANT script.

But still auto deployment is not happening. Its not reflecting the changes made in generated WAR.

Could anybody help me regarding this?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

This is more a question about Sun One Server, rather than about Ant. Unfortunately, I don't think we have any forum for that server, otherwise I would move your post there.


JBoss In Action
Nipun Bahr
Ranch Hand

Joined: Jul 09, 2008
Posts: 55


Hi Peter,

Thanks for your reply.

I am stuck with this thing and not finding any way to proceed
Saravanan Rathinavel
Greenhorn

Joined: Jan 09, 2012
Posts: 2
Nipun Bahr wrote:
Hi,

As part of implementing auto deployment for Sun one web server, I am copying WAR file generated to auto-deploy folder of Sun directory through ANT script.

But still auto deployment is not happening. Its not reflecting the changes made in generated WAR.

Could anybody help me regarding this?

-----------------------------------------------------------------
I also faced the same issue.
So I have written ant task to copy the application (or extracted copy of war) to web-app directory instead of auto-deploy.

See the below ant code:

1. Stop the server
<exec executable="${sun-ws-home}/bin/stopserv.bat"/>

2. Extract the war to deployment directory(ie, web-app directory inside respective domain folder).
<unzip src="${war_file}" dest="${sun-deployment-dir}"/>

3. Start the server.
<exec executable="${sun-ws-home}bin/startserv.bat"/>

This is working fine and it is faster than the manual deployment through the admin console.

I searched in google. I found some ant tasks are available for deployment. But those are not working. Also , I didnt do much research on that.
Hope this will be helpful.
Nipun Bahr
Ranch Hand

Joined: Jul 09, 2008
Posts: 55


Thanks a ton Saravanan for the information.

It works
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Auto deployment on Sun one webserver
 
Similar Threads
Struts & JPA - How to deploy web application after implementing?
Jboss auto hot deployment issue
JAX-WS web service simple example
Regarding war file export in eclipseWTP1.5
Auto deployment script on sun one web server