• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Auto deployment on Sun one webserver

 
Ranch Hand
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Peter,

Thanks for your reply.

I am stuck with this thing and not finding any way to proceed
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks a ton Saravanan for the information.

It works
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic