Hi All,
Hoping you can point me in the right direction with an issue I'm having using cargo and WebSphere.
In my team we've been using the cargo daemon successfully with gradle and tomcat for well over a year and it's been doing a great job of simplifying deployments.
Just in the last week or so we've been looking at trying to get the cargo daemon setup with WebSphere to support deployments of one of our applications, and have hit a few issues. Am looking for some pointers as to how best go about troubleshooting this.
We are using the latest version of the cargo daemon (1.4.16) and have it successfully setup with a WebSphere 8.5.5 application server instance. We've setup the container configuration in the Cargo Daemon for websphere to use the WebSphere85xInstalledLocalContainer, and are able to successfully start and stop the websphere server instance using the cargo daemon UI. We've also been able to plug in the start/stop of the container to our gradle build.
I can see in the cargo documentation a distinction between 'local' and 'remote' containers. With WebSphere can you tell me what impact this distinction has, from looking at the documentation, as far as I understand it, when using WebSphere with cargo, a 'remote' deployment is not supported. I already have the cargo daemon and websphere running on the same server (I presume that should constitute a 'local' deployment? Do I need to be running my build (ant/gradle) on the same server also? I'm using the gradle cargo plugin, which from what I can see is just wrapping the cargo ant library. So far I've tried a local and remote deployment, and whichever one I try, I'm getting an error that looks like cargo is unable to find the websphere container details to do the deployment to. We're in the process of testing a deploy with just the cargo ant library just to rule out anything with our gradle build, but am just wondering if anyone has an example setup/instructions they could direct me to that might help us?
When I try the cargo redeploy remote option using the gradle cargo plugin I get the below error:
> org.codehaus.cargo.container.ContainerException: Cannot create configuration. There's no registered configuration for the parameters (container [id = [websphere85x], type = [remote]], configuration type [runtime]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?
If I try the local equivalent, I get a very similar error, but the reference to 'remote', says 'installed'.
> org.codehaus.cargo.container.ContainerException: Failed to create deployer with implementation class org.codehaus.cargo.container.websphere.WebSphere85xInstalledLocalDeployer for the parameters (container [id = [websphere85x]], deployer type [installed]).
If there's nobody out there using gradle with cargo and WebSphere, does someone have an ant based example they could direct me towards (am already looking at the docs on the cargo site).
I've spent a good bit of time reading the documentation and searching the mailing list for others trying to do the same thing, but haven't found much as yet. I presume we're probably missing something here that requires the lookup of the container details as part of the deployment to work?
Would I be better off looking at the WebSphere85xInstalledLocalContainer, the documentation seems to suggest not.
Any pointers in the right direction very much appreciated.
Regards,
Ronan Derby,