Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Do You Know What You Run?

A handy reference to finding your log files - and your SERVER version

Very large organizations know the value of spending a little (or a lot of) extra money to be in total control of the information. The rest of us have probably run into situations where the server version in production may or may not be exactly the same as the one in the QA section and would most certainly run at different log and debug settings from the server developers are working with. This article will cover the common ways to check basic WebLogic information, including versions and log locations. Knowing exactly what you run will also allow you to speed up that inescapable initial exchange of information with your BEA support engineer and allow him or her to get past configuration and into the technical depth of the actual issue.

Versions, Service Packs, and Rolling Patches
The official numbering for the BEA WebLogic product family is MajorVersion.MinorVersion.ServicePack.RollingPatch. Usually, you'll only hear about MajorVersion.MinorVersion in the press releases (e.g., 5.1, 6.0, 6.1, 7.0, and 8.1 for the WebLogic Server), but of course it is the ServicePack that gets the most workout in day-to-day server maintenance and administration.

Some confusion was introduced by BEA's new policy of Weblogic Platform releases in parallel with the stand-alone BEA WebLogic Server releases. Specifically, BEA WebLogic Platform 8.1 is actually built on the WebLogic Server 8.1sp1 and all the components are versioned at 8.1.1.0.

On the other hand, the rolling-patch was last seen at the time of WebLogic 6.0 and let us hope that was the last time.

In addition to the official numbering, there are also one-off (temporary) patches. Any number of them may be applied at the same time since they don't influence the version number, but sometimes it is very important to know exactly which patches are applied.

One important thing to remember about temporary patches (CRxxxx_spX.jar) is that they are specific to the release/service pack version. Trying to use a patch from an older service pack in the newer one can have disastrous effects - some more obvious than others. Listing 1 is an example of applying a WebLogic Server 7.0sp1 patch on the WebLogic Server 7.0sp2 version.

No problems, right? No problems in the server log version either. Then why does WebLogic Server recompile the JSPs that were already precompiled by the same version of WebLogic? The answer is in the console's version information (see Figure 1).

 

Notice that the Server Release Build value is suddenly transposed into 7.0.1.0 (WebLogic Server 7.0sp1). This is what the JSP compiler checks to determine the need to recompile the JSPs and it is a direct effect of an incorrect patch.

How to Skin a Cat (or Checking Version Numbers)
So, how many approaches are there to check for version number? Let us count the ways.

Remotely
Both of the following methods are good for system administrators who have access to and are comfortable with the WebLogic Server, but don't necessarily have access to the machine on which the WebLogic Server runs. After all, with Node Manager and the admin console, it's easy enough to install the server once and throw away the key (account password, that is).

WebLogic Console
This is the easiest and most complete method of getting the versions. You can find it in the Weblogic Console under Console/[Versions] tab. Figure 2 is the screenshot for the WebLogic Server 8.1sp1 (Platform install).

 

As you can see, the versioning information is very complete. It may also be slightly confusing with multiple components installed. The important thing to remember here is that unless you explicitly expect otherwise, the version numbers for all components should match.

weblogic.Admin VERSION
For those of you who like command lines, weblogic.Admin command provides a VERSION option that will return the equivalent of the last entry set in the console display (see Listing 2).

Onsite
The previous section was good for remote administration. What if you're already on the system and working with the files? Perhaps your WebLogic instance is down or you are support personnel and are actually working with somebody else's files. What options do you have then? Quite a few actually.

Server Log
A lot of the information may be found in the server log files, the version strings section being one of them. You can find the section (message BEA-000214 for WebLogic Server 8.1) near the beginning of the run's log, It looks similar to Listing 3.

Notice that as in our previous example of the bad patch, there is no information provided about the version the patches were for. You can, however, extract that information later in the log by looking at the java.class.path in the logged system properties (WebLogic Server 8.1 Message ID: BEA-141034). All the valid BEA patches will have server version information as part of the patch name (e.g., CR123103_81sp1.jar). All of the third-party or invalid patches will, hopefully, stand out exactly because they are missing that information and naming convention.

Odd Places
If you don't have the administrative access to the WebLogic Server, or all the server log files for the last run start have rolled over and were deleted/archived away, you can get a rough idea of what you are up against from various places in your installation.

From the start scripts, you can often tell a general version of WebLogic (based on WL_HOME) and the patches applied (look for CLASSPATH and PRE_CLASSPATH).

