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
There is huge complexity in implementing a successful digital business that requires efficient on-premise and cloud back-end infrastructure, IT and Internet of Things (IoT) data, analytics, Machine Learning, Artificial Intelligence (AI) and Digital Applications. In the data center alone, there are physical and virtual infrastructures, multiple operating systems, multiple applications and new and emerging business and technological paradigms such as cloud computing and XaaS. And then there are pe...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Daiya Industry specializes in orthotic support systems and assistive devices with pneumatic artificial muscles in order to contribute to an extended healthy life expectancy. For more information, please visit https://www.daiyak.co.jp/en/.
Real IoT production deployments running at scale are collecting sensor data from hundreds / thousands / millions of devices. The goal is to take business-critical actions on the real-time data and find insights from stored datasets. In his session at @ThingsExpo, John Walicki, Watson IoT Developer Advocate at IBM Cloud, will provide a fast-paced developer journey that follows the IoT sensor data from generation, to edge gateway, to edge analytics, to encryption, to the IBM Bluemix cloud, to Wa...
In his session at @ThingsExpo, Greg Gorman is the Director, IoT Developer Ecosystem, Watson IoT, will provide a short tutorial on Node-RED, a Node.js-based programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using a wide range of nodes in the palette that can be deployed to its runtime in a single-click. There is a large library of contributed nodes that help so...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
Agile has finally jumped the technology shark, expanding outside the software world. Enterprises are now increasingly adopting Agile practices across their organizations in order to successfully navigate the disruptive waters that threaten to drown them. In our quest for establishing change as a core competency in our organizations, this business-centric notion of Agile is an essential component of Agile Digital Transformation. In the years since the publication of the Agile Manifesto, the conn...
SYS-CON Events announced today that App2Cloud will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct. 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. App2Cloud is an online Platform, specializing in migrating legacy applications to any Cloud Providers (AWS, Azure, Google Cloud).
WebRTC is great technology to build your own communication tools. It will be even more exciting experience it with advanced devices, such as a 360 Camera, 360 microphone, and a depth sensor camera. In his session at @ThingsExpo, Masashi Ganeko, a manager at INFOCOM Corporation, will introduce two experimental projects from his team and what they learned from them. "Shotoku Tamago" uses the robot audition software HARK to track speakers in 360 video of a remote party. "Virtual Teleport" uses a mu...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
Mobile device usage has increased exponentially during the past several years, as consumers rely on handhelds for everything from news and weather to banking and purchases. What can we expect in the next few years? The way in which we interact with our devices will fundamentally change, as businesses leverage Artificial Intelligence. We already see this taking shape as businesses leverage AI for cost savings and customer responsiveness. This trend will continue, as AI is used for more sophistica...
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that WineSOFT will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Based in Seoul and Irvine, WineSOFT is an innovative software house focusing on internet infrastructure solutions. The venture started as a bootstrap start-up in 2010 by focusing on making the internet faster and more powerful. WineSOFT’s knowledge is based on the expertise of TCP/IP, VPN, SS...
SYS-CON Events announced today that Akvelon will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Akvelon is a business and technology consulting firm that specializes in applying cutting-edge technology to problems in fields as diverse as mobile technology, sports technology, finance, and healthcare.
SYS-CON Events announced today that TechTarget has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TechTarget storage websites are the best online information resource for news, tips and expert advice for the storage, backup and disaster recovery markets.
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we've...
DevOps at Cloud Expo – being held October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real r...
No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, will present a step-by-step plan to develop your technology implementation strategy. He will discuss the evaluation of communication standards and IoT messaging protocols, dat...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...