Wednesday, June 9, 2010

AIA 11g R1 (over SOASuite11.1.1.3) Installation Issues on Linux

consolehelp.book

I am putting down some of the issues that we had during the AIA installation on a linux box.

Issue#1 :- The AIA intallation failed at the Pre-Installtion step as it was unable to find the task definition for net/sf/antcontrib/antcontrib.properties or net/sf/antcontrib/antlib.xml.

Error StackTrace

No taskdef found for net/sf/antcontrib/antcontrib.properties

Build failed

In the build files there will be this task definition which looks for this specific task file.

Ant build file- snippet

<taskdef resource="net/sf/antcontrib/antcontrib.properties">

………

…………

</taskdef>

<taskdef resource="net/sf/antcontrib/antlib.xml">

………

…………

</taskdef>

Solution

Copy the ant-contrib.jar from Middleware_HOME/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib to the ANT_HOME/lib folder .Then Retry, it should go through smoothly.It needs to be in the classpath so that these properties or xml files and dependent class files are available to the ant.

Issue#2 :- During the Deployment phase there are chances that initial ear deployment may time out. In case you face such an issue increase the timeout value in the server. Since time-out is coming in the ear deployment increase the time-out value at the weblogic domain level.

Error StackTrace

[wlst] Deploying application from AIA_HOME/Infrastructure/Install/applications/AIAHomeApp.ear to targets soa_server1 (upload=true) ...

[wlst] <Jun 2, 2010 6:00:33 AM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, AIAHomeApp [archive: AIA_HOME/Infrastructure/Install/applications/AIAHomeApp.ear], to soa_server1 .>

[wlst] You have an edit session in progress, hence WLST will not

[wlst] block for your deployment to complete.

[wlst] Started the Deployment of Application. Please refer to the returned WLSTProgress object or variable LAST to track the status.

[wlst] Activating all your changes, this may take a while ...

[wlst] The edit lock associated with this edit session is released

[wlst] once the activation is completed.

[wlst] Traceback (innermost last):

[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):

[wlst] File " AIA_HOME/Infrastructure/Install/AID/lib/py/deployApplication.py", line 39, in ?

[wlst] File "<iostream>", line 376, in activate

[wlst] File "<iostream>", line 1848, in raiseWLSTException

[wlst] WLSTException: Error occured while performing activate : Error while Activating changes. : Timed out waiting for completion

[wlst] Use dumpStack() to view the full stacktrace

Solution

Timeout can be configure in 2 ways on Weblogic domain level .Either it can be done from the console or else from backend by editing the configuration file.

a) Edit the config.xml @ Middleware_home\user_projects\domains\SOADomain\config folder

XML Snippet –config.xml

<?xml version='1.0' encoding='UTF-8'?>

<domain xmlns="http://xmlns.oracle.com/weblogic/domain"

……………..>

<name>soa_domain</name>

<domain-version>10.3.3.0</domain-version>

<security-configuration>

…………..

</security-configuration>


<jta>
<timeout-seconds>600</timeout-seconds>
</jta>

<server>

</server>

</domain>

b) Configure the value from weblogic console

Select Services > JTA

Select JTA tab

Change the parameter: Timeout Seconds

That’s it for the day. Have fun. :)

3 comments:

JPeG said...

Nice post, you saved me so much time........

I had another issue when installing (trying to install) AIA.
At the very last step, trying to deploy the application, I had a ClassNotFound exception on ADFApplicationLifecycleListener.
I copied all classes from /u01/oracle/mid11r2/oracle_common/modules/features/*.jar
into my DOMAIN/lib folder.
Restarted my domain, and everything worked fine

Unknown said...

We tried AIAR1 over 11gPS2 , but it seems its only certified with 11gR1 PS1..

Peter Paul said...

With patch 9717829, AIA 11g R1 is certified for PS2. http://www.deltalounge.net/wpress/2010/07/soa-suite-11g-aia-11g-and-patches/