Wednesday, November 2, 2011

WebCenter Quick Install Guide

You can get all the software from the following link - http://www.oracle.com/technology/software/products/middleware/htdocs/fmw_11_download.html

1.Oracle Database 10g Express
2.Repository Creation Utility (RCU 11.1.1.2.0) - used to create the necessary repositories
3.WebLogic Server (10.3.2) - wls1032_linux32.bin
4.Web Tier Utilities (11.1.1.2.0) - Oracle Apache installer
5.WebCenter Suite (11.1.1.2.0) - WebCenter installer
6.Content Management for WebCenter (10.1.3.5.1) - directory with Content Server install - to be used during WebCenter installation

Before you Continue...
Check out George Maggessy's great post about installation, with lots of screenshots that help visualize the steps below.

Monday, August 15, 2011

Missing em.ear file while installing 11gR2 in Windows XP

I downloaded the files from OTN with following names:

win64_11gR2_database_1of2.zip
win64_11gR2_database_2of2.zip

Extracted both into the SAME directory with these names

C:\Oracle\Disk1
C:\Oracle\Disk2

Started the installation from C:\Oracle\Disk1\database\setup.exe

And the Installation failed due to file not found of {C:\app\11g\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\WFMLRSVCApp.ear and some other files too}

I went through the http://download.oracle.com/docs/cd/E11882_01/install.112/e10843/toc.htm but there was nothing which mentioned where or how to rename the directories.

All my downloaded files were in the same directory but still I was facing the problem.

As both zip files contained database folder so I couldn't override the files.

I solved the file not found issue by coping all the folders under C:\Oracle\Disk2\database\stage\Components to C:\Oracle\Disk1\database\stage\Components

After restarting the installation it went like a charm and without any issues.


Thanks,
Venkata Sarvabatla

Friday, August 12, 2011

administrator password reset procedure in weblogic

hi,

I have followed the following steps on WLS 11g and I was able to start the AdminServer with new username/password.

Steps:
1: open a command prompt.

2: go to the %BEA_HOME%/user_projects/domains/base_domain/bin dir
cd %BEA_HOME%/user_projects/domains/base_domain/bin

3: run the setDomainEnv.cmd file.
4: This will bring you to base_domain dir. Now run the following command:
java weblogic.security.utils.AdminAccount weblogic welcome1 .

Do not forget to use the last "." which is going to inform the utility to create the DefaultAuthenticatorInit.ldift in the Domain_Home dir.

5: Also try to use a password with atleast 8 chars and with at least one numeric digit.

6: then rename the DefaultAuthenticatorInit.ldift that is already present in the %Domain_Home %/security dir to
DefaultAuthenticatorInit_old.ldift and place the newly generated DefaultAuthenticatorInit.ldift file in the %Domain_Home %/security dir.

7: Also delete the %Domain_Home %/servers/AdminServer/security/boot.properties file.

8: Rename the %Domain_Home %/servers/AdminServer/data/ldap/DefaultAuthenticatormyrealmInit.initialized file to DefaultAuthenticatormyrealmInit_old.initialized

9: Now you can try to start the Admin Server with through the command prompt using startWeblogic.cmd file.

Let me know if this resolves the issue or not.

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

Error :
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Answer :
Cause of the error is : Heap size is larger than your computer's physical memory.


try with the below heap sizes

set DEFAULT_MEM_ARGS=-Xms1024m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m

if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=256m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m


see the below link also :

http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html

Wednesday, August 10, 2011

Difference between JSR 168 and JSR 286 portlets


Java Portlet spefication168 (v1.0) has very basic portlet porgramming model and had lot of limitations for portlet development. Java Portlet spefication286 (v2.0) was developed to overcome the shortcomings on v1.0 specs(JSR 168) such as:

1. Inter portlet communicaiton (IPC) - IPC through events and public render parameters
2. Support for WSRP 2.0
3. Public render paremeters - Allows portlets to share parameters with other portlets.
4. Portlet filters and listeners.
5. Resource serving - Provide ability for portlets to server a resource
6. AJAX support

Friday, April 1, 2011

Weblogic:jdbc: java.sql.SQLException: Transaction timed out after 33 seconds

java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 33 seconds
BEA1-14053C014C88
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1418)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1330)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:425)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:382)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:338)
at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.init(ExternalTransaction.java:53)
at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.getConnection(ExternalTransaction.java:90)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:615)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:589)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:95)

Solution :

I increased the JTA default timeout from 30s to 120s and I stopped getting that error.

You can goto the weblogic console (http://localhost:7001/console) and once you login goto ->services->JTA. Hope this helps.

Tuesday, March 29, 2011

To start with Oracle SOA here are some of useful links:


Oracle SOA Suite general

Oracle SOA Suite software


Oracle Application Integration Architecture

Documentation


Installation

Performance

API

Tutorials

Oracle Blogs

Oracle Forum

Oracle General

Useful tools

Webservice standards


Friday, March 18, 2011

XAER_NOTA : The XID is not valid start() failed on resource '[connection pool]' Error

Error :
java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMERR start() failed on resource 'TestDataSource': XAER_RMERR : A resource manager error has occured in the transaction branch
weblogic.transaction.internal.ResourceAccessException: Transaction has timed out when making request to XAResource 'TestDataSource'.
    at weblogic.transaction.internal.XAResourceDescriptor.startResourceUse(XAResourceDescriptor.java:666)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1182)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1116)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:275)


Solution :
The solution was that for the JDBC Connection Pools to set the XASetTransactionTimeout to true and XATransactionTimeout to zero ("When this parameter is set to zero, the XAResource Session Timeout will be set to the global transaction timeout.")

See the below links :

http://jroller.com/chrisru/entry/xaer_nota_the_xid_is
http://forums.oracle.com/forums/thread.jspa?threadID=1083561