2 Replies Latest reply: Feb 3, 2010 7:35 AM by 750347 RSS

    Getting error while deploying application in weblogic server 9.2

    750347
      Im getting below error in production in weblogic 9.2 server.

      ####<Jan 27, 2010 8:17:02 PM AST> <Error> <Deployer> <hpw2k3los01> <LOSWebServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264612622151> <BEA-149205> <Failed to initialize the application 'NCB_LOS' due to error weblogic.management.DeploymentException: Exception occured while downloading files.
      weblogic.management.DeploymentException: Exception occured while downloading files
           at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:43)
           at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
           at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
           at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:663)
           at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:706)
           at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:100)
           at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
           at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
           at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
           at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
           at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
           at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
           at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
           at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
           at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
      java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: '192.168.50.5', port: '80'
           at weblogic.net.http.HttpClient.openServer(HttpClient.java:320)
           at weblogic.net.http.HttpClient.openServer(HttpClient.java:375)
           at weblogic.net.http.HttpClient.<init>(HttpClient.java:149)
           at weblogic.net.http.HttpClient.New(HttpClient.java:245)
           at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:160)
           at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:75)
           at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:153)
           at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
           at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
           at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
           at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:663)
           at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:706)
           at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:100)
           at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
           at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
           at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
           at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
           at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
           at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
           at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
           at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
           at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)




      This error is intermittent and comes during deployment.Once we get this error we have restart the server.
      Can someone please tell what is the cause of this error?
      we dont have any server with Ip '192.168.50.5' as mentioned in the error message.and what exactly is the server trying to download here?

      Edited by: user12537931 on Jan 31, 2010 4:09 AM
        • 1. Re: Getting error while deploying application in weblogic server 9.2
          Jay SenSharma MiddlewareMagic
          Hi,

          How are you trying to deploy your application on the Server...Using Admin Console...or Using any Script Like WLDeployer?
          The issue seems to be related to Http protocol in port 80.
          Are you sure that in your Production environment there is not firewall blocking issue...on port 80...?
          Some firewall settings rejects any existing connection to be opened for a long time....If your application takes some time, then please check that the firewall doesn't disconnect the existing connection until the deployment time gets over.



          <font color=red>Note: </font>Sometimes this kind of issue happens when we try to deploy our application on WebLogic Server...at that time based on the XSD informations available in our DeploymentDescriptors...the Server tries to download those DTDs from the mentioned URIs....
          Example:

          web.xml has some entries like:
          <!DOCTYPE web-app
          PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          "http://java.sun.com/dtd/web-app_2_3.dtd">

          In above case if the Firewall of our production environment Blocks any request to pass through Port 80 (default Http Port) then we get such exceptions.
          http://middlewaremagic.com/weblogic/?p=802


          Thanks
          Jay SenSharma
          http://middlewaremagic.com/weblogic (Middleware Magic Is Here)
          • 2. Re: Getting error while deploying application in weblogic server 9.2
            750347
            Hi Jay,

            Thanks for your reply.

            We are deploying our application thru windows services which are build using BEA provided script beasvc.exe.
            From the log I could see that its trying to downlod some files via HTTP port 80,but I dont know which are these files.
            because our entire application is deployed in one server and there is no cluster set up.
            We have one admin sever and two managed servers in our domain.

            If it's trying to access port 80 of our production server then why does it show the ip as 192.168.50.5 which is not the ip of our server?and this error comes occasionally.

            We don't have any dtd declaration in our deployment descriptor.

            Thanks,
            Nirmal