Set targeted runtime in Maven app - maven

I'm developing Maven apps with IBM Rational Application Developer and deploying EARs on Websphere Application Server 8.5. When I generate EAR file using maven-ear-plugin and try to deploy it on WAS, Eclipse complains about targeted runtime not being set.
How can I set targeted runtime during build?

Related

WebSphere 9 upgrade with RAD 8.5

Our developers currently use the IBM RAD 8.5 to develop web applications (No enterprise Java beans (No J2EE), use Spring framework). The server team is planning to upgrade WebSphere from version 8 to version 9. Last I checked in the servers tab, RAD 8.5 supports WAS version 8, 8.5, and 8.5 Liberty profile. See screenshot.
Is it possible to continue to develop in RAD 8.5, and deploy to WebSphere 9 in the server environment? What kind of snag would I expect to run into? e.g. Assemble the WAR file in RAD 8.5, and deploy the WAR file in WAS 9.
Would there be any problem I should anticipate in the deployment descriptor? e.g. files like web.xml and application.xml?
Moving forward, is it better to use other IDE to do software development if we are not planning to upgrade RAD 8.5 to a newer version? Would MyEclipse(variant of Eclipse with better server support) or Eclipse IDE for Java EE Developers (oxygen) suffice? Do I also need the liberty profile?
https://developer.ibm.com/wasdev/downloads/liberty-profile-using-eclipse/
What kind of issues should I be expecting? Or continue using RAD 8.5 would be a better option?
Here are some of the stackoverflow links I had checked already. There are pretty high level.
what-are-the-differences-when-deploying-on-tomcat-vs-websphere
can-a-war-file-be-deployed-on-any-server
Thanks.
In my experience I could not use RAD 8.5 to control a v9 server. I could not use Java 8 in RAD 8.5. I would not expect RAD 8.5 to know about the newer versions of JPA, JAX-RS and other things in v9. You could continue to develop jee6 apps on a v8.5 server and then move them manually to a v9 server.
Liberty is worth a look but is not completely interchangeable. Liberty has features that traditional does not (MicroProfile) and lacks some older things that traditional has (JAX-RPC).
You might check out the WebSphere Developer Tools for Eclipse that have support for traditional v9. They're not as full featured as RAD but might be enough. More info is at https://www.ibm.com/support/knowledgecenter/en/was_beta/com.ibm.websphere.wdt.doc/topics/wdt_overview.htm
Adding to the information provided by Bruce, IBM had introduced OpenLiberty where one can deploy the war file built with RAD. Deploying to other application server (e.g. tomcatEE
) is possible, but it would require some work. OpenLiberty should be closest to the IBM Websphere in terms of setup and architecture.
Here are some links that provide more information.
OpenLiberty
IBM announces Open Liberty, an open source runtime for Java microservices
Difference between OpenLiberty and Websphere Liberty

How to automate TC Server war deployment

I download TC server STANDARD edition on my computer because this is the installed one on QA servers. My final goal is to write a maven task to deploy a war app in a distant tc server's instance.
Because of the use of the standard edition, tomcat manager is not pre-installed (so I cannot use maven's cargo plugin anymore).
So is there any method to deploy my jar in a distant server instance without putting it manually in webapp folder ?
Thanks in advance !
Here are a several options:
1) Our latest release 3.2.x (standard) introduced the tomcat-manager template which will set up the Manager webapp and secure it for a production environment.
2) You can also use the developer edition of tc Server. If it is the same version it will be nearly identical, it just will not contain some of the templates in the standard edition.
3) Add a maven target that copies the Manager webapp to the webapps folder.

Configure IBM WAS Liberty V8.5.5.6 & eXreme Scale

