Thursday, May 27, 2010

WebLogic Portal & Non-Pointbase RDBMS

WebLogic Portal comes with an evaluation license of Pointbase RDBMS for now. I am not sure how long WebLogic products will bundle Pointbase RDBMS for the sample applications and domain. I guessing Oracle will change their strategy and bundle open source Derby RDBMS with WebLogic products as the evaluation license of Pointbase that comes with WebLogic products will limit the database size to 30KB. This is mainly to discourage people from using Pointbase in production environments. Needless to say you can purchase additional license from Pointbase directly.

Especially with WebLogic Portal most people use their own RDBMS like Oracle, MySQL, SQL Server etc. In that case you have to specify or reconfigure WebLogic about the location of the database objects.
  • During the domain creation process they will give you an option to specify the database configuration information for all the datasources that portal require like p13nDataSource, portalDataSource, cgDataSource etc. In the subsequent screen of the configuration wizard they will give you an option to run the DB scripts to create your database objects if the user configured for the datasources in the previous screen is setup with right permissions. More information about this process can be found here. The following screen shot show the a sample JDBC Datasource configuration screen from the configuration wizard.


  • If you had already created the domain and if you wish to change the datasources configuration then you should use the administration console or WLST. Also if you did not run the DB scripts during domain creation you can use create_db.cmd/sh under the domain folder to create the database objects. More information about this process can be found here.
But especially with WebLogic Portal 10.3.2, the point to note when you are configuring a non-Pointbase database is that you should also customize the domain's RDBMS Security Settings in the domain configuration wizard to change the database information configured to point to your database. The default option with the configuration wizard is to use the pointbase database for the RDBMS security store even if you reconfigure your datasources under the JDBC screens. If not your server might not start as the config.xml will have Pointbase specific configuration. Then you may have to use WLST offline mode or directly edit the config.xml to start your server. The error might look like the following example:

<May 26, 2010 1:37:59 PM CDT> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details..
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details.
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)

I shall post a sample WLST offline script to modify RDBMS security store configuration after the domain is created in a later post. The following screen shots shows the option you should select customize RDBMS security store settings and the respective screen for that settings.


11 comments:

AK said...

Hi Bala - your blogs are really good.
we would like to use your consultation in our environment. Can I get your contact info and good time to call you

Thanks,
Anil

Izam Saad said...

"I shall post a sample WLST offline script to modify RDBMS security store configuration after the domain is created in a later post."

Can you post the sample of WLST offline script?

Thanks.

Vijay said...

Excellent Post on RDBMS Security store.

Lakshmi Kanthan said...

Hi Bala,

I am coming across the issue with the non-pointbase DB with Portal
Domain. My idea is to automate the domain creation using WLSt and stuck with the error. With the workaround by executing the sql, should be fine. but am waiting for the WLST script which can do it automatically.

please post the automated WLST in your blog.

Thanks,
LakshmiKanthan.

Jeji Kadiyam said...

Hi Bala,

Thanks for this blog and useful information. I am as well using Oracle DB to configure Security Datastore adn geting the same error while installing managed server. Could you please point me your later blog to avaid this error.

Morrighu Tel Uvrith said...

I downloaded the new WL12 and I *did* modify the RDBMS security store and I'm still get the *&^%#$@!!## kodo.jdbc.kernel.KodoJDBCBrokerFactory error message about "myrealm" can't be loaded.

GAH!!!! I hate GUI's. At least when I edit the text file, I can see that it's actually been done whereas the GUI that asked me to change everything apparently changed NOTHING and just sent it all to /dev/null.

geetha said...

wonderful information, I had come to know about your blog from my friend nandu , hyderabad,i have read atleast 7 posts of yours by now, and let me tell you, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a ton once again, Regards, Oracle Portal online trainingamong the Oracle Portal in Hyderabad. Classroom Training in Hyderabad India

jappi said...

any Plan for posting this WLST?

thnks,

Unknown said...

Awesome. This fixed the issue. Great post Bala!

Unknown said...

We are offering E-commerce Website or business in affordable price.....

Buzz Applications

Sandeep SEO said...

All given info was wonderful and it's very helpful for everyone. It's impressive that you are getting thoughts from this Blog..........................Please contact us for Oracle Fusion Financials Training