Loading
Showing posts with label BEA. Show all posts
Showing posts with label BEA. Show all posts

Friday, May 2, 2008

Tips & Tricks : how to encrypt the clear text boot.properties manually in WebLogic Application Server?

This tip is useful for two purposes.

  1. First is to recover from invalid system password situation and

  2. second to encrypt the clear text boot.properties.


The trick is to execute File Realm Class from core weblogic.jar file.

  1. First Identify a user and/or the set of users who needs to recover an invalid system password or to encrypt the clear text boot.properties manually.

  2. Second Create a properties file with extension .src and Add all the users need to be defined within this file.

  3. Third execute the File Realm class.


Here is how it is done:


Comments are allowed within the file (preceded by the # sign), and for each user within the set a corresponding entry must be defined on its own new line within the file using the following format:

user.<username>=<cleartext_password>

An example follows:

# define the WebLogic system to have the clear text password WebLogic
user.weblogic=weblogic


  • The newly created fileRealm input definition file (.src) can reside anywhere on the local file system.

  • When the input definition file has been created, the location of SerializedSystemIni.dat must be determined before the FileRealm class is executed from the command line.

  • SerializedSystemIni.dat provides an input seed (or salt) to the hashing phase of the encryption process, and that a password hashed with a specific salt can be successfully compared only to another password hashed by the same exact salt.

  • Therefore, the SerializedSystemIni.dat file, localized at the domain level and present within the security/ directory, has an explicit relationship to the passwords it hashes for the file realm of a given domain. Since WLS can't maintain a file realm in which the set of hashed passwords present have been seeded by different SerializedSystemIni.dat files, you should never mix passwords hashed by different salt files within the same file realm.

  • Set system class path to include the “weblogic.jar” file from the lib directory of the WLS installation.
    <<bea_home>>\server\lib

  • Invoke the utility from the command line as follows:
    java weblogic.security.acl.internal.FileRealm \ <path_to_output_file>\<path_to_salt_file>

  • <path_to_output_file>-
    The path to the output file given by the first parameter should be identical to that of the input definition file, with the .src extension dropped for the output file.

    For example, if you had created the input definition file as mentioned in above steps in a folder:

    c:\temp\user.properties.src,

    You’d now need to define the output file at

    c:\temp\user.properties.


  • This accommodates the way the FileRealm class internally handles the location of the input definition file - it concludes its location by using the same path and name of the output file, yet it assumes the input file has the .src extension added to it.

  • <path_to_salt_file>-
    This contains a hash key (called salt) to encrypt clear text password. This
    Parameter defines the location of the SerializedSystemIni.dat file.

  • It is under folder
    <<bea_home>>\user_projects\domains\<<domain name>>\security

  • Upon execution, the FileRealm class will generate its hashed password outputs into the file defined by the first input parameter.

  • After completion of command execution, open output file in notepad.


    • To recover invalid system password Select encrypted Password
    • &copy it from that output files and paste that encrypted password to FileRealm.dat which is under following folder:
      <<bea_home>>\user_projects\domains\>>domain>>\
    • After completion of copy-paste and file save of FileRealm.properties file, start WLS server to test the password recently set for the <<domain>> user. If the password recovery was successful, the server will properly start and WLS will operate as expected.


    • To encrypt the clear textSelect encrypted Password & copy it from that output files and paste that encrypted password to boot.properties.





Enjoy...

Wednesday, April 23, 2008

Java2SoA Revolution. Dev2Dev TechDays : April 15th : Atlanta,GA

Dev2Dev TechDays Java2SOA Revolution

I have an opportunity to attend Java2SOA Revolution - Dev2Dev TechDays last week April 16th. The Dev2Dev TechDays are half day developer focused seminars that provide a guide for building SOA in Java. Presented by technical experts from throughout BEA – these events will inform about the latest technologies for extending Java2SOA.

Overall cool experience with lots of knowledge, demo and reusable code - about BEA product tools along with an opportunity to meet the like minded people from trenches. :D)


Venue

The venue was the Georgia Aquarium. Fantastically beautiful, dazzling and splendid blueish water filled vibrant, dynamic colorful sea creatures. What a perfect setting to learn more about BEA's Liquid vision about SOA. And another complement to the Liquid was the "AIR" from Adobe. Isn't it an excellent experience to live. The Liquid and the AIR at the same time. :D) With eight million gallons of fresh and marine water and more aquatic life than found in any other aquarium, Georgia Aquarium makes the perfect Venue for knowledge eager development community. The Oceans Ballroom is one of the exotic, spacious and flexible meeting space I have ever been. The cherry on top of the cream is that the Georgia Aquarium offers catering by the world-renowned Chef Wolfgang Puck and we have an opportunity to have continental breakfast, so we can concentrate on the business at hand surrounded by a gorgeous setting.



Event Sponsor : Adobe : Global Event Sponsor

These Dev2Dev TechDays event has been sponsered by Adobe. The Adobe Engg has given a fresh AIR demo alongside BEA Engg team. Adobe AIR enables to have favorite web applications as a offline widget or a disconnected portlet. I mean to say that Adobe AIR runtime lets developers use proven web technologies to build rich Internet applications that deploy to the desktop and run across operating systems.


Dev2Dev

Just in brief before I move ahead with agenda and demos etc stuff, I would like to share bit about BEA's Dev2Dev "By developers, for Developers" developer-product portal. It allow developers to "Get Involved" into "New to Java?" fundas, Blogs from industry experts, CodeShare, Newsgroups, Wiki, User Groups and allow you to "Submit Content/Code". Also it has Product Centers, Technology Centers and various resources containing Dev2Dev Media Center, utilities & tools etc. It is a one happening place. Apart from this portal, BEA has Arch2Arch and Exec2Exec. More about them in different blogs as time arise. :D)

One of the interesting announcement about one of the "coming soon" feature. It is about social networking integration into Facebook.


Dev2Dev Tech Days content

Dev2Dev Tech Days content is based on the new BEA WebLogic Platform 10.2 Evaluation guide. The guide is a comprehensive tour of WebLogic Platform 10.2 for the practitioner (developer, dev manager, architect) . The guide uses an end-to-end order management application scenario to demonstrate concepts. The demos are a small fraction of what is covered and available in the guide. The guide ties together all of demos into one tutorial application with step by step instructions and screenshots. It includes all source code / Eclipse projects. 500+ pages of optional exercises and discussion topics! Spotlight on Adobe Flex extends “Avitek” application scenario with Rich Internet UI. The downloads section on 10.2 Evaluation Guide allow to download Applications and Tools like BEA WebLogic Platform 10.2, WebLogic Workshop Studio 10.2 + Adobe Flex Builder 2 and Adobe Lifecycle Data Services Express. Also it has platform Evaluation source files.

Demo

Avitek is a consumer electronics company. Their existing Order Management System (OMS) requires enhancement, not re-write. The demos are centered around the OMS and various business use cases from that system. The source code and information can be found in 10.2 platform evaluation guide.

One interesting BEA Workshop Studio 10.2 and Adobe Flex Builder 2 : Medrec Patient Application Demo I have come across is on BEA Dev2Dev Media Center. It talks about how Flex & Workshop can be used to provide a single Java/Flex environment for RIA and WebLogic Server side development. The medrec example application that ships with WebLogic Server has been redesigned for new RIA technologies, and is constructed in three layers, the Web tier (Flex), the Business tier (Spring services exposed as Web Services), and the Data tier (ORM types and corresponding Spring DAOs). It uses Adobe and BEA's Eclipse plug-ins to address each layer of the application. Thanks to Spring, the web tier is replaceable without changing the other two, as they are unaware of what web technology is providing the view.

Agenda

It covered following main items:

  1. The conceptual framework: SOA Reference Architecture
  2. Connectivity Services Layer & Demonstration
  3. Business Process Services Layer & Demonstration
  4. Service Mediation Layer & Demonstration
  5. Presentation Services Layer & Demonstration
  6. Flex in Presentation Services & Demonstration
  7. Continuing the Java2SOA Revolution at home
Below is an overview schedule for the day:
8:00 AM - 8:30 AMContinental Breakfast & Registration
8:30 AM - 10:00 AMBEA Welcome and Presentation
  • Developing POJO components
  • Extending POJO components into Java Web Services
  • Visually creating and testing integration process designs
  • Integrating processes into existing systems
10:00 AM - 10:15 AMBreak
10:15 AM - 11:15 AMBEA Presentation
  • Using Eclipse to Proxy enable Java Web Services
  • Configuring a proxy without development
  • Developing custom portlets in the presentation layer
  • Linking portlets into integration processes
11:15 AM - 11:45 AM Adobe presentation
  • Developing a Rich UI with Flex in Eclipse
  • Connecting a Flex UI to the back-end SOA
11:45 AMSummary & Q&A
12:00 PMClose

Resources Shared

Some of the resources which has been shared are:
  • WebLogic Portal's site to preview upcoming features, view new demos, and check out our latest ideas.
wlp.bea.com
  • The SoA Reference Architecture White Paper and lots of other SOA Goodies:
http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/solutions/soa&WT.ac=topnav_solutions_soa

  • James Ward - RIA Cowboy. He has presented on Rich UI with Flex in Eclipse and connecting it to the back-end SOA.
jamesward.com/census and http://www.jamesward.org/wordpress/


Goodie Bag

I walked out of the seminar with couple of cool goodies. A BEA think liquid folder containing beautiful blank T-Shirt, couple of DVDs with products, source code, education catalog and printed presentation. Also I have received tickets for Georgia Aquarium.


Overall a cheerful, bellyful, mindful, cool experience...Cheers...