tag:blogger.com,1999:blog-13556721.post5791702197431495986..comments2023-05-29T18:53:18.727+09:30Comments on The Buttso Blathers: Using Secure Config Files with the WebLogic Maven PluginButtsohttp://www.blogger.com/profile/03968454565733104381noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-13556721.post-14377292240786082612013-11-07T01:33:38.014+10:302013-11-07T01:33:38.014+10:30Hi Buttso
Brilliant article.
I tried the maven we...Hi Buttso<br /><br />Brilliant article.<br />I tried the maven weblogic plugin with secured user/password using . But it works fine only on my local windows machine. And it fails on the Linux server when I build using Hudson.<br />Any idea ?<br /><br /><br />Error log is here..... <br />INFO] ++====================================================================++<br />[INFO] ++ wls-maven-plugin: undeploy ++<br />[INFO] ++====================================================================++<br />weblogic.Deployer invoked with options: -noexit -adminurl t3://host:7001 -userconfigfile wls_dev.config -userkeyfile wls_dev.key -undeploy -name abc-1.0.8-SNAPSHOT -targets AdminServer<br />Please enter username:Please enter a password for the user "installadministrator":Please enter a password for the user "installadministrator":Please enter a password for the user "installadministrator":Please enter a password for the user "installadministrator":Please enter a password for the user "installadministrator":[INFO] ------------------------------------------------------------------------<br />[INFO] BUILD FAILURE<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 11.292s<br />[INFO] Finished at: Wed Nov 06 14:46:35 GMT 2013<br />[INFO] Final Memory: 21M/58M<br />[INFO] ------------------------------------------------------------------------<br />[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)<br />[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:undeploy (default-cli) on project abc_presentation: weblogic.deploy.api.tools.deployer.DeployerException: weblogic.deploy.utils.MBeanHomeToolException: Unable to obtain a password for the specified user.<br />[DEBUG] Closing connection to remote<br />[ERROR] Failed to execute goal com.oracle.weblogic:wls-maven-plugin:12.1.1.0:undeploy (default-cli) on project abc_presentation: weblogic.deploy.api.tools.deployer.DeployerException: weblogic.deploy.utils.MBeanHomeToolException: Unable to obtain a password for the specified user. InvocationTargetException -> [Help 1]<br /><br />Thanks<br />Jay<br />Jayhttps://www.blogger.com/profile/02940614100625570887noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-12674258499335885482011-06-29T07:08:06.715+09:302011-06-29T07:08:06.715+09:30Hi Jay, thanks for the comment.
A specific patch ...Hi Jay, thanks for the comment.<br /><br />A specific patch doesn't currently exist. We've fixed the bug in our codeline for the next release. But you should be able to request a fix from support for it.<br /><br />Since we generate the plugin from a WLS install, the fix would (I assume) be to provide you with a new modules/com.oracle.weblogic.maven.plugin_1.0.0.0.jar jar file, which is what the "wljarbuilder -profile weblogic-maven-plugin" uses as its source to produce the actual maven plugin that is provisioned into the repo. <br /><br />Since the fix is to the module that contains the plugin classes, and is essentially a client side piece of code, all you'd need to do is apply it to one server, generate the plugin, and store that in your maven plugin repo for all your maven users to declare and use. The fix does nothing to the weblogic server itself, just the client plugin code.<br /><br />Hope that is clear enough -- please let me know if you have more questions.<br /><br />-steve-Buttsohttps://www.blogger.com/profile/03968454565733104381noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-79651154274599179712011-06-29T06:36:59.010+09:302011-06-29T06:36:59.010+09:30This is a great article and is exactly what I need...This is a great article and is exactly what I need to do.<br /><br />A question about the patch...is the patch required for WLST, the weblogic.Deployer, or for the WLS instance to accept deployments via this security config file?...Just want to assess the impact of patching our current instances to use this feature.<br /><br />Also, does the plugin have to be rebuilt if we supply the crypto via the plugin configuration and don't really mind not using the weblogic prefix?<br /><br />Thanks again for the article.Jaynoreply@blogger.comtag:blogger.com,1999:blog-13556721.post-38248395833921447392011-06-21T10:39:29.629+09:302011-06-21T10:39:29.629+09:30Hey Triss --
The dev team implemented the fix dir...Hey Triss --<br /><br />The dev team implemented the fix directly on the next release codeline. So there never was an official/unofficial "patch" for this. I was able to pull it directly from the nightly build trees for 10.3.6 and show it working. <br /><br />If you need this prior to WLS 10.3.6 where the fix is in, you'll need to open a tar, state the problem you are seeing with it not working, note that this is a known bug #10382796 and ask for a patch to be created for it. The bug was marked as feasible to backport so it should be possible to do (the fix was simple) based on the normal support policies.<br /><br />-steve-Buttsohttps://www.blogger.com/profile/03968454565733104381noreply@blogger.comtag:blogger.com,1999:blog-13556721.post-76872942877333390082011-06-21T01:15:38.502+09:302011-06-21T01:15:38.502+09:30I'm very much looking forward to not using the...I'm very much looking forward to not using the hand-hacked maven deployer goal I hadda write, and your post gives me hope I'll be able to connect it up to the rest of my release tooling, stored credentials and all.<br /><br />Oracle, on the other hand, is denying they ever wrote a patch for this little miswiring.<br /><br />Don't suppose they gave you an internal patch number to go with that internal bug number?Trisshttps://www.blogger.com/profile/03729291456542596101noreply@blogger.com