Create Websphere deployment descriptior with ANT - ant

I have created an EAR file for deployment in JBoss application server with ANT 1.8. Now I have a task to create the EAR file to be deployed in Websphere server. When I deployed the previously created ear file, it failed...when I investigated, I found that websphere default deployment descriptor: ibm-web-bnd.xml, ibm-web-ext.xml are not available in my EAR.
I would like to know, If someone do not have RAD/WSAD tools, how can they generate the EAR file compatible for Websphere 7 AS?
Thanks in advance,

You can use the Rational Application Developer for Websphere Software build utility. The build utility is an optional, stand-alone utility and is separately installed. Take a look at the following: http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=/com.ibm.rad.install.doc/topics/c_install_build_utility_readme.html

Related

Once ant build is converted to maven build nested folders are created & its nt deployed properly thrugh uDeploy. Guess is environment properties issue

Looking for help on the issue that we are facing with the deployment of the war that is generated through maven build. Unable to install or update the application. According to logs the previous application server is not even being stopped though environment properties are being set in the ‘application-config.properties’ file during the deployment process to stop the previous server and start a new one.
If you need more details, please contact us.
Application config specifications:
Combination of struts(version 2.1.8) and spring(version 2.5.6) framework.
Java 1.8 version with web sphere version 6.1 and dynamic web module version 3.1
Maven-compiler-plugin version 3.7.0 and maven-war-plugin 3.2.1.

Spring Cloud Dataflow Server Lock the Jar Locally

I am designing the batch workflow with SCDF on Windows OS. When I test the code on my local machine, I deploy and run the Spring batch job jar locally by registering the jar using file URL. The problem is that whenever I want to rebuild my batch job jar, I cannot delete the jar that has already registered on the SCDF server as the OS warned me that the jar is being used by a Java program (even when the batch job is not running at that time).
It is quite inconvenient for developers to shut down the SCDF server every time when they want to rebuild the jar and replace the existing jar. Is there any workaround, or am I missing any configuration?
Thanks in advance for the advice.
I see this is an inconvenience but unfortunately this is expected when using file:// based resources. One alternative is to install your app as maven artifact in your local and refer them as maven:// based resources.

Migrating WebSphere 9 ant tasks to WebSphere liberty

I am trying to migrate j2ee application from WebSphere to liberty.
The build script uses WebSphere specific ant tasks (com.ibm.websphere.ant.tasks.WsEjbDeploy) in the ant build scripts
Is there any similar task available for liberty ? or
Can the code build using the above task be deployed and will work on liberty?
EJBDeploy and the associated ant task have been replaced by a Just-In-Time (JIT) deployment feature. This capability was first introduced in WebSphere traditional version 7.0 for all EJB 3 (and later) modules.
Liberty provides JIT deployment for all EJB module levels (EJB 1.x through EJB 3.2).
WebSphere traditional now also supports JIT deployment of all EJB module versions, as of versions 8.5.5.16 and 9.0.5.0, except for modules containing EJB 1.x or 2.x Entity beans. Entity beans still require the use of EJBDeploy. If your application contains Entity beans, they will need to be converted to another form of persistence, such as JPA, when migrating to Liberty.
When migrating an application to Liberty that used EJBDeploy on WebSphere traditional, the non-deployed version of the application should be used. Do not migrate the artifacts generated by EJBDeploy to Liberty. The JIT deployment capability of Liberty will dynamically generate the artifacts in memory as needed. It is possible the EJBDeploy generated artifacts may interfere with proper behavior in Liberty.
For more information about JIT deployment, see the following information in the knowledge center:
https://www.ibm.com/support/knowledgecenter/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/cejb_deployejbfp.html
If the application contains remote EJB interfaces and a thin client will be used, then Stub classes will need to be generated for packaging with the thin client. This would have been done by EJBDeploy previously, but now may be accomplished by using RMIC.
More information about deploying remote interfaces to Liberty may be found from a link provided here :
https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_ejb_dev.html

Automatic deployment from development server to Remote server

I'm doing an automatic deployment to move binaries,sql scripts,properties files from development server to staging server. Note, my case property and xsd files were present in the Hard Drive on the computer instead of Tomcat web server.
Jenkins has the ability to deploy applications on tomcat with the help of SVN.
How Jenkins will execute sql scripts and apply property files changes on remote server?
You have two major options:
Use the Execute shell or Execute Windows batch command build steps
use a java based tool like liquibase, ant tasks, maven plugin or many more.

Weblogic + Change deployment order via command

I am using ant script to undeploy and deploy the application to weblogic server. For a particular application I want to setup the "Deployment Order" a different value. Is there any way I can mention the deployment order via ANT. Please assist.
The weblogic.Deployer utility and its ANT version wldeploy do not provide a feature to set the Deployment Order while deploying the Application.
The order can only be updated after the deployment. You can still automate it with WLST if that's what you're looking for. Here is an example: https://forums.oracle.com/thread/1014169

Resources