Starting with WebLogic 7, the config.xml may contain a ConfigurationVersion attribute in the Domain tag and a ServerVersion attribute in the Server tag. Both attributes, however, are used more for compatibility indication, so use them as an indication of what the server version is not. For example, if you see

<Domain ConfigurationVersion="7.0.2.0" Name="managedDom">

chances are very high that you are running a WebLogic 7 SP2 or higher. It could, of course, still be WebLogic 8.1 in a compatibility mode, so take this value with a grain of salt.

The last odd place to cover is the new domain-info.xml file that WebLogic 8 installs in the domain directory when configured from templates (e.g., WebLogic Configuration Wizard). The file contains the list of base templates and extensions installed over the domain's lifetime. Again, this is more curiosity than a real information source (but don't say we haven't tried to cover for the difficult cases).

Log File Names and Locations
A running WebLogic instance will generate many log files. Table 1 is a list of the core log files. Each extension (Integration, Portal, Workshop, etc.) will also have its own list of logs and should be covered separately (see Table 1).

 

The interesting thing about a server log (and probably BEA products in general) is that in the chase for ever better and ever more useful functionality, the formats and locations of log files keep changing. This especially hits hard those people who are used to running on one version of WebLogic and then upgrading to the latest release. I'm not even going to mention the plight of us - the BEA support personnel - who support at least four versions of WebLogic (5.1 onwards) on top of template and customers variations.

Following is a quick list of server log-related quirks that may have wasted your time in multiversion environments.

  • The default location of the server log file is in <domain>/<servername> for WebLogic Server 5.1, 7.0, and 8.1, but <domain>/logs for WebLogic Server 6.1. To add to the confusion, WebLogic Server 7.0 may have a zero-sized weblogic.log file in the <domain>/logs that is actually a dummy and will never be written to.
  • With WebLogic 8.1 in a development mode, a log file will be automatically rolled over at server startup regardless of the current file size. This and other differences between production and development mode are described at http://e-docs.bea.com/platform/docs81/confgwiz/newdom.html#devprod.
  • When the log file is rolled over, the archived file will change its extension to .logXXXXX (e.g., myserver.log00001), even while transaction logs (for example) will use the more appropriate myserver.XXXX.tlog. This is especially challenging to the Windows administrators, where the file extension mappings are very important.
  • To find the beginning of the log (e.g., to check the version info), the best line to search for in WebLogic Server 5.1 through WebLogic Server 7.0 is "FileLogger". As in:

    ####<29/10/2003 7:53:49> <Info> <Logging> <arafalov01> <myserver>
    <main> <> <> <000000> <FileLogger Opened.>

  • WebLogic 8.1 has improved its internationalization and it is now unwise to rely on the text message itself. The message ID is a better reference. BEA-170019 is WebLogic 8.1's equivalent to the FileLogger and will usually read as shown in Listing 4.
Conclusion
Do you know what you run right now? Perhaps not all aspects, but with a solid knowledge of how to detect the exact server version and a handy reference to the location of all the log files, you're on your way to becoming the Master of WebLogic. Good luck!

More Stories By Alexandre Rafalovitch

