|By Sree Kusumanchi, Ramana Urachintala||
|December 28, 2010 11:00 AM EST||
Modern enterprise IT infrastructure must keep pace with dynamic needs. As business changes, it allows customers to react quickly to maintain a competitive edge in the marketplace, often by leveraging new technologies to improve the bottom-line performance. Oracle WebLogic Server11g provides customers with expanded capabilities for interoperability, improvements in implementation and maintenance, and a wide array of performance enhancements. Customers can gain significant cost savings in operations, development and license management.
Based on our experience acquired in a large-scale enterprise J2EE project, here are some of the best practices, known issues, and practical tips to make the upgrading work efficiently. This article contains information for technical managers, administrators and developers looking for the latest business and technical details about WebLogic upgradation.
Upgrading to new versions can be challenging task, but it's done for linear scalability, continuous enhanced availability, efficient manageability and automatic/dynamic infrastructure provisioning at a low cost. Upgradation allows customers to stay up-to-date with an Oracle product and access support. Whether you are currently using WebLogic Server 8.x or an earlier version, there are many reasons for moving to WebLogic Server 11g, for example, you can reduce high software ownership and maintenance costs, and, most important, it helps customers focus more strongly on their core competency. As a result, customer IT departments are upgrading to meet the business needs and maintain a competitive edge in the market place.
For instance, upgrading from WebLogic Server 7.0 or 8.1 to 11g might involve some issues, e.g., you have to make your J2EE application(s) compatible with JDK 1.6.
Oracle published an excellent upgrade guide entitled "Upgrading WebLogic Application Environments" and provided two options for upgrading. They are "Upgrade Wizard" and "command-line "weblogic.upgrade". The Oracle Upgrade guide provides step-by-step instructions on how to upgrade the WebLogic Server environment.
Here is a case study on migrating a large-scale J2EE system running on the WebLogic Server 8.1 SP4 platform to WebLogic Server 11g.
Steps to Upgrade
To upgrade the application, we decided to carry out the process in phases. The first phase was to upgrade the application environment using the WebLogic Upgrade Wizard. In the next phase we adopted our build and deployment process. We could manually build and run our application under WebLogic Server 11g. In the last phase we automated the build and deployment process and added support for clustered WebLogic Server instances. The upgradation to WebLogic 11g was first done in the development environment. After completing the upgrade to the development environment and executing quality assurance procedures, we promoted the upgraded environment to the production environment.
Phase 1: Upgrade the existing WebLogic Server 8.1SP4 domain using Upgrade Wizard
In this phase we upgraded the existing WebLogic Server 8.1 SP4 domain using the WebLogic Upgrade Wizard that's part of the WebLogic 11g delivery. Initially this was done in our development environment that contained a non-clustered domain. A domain is the basic administration unit for WebLogic Server instances and consists of one or more WebLogic Server instances that can be managed with a single administration server.
The following are the steps involved in upgrading an application environment:
Step 1: Plan the Upgrade
- Perform inventory on an existing environment
- Verify support configuration for all hardware and software components
- Review the compatibility information
- Create an upgrade plan by identifying the scope and timing of the upgrade process based on the business needs
Step 2: Prepare to Upgrade
- Un-deploy all applications and shut down all servers
- Back up the application environment
- Install a new version of WebLogic Server 11g
- Copy the WebLogic 8.1 SP4 domain to the WebLogic 11g "domains" directory
- Set up the environment - Classpath, Path, WebLogic Home, and third-party libraries
Step 3: Upgrade Your Application Environment
- Upgrade custom security providers: If you are upgrading from WebLogic Server 7.0 or 8.1, and you have custom security providers in your current application environment that you wish to continue using in the new environment, upgrade them on all machines in the environment before you upgrade the WebLogic domain.
- Upgrade Node Managers: If you are currently using a customized version of Node Manager and you wish to continue doing so in the new application environment, upgrade all the Node Managers on all machines in the environment.
- Upgrade WebLogic domain (Administration Server): Upgrade the WebLogic domain on the machine that hosts the Administration Server. Note: Oracle recommends that you upgrade Administration Server for a domain before the Managed Servers.
- Upgrade WebLogic domain (remote Managed Servers): Upgrade the WebLogic domain on every machine that hosts any managed servers. Be sure to copy the appropriate files to the managed servers before performing the upgrade.
Step 4: Complete post-upgrade procedure
- Re-apply customizations to startup scripts
- Verify file permissions
- Enroll the machine with node manager
- Verify remote server startup options
- Promote the Application Environment to Production
If any of the above steps fails in the upgrade process, the upgrade wizard terminates and displays a message that notes the reason for the failure. In such cases, restore the application environment to its previous state by using backup files. Correct the failure and continue the upgrade process from the step at which failure is reported.
Issues and Solutions
After upgrading the environment, we were not able to start up the WebLogic server in the new environment. In fact, some manual changes were still required (e.g., changes to the startup scripts).
- Oracle Type 4 diver is deprecated, i.e., removed in WebLogic 11g version. Instead, it's recommended that you use Oracle Thin driver.
- The xam library (xam-4.0.jar, a third-party library) had to be upgraded because of differences between JDK 1.4 and 1.6.
- The deployment plan, plan.xml, is not able to override the non-configurable elements due to parsing issues. Oracle's recommendation is to use the following annotations during parsing: @configurable,@dependency,@declaration,@dynamic.
- A build and deploy script file for setting environment variables and dependencies should be changed manually.
- The "pointbase" database section in the "startWebLogic.cmd" file had to be removed because of conflicts with a derby database we used. We replaced this section with commands for setting up our own environment variables, classpaths and paths.
- The jdbc-xml-file for one of the jdbc-resources defined in config.xml was missing from jdbc config module (DOMAIN_HOME/config/jdbc). This is fixed by adding the path of this file to config.xml
- In the development environment, in the upgraded "config/config.xml" file, all occurrences of the previous deployment path ".\applications" had to be modified with the new path ".\autodeploy" because of the dev environment. This replacement should be done consistently in all configuration files of the deployed applications.
- After completion of all the above changes, we could start up our system and run it under WebLogic Server 11g.
Note: We could conduct jUnit tests and Load Runners to make sure that everything worked fine.
Phase 2: Compile, build & application deployment under WebLogic Server 11g
The next phase was to get our build & deployment process under WebLogic Server 11g.The goal was to identify and resolve issues in the process as a preparation for the final upgrade in Phase 3. The compile, build and deployment process supported all stages of setting up the system.
- Deploy and execute applications in a single server instance or clustered instances in various environment platforms (Windows, Unix)
- Configure environmental variables WL_HOME and JAVA_HOME and other references to WebLogic 11g and JDK 1.6 installations paths, third-party libraries in various property files and script files used by the build process.
- Check out all files such as source code, configurations, etc., from our version control repository.
- Using Ant build script ,compile and build the source code and prepare the .tar file or zip file.
- Finally the application was deployed into the new WebLogic domain.
- After the above step, we executed the build process and tried to resolve one problem after another. A majority of the issues were related to the new version of JDK1.6, missing jars and libraries.
- At the end, we resolved all the JDK-related issues and were able to compile, build, deploy and start our application in the new upgraded environment.
During the upgradation to WebLogic Server 11g, most of the effort was spent on upgrading the build and deployment process. There were only a few modification required to the Java application code.
However, the compile, build and deployment process ran successfully in the development environment only and was not yet completely automated in the production.
Issues and Solutions
- The WebLogic domain was automatically created using a WebLogic scripting interface of the WebLogic domain configuration wizard. This interface was deprecated in WebLogic Server 11g. Therefore, we created domains manually and postponed solving this issue to final upgradation (Ref Phase 3).
- Since we have used the JAXB API, we had to add the path to "xbean.jar" to server CLASSPATH.
- During the deployment process, the WebLogic Server libraries should be available on the classpath to resolve included Java files, and directives/imports in the source code.
- Make sure the JDBC driver classes are added to the CLASSPATH environment variable.
- Start the corresponding database
- In the WebLogic Server 11g environment, in addition to the WebLogic.jar, webserviceclient.jar, ssl.jar, webservices.jar files, we needed a few additional files - weblogic.policy, xbean.jar, WebLogic-container-binding.jar
Phase 3: Post upgradation
In this phase we concentrated on the following activities:
- Upgrading domain configuration templates by using pack command or by using template builder
- Automating server configurations and build and deployment processes in all environments.
- Resolving issues related to Java JDK 1.6.
Automating server configurations and build and deployment processes
The existing environments are configured in different platforms. We have a specific set of configuration, template and scripts for each application environment. Due to the whole server configuration, the build and deployment process could be run automatically without any manual changes.
However, we have discovered the problems with automatic domain generation. Our scripts had to be changed because the configuration wizard interface in silent mode was deprecated in WebLogic Server 11g. Under WebLogic Server 8.1SP4 we used this interface to create a new domain and then to add the JMS and JDBC configurations.
One solution was to use the new WLST (WebLogic Scripting Tool) instead of the domain configuration wizard. Another issue was affected due to the changes to the structure of config.xml in WebLogic Server 11g. Under WebLogic Server 8.1SP4, we used environment-specific templates to generate config.xml files. Accordingly, we had to change these domain templates and we decided to rework the whole creation process completely. It was a good learning opportunity and utilized complete WLST consistently for all administrative tasks.
Resolving Issues Related to WebLogic and JDK 1.6
After the above upgradation steps, we did extensive load and performance tests and under certain situations the transactions were getting timed out; we resolved the issue by changing the transaction time out sufficiently as per the business needs.
Another issue that we found was that the JMS message consumer was not able to connect to the provider. As a result, we had to make application changes to handle the exception handling appropriately.
The final issue was due to the JDK 1.6 version. Client EJB Business components should support both JDK 1.4 and JDK 1.6. Because of this change, we were required to compile the EJB business components in JDK 1.6 version.
The total upgradation effort required for the upgradation of the application was less than two-person months. The most time-consuming work was Phase 3 (approximately 70% of the effort). Oracle believes that upgradation to WebLogic Server 11g will continue to benefit you over time, offsetting the initial costs of upgradation. However, some benefits will make themselves evident almost immediately.
Next Step - Application Redesign
After upgrading the application, we can consider a redesign of the system in order to take advantage of some new features of WebLogic Server 11g.
In an earlier version of the application, we had written a user-defined timer service for business work flow for notifications. After upgradation we redesigned our application and used the EJB timer service which is added support in WebLogic Server 11g in compliance with EJB 2.1 version. We have found a problem with the timer service in the WebLogic server 11g version because this timer service is not supported in the development mode. We have tested this in the production mode and found no issues.
This article provides a number of best practices for moving your J2EE applications to WebLogic Server 11g. It describes a few crucial steps and tasks that architects, developers, project managers should be aware of while upgrading to WebLogic Server 11g. During the upgradation process you need to upgrade J2EE application, third-party software/libraries, configurations and the build and deployment scripts to the target environment.
Fact is, enterprises have significant legacy voice infrastructure that’s costly to replace with pure IP solutions. How can we bring this analog infrastructure into our shiny new cloud applications? There are proven methods to bind both legacy voice applications and traditional PSTN audio into cloud-based applications and services at a carrier scale. Some of the most successful implementations leverage WebRTC, WebSockets, SIP and other open source technologies. In his session at @ThingsExpo, Da...
Dec. 3, 2016 09:30 PM EST Reads: 1,595
As data explodes in quantity, importance and from new sources, the need for managing and protecting data residing across physical, virtual, and cloud environments grow with it. Managing data includes protecting it, indexing and classifying it for true, long-term management, compliance and E-Discovery. Commvault can ensure this with a single pane of glass solution – whether in a private cloud, a Service Provider delivered public cloud or a hybrid cloud environment – across the heterogeneous enter...
Dec. 3, 2016 06:15 PM EST Reads: 1,508
"IoT is going to be a huge industry with a lot of value for end users, for industries, for consumers, for manufacturers. How can we use cloud to effectively manage IoT applications," stated Ian Khan, Innovation & Marketing Manager at Solgeniakhela, in this SYS-CON.tv interview at @ThingsExpo, held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 3, 2016 05:30 PM EST Reads: 4,040
Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more business becomes digital the more stakeholders are interested in this data including how it relates to business. Some of these people have never used a monitoring tool before. They have a question on their mind like “How is my application doing” but no id...
Dec. 3, 2016 05:15 PM EST Reads: 2,136
@GonzalezCarmen has been ranked the Number One Influencer and @ThingsExpo has been named the Number One Brand in the “M2M 2016: Top 100 Influencers and Brands” by Onalytica. Onalytica analyzed tweets over the last 6 months mentioning the keywords M2M OR “Machine to Machine.” They then identified the top 100 most influential brands and individuals leading the discussion on Twitter.
Dec. 3, 2016 05:15 PM EST Reads: 1,998
Information technology is an industry that has always experienced change, and the dramatic change sweeping across the industry today could not be truthfully described as the first time we've seen such widespread change impacting customer investments. However, the rate of the change, and the potential outcomes from today's digital transformation has the distinct potential to separate the industry into two camps: Organizations that see the change coming, embrace it, and successful leverage it; and...
Dec. 3, 2016 03:15 PM EST Reads: 3,222
The Internet of Things (IoT) promises to simplify and streamline our lives by automating routine tasks that distract us from our goals. This promise is based on the ubiquitous deployment of smart, connected devices that link everything from industrial control systems to automobiles to refrigerators. Unfortunately, comparatively few of the devices currently deployed have been developed with an eye toward security, and as the DDoS attacks of late October 2016 have demonstrated, this oversight can ...
Dec. 3, 2016 02:45 PM EST Reads: 700
Extracting business value from Internet of Things (IoT) data doesn’t happen overnight. There are several requirements that must be satisfied, including IoT device enablement, data analysis, real-time detection of complex events and automated orchestration of actions. Unfortunately, too many companies fall short in achieving their business goals by implementing incomplete solutions or not focusing on tangible use cases. In his general session at @ThingsExpo, Dave McCarthy, Director of Products...
Dec. 3, 2016 02:45 PM EST Reads: 522
Machine Learning helps make complex systems more efficient. By applying advanced Machine Learning techniques such as Cognitive Fingerprinting, wind project operators can utilize these tools to learn from collected data, detect regular patterns, and optimize their own operations. In his session at 18th Cloud Expo, Stuart Gillen, Director of Business Development at SparkCognition, discussed how research has demonstrated the value of Machine Learning in delivering next generation analytics to impr...
Dec. 3, 2016 02:15 PM EST Reads: 6,955
More and more brands have jumped on the IoT bandwagon. We have an excess of wearables – activity trackers, smartwatches, smart glasses and sneakers, and more that track seemingly endless datapoints. However, most consumers have no idea what “IoT” means. Creating more wearables that track data shouldn't be the aim of brands; delivering meaningful, tangible relevance to their users should be. We're in a period in which the IoT pendulum is still swinging. Initially, it swung toward "smart for smar...
Dec. 3, 2016 02:00 PM EST Reads: 475
20th Cloud Expo, taking place June 6-8, 2017, at the Javits Center in New York City, NY, will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy.
Dec. 3, 2016 01:30 PM EST Reads: 2,130
Businesses and business units of all sizes can benefit from cloud computing, but many don't want the cost, performance and security concerns of public cloud nor the complexity of building their own private clouds. Today, some cloud vendors are using artificial intelligence (AI) to simplify cloud deployment and management. In his session at 20th Cloud Expo, Ajay Gulati, Co-founder and CEO of ZeroStack, will discuss how AI can simplify cloud operations. He will cover the following topics: why clou...
Dec. 3, 2016 01:15 PM EST Reads: 629
Internet of @ThingsExpo, taking place June 6-8, 2017 at the Javits Center in New York City, New York, is co-located with the 20th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. @ThingsExpo New York Call for Papers is now open.
Dec. 3, 2016 01:00 PM EST Reads: 1,875
"ReadyTalk is an audio and web video conferencing provider. We've really come to embrace WebRTC as the platform for our future of technology," explained Dan Cunningham, CTO of ReadyTalk, in this SYS-CON.tv interview at WebRTC Summit at 19th Cloud Expo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 3, 2016 01:00 PM EST Reads: 328
Successful digital transformation requires new organizational competencies and capabilities. Research tells us that the biggest impediment to successful transformation is human; consequently, the biggest enabler is a properly skilled and empowered workforce. In the digital age, new individual and collective competencies are required. In his session at 19th Cloud Expo, Bob Newhouse, CEO and founder of Agilitiv, drew together recent research and lessons learned from emerging and established compa...
Dec. 3, 2016 12:45 PM EST Reads: 738
Data is the fuel that drives the machine learning algorithmic engines and ultimately provides the business value. In his session at Cloud Expo, Ed Featherston, a director and senior enterprise architect at Collaborative Consulting, discussed the key considerations around quality, volume, timeliness, and pedigree that must be dealt with in order to properly fuel that engine.
Dec. 3, 2016 12:45 PM EST Reads: 1,955
Everyone knows that truly innovative companies learn as they go along, pushing boundaries in response to market changes and demands. What's more of a mystery is how to balance innovation on a fresh platform built from scratch with the legacy tech stack, product suite and customers that continue to serve as the business' foundation. In his General Session at 19th Cloud Expo, Michael Chambliss, Head of Engineering at ReadyTalk, discussed why and how ReadyTalk diverted from healthy revenue and mor...
Dec. 3, 2016 12:15 PM EST Reads: 1,511
We are always online. We access our data, our finances, work, and various services on the Internet. But we live in a congested world of information in which the roads were built two decades ago. The quest for better, faster Internet routing has been around for a decade, but nobody solved this problem. We’ve seen band-aid approaches like CDNs that attack a niche's slice of static content part of the Internet, but that’s it. It does not address the dynamic services-based Internet of today. It does...
Dec. 3, 2016 11:30 AM EST Reads: 855
The 20th International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held June 6-8, 2017, at the Javits Center in New York City, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Containers, Microservices and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit your speaking proposal ...
Dec. 3, 2016 11:30 AM EST Reads: 2,096
You have great SaaS business app ideas. You want to turn your idea quickly into a functional and engaging proof of concept. You need to be able to modify it to meet customers' needs, and you need to deliver a complete and secure SaaS application. How could you achieve all the above and yet avoid unforeseen IT requirements that add unnecessary cost and complexity? You also want your app to be responsive in any device at any time. In his session at 19th Cloud Expo, Mark Allen, General Manager of...
Dec. 3, 2016 11:15 AM EST Reads: 1,643