I am attempting (and failing) to configure a development environment as follows:-
Eclipse 4.5 for Java EE Developers (Mars).
WebSphere Developer Tools
IBM WebSphere eXtreme Scale v8.5 Liberty Profile Developer Tools
WebSphere eXtreme Scale V8.6 for Developers - Liberty Profile
WAS Liberty V8.5.5.6 with Java EE 7 Full Platform
The issues I have relate to my organisations security constraints related to downloading resources from external web sites.
I can successfully configure the following separate environments
eXtreme Scale
Eclipse 4.5 for Java EE Developers (Mars).
WebSphere Developer Tools into Eclipse
WebSphere eXtreme Scale V8.6 for Developers - Liberty Profile
WAS Liberty Beta v9 with OSGi Applications
JEE7
Eclipse 4.5 for Java EE Developers (Mars).
WebSphere Developer Tools into Eclipse
WAS Liberty V8.5.5.6 with Java EE 7 Full Platform
My two blockers are
Eclipse eXtreme Scale tools
IBM WebSphere eXtreme Scale v8.5 Liberty Profile Developer Tools
Are only available as an Update Site. I can only install eclipse tools as zip archives.
Are these Eclipse tools available as a zip archive?
OSGi Blueprint
This feature is only installable using the command line
bin/installUtility install blueprint-1.0
Is this feature available as a jar download?
About Eclipse eXtreme Scale tools. You can get the zip version here,
http://public.dhe.ibm.com/software/webservers/appserv/extremescale/eclipse/localSite/localUpdateSite.zip
However, this tool will only work up to Eclipse Juno. More information here,
https://marketplace.eclipse.org/content/ibm-websphere-extreme-scale-v86-liberty-profile-developer-tools
About OSGi Blueprint. AFAIK, there is no zip version. If there is a firewall issue, consider installing the required Liberty Runtime stack, zip it up and put it in the required machine.
btw, you may also need wab-1.0 as well as blueprint-1.0. Here is the information,
https://developer.ibm.com/wasdev/downloads/#asset/features-com.ibm.websphere.appserver.wab-1.0
Hope it helps

I have ear file in my Rational Application Developer(RAD) still I cannot Add Project to WebSphere 6.1 local server

I am using RAD 8.0 with WebSphere 6.1.
When I right click on the Server in the Servers View and select "Add and Remove..." I get a dialog saying "There are no resources that can be added or removed from the server."
What am I missing to get it to let me add my project to the server?
WebSphere 6.1 supports only Java EE 1.4 applications, so if you by chance created new Java EE 5 or 6 EAR you will not be able to deploy it to 6.1.

Can I use Weblogic 10.3 to build applications that run on WebLogic server 9.2?

I have WebLogic 10.3 installed (Server, Workshop and Portal).
However, some of the legacy service applications are deployed on WebLogic 9.2.
I have noticed that after using Ant to build the service library, I get an EBJ stub named ABCD_be9p7l_EOImpl_1030_WLStub.class.
Building it from WebLogic 9.2 gives ABCD_be9p7l_EOImpl_922_WLStub.class.
My question is, if I deploy the 10.3 one in the 9.2 server, will there be any compatibility issues that will stop the services from running?
If there is, is there any way that I can use WebLogic 10.3 to build applications that run on 9.2?
Read "Compatibility Statement for Oracle® WebLogic Server 10g Release 3 (10.3)" document:
Oracle attempts to support binary and source-level compatibility between the current version of WebLogic Server and all versions as far back as 8.1 in the areas of persistent data, generated classes, and API compatibility. In some cases, it is impossible to avoid incompatibilities.
and "Upgrading WebLogic Application Environments" article:
Application environments that run with WebLogic Server 10.3 can interact with application environments built on WebLogic Server 7.0, 8.1, 9.x, or 10.0.
Most existing WebLogic Server applications can be run without modification in the new WebLogic Server 10.3 application environment. You should review the compatibility information described in WebLogic Server 10.3 Compatibility with Previous Releases to determine whether any feature changes affect the applications in your environment. If your application uses APIs that have been deprecated or removed, then you may encounter warnings or exceptions at run time.

Resources