Alexandre Rafalovitch is a senior developer relationship engineer with BEA in Sydney Australia, with 13 years of experience in software development and support. He is a Sun Certified Java Programmer, BEA WebLogic Certified Developer and an Introscope 4 Certified Administrator
(Wily Technology). Alexandre's current focus is on Weblogic Server and on tool building for internal and external support use.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend @CloudExpo | @ThingsExpo, June 6-8, 2017, at the Javits Center in New York City, NY and October 31 - November 2, 2017, Santa Clara Convention Center, CA. Learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
SYS-CON Events announced today that Progress, a global leader in application development, has been named “Bronze Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Enterprises today are rapidly adopting the cloud, while continuing to retain business-critical/sensitive data inside the firewall. This is creating two separate data silos – one inside the firewall and the other outside the firewall. Cloud ISVs ofte...
SYS-CON Events announced today that Interoute has been named “Bronze Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Interoute is the owner operator of Europe's largest network and a global cloud services platform, which encompasses over 70,000 km of lit fiber, 15 data centers, 17 virtual data centers and 33 colocation centers, with connections to 195 additional partner data centers. Our full-service Unifie...
Amazon started as an online bookseller 20 years ago. Since then, it has evolved into a technology juggernaut that has disrupted multiple markets and industries and touches many aspects of our lives. It is a relentless technology and business model innovator driving disruption throughout numerous ecosystems. Amazon’s AWS revenues alone are approaching $16B a year making it one of the largest IT companies in the world. With dominant offerings in Cloud, IoT, eCommerce, Big Data, AI, Digital Assis...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 21st International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. @ThingsExpo Silicon Valley Call for Papers is now open.
SYS-CON Events announced today that delaPlex will exhibit at SYS-CON's @ThingsExpo, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. delaPlex pioneered Software Development as a Service (SDaaS), which provides scalable resources to build, test, and deploy software. It’s a fast and more reliable way to develop a new product or expand your in-house team.
In his opening keynote at 20th Cloud Expo, Michael Maximilien, Research Scientist, Architect, and Engineer at IBM, will motivate why realizing the full potential of the cloud and social data requires artificial intelligence. By mixing Cloud Foundry and the rich set of Watson services, IBM's Bluemix is the best cloud operating system for enterprises today, providing rapid development and deployment of applications that can take advantage of the rich catalog of Watson services to help drive insigh...
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm.
The 21st International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Digital Transformation, Machine Learning 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 busin...
Existing Big Data solutions are mainly focused on the discovery and analysis of data. The solutions are scalable and highly available but tedious when swapping in and swapping out occurs in disarray and thrashing takes place. The resolution for thrashing through machine learning algorithms and support nomenclature is through simple techniques. Organizations that have been collecting large customer data are increasingly seeing the need to use the data for swapping in and out and thrashing occurs ...
SYS-CON Events announced today that DivvyCloud will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. DivvyCloud software enables organizations to achieve their cloud computing goals by simplifying and automating security, compliance and cost optimization of public and private cloud infrastructure. Using DivvyCloud, customers can leverage programmatic Bots to identify and remediate common cloud problems in rea...
SYS-CON Events announced today that Tintri, Inc, a leading provider of enterprise cloud infrastructure, will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Tintri offers an enterprise cloud platform built with public cloud-like web services and RESTful APIs. Organizations use Tintri all-flash storage with scale-out and automation as a foundation for their own clouds – to build agile development environments...
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
Every successful software product evolves from an idea to an enterprise system. Notably, the same way is passed by the product owner's company. In his session at 20th Cloud Expo, Oleg Lola, CEO of MobiDev, will provide a generalized overview of the evolution of a software product, the product owner, the needs that arise at various stages of this process, and the value brought by a software development partner to the product owner as a response to these needs.
SYS-CON Events announced today that Cloudistics, an on-premises cloud computing company, has been named “Bronze Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Cloudistics delivers a complete public cloud experience with composable on-premises infrastructures to medium and large enterprises. Its software-defined technology natively converges network, storage, compute, virtualization, and management into a ...
SYS-CON Events announced today that Technologic Systems Inc., an embedded systems solutions company, will exhibit at SYS-CON's @ThingsExpo, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Technologic Systems is an embedded systems company with headquarters in Fountain Hills, Arizona. They have been in business for 32 years, helping more than 8,000 OEM customers and building over a hundred COTS products that have never been discontinued. Technologic Systems’ pr...
SYS-CON Events announced today that Tappest will exhibit MooseFS at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. MooseFS is a breakthrough concept in the storage industry. It allows you to secure stored data with either duplication or erasure coding using any server. The newest – 4.0 version of the software enables users to maintain the redundancy level with even 50% less hard drive space required. The software func...
New competitors, disruptive technologies, and growing expectations are pushing every business to both adopt and deliver new digital services. This ‘Digital Transformation’ demands rapid delivery and continuous iteration of new competitive services via multiple channels, which in turn demands new service delivery techniques – including DevOps. In this power panel at @DevOpsSummit 20th Cloud Expo, moderated by DevOps Conference Co-Chair Andi Mann, panelists will examine how DevOps helps to meet th...
SYS-CON Events announced today that EARP will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. "We are a software house, so we perfectly understand challenges that other software houses face in their projects. We can augment a team, that will work with the same standards and processes as our partners' internal teams. Our teams will deliver the same quality within the required time and budget just as our partn...
SYS-CON Events announced today that Outscale will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Outscale's technology makes an automated and adaptable Cloud available to businesses, supporting them in the most complex IT projects while controlling their operational aspects. You boost your IT infrastructure's reactivity, with request responses that only take a few seconds.