1 Reply Latest reply: Jan 31, 2014 6:22 AM by Sharmela-Oracle RSS

    error deploying adf application to weblogic

    Tshifhiwa

      hi am deploying my adf application using weblogic but am geting this error

       

      weblogic 10.3.5

      jeveloper is 11.1.6.0

      [12:14:21 PM] ----  Deployment started.  ----

      [12:14:21 PM] Target platform is  (Weblogic 10.3).

      [12:14:22 PM] Retrieving existing application information

      [12:14:22 PM] Running dependency analysis...

      [12:14:22 PM] Building...

      [12:14:32 PM] Deploying profile...

      [12:14:33 PM] Wrote Web Application Module to C:\JDeveloper\mywork\Align\ViewController\deploy\Align_ViewController_webapp.war

      [12:14:33 PM] Deploying Application...

      [12:14:35 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application Align_ViewController_webapp on AdminServer.: [Deployer:149145]Unable to contact 'madimad-b533821'. Deployment is deferred until 'madimad-b533821' becomes available.; nested exception is:

          java.rmi.UnknownHostException: Could not discover administration URL for server 'madimad-b533821'.

      [12:14:35 PM] [Deployer:149193]Operation 'deploy' on application 'Align_ViewController_webapp' has failed on 'AdminServer'

      [12:14:35 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application Align_ViewController_webapp on AdminServer.: Failed to load webapp: 'Align_ViewController_webapp.war'.

      [12:14:35 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'Align_ViewController_webapp.war'

      [12:14:35 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter

      [12:14:35 PM]   See server logs or server console for more details.

      [12:14:35 PM] weblogic.application.ModuleException: Failed to load webapp: 'Align_ViewController_webapp.war'

      [12:14:35 PM] Deployment cancelled.

      [12:14:35 PM] ----  Deployment incomplete  ----.

      [12:14:35 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

        • 1. Re: error deploying adf application to weblogic
          Sharmela-Oracle

          Hi,

           

          ADF applications that use business components need the weblogic-application.xml deployment

          descriptor to be present to be able to work on a WLS.

           

           

          http://docs.oracle.com/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDCICJH

           

           

          35.4 Creating and Editing Deployment Descriptors

           

           

          mentions the need of :

           

           

          <library-ref>

            <library-name>adf.oracle.domain</library-name>

          </library-ref>

          in the weblogic-application.xml

           

           

           

           

          ==> please execute the following steps:

           

           

          1. Wrap the WAR file in an EAR file configured to be deployed to a WebLogic server as follows, so that  JDeveloper includes the needed deployment descriptor file:

           

           

          2.Right-click the project containing the web contents (usually ViewController), and select New -> Deployment Profile. Then select EAR Deployment Profile.

          3. Enter the name for the application, and then in the EAR profile properties dialog, in the Application Assembly, include the ViewController project, and in the Platform node, make sure Default Platform is set to WebLogic 10.3. Click OK.

          4. In the next dialog box (Project properties), open the node ADF Model, and make sure the checkbox "Contains Data Controls" is checked, and click OK

          5. Now to deploy, right click the ViewController project and select Deploy, then the name of the recently created application deployment profile, and then "to EAR file". This will result in a .ear file, deployable from the WLS administration page.

           

          Thanks,

          Sharmela