Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto deployment on Sun one webserver

 
Nipun Bahr
Ranch Hand
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nipun Bahr
Ranch Hand
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Peter,

Thanks for your reply.

I am stuck with this thing and not finding any way to proceed
 
Saravanan Rathinavel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks a ton Saravanan for the information.

It works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic