I'm trying to set up Production Redeployment on my EAR, under WebLogic 10.3.6.
However, I can't figure out how to make Weblogic-Application-Version work in MANIFEST.MF Here is my EAR structure:
--- --- lib
--- --- classes
--- --- application.xml
--- --- weblogic-application.xml
--- --- MANIFEST.MF <- file I update
--- --- META-INF
--- --- --- MANIFEST.MF
--- --- WEB-INF
--- --- --- classes
--- --- --- lib
--- --- --- web.xml
--- --- --- weblogic.xml
--- --- same as WebApp1 MANIFEST.MF content is the following:
The problem is that it's not taken into account when I deploy the application in the WebLogic console.
When I use staged mode, the line Weblogic-Application-Version: VERSION_1 is removed from the staged MANIFEST.MF file.
The only way to manage to version my application is to add the flag -appversion to weblogic.Deployer, but I don't want to use that on a Production environment (and it's not recommended in the documentation!).
Any idea why Weblogic-Application-Version not taken into account? I tried to add debug mode to node weblogic/debug but with no success.
Thanks by advance,
I guess you upload your application from your local desktop to the remote server by using WebLogic Console.
Can you try FTP the application first to the remote server then deploy through console?
I don't know your build and operational requirements. you may also want to open a ticket with Oracle technical support.
actually I'm working locally, so I'm deploying the application from my hard drive directly into my local WebLogic installation.
I also tried to copy the application on a remote 10.3.6 server, and deploy it here, with the same lack of success :(
Thanks for your time
I tested it at my end and was able to redeploy it successfully with the application versions.
Are you saying that by deploying through weblogic console,the archive version is not honoring/getting picked up .is that correct?
if yes, what does your weblogic console shows for archive version,when you first try to deploy your application with the VERSION_1.
I mean,when you are on the "Optional Settings" Page.Do you see the Archive Version as VERSION_1?
Deployments >> Click on the Install >> select your application ( MyAPP)>> Install this deployment as an application >> Select deployment targets >> Optional Settngs
Example from the Optional settings Page for My application
What do you want to name this deployment?
This can confirm that the application being deployed is versioned one and if it doesn't shows up,then you need to check why its not getting picked up.?
Moreover,You can enable the "deploy" debug flag to see whats going wrong in your case during the deployment process
Server > Debug > Weblogic > Deploy
Do refer the below viewlet on the Production Redeployment
thanks to your viewlet I downloaded the aussie-tripper application and found what I was doing wrong: I was missing the carriage return at the end of my MANIFEST.MF file!
--> insert a picture of me headbanging against my desk here :D