Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deploying a war file without restarting weblogic

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
Hey there,
I'm sure I read somewhere in the BEA docs that you can redploy a .war application without having to restart weblogic - I think the process involved 'touch'ing some file whose timestamp weblogic checks. Unfortunately for the life of me I cant seem to find this documentation now. Does anyone know anything about this?
Thanks
 
This file only comes into play when your application is deployed in exploded format. The file is named REDEPLOY. To redeploy a Web Application that was deployed as a war just copy the new war file over the old one. If auto-redeploy is enabled than the changes will be picked up. If not then you will need to go into the Admin Console and manually redeploy the war by undeploying it and deploying it.

Furthermore you could use the weblogic.deploy utility to easily redeploy the application. You could write a nice build script that compiles and builds the war and then dynamically redeploys the application. This is really helpful for development.
 
At the moment I have a build file that builds the war on my local machine and ftp's it over to the web server machine. How do I enable re-deploy so that jsp's etc are recompiled without error? Do you set that in the weblogic properties file?
Thanks
 
Yes to precompile JSP pages you must set a parameter in the weblogic.xml deployment descriptor of the war. You need the following in weblogic.xml (this is from WebLogic 6.x):
Code:
<jsp-descriptor>
  <jsp-param>
    <param-name>
      precompile
    </param-name> 
    <param-value>
      true
    </param-value>
  </jsp-param>
</jsp-descriptor>
Of course, the drawback to precompiling the pages is that it will take longer to redeploy your application but that should come as no surprise.
 
Sorry wush,
My last post was not terribly clear. I am actually wondering about the dynamic redeployment of the war file itself. In your first post you said
&quot;If auto-redeploy is enabled than the changes will be picked up.&quot;
I'm wondering where exactly do I set auto-redploy?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top