Wednesday, June 26, 2013

Solved "Error: readDomain() failed. Do dumpStack() to see details" while applying upgradeADF

Weblogic 10.3.5
Windows 2008 Server Standard SP2
Application Development Runtime
Patch 12979653
Patch 12917525

This post will discuss how to solve error message " readDomain() failed" while applying upgradeADF command.

The Weblogic 10.3.5 has been used to deploy application built with JDeveloper Release 2, in post case. See note How To Install the ADF Runtime Libraries 11g Release 2 in WebLogic Sever 10.3.5 ? [ID 1328698.1].

After installing Weblogic 10.3.5 with Application Development Runtime & patches, while applying "upgradeADF" command, gives exception

"Error :readDomain() failed. Do dumpStack() to see The domain directory must exist and contain config/config.xml"

The domain directory with config.xml, under config folder was already there. Complete re-install as well as deleting & creating the domain did not help. The error was coming as before.

upgradeADF command was deploying JSF 2.0 library to weblogic domain here, somehow it was not finding the correct domain path.

I decided to deploy the library with weblogic.deployer by java command which can be find by searching online or in official document.

For Windows (Test Example) -

Open cmd & execute following command

C:\Program Files\Java\jdk1.6.0_16\bin>java -cp C:\WGTest64\Middleware\wlserver_10.3\server\lib\weblogic.jar weblogic.Deployer -adminurl t3://localhost:7010 -user weblogic -password welcome1 -deploy -library C:\WGTest64\Middleware\wlserver_10.3\common\deployable-libraries\jsf-2.0.war

Press Enter. The command window will show execution message below.

weblogic.Deployer invoked with options:  -adminurl t3://localhost:7010 -user weblogic -deploy -library C:\WGTest64\Middleware\wlserver_10.3\common\deployable-libraries\jsf-2.0.war<Jun 20, 2013 12:03:16 AM GST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, jsf [archive: C:\WGTest64\Middleware\wlserver_10.3\common\deployable-libraries\jsf-2.0.war], to configured targets.>Task 5 initiated: [Deployer:149117]deploy library jsf [LibSpecVersion=2.0,LibImplVersion=] on AdminServer.Task 5 completed: [Deployer:149117]deploy library jsf [LibSpecVersion=2.0,LibImplVersion=] on AdminServer.Target state: deploy completed on Server AdminServer

Conform in weblogic console that JSF2.0 library deployed & it is Active. See jsf(2.0,

Note, if you try to install this library from weblogic console, wls throws error that information of library is already in Manifest file.

For Linux Terminal
java -cp /u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://localhost:7001 -user weblogic -password Welcome1 -deploy -library /u01/app/oracle/Middleware/wlserver_10.3/common/deployable-libraries/jsf-2.